Warning, file /office/calligra/libs/pageapp/KoPAPastePage.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 KOPAPASTEPAGE_H
0021 #define KOPAPASTEPAGE_H
0022 
0023 #include "KoOdfPaste.h"
0024 
0025 #include "kopageapp_export.h"
0026 
0027 class KoPADocument;
0028 class KoPAPageBase;
0029 
0030 class KOPAGEAPP_TEST_EXPORT KoPAPastePage : public KoOdfPaste
0031 {
0032 public:
0033     /**
0034      * Paste pages
0035      *
0036      * This uses intelligent paste of pages. 
0037      * o When copying a page and the master page of that page already exists the 
0038      *   master page is not created, instead the existing master page is used. 
0039      * o When copying a page and the master page of that page does not yet exists
0040      *   the master page of that page is also created.
0041      * o When copying a master page a copy of the page is always created.
0042      *
0043      * @param doc The document in which the pages are pasted.
0044      * @param activePage The page after which the pages are pasted. If 0 at the 
0045      *        pages are inserted at the beginning.
0046      */
0047     KoPAPastePage( KoPADocument * doc, KoPAPageBase * activePage );
0048 
0049 protected:
0050     bool process( const KoXmlElement & body, KoOdfReadStore & odfStore ) override;
0051 
0052     KoPADocument * m_doc;
0053     KoPAPageBase * m_activePage;
0054 };
0055 
0056 #endif /* KOPAPASTEPAGE_H */