libs/flake

KoConnectionShapeFactory Class Reference

#include <KoConnectionShapeFactory.h>

Inheritance diagram for KoConnectionShapeFactory:

List of all members.

Public Member Functions

 KoConnectionShapeFactory (QObject *parent)
 ~KoConnectionShapeFactory ()
virtual KoShapecreateDefaultShape () const
virtual KoShapecreateShape (const KoProperties *params) const
virtual QList
< KoShapeConfigWidgetBase * > 
createShapeOptionPanels ()
virtual bool supports (const KoXmlElement &e) const

Detailed Description

Definition at line 29 of file KoConnectionShapeFactory.h.


Constructor & Destructor Documentation

KoConnectionShapeFactory::KoConnectionShapeFactory ( QObject parent  ) 

Definition at line 32 of file KoConnectionShapeFactory.cpp.

KoConnectionShapeFactory::~KoConnectionShapeFactory (  )  [inline]

Definition at line 33 of file KoConnectionShapeFactory.h.


Member Function Documentation

KoShape * KoConnectionShapeFactory::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 41 of file KoConnectionShapeFactory.cpp.

KoShape * KoConnectionShapeFactory::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 49 of file KoConnectionShapeFactory.cpp.

QList< KoShapeConfigWidgetBase * > KoConnectionShapeFactory::createShapeOptionPanels (  )  [virtual]

Create a list of option panels to show on creating a new shape.

The shape type this factory creates may have general or specific setting panels that will be shown after inserting a new shape. The first item in the list will be shown as the first tab in the list of panels, behind all app specific panels. This is a separate list as set by setOptionPanels() and fetched by panelFactories()

Reimplemented from KoShapeFactory.

Definition at line 60 of file KoConnectionShapeFactory.cpp.

bool KoConnectionShapeFactory::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 55 of file KoConnectionShapeFactory.cpp.


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