libs/flake

KoPathShapeFactory Class Reference

Factory for path shapes. More...

#include <KoPathShapeFactory.h>

Inheritance diagram for KoPathShapeFactory:

List of all members.

Public Member Functions

 KoPathShapeFactory (QObject *parent, const QStringList &)
 ~KoPathShapeFactory ()
KoShapecreateDefaultShape () const
KoShapecreateShape (const KoProperties *params) const
virtual void populateDataCenterMap (QMap< QString, KoDataCenter * > &dataCenterMap)
bool supports (const KoXmlElement &e) const

Detailed Description

Factory for path shapes.

Definition at line 30 of file KoPathShapeFactory.h.


Constructor & Destructor Documentation

KoPathShapeFactory::KoPathShapeFactory ( QObject parent,
const QStringList  
)

constructor

Definition at line 29 of file KoPathShapeFactory.cpp.

KoPathShapeFactory::~KoPathShapeFactory (  )  [inline]

Definition at line 35 of file KoPathShapeFactory.h.


Member Function Documentation

KoShape * KoPathShapeFactory::createDefaultShape (  )  const [virtual]

This method should be implemented by factories to create a shape that the user gets when doing a base insert.

For example from a script. The created shape should have its values set to good defaults that the user can then adjust further if needed. Including the KoShape:setShapeId(), with the Id from this factory The default shape position is not relevant, it will be moved by the caller.

Returns:
a new shape

Implements KoShapeFactory.

Definition at line 40 of file KoPathShapeFactory.cpp.

KoShape * KoPathShapeFactory::createShape ( const KoProperties *  params  )  const [virtual]

This method should be implemented by factories to create a shape based on a set of properties that are specifically made for this shape-type.

This method should also set this factories shapeId on the shape using KoShape::setShapeId()

Returns:
a new shape
See also:
KoShapeTemplate::properties

Implements KoShapeFactory.

Definition at line 51 of file KoPathShapeFactory.cpp.

void KoPathShapeFactory::populateDataCenterMap ( QMap< QString, KoDataCenter * > &  dataCenterMap  )  [virtual]

reimplemented

Reimplemented from KoShapeFactory.

Definition at line 71 of file KoPathShapeFactory.cpp.

bool KoPathShapeFactory::supports ( const KoXmlElement &  e  )  const [virtual]

returns true if this shapeFactory is able to load the ODF type started at argument element.

('draw:line' / 'draw:frame' / etc)

Reimplemented from KoShapeFactory.

Definition at line 57 of file KoPathShapeFactory.cpp.


The documentation for this class was generated from the following files: