1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef IDOCUMENTSTATE_HXX_INCLUDED 25 #define IDOCUMENTSTATE_HXX_INCLUDED 26 27 #include <tools/solar.h> 28 29 /** Get information about the current document state 30 */ 31 class IDocumentState 32 { 33 public: 34 /** Bei Formataenderungen muss das zu Fuss gerufen werden! 35 */ 36 virtual void SetModified() = 0; 37 38 /** 39 */ 40 virtual void ResetModified() = 0; 41 42 /** Dokumentaenderungen? 43 */ 44 virtual bool IsModified() const = 0; 45 46 /** Zustaende ueber Ladezustand 47 frueher DocInfo 48 */ 49 virtual bool IsLoaded() const = 0; 50 51 /** 52 */ 53 virtual bool IsUpdateExpFld() const = 0; 54 55 /** 56 */ 57 virtual bool IsNewDoc() const = 0; 58 59 /** 60 */ 61 virtual bool IsPageNums() const = 0; 62 63 /** 64 */ 65 virtual void SetPageNums(bool b) = 0; 66 67 /** 68 */ 69 virtual void SetNewDoc(bool b) = 0; 70 71 /** 72 */ 73 virtual void SetUpdateExpFldStat(bool b) = 0; 74 75 /** 76 */ 77 virtual void SetLoaded(bool b = sal_True) = 0; 78 79 protected: ~IDocumentState()80 virtual ~IDocumentState() {}; 81 }; 82 83 #endif // IDOCUMENTSTATE_HXX_INCLUDED 84