File indexing completed on 2024-12-22 04:15:31
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2006 Thomas Zander <zander@kde.org> 0003 * SPDX-FileCopyrightText: 2006 Thorsten Zachmann <zachmann@kde.org> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 #include <KoShapeRegistry.h> 0008 #include <KoShapeFactoryBase.h> 0009 0010 #include "PathShapesPlugin.h" 0011 #include "star/StarShapeFactory.h" 0012 #include "rectangle/RectangleShapeFactory.h" 0013 #include "ellipse/EllipseShapeFactory.h" 0014 #include "spiral/SpiralShapeFactory.h" 0015 #include "enhancedpath/EnhancedPathShapeFactory.h" 0016 #include <kpluginfactory.h> 0017 0018 K_PLUGIN_FACTORY_WITH_JSON(PathShapesPluginFactory, "calligra_shape_paths.json", registerPlugin<PathShapesPlugin>();) 0019 0020 PathShapesPlugin::PathShapesPlugin(QObject *parent, const QVariantList &) 0021 : QObject(parent) 0022 { 0023 KoShapeRegistry::instance()->add(new StarShapeFactory()); 0024 KoShapeRegistry::instance()->add(new RectangleShapeFactory()); 0025 KoShapeRegistry::instance()->add(new SpiralShapeFactory()); 0026 KoShapeRegistry::instance()->add(new EnhancedPathShapeFactory()); 0027 KoShapeRegistry::instance()->add(new EllipseShapeFactory()); 0028 0029 } 0030 0031 #include <PathShapesPlugin.moc>