From f48d1df73bc3f777c178d6856f7dc2922265e08b Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 11 Feb 2014 14:52:44 +0100 Subject: [PATCH] writerfilter: Get rid of a whole load of static OUStrings. Change-Id: Ic5b254d1e6579baf2c9acdd24ddbaa95d554cf68 --- writerfilter/CustomTarget_source.mk | 7 -- writerfilter/source/ooxml/factory_values.xsl | 31 +++---- .../source/ooxml/factoryimpl_values.xsl | 82 ------------------- 3 files changed, 16 insertions(+), 104 deletions(-) delete mode 100644 writerfilter/source/ooxml/factoryimpl_values.xsl diff --git a/writerfilter/CustomTarget_source.mk b/writerfilter/CustomTarget_source.mk index 61744c7c990f..0824258d12ce 100644 --- a/writerfilter/CustomTarget_source.mk +++ b/writerfilter/CustomTarget_source.mk @@ -47,7 +47,6 @@ writerfilter_ALL = \ $(writerfilter_GEN_model_SprmCodeToStr_cxx) \ $(writerfilter_GEN_ooxml_Factory_cxx) \ $(writerfilter_GEN_ooxml_Factory_hxx) \ - $(writerfilter_GEN_ooxml_FactoryValues_cxx) \ $(writerfilter_GEN_ooxml_FactoryValues_hxx) \ $(writerfilter_GEN_ooxml_FastTokens_hxx) \ $(writerfilter_GEN_ooxml_GperfFastToken_hxx) \ @@ -63,7 +62,6 @@ writerfilter_DEP_ooxml_Namespaces_txt=$(call gb_CustomTarget_get_workdir,oox/gen writerfilter_GEN_doctok_SprmIds_hxx=$(writerfilter_WORK)/doctok/sprmids.hxx writerfilter_GEN_model_SprmCodeToStr_cxx=$(writerfilter_WORK)/sprmcodetostr.cxx writerfilter_GEN_model_SprmCodeToStr_tmp=$(writerfilter_WORK)/sprmcodetostr.tmp -writerfilter_GEN_ooxml_FactoryValues_cxx=$(writerfilter_WORK)/OOXMLFactory_values.cxx writerfilter_GEN_ooxml_FactoryValues_hxx=$(writerfilter_WORK)/OOXMLFactory_values.hxx writerfilter_GEN_ooxml_Factory_cxx=$(writerfilter_WORK)/OOXMLFactory_generated.cxx writerfilter_GEN_ooxml_Factory_hxx=$(writerfilter_WORK)/OOXMLFactory_generated.hxx @@ -85,7 +83,6 @@ writerfilter_SRC_doctok_SprmIds_xsl=$(writerfilter_SRC)/doctok/sprmids.xsl writerfilter_SRC_model_NamespacePreprocess=$(writerfilter_SRC)/resourcemodel/namespace_preprocess.pl writerfilter_SRC_ooxml_Analyze_model_xsl=$(writerfilter_SRC)/ooxml/analyzemodel.xsl writerfilter_SRC_ooxml_FactoryTools_xsl=$(writerfilter_SRC)/ooxml/factorytools.xsl -writerfilter_SRC_ooxml_FactoryValuesImpl_xsl=$(writerfilter_SRC)/ooxml/factoryimpl_values.xsl writerfilter_SRC_ooxml_FactoryValues_xsl=$(writerfilter_SRC)/ooxml/factory_values.xsl writerfilter_SRC_ooxml_FastTokens_xsl=$(writerfilter_SRC)/ooxml/fasttokens.xsl writerfilter_SRC_ooxml_GperfFastTokenHandler_xsl=$(writerfilter_SRC)/ooxml/gperffasttokenhandler.xsl @@ -115,10 +112,6 @@ $(writerfilter_GEN_ooxml_Factory_hxx) : $(writerfilter_SRC)/ooxml/factoryinc.xsl $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,XSL,1) $(call gb_Helper_abbreviate_dirs, $(writerfilter_XSLTCOMMAND) $< $(writerfilter_GEN_ooxml_Model_processed)) > $@ -$(writerfilter_GEN_ooxml_FactoryValues_cxx) : $(writerfilter_SRC_ooxml_FactoryValuesImpl_xsl) $(writerfilter_GEN_ooxml_Model_processed) - $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,XSL,1) - $(call gb_Helper_abbreviate_dirs, $(writerfilter_XSLTCOMMAND) $(writerfilter_SRC_ooxml_FactoryValuesImpl_xsl) $(writerfilter_GEN_ooxml_Model_processed)) > $@ - $(writerfilter_GEN_ooxml_FactoryValues_hxx) : $(writerfilter_SRC_ooxml_FactoryValues_xsl) $(writerfilter_GEN_ooxml_Model_processed) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,XSL,1) $(call gb_Helper_abbreviate_dirs, $(writerfilter_XSLTCOMMAND) $(writerfilter_SRC_ooxml_FactoryValues_xsl) $(writerfilter_GEN_ooxml_Model_processed)) > $@ diff --git a/writerfilter/source/ooxml/factory_values.xsl b/writerfilter/source/ooxml/factory_values.xsl index 1d8b37832344..5f76b22a1def 100644 --- a/writerfilter/source/ooxml/factory_values.xsl +++ b/writerfilter/source/ooxml/factory_values.xsl @@ -54,22 +54,23 @@ - - -extern OUString - - - - - ; - - -extern OUString + + #define - + - ; - + "" + + + #define + + + + " + + " + + @@ -77,7 +78,7 @@ extern OUString #ifndef INCLUDED_FACTORY_VALUES #include <rtl/ustring.hxx> - + #endif // INCLUDED_FACTORY_VALUES diff --git a/writerfilter/source/ooxml/factoryimpl_values.xsl b/writerfilter/source/ooxml/factoryimpl_values.xsl deleted file mode 100644 index 886553d1b4da..000000000000 --- a/writerfilter/source/ooxml/factoryimpl_values.xsl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - -OUString - - - -(""); - - -OUString - - - -(" - -"); - - - - - -#include "OOXMLFactory_values.hxx" - - - -