diff options
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFactory.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFactory.hxx | 2 | ||||
-rw-r--r-- | writerfilter/source/ooxml/factory_ns.xsl | 2 | ||||
-rw-r--r-- | writerfilter/source/ooxml/factoryimpl_ns.xsl | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFactory.cxx b/writerfilter/source/ooxml/OOXMLFactory.cxx index 8e2fa15bc0e1..1f778c3295a3 100644 --- a/writerfilter/source/ooxml/OOXMLFactory.cxx +++ b/writerfilter/source/ooxml/OOXMLFactory.cxx @@ -85,10 +85,12 @@ TokenToIdMapPointer OOXMLFactory_ns::getTokenToIdMap(Id nId) return m_TokenToIdsMap[nId]; } +#ifdef DEBUG_FACTORY string OOXMLFactory_ns::getDefineName(Id /*nId*/) const { return ""; } +#endif // class OOXMLFactory diff --git a/writerfilter/source/ooxml/OOXMLFactory.hxx b/writerfilter/source/ooxml/OOXMLFactory.hxx index 346b02323cca..76909767839e 100644 --- a/writerfilter/source/ooxml/OOXMLFactory.hxx +++ b/writerfilter/source/ooxml/OOXMLFactory.hxx @@ -102,8 +102,8 @@ public: virtual void charactersAction(OOXMLFastContextHandler * pHandler, const OUString & rString); virtual void endAction(OOXMLFastContextHandler * pHandler); virtual void attributeAction(OOXMLFastContextHandler * pHandler, Token_t nToken, OOXMLValue::Pointer_t pValue); - virtual string getDefineName(Id nId) const; #ifdef DEBUG_FACTORY + virtual string getDefineName(Id nId) const; virtual string getName() const; #endif diff --git a/writerfilter/source/ooxml/factory_ns.xsl b/writerfilter/source/ooxml/factory_ns.xsl index 2815078d979a..a657215d1c68 100644 --- a/writerfilter/source/ooxml/factory_ns.xsl +++ b/writerfilter/source/ooxml/factory_ns.xsl @@ -86,7 +86,9 @@ public: virtual ListValueMapPointer createListValueMap(Id nId); virtual CreateElementMapPointer createCreateElementMap(Id nId); virtual TokenToIdMapPointer createTokenToIdMap(Id nId); +#ifdef DEBUG_FACTORY virtual string getDefineName(Id nId) const;</xsl:text> +#endif <xsl:call-template name="factoryactiondecls"/> virtual void attributeAction(OOXMLFastContextHandler * pHandler, Token_t nToken, OOXMLValue::Pointer_t pValue); diff --git a/writerfilter/source/ooxml/factoryimpl_ns.xsl b/writerfilter/source/ooxml/factoryimpl_ns.xsl index 8d5f565e8318..9cb8912dc72a 100644 --- a/writerfilter/source/ooxml/factoryimpl_ns.xsl +++ b/writerfilter/source/ooxml/factoryimpl_ns.xsl @@ -676,6 +676,7 @@ CreateElementMapPointer </xsl:text> <xsl:template name="factorygetdefinename"> <xsl:text> +#ifdef DEBUG_FACTORY string </xsl:text> <xsl:call-template name="factoryclassname"/> <xsl:text>::getDefineName(Id nId) const @@ -699,6 +700,7 @@ string </xsl:text> return (*pMap)[nId]; } +#endif </xsl:template> |