summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-01-10 12:08:25 +0000
committerOliver Bolte <obo@openoffice.org>2008-01-10 12:08:25 +0000
commit8512f4b31915c3be494671a2fa0bd40bbbf9b41a (patch)
tree215e21f4f284bf2cf72f336175feb3be6af7e18c /sc/inc/document.hxx
parent1e5a9cfb388c69c13bad0779625cf188bd3290d1 (diff)
INTEGRATION: CWS xmlfilter02 (1.97.44); FILE MERGED
2007/12/12 10:09:12 dr 1.97.44.10: RESYNC: (1.104-1.105); FILE MERGED 2007/12/07 09:25:20 dr 1.97.44.9: support import into read-only documents 2007/11/22 09:11:15 tbe 1.97.44.8: #i81572# API: need interface to add linked sheets 2007/10/04 09:01:58 os 1.97.44.7: RESYNC: (1.101-1.104); FILE MERGED 2007/07/25 07:10:40 dr 1.97.44.6: RESYNC: (1.100-1.101); FILE MERGED 2007/07/24 09:03:48 tbe 1.97.44.5: #i79890# API: Missing API to suppress update of all defined names 2007/07/20 12:19:51 tbe 1.97.44.4: #i79826# API: missing property to suppress automatic adjustment of row height 2007/05/29 12:17:44 dr 1.97.44.3: RESYNC: (1.99-1.100); FILE MERGED 2007/05/08 09:41:30 dr 1.97.44.2: RESYNC: (1.97-1.99); FILE MERGED 2007/04/12 10:28:48 tbe 1.97.44.1: #i76026# API: Undo history must be disabled while loading file
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 2173a83df574..91552b075dbf 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: document.hxx,v $
*
- * $Revision: 1.105 $
+ * $Revision: 1.106 $
*
- * last change: $Author: vg $ $Date: 2007-12-07 10:40:50 $
+ * last change: $Author: obo $ $Date: 2008-01-10 13:08:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -421,6 +421,12 @@ private:
mutable BOOL bStyleSheetUsageInvalid;
+ BOOL bUndoEnabled;
+ bool mbAdjustHeightEnabled;
+ bool mbExecuteLinkEnabled;
+ bool mbChangeReadOnlyEnabled; // allow changes in read-only document (for API import filters)
+
+ sal_Int16 mnNamedRangesLockCount;
inline BOOL RowHidden( SCROW nRow, SCTAB nTab ); // FillInfo
@@ -919,7 +925,16 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
BOOL IsClipOrUndo() const { return bIsClip || bIsUndo; }
BOOL IsUndo() const { return bIsUndo; }
BOOL IsClipboard() const { return bIsClip; }
- BOOL IsUndoEnabled() const { return !bImportingXML; }
+ BOOL IsUndoEnabled() const { return bUndoEnabled; }
+ void EnableUndo( BOOL bVal ) { bUndoEnabled = bVal; }
+ bool IsAdjustHeightEnabled() const { return mbAdjustHeightEnabled; }
+ void EnableAdjustHeight( bool bVal ) { mbAdjustHeightEnabled = bVal; }
+ bool IsExecuteLinkEnabled() const { return mbExecuteLinkEnabled; }
+ void EnableExecuteLink( bool bVal ) { mbExecuteLinkEnabled = bVal; }
+ bool IsChangeReadOnlyEnabled() const { return mbChangeReadOnlyEnabled; }
+ void EnableChangeReadOnly( bool bVal ) { mbChangeReadOnlyEnabled = bVal; }
+ sal_Int16 GetNamedRangesLockCount() const { return mnNamedRangesLockCount; }
+ void SetNamedRangesLockCount( sal_Int16 nCount ) { mnNamedRangesLockCount = nCount; }
void ResetClip( ScDocument* pSourceDoc, const ScMarkData* pMarks );
void ResetClip( ScDocument* pSourceDoc, SCTAB nTab );
void SetCutMode( BOOL bCut );