Warning, file /office/calligra/libs/text/KoSectionEnd.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  Copyright (c) 2011 Boudewijn Rempt <boud@valdyas.org>
0003  *  Copyright (c) 2014-2015 Denis Kuplyakov <dener.kup@gmail.com>
0004  *
0005  * This library is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU Lesser General Public
0007  * License as published by the Free Software Foundation; either
0008  * version 2.1 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  * Lesser General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU Lesser 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 #ifndef KOSECTIONEND_H
0021 #define KOSECTIONEND_H
0022 
0023 #include "kotext_export.h"
0024 
0025 #include <QMetaType>
0026 #include <QList>
0027 #include <QString>
0028 #include <QScopedPointer>
0029 
0030 class KoShapeSavingContext;
0031 class KoSection;
0032 
0033 class KoSectionEndPrivate;
0034 /**
0035  * Marks the end of the section
0036  */
0037 class KOTEXT_EXPORT KoSectionEnd {
0038 public:
0039     ~KoSectionEnd(); // this is needed for QScopedPointer
0040 
0041     void saveOdf(KoShapeSavingContext &context) const;
0042 
0043     QString name() const;
0044     KoSection *correspondingSection() const;
0045 
0046 protected:
0047     const QScopedPointer<KoSectionEndPrivate> d_ptr;
0048 
0049 private:
0050     Q_DISABLE_COPY(KoSectionEnd)
0051     Q_DECLARE_PRIVATE(KoSectionEnd)
0052 
0053     explicit KoSectionEnd(KoSection *section);
0054 
0055     friend class KoSectionModel;
0056     friend class TestKoTextEditor;
0057 };
0058 
0059 Q_DECLARE_METATYPE(KoSectionEnd *)
0060 Q_DECLARE_METATYPE(QList<KoSectionEnd *>)
0061 
0062 #endif // KOSECTIONEND_H