1/* This file is part of the KDE project
2 Copyright 2010 Marijn Kruisselbrink <mkruisselbrink@kde.org>
3 Copyright 2007 Stefan Nikolaus <stefan.nikolaus@kdemail.net>
4 Copyright 2007 Thorsten Zachmann <zachmann@kde.org>
5 Copyright 2004 Ariya Hidayat <ariya@kde.org>
6 Copyright 2002-2003 Norbert Andres <nandres@web.de>
7 Copyright 2000-2005 Laurent Montel <montel@kde.org>
8 Copyright 2002 John Dailey <dailey@vt.edu>
9 Copyright 2002 Phillip Mueller <philipp.mueller@gmx.de>
10 Copyright 2000 Werner Trobin <trobin@kde.org>
11 Copyright 1999-2000 Simon Hausmann <hausmann@kde.org>
12 Copyright 1999 David Faure <faure@kde.org>
13 Copyright 1998-2000 Torben Weis <weis@kde.org>
14
15 This library is free software; you can redistribute it and/or
16 modify it under the terms of the GNU Library General Public
17 License as published by the Free Software Foundation; either
18 version 2 of the License, or (at your option) any later version.
19
20 This library is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 Library General Public License for more details.
24
25 You should have received a copy of the GNU Library General Public License
26 along with this library; see the file COPYING.LIB. If not, write to
27 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
28 Boston, MA 02110-1301, USA.
29*/
30
31#ifndef KSPREAD_DOCBASE_P_H
32#define KSPREAD_DOCBASE_P_H
33
34#include "DocBase.h"
35
36static const int CURRENT_SYNTAX_VERSION = 1;
37
38typedef QMap<QString, QDomDocument> SavedDocParts;
39
40namespace Calligra {
41namespace Sheets {
42class Map;
43class SheetAccessModel;
44
45class DocBase::Private
46{
47public:
48 Map *map;
49 static QList<DocBase*> s_docs;
50 static int s_docId;
51
52 // document properties
53 bool configLoadFromFile : 1;
54 QStringList spellListIgnoreAll;
55 SavedDocParts savedDocParts;
56 SheetAccessModel *sheetAccessModel;
57 KoDocumentResourceManager *resourceManager;
58};
59
60} // namespace Sheets
61} // namespace Calligra
62
63#endif // KSPREAD_DOCBASE_P_H
64