diff options
Diffstat (limited to 'sc/inc/rangenam.hxx')
-rw-r--r-- | sc/inc/rangenam.hxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index 06901b3dc721..c9e00e64dfb1 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -37,6 +37,7 @@ #include <map> #include <boost/ptr_container/ptr_set.hpp> +#include <boost/ptr_container/ptr_map.hpp> //------------------------------------------------------------------------ @@ -179,15 +180,21 @@ class ScRangeName { private: typedef ::boost::ptr_set<ScRangeData> DataType; - DataType maData; - - ScDocument* mpDoc; + DataType maData; sal_uInt16 mnSharedMaxIndex; + public: + /// Map that manages stored ScRangeName instances. + typedef ::boost::ptr_map<SCTAB, ScRangeName> TabNameMap; + /// Map that stores non-managed pointers to ScRangeName instances. + typedef ::std::map<SCTAB, const ScRangeName*> TabNameCopyMap; + + static void copyLocalNames(const TabNameMap& rNames, TabNameCopyMap& rCopy); + typedef DataType::const_iterator const_iterator; typedef DataType::iterator iterator; - ScRangeName(ScDocument* pDoc = NULL); + ScRangeName(); ScRangeName(const ScRangeName& r); SC_DLLPUBLIC const ScRangeData* findByRange(const ScRange& rRange) const; |