Warning, file /office/calligra/libs/pageapp/KoPAOdfPageSaveHelper.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2007 Thorsten Zachmann <zachmann@kde.org> 0003 * 0004 * This library is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU Library General Public 0006 * License as published by the Free Software Foundation; either 0007 * version 2 of the License, or (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 * Library General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Library General Public License 0015 * along with this library; see the file COPYING.LIB. If not, write to 0016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #ifndef KOPAODFPAGESAVEHELPER_H 0021 #define KOPAODFPAGESAVEHELPER_H 0022 0023 #include <KoDragOdfSaveHelper.h> 0024 0025 #include <QList> 0026 0027 #include "kopageapp_export.h" 0028 0029 class KoPADocument; 0030 class KoPAPageBase; 0031 0032 class KOPAGEAPP_TEST_EXPORT KoPAOdfPageSaveHelper : public KoDragOdfSaveHelper 0033 { 0034 public: 0035 /** 0036 * Use only one type of pages e.g. only master pages or only normal pages 0037 * if you mix the master pages will only be saved if they are needed for a normal page. 0038 */ 0039 KoPAOdfPageSaveHelper( KoPADocument * doc, QList<KoPAPageBase *> pages ); 0040 ~KoPAOdfPageSaveHelper() override; 0041 0042 /// reimplemented 0043 KoShapeSavingContext * context( KoXmlWriter * bodyWriter, KoGenStyles & mainStyles, KoEmbeddedDocumentSaver & embeddedSaver ) override; 0044 0045 /// reimplemented 0046 bool writeBody() override; 0047 0048 private: 0049 KoPADocument * m_doc; 0050 KoShapeSavingContext *m_context; 0051 QList<KoPAPageBase *> m_pages; 0052 QList<KoPAPageBase *> m_masterPages; 0053 }; 0054 0055 #endif /* KOPAODFPAGESAVEHELPER_H */