16#include <klocalizedstring.h>
28 elementNames <<
"path" <<
"line" <<
"polyline" <<
"polygon";
36 path->moveTo(QPointF(0, 50));
37 path->curveTo(QPointF(0, 120), QPointF(50, 120), QPointF(50, 50));
38 path->curveTo(QPointF(50, -20), QPointF(100, -20), QPointF(100, 50));
48 if (e.localName() ==
"path")
50 if (e.localName() ==
"line")
52 if (e.localName() ==
"polyline")
54 if (e.localName() ==
"polygon")
void setResource(int key, const QVariant &value)
bool hasResource(int key) const
@ MarkerCollection
The collection holding all markers.
void newDocumentResourceManager(KoDocumentResourceManager *manager) const override
reimplemented
bool supports(const QDomElement &element, KoShapeLoadingContext &context) const override
KoShape * createDefaultShape(KoDocumentResourceManager *documentResources=0) const override
KoPathShapeFactory(const QStringList &)
constructor
The position of a path point within a path shape.
void setToolTip(const QString &tooltip)
void setLoadingPriority(int priority)
void setIconName(const char *iconName)
void setXmlElementNames(const QString &nameSpace, const QStringList &elementNames)
static const QString draw
#define koIconNameCStr(name)
QSharedPointer< T > toQShared(T *ptr)