File indexing completed on 2024-06-23 04:27:04
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2006 Thorsten Zachmann <zachmann@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KORECTANGLESHAPEFACTORY_H 0008 #define KORECTANGLESHAPEFACTORY_H 0009 0010 #include "KoShapeFactoryBase.h" 0011 0012 class KoShape; 0013 0014 /// Factory for path shapes 0015 class RectangleShapeFactory : public KoShapeFactoryBase 0016 { 0017 public: 0018 /// constructor 0019 RectangleShapeFactory(); 0020 ~RectangleShapeFactory() override {} 0021 KoShape *createDefaultShape(KoDocumentResourceManager *documentResources = 0) const override; 0022 KoShape *createShape(const KoProperties *params, KoDocumentResourceManager *documentResources = 0) const override; 0023 0024 bool supports(const QDomElement &e, KoShapeLoadingContext &context) const override; 0025 QList<KoShapeConfigWidgetBase *> createShapeOptionPanels() override; 0026 }; 0027 0028 #endif