summaryrefslogtreecommitdiffstats
path: root/sc/inc/rangenam.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@erack.de>2011-08-26 13:24:18 +0200
committerEike Rathke <erack@erack.de>2011-08-26 13:34:59 +0200
commit6f42e4d03b04204b7a864f3c5c9c03548f5e2392 (patch)
tree1da52b208ff6e38c524ee8d4a4a4c509d7bcbbce /sc/inc/rangenam.hxx
parentensureCapacity on OUStringBuffer (diff)
downloadcore-6f42e4d03b04204b7a864f3c5c9c03548f5e2392.tar.gz
core-6f42e4d03b04204b7a864f3c5c9c03548f5e2392.zip
fdo#40378 compile defined names that had unresolveds during load
Dependencies of defined names must not depend on the order in which they are inserted during file load. In a second step compile defined names that had unresolved names during load, and only those.
Diffstat (limited to 'sc/inc/rangenam.hxx')
-rw-r--r--sc/inc/rangenam.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx
index 2774028334af..7b5036216851 100644
--- a/sc/inc/rangenam.hxx
+++ b/sc/inc/rangenam.hxx
@@ -77,7 +77,8 @@ private:
ScAddress aPos;
RangeType eType;
ScDocument* pDoc;
- sal_uInt16 nIndex;
+ formula::FormulaGrammar::Grammar eTempGrammar; // needed for unresolved XML compiles
+ sal_uInt16 nIndex;
bool bModified; // is set/cleared by UpdateReference
// max row and column to use for wrapping of references. If -1 use the
@@ -86,6 +87,9 @@ private:
SCCOL mnMaxCol;
ScRangeData( sal_uInt16 nIndex );
+
+ void CompileRangeData( const String& rSymbol, bool bSetError );
+
public:
typedef ::std::map<sal_uInt16, sal_uInt16> IndexMap;
@@ -161,6 +165,8 @@ public:
SCROW GetMaxRow() const;
SC_DLLPUBLIC void SetMaxCol(SCCOL nCol);
SCCOL GetMaxCol() const;
+
+ void CompileUnresolvedXML();
};
inline bool ScRangeData::HasType( RangeType nType ) const
@@ -204,6 +210,11 @@ public:
void UpdateTranspose(const ScRange& rSource, const ScAddress& rDest);
void UpdateGrow(const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY);
+ /** Compile those names that couldn't be resolved during loading and
+ inserting because they may have referred a name that was inserted later.
+ */
+ void CompileUnresolvedXML();
+
SC_DLLPUBLIC const_iterator begin() const;
SC_DLLPUBLIC const_iterator end() const;
SC_DLLPUBLIC iterator begin();