File indexing completed on 2024-06-23 04:27:05

0001 /* This file is part of the KDE project
0002    SPDX-FileCopyrightText: 2006-2007 Jan Hambrecht <jaham@gmx.net>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KOSTARHAPEFACTORY_H
0008 #define KOSTARHAPEFACTORY_H
0009 
0010 #include <KoShapeFactoryBase.h>
0011 
0012 class KoShape;
0013 
0014 /// Factory for path shapes
0015 class StarShapeFactory : public KoShapeFactoryBase
0016 {
0017 public:
0018     /// constructor
0019     StarShapeFactory();
0020     ~StarShapeFactory() override {}
0021     KoShape *createDefaultShape(KoDocumentResourceManager *documentResources = 0) const override;
0022     KoShape *createShape(const KoProperties *params, KoDocumentResourceManager *documentResources = 0) const override;
0023     bool supports(const QDomElement &e, KoShapeLoadingContext &context) const override;
0024     QList<KoShapeConfigWidgetBase *> createShapeOptionPanels() override;
0025 };
0026 
0027 #endif // KOSTARHAPEFACTORY_H