Warning, file /office/calligra/libs/text/KoTableOfContentsGeneratorInfo.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 Lukáš Tvrdý <lukas.tvrdy@ixonos.com> 0003 * Copyright (C) 2011 Gopalakrishna Bhat A <gopalakbhat@gmail.com> 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 KO_TABLE_OF_CONTENTS_GENERATOR_INFO 0022 #define KO_TABLE_OF_CONTENTS_GENERATOR_INFO 0023 0024 #define ppVar( var ) #var << "=" << var 0025 //#define DEBUG_TOC_STRUCTURE 0026 0027 #include <QList> 0028 #include <QString> 0029 0030 #include "ToCBibGeneratorInfo.h" 0031 0032 class KoTextSharedLoadingData; 0033 class KoXmlWriter; 0034 0035 class KOTEXT_EXPORT KoTableOfContentsGeneratorInfo 0036 { 0037 public: 0038 explicit KoTableOfContentsGeneratorInfo(bool generateEntryTemplate = true); 0039 ~KoTableOfContentsGeneratorInfo(); 0040 void loadOdf(KoTextSharedLoadingData *sharedLoadingData, const KoXmlElement &element); 0041 void saveOdf(KoXmlWriter *writer) const; 0042 KoTableOfContentsGeneratorInfo *clone(); 0043 0044 QString m_name; 0045 QString m_styleName; 0046 // TODO: add support for those according ODF v1.2 0047 // text: protected 0048 // text: protection-key 0049 // text:protection-key-digest-algorithm 0050 // xml:id 0051 QString m_indexScope; // enum {document, chapter} 0052 int m_outlineLevel; 0053 bool m_relativeTabStopPosition; 0054 bool m_useIndexMarks; 0055 bool m_useIndexSourceStyles; 0056 bool m_useOutlineLevel; 0057 0058 IndexTitleTemplate m_indexTitleTemplate; 0059 QList<TocEntryTemplate> m_entryTemplate; // N-entries 0060 QList<IndexSourceStyles> m_indexSourceStyles; 0061 0062 private: 0063 int styleNameToStyleId(KoTextSharedLoadingData *sharedLoadingData, const QString &styleName); 0064 }; 0065 0066 Q_DECLARE_METATYPE(KoTableOfContentsGeneratorInfo *) 0067 0068 #endif