diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-03-04 22:30:39 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-03-05 15:21:08 -0500 |
commit | 726a7d3893d49214ca5ef955beb30dcd49b67dd0 (patch) | |
tree | 5a987b7544125138cd24d8d490a41837dfe1e58b /sc/inc | |
parent | e40df3cb083c365d542395b4b48f575ff287b277 (diff) |
More on adjusting for ScRangeName's new API.
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/cell.hxx | 2 | ||||
-rw-r--r-- | sc/inc/column.hxx | 2 | ||||
-rw-r--r-- | sc/inc/document.hxx | 2 | ||||
-rw-r--r-- | sc/inc/rangenam.hxx | 12 | ||||
-rw-r--r-- | sc/inc/table.hxx | 2 |
5 files changed, 12 insertions, 8 deletions
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx index 297d9015d6d3..904aa3189acb 100644 --- a/sc/inc/cell.hxx +++ b/sc/inc/cell.hxx @@ -459,7 +459,7 @@ public: void UpdateRenameTab(SCTAB nTable, const String& rName); BOOL TestTabRefAbs(SCTAB nTable); void UpdateCompile( BOOL bForceIfNameInUse = FALSE ); - BOOL IsRangeNameInUse(USHORT nIndex) const; + BOOL IsRangeNameInUse(size_t nIndex) const; void FindRangeNamesInUse(std::set<USHORT>& rIndexes) const; void ReplaceRangeNamesInUse( const ScRangeData::IndexMap& rMap ); BOOL IsSubTotal() const { return bSubTotal; } diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index e4febf65179d..3c2da566e552 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -299,7 +299,7 @@ public: void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY ); void SetTabNo(SCTAB nNewTab); - bool IsRangeNameInUse(SCROW nRow1, SCROW nRow2, sal_uInt16 nIndex) const; + bool IsRangeNameInUse(SCROW nRow1, SCROW nRow2, size_t nIndex) const; void FindRangeNamesInUse(SCROW nRow1, SCROW nRow2, std::set<sal_uInt16>& rIndexes) const; void ReplaceRangeNamesInUse( SCROW nRow1, SCROW nRow2, const ScRangeData::IndexMap& rMap ); diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index ae8ef78ce9d7..e30ab421e88f 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1479,7 +1479,7 @@ public: VirtualDevice* GetVirtualDevice_100th_mm(); SC_DLLPUBLIC OutputDevice* GetRefDevice(); // WYSIWYG: Printer, otherwise VirtualDevice... - void EraseNonUsedSharedNames(USHORT nLevel); + void EraseNonUsedSharedNames(); BOOL GetNextSpellingCell(SCCOL& nCol, SCROW& nRow, SCTAB nTab, BOOL bInSel, const ScMarkData& rMark) const; diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index 21150a237ea1..292faa429365 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -192,17 +192,17 @@ private: sal_uInt16 mnSharedMaxIndex; public: typedef DataType::const_iterator const_iterator; + typedef DataType::iterator iterator; ScRangeName(ScDocument* pDoc = NULL); ScRangeName(const ScRangeName& r); - SC_DLLPUBLIC ScRangeData* operator[](sal_uInt16 nIndex); - SC_DLLPUBLIC const ScRangeData* operator[](sal_uInt16 nIndex) const; SC_DLLPUBLIC const ScRangeData* GetRangeAtBlock(const ScRange& rRange) const; SC_DLLPUBLIC ScRangeData* findByName(const rtl::OUString& rName); SC_DLLPUBLIC const ScRangeData* findByName(const rtl::OUString& rName) const; ScRangeData* findByUpperName(const rtl::OUString& rName); const ScRangeData* findByUpperName(const rtl::OUString& rName) const; + bool getIndex(const ScRangeData& rData, size_t& rIndex) const; void UpdateReference(UpdateRefMode eUpdateRefMode, const ScRange& rRange, SCsCOL nDx, SCsROW nDy, SCsTAB nDz); void UpdateTabRef(SCTAB nTable, sal_uInt16 nFlag, SCTAB nNewTable = 0); @@ -212,12 +212,16 @@ public: sal_uInt16 GetSharedMaxIndex(); void SetSharedMaxIndex(sal_uInt16 nInd); - const_iterator begin() const; - const_iterator end() const; + SC_DLLPUBLIC const_iterator begin() const; + SC_DLLPUBLIC const_iterator end() const; + SC_DLLPUBLIC iterator begin(); + SC_DLLPUBLIC iterator end(); SC_DLLPUBLIC size_t size() const; bool empty() const; + SC_DLLPUBLIC bool insert(ScRangeData* p); SC_DLLPUBLIC bool Insert(ScRangeData* p); void erase(const ScRangeData& r); + void erase(const iterator& itr); void clear(); bool operator== (const ScRangeName& r) const; }; diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 3b799a7301b5..d58944950be2 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -479,7 +479,7 @@ public: void UpdateCompile( BOOL bForceIfNameInUse = FALSE ); void SetTabNo(SCTAB nNewTab); BOOL IsRangeNameInUse(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, - USHORT nIndex) const; + size_t nIndex) const; void FindRangeNamesInUse(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, std::set<USHORT>& rIndexes) const; void ReplaceRangeNamesInUse(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, |