diff options
-rw-r--r-- | include/xmloff/xmlnumfe.hxx | 3 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 24 |
2 files changed, 25 insertions, 2 deletions
diff --git a/include/xmloff/xmlnumfe.hxx b/include/xmloff/xmlnumfe.hxx index 3c898d770e82..c07da9c4710f 100644 --- a/include/xmloff/xmlnumfe.hxx +++ b/include/xmloff/xmlnumfe.hxx @@ -26,7 +26,6 @@ #include <com/sun/star/util/XNumberFormatsSupplier.hpp> #include <com/sun/star/uno/Sequence.h> #include <rtl/ustrbuf.hxx> -#include <boost/ptr_container/ptr_vector.hpp> #define XML_WRITTENNUMBERSTYLES "WrittenNumberStyles" @@ -41,7 +40,7 @@ class SvNumberformat; class SvXMLNumUsedList_Impl; struct SvXMLEmbeddedTextEntry; -typedef boost::ptr_vector<SvXMLEmbeddedTextEntry> SvXMLEmbeddedTextEntryArr; +class SvXMLEmbeddedTextEntryArr; class XMLOFF_DLLPUBLIC SvXMLNumFmtExport { diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index d0f46fc4dcbf..f848293832a2 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -46,6 +46,7 @@ #include <xmloff/xmlexp.hxx> #include <set> +#include <boost/ptr_container/ptr_vector.hpp> using namespace ::com::sun::star; using namespace ::xmloff::token; @@ -63,6 +64,29 @@ struct LessuInt32 typedef std::set< sal_uInt32, LessuInt32 > SvXMLuInt32Set; +class SvXMLEmbeddedTextEntryArr +{ + typedef boost::ptr_vector<SvXMLEmbeddedTextEntry> DataType; + DataType maData; + +public: + + void push_back( SvXMLEmbeddedTextEntry* p ) + { + maData.push_back(p); + } + + const SvXMLEmbeddedTextEntry& operator[] ( size_t i ) const + { + return maData[i]; + } + + size_t size() const + { + return maData.size(); + } +}; + class SvXMLNumUsedList_Impl { SvXMLuInt32Set aUsed; |