summaryrefslogtreecommitdiff
path: root/sw/inc/SwStyleNameMapper.hxx
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2012-01-14 00:33:41 -0500
committerAugust Sodora <augsod@gmail.com>2012-01-14 00:33:41 -0500
commite1df68d79b50148078a13436b2b913f28ddf84e4 (patch)
tree1497901481bb127bac9f6422c07fdf03e3014a50 /sw/inc/SwStyleNameMapper.hxx
parent169f3b47c0ad339c6983de2e19d94627c9e567d3 (diff)
SvStringsDtor->boost::ptr_vector
Diffstat (limited to 'sw/inc/SwStyleNameMapper.hxx')
-rw-r--r--sw/inc/SwStyleNameMapper.hxx56
1 files changed, 28 insertions, 28 deletions
diff --git a/sw/inc/SwStyleNameMapper.hxx b/sw/inc/SwStyleNameMapper.hxx
index 3627d0b5dbc4..339f265bf0c2 100644
--- a/sw/inc/SwStyleNameMapper.hxx
+++ b/sw/inc/SwStyleNameMapper.hxx
@@ -39,6 +39,8 @@
#endif
#include <stringhash.hxx>
+#include <boost/ptr_container/ptr_vector.hpp>
+
/** This class holds all data about the names of styles used in the user
* interface (UI names...these are localised into different languages).
* These UI names are loaded from the resource files on demand.
@@ -83,11 +85,9 @@
* " (user)", we simply remove it.
*/
-class SvStringsDtor;
class String;
struct SwTableEntry;
-
typedef ::boost::unordered_map < const String*, sal_uInt16, StringHash, StringEq > NameToIdHash;
class SwStyleNameMapper
@@ -97,7 +97,7 @@ class SwStyleNameMapper
protected:
// UI Name tables
- static SvStringsDtor *pTextUINameArray,
+ static boost::ptr_vector<String> *pTextUINameArray,
*pListsUINameArray,
*pExtraUINameArray,
*pRegisterUINameArray,
@@ -133,11 +133,11 @@ protected:
*pFrameProgMap,
*pNumRuleProgMap;
- static SvStringsDtor* NewUINameArray( SvStringsDtor*&,
+ static boost::ptr_vector<String>* NewUINameArray( boost::ptr_vector<String>*&,
sal_uInt16 nStt,
sal_uInt16 nEnd );
- static SvStringsDtor* NewProgNameArray( SvStringsDtor*&,
+ static boost::ptr_vector<String>* NewProgNameArray( boost::ptr_vector<String>*&,
const SwTableEntry *pTable,
sal_uInt8 nCount);
@@ -178,29 +178,29 @@ public:
SW_DLLPUBLIC static const String GetSpecialExtraProgName( const String& rExtraUIName );
static const String GetSpecialExtraUIName( const String& rExtraProgName );
- static const SvStringsDtor& GetTextUINameArray();
- static const SvStringsDtor& GetListsUINameArray();
- static const SvStringsDtor& GetExtraUINameArray();
- static const SvStringsDtor& GetRegisterUINameArray();
- static const SvStringsDtor& GetDocUINameArray();
- static const SvStringsDtor& GetHTMLUINameArray();
- static const SvStringsDtor& GetFrmFmtUINameArray();
- static const SvStringsDtor& GetChrFmtUINameArray();
- static const SvStringsDtor& GetHTMLChrFmtUINameArray();
- static const SvStringsDtor& GetPageDescUINameArray();
- static const SvStringsDtor& GetNumRuleUINameArray();
-
- static const SvStringsDtor& GetTextProgNameArray();
- static const SvStringsDtor& GetListsProgNameArray();
- static const SvStringsDtor& GetExtraProgNameArray();
- static const SvStringsDtor& GetRegisterProgNameArray();
- static const SvStringsDtor& GetDocProgNameArray();
- static const SvStringsDtor& GetHTMLProgNameArray();
- static const SvStringsDtor& GetFrmFmtProgNameArray();
- static const SvStringsDtor& GetChrFmtProgNameArray();
- static const SvStringsDtor& GetHTMLChrFmtProgNameArray();
- static const SvStringsDtor& GetPageDescProgNameArray();
- static const SvStringsDtor& GetNumRuleProgNameArray();
+ static const boost::ptr_vector<String>& GetTextUINameArray();
+ static const boost::ptr_vector<String>& GetListsUINameArray();
+ static const boost::ptr_vector<String>& GetExtraUINameArray();
+ static const boost::ptr_vector<String>& GetRegisterUINameArray();
+ static const boost::ptr_vector<String>& GetDocUINameArray();
+ static const boost::ptr_vector<String>& GetHTMLUINameArray();
+ static const boost::ptr_vector<String>& GetFrmFmtUINameArray();
+ static const boost::ptr_vector<String>& GetChrFmtUINameArray();
+ static const boost::ptr_vector<String>& GetHTMLChrFmtUINameArray();
+ static const boost::ptr_vector<String>& GetPageDescUINameArray();
+ static const boost::ptr_vector<String>& GetNumRuleUINameArray();
+
+ static const boost::ptr_vector<String>& GetTextProgNameArray();
+ static const boost::ptr_vector<String>& GetListsProgNameArray();
+ static const boost::ptr_vector<String>& GetExtraProgNameArray();
+ static const boost::ptr_vector<String>& GetRegisterProgNameArray();
+ static const boost::ptr_vector<String>& GetDocProgNameArray();
+ static const boost::ptr_vector<String>& GetHTMLProgNameArray();
+ static const boost::ptr_vector<String>& GetFrmFmtProgNameArray();
+ static const boost::ptr_vector<String>& GetChrFmtProgNameArray();
+ static const boost::ptr_vector<String>& GetHTMLChrFmtProgNameArray();
+ static const boost::ptr_vector<String>& GetPageDescProgNameArray();
+ static const boost::ptr_vector<String>& GetNumRuleProgNameArray();
};
#endif // _NAME_MAPPER_HXX