File indexing completed on 2024-04-28 16:21:22

0001 /* This file is part of the KDE project
0002    Copyright 2010 Marijn Kruisselbrink <mkruisselbrink@kde.org>
0003    Copyright 2007 Stefan Nikolaus <stefan.nikolaus@kdemail.net>
0004    Copyright 2007 Thorsten Zachmann <zachmann@kde.org>
0005    Copyright 2004 Ariya Hidayat <ariya@kde.org>
0006    Copyright 2002-2003 Norbert Andres <nandres@web.de>
0007    Copyright 2000-2005 Laurent Montel <montel@kde.org>
0008    Copyright 2002 John Dailey <dailey@vt.edu>
0009    Copyright 2002 Phillip Mueller <philipp.mueller@gmx.de>
0010    Copyright 2000 Werner Trobin <trobin@kde.org>
0011    Copyright 1999-2000 Simon Hausmann <hausmann@kde.org>
0012    Copyright 1999 David Faure <faure@kde.org>
0013    Copyright 1998-2000 Torben Weis <weis@kde.org>
0014 
0015    This library is free software; you can redistribute it and/or
0016    modify it under the terms of the GNU Library General Public
0017    License as published by the Free Software Foundation; either
0018    version 2 of the License, or (at your option) any later version.
0019 
0020    This library is distributed in the hope that it will be useful,
0021    but WITHOUT ANY WARRANTY; without even the implied warranty of
0022    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0023    Library General Public License for more details.
0024 
0025    You should have received a copy of the GNU Library General Public License
0026    along with this library; see the file COPYING.LIB.  If not, write to
0027    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0028    Boston, MA 02110-1301, USA.
0029 */
0030 
0031 #ifndef KSPREAD_DOCBASE_P_H
0032 #define KSPREAD_DOCBASE_P_H
0033 
0034 #include "DocBase.h"
0035 
0036 static const int CURRENT_SYNTAX_VERSION = 1;
0037 
0038 typedef QMap<QString, QDomDocument> SavedDocParts;
0039 
0040 namespace Calligra {
0041 namespace Sheets {
0042 class Map;
0043 class SheetAccessModel;
0044 
0045 class Q_DECL_HIDDEN DocBase::Private
0046 {
0047 public:
0048     Map *map;
0049     static QList<DocBase*> s_docs;
0050     static int s_docId;
0051 
0052     // document properties
0053     bool configLoadFromFile       : 1;
0054     QStringList spellListIgnoreAll;
0055     SavedDocParts savedDocParts;
0056     SheetAccessModel *sheetAccessModel;
0057     KoDocumentResourceManager *resourceManager;
0058 };
0059 
0060 } // namespace Sheets
0061 } // namespace Calligra
0062 
0063 #endif // KSPREAD_DOCBASE_P_H