File indexing completed on 2024-05-12 16:33:34
0001 /* This file is part of the KDE project 0002 0003 Copyright 2018 Dag Andersen <danders@get2net.dk> 0004 0005 This library is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU Library General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 0010 This library is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 Library General Public License for more details. 0014 0015 You should have received a copy of the GNU Library General Public License 0016 along with this library; see the file COPYING.LIB. If not, write to 0017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0018 Boston, MA 02110-1301, USA. 0019 */ 0020 0021 #ifndef KOCHART_ODFHELPER_H 0022 #define KOCHART_ODFHELPER_H 0023 0024 0025 // Qt 0026 #include <QSharedPointer> 0027 0028 // Calligra 0029 #include <KoShapeContainer.h> 0030 #include <KoFrameShape.h> 0031 0032 // KoChart 0033 #include "kochart_global.h" 0034 #include "KoChartInterface.h" 0035 0036 0037 class QAbstractItemModel; 0038 0039 class QPointF; 0040 class QSizeF; 0041 class QPen; 0042 class QBrush; 0043 class QColor; 0044 class QString; 0045 class QFont; 0046 0047 class KoCanvasBase; 0048 class KoDocumentResourceManager; 0049 class KoShapeLoadingContext; 0050 class KoShapeSavingContext; 0051 class KoStore; 0052 #include "KoXmlReaderForward.h" 0053 class KoXmlWriter; 0054 class KoGenStyles; 0055 class KoOdfLoadingContext; 0056 0057 namespace KoChart { 0058 namespace OdfHelper { 0059 0060 void saveOdfFont(KoGenStyle &style, const QFont& font, const QColor& color); 0061 QString saveOdfFont(KoGenStyles& mainStyles, const QFont& font, const QColor& color); 0062 0063 void saveOdfTitleStyle(KoShape *title, KoGenStyle &style, KoShapeSavingContext &context); 0064 0065 void saveOdfTitle(KoShape *title, KoXmlWriter &bodyWriter, const char *titleType, KoShapeSavingContext &context); 0066 0067 QString getStyleProperty(const char *property, KoShapeLoadingContext &context); 0068 QSharedPointer<KoShapeBackground> loadOdfFill(KoShape *title, KoShapeLoadingContext &context); 0069 KoShapeStrokeModel *loadOdfStroke(KoShape *title, const KoXmlElement &element, KoShapeLoadingContext &context); 0070 KoShapeShadow *loadOdfShadow(KoShape *title, KoShapeLoadingContext &context); 0071 KoBorder *loadOdfBorder(KoShape *title, KoShapeLoadingContext &context); 0072 0073 bool loadOdfTitle(KoShape *title, KoXmlElement &titleElement, KoShapeLoadingContext &context); 0074 0075 } 0076 0077 } // Namespace KoChart 0078 0079 #endif