Warning, file /office/calligra/libs/text/KoBibliographyInfo.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) 2011 Smit Patel <smitpatel24@gmail.com> 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 #ifndef KOBIBLIOGRAPHYINFO_H 0020 #define KOBIBLIOGRAPHYINFO_H 0021 0022 #include "kotext_export.h" 0023 #include <KoXmlReaderForward.h> 0024 #include "ToCBibGeneratorInfo.h" 0025 0026 class KoTextSharedLoadingData; 0027 class KoXmlWriter; 0028 0029 class KOTEXT_EXPORT BibliographyGeneratorInterface { 0030 public: 0031 BibliographyGeneratorInterface() {} 0032 virtual ~BibliographyGeneratorInterface() {} 0033 //virtual void setMaxTabPosition(qreal maxTabPosition) = 0; 0034 }; 0035 0036 class KOTEXT_EXPORT KoBibliographyInfo 0037 { 0038 public: 0039 KoBibliographyInfo(); 0040 0041 ~KoBibliographyInfo(); 0042 0043 void loadOdf(KoTextSharedLoadingData *sharedLoadingData, const KoXmlElement &element); 0044 void saveOdf(KoXmlWriter *writer) const; 0045 0046 void setGenerator(BibliographyGeneratorInterface *generator); 0047 void setEntryTemplates(QMap<QString, BibliographyEntryTemplate> &entryTemplates); 0048 0049 KoBibliographyInfo *clone(); 0050 BibliographyGeneratorInterface *generator() const; 0051 0052 QString m_name; 0053 QString m_styleName; 0054 IndexTitleTemplate m_indexTitleTemplate; 0055 QMap<QString, BibliographyEntryTemplate> m_entryTemplate; 0056 0057 private: 0058 int styleNameToStyleId(KoTextSharedLoadingData *sharedLoadingData, const QString &styleName); 0059 BibliographyGeneratorInterface *m_generator; 0060 }; 0061 0062 Q_DECLARE_METATYPE(KoBibliographyInfo *) 0063 0064 #endif // KOBIBLIOGRAPHYINFO_H