xref: /trunk/main/sw/inc/IDocumentState.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28  #ifndef IDOCUMENTSTATE_HXX_INCLUDED
29  #define IDOCUMENTSTATE_HXX_INCLUDED
30 
31  #include <tools/solar.h>
32 
33  /** Get information about the current document state
34  */
35  class IDocumentState
36  {
37  public:
38     /** Bei Formataenderungen muss das zu Fuss gerufen werden!
39     */
40     virtual void SetModified() = 0;
41 
42     /**
43     */
44     virtual void ResetModified() = 0;
45 
46     /** Dokumentaenderungen?
47     */
48     virtual bool IsModified() const = 0;
49 
50     /** Zustaende ueber Ladezustand
51         frueher DocInfo
52     */
53     virtual bool IsLoaded() const = 0;
54 
55     /**
56     */
57     virtual bool IsUpdateExpFld() const  = 0;
58 
59     /**
60     */
61     virtual bool IsNewDoc() const = 0;
62 
63     /**
64     */
65     virtual bool IsPageNums() const = 0;
66 
67     /**
68     */
69     virtual void SetPageNums(bool b)    = 0;
70 
71     /**
72     */
73     virtual void SetNewDoc(bool b) = 0;
74 
75     /**
76     */
77     virtual void SetUpdateExpFldStat(bool b) = 0;
78 
79     /**
80     */
81     virtual void SetLoaded(bool b = sal_True) = 0;
82 
83  protected:
84     virtual ~IDocumentState() {};
85  };
86 
87  #endif // IDOCUMENTSTATE_HXX_INCLUDED
88