summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-07-17 15:21:48 +0200
committerEike Rathke <erack@redhat.com>2015-07-17 15:26:49 +0200
commit8eadeb91cde9709f006e8c5e19e98bff44dbd177 (patch)
tree095b5a5c73d4f6ecd6773c3cecba7e3dea8d3fdb /sc/inc
parent9dd4b06304a615d2d600d6b1cdf0d6d445311b0d (diff)
Resolves: tdf#77479 do not reset AutoFilter range for temporary operations
Change-Id: I22f5e74ca91eb188ce669762927dd25604a256ff
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/document.hxx8
-rw-r--r--sc/inc/global.hxx7
2 files changed, 12 insertions, 3 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 0e6c7e34cbfb..74f25b8f10d6 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -319,6 +319,7 @@ private:
ScScriptTypeData* pScriptTypeData;
ScRefreshTimerControl* pRefreshTimerControl;
rtl::Reference<SvxForbiddenCharactersTable> xForbiddenCharacters;
+ ScDBData* mpAnonymousDBData;
ScFieldEditEngine* pCacheFieldEditEngine;
@@ -612,6 +613,13 @@ public:
SC_DLLPUBLIC void SetAnonymousDBData(SCTAB nTab, ScDBData* pDBData);
SC_DLLPUBLIC ScDBData* GetAnonymousDBData(SCTAB nTab);
+ /** One document global anonymous database range for temporary operations,
+ used if the corresponding sheet-local anonymous database range is
+ already used with AutoFilter and range differs. Not stored in document
+ files. */
+ SC_DLLPUBLIC void SetAnonymousDBData(ScDBData* pDBData);
+ SC_DLLPUBLIC ScDBData* GetAnonymousDBData();
+
SC_DLLPUBLIC SCTAB GetTableCount() const;
SvNumberFormatterIndexTable* GetFormatExchangeList() const { return pFormatExchangeList; }
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 1691745006e2..c7e250fedb77 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -408,9 +408,10 @@ enum ScAnchorType // anchor of a character object
enum ScGetDBMode
{
- SC_DB_MAKE, // create "untitled" (if necessary)
- SC_DB_IMPORT, // create "Importx" (if necessary)
- SC_DB_OLD // don't create
+ SC_DB_MAKE, ///< create "untitled" (if necessary)
+ SC_DB_AUTOFILTER, ///< force use of sheet-local instead of document global anonymous range
+ SC_DB_IMPORT, ///< create "Importx" (if necessary)
+ SC_DB_OLD ///< don't create
};
/// For ScDBFunc::GetDBData()