[Libreoffice-commits] core.git: xmloff/source

Kohei Yoshida kohei.yoshida at gmail.com
Mon Aug 19 12:49:32 PDT 2013


 xmloff/source/style/xmlexppr.cxx |   45 +++++++++++++++++++++------------------
 1 file changed, 25 insertions(+), 20 deletions(-)

New commits:
commit 5f7ee4b7a32153f3141507de673f60c7f678f015
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Mon Aug 19 10:53:29 2013 -0400

    These can be file local.
    
    Change-Id: I71193951ce7a1d1a63fc6931a12267f22cdb72c3

diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index 6888f6e..92e6baa 100644
--- a/xmloff/source/style/xmlexppr.cxx
+++ b/xmloff/source/style/xmlexppr.cxx
@@ -47,6 +47,9 @@ using namespace ::com::sun::star::lang;
 using namespace ::xmloff::token;
 
 #define GET_PROP_TYPE( f ) static_cast<sal_uInt16>((f & XML_TYPE_PROP_MASK) >> XML_TYPE_PROP_SHIFT)
+#define ENTRY(t) { GET_PROP_TYPE(XML_TYPE_PROP_##t), XML_##t##_PROPERTIES }
+
+namespace {
 
 struct XMLPropTokens_Impl
 {
@@ -54,12 +57,11 @@ struct XMLPropTokens_Impl
     XMLTokenEnum eToken;
 };
 
-#define ENTRY(t) { GET_PROP_TYPE(XML_TYPE_PROP_##t), XML_##t##_PROPERTIES }
 const sal_uInt16 MAX_PROP_TYPES =
     (XML_TYPE_PROP_END >> XML_TYPE_PROP_SHIFT) -
     (XML_TYPE_PROP_START >> XML_TYPE_PROP_SHIFT);
 
-static  XMLPropTokens_Impl aPropTokens[MAX_PROP_TYPES] =
+XMLPropTokens_Impl aPropTokens[MAX_PROP_TYPES] =
 {
     ENTRY(CHART),
     ENTRY(GRAPHIC),
@@ -204,24 +206,6 @@ public:
     sal_uInt32 GetPropertyCount() const { return nCount; }
 };
 
-struct SvXMLExportPropertyMapper::Impl
-{
-    typedef boost::unordered_map<PropertySetInfoKey, FilterPropertiesInfo_Impl*, PropertySetInfoHash, PropertySetInfoHash> CacheType;
-    CacheType maCache;
-
-    UniReference<SvXMLExportPropertyMapper> mxNextMapper;
-    UniReference<XMLPropertySetMapper> mxPropMapper;
-
-    OUString maStyleName;
-
-    ~Impl()
-    {
-        CacheType::iterator it = maCache.begin(), itEnd = maCache.end();
-        for (; it != itEnd; ++it)
-            delete it->second;
-    }
-};
-
 FilterPropertiesInfo_Impl::FilterPropertiesInfo_Impl() :
     nCount(0),
     aPropInfos(),
@@ -248,6 +232,7 @@ void FilterPropertiesInfo_Impl::AddProperty(
         pApiNames = NULL;
     }
 }
+
 const uno::Sequence<OUString>& FilterPropertiesInfo_Impl::GetApiNames()
 {
     OSL_ENSURE(nCount == aPropInfos.size(), "wrong property count");
@@ -531,6 +516,26 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray(
     aPropStates.FillPropertyStateVector(rPropStates);
 }
 
+}
+
+struct SvXMLExportPropertyMapper::Impl
+{
+    typedef boost::unordered_map<PropertySetInfoKey, FilterPropertiesInfo_Impl*, PropertySetInfoHash, PropertySetInfoHash> CacheType;
+    CacheType maCache;
+
+    UniReference<SvXMLExportPropertyMapper> mxNextMapper;
+    UniReference<XMLPropertySetMapper> mxPropMapper;
+
+    OUString maStyleName;
+
+    ~Impl()
+    {
+        CacheType::iterator it = maCache.begin(), itEnd = maCache.end();
+        for (; it != itEnd; ++it)
+            delete it->second;
+    }
+};
+
 // ctor/dtor , class SvXMLExportPropertyMapper
 
 SvXMLExportPropertyMapper::SvXMLExportPropertyMapper(


More information about the Libreoffice-commits mailing list