diff --git a/writerfilter/source/ooxml/values.xsl b/writerfilter/source/ooxml/factory_values.xsl similarity index 86% rename from writerfilter/source/ooxml/values.xsl rename to writerfilter/source/ooxml/factory_values.xsl index 414bd89aa0af..a95be77fa522 100644 --- a/writerfilter/source/ooxml/values.xsl +++ b/writerfilter/source/ooxml/factory_values.xsl @@ -7,7 +7,7 @@ OpenOffice.org - a multi-platform office productivity suite - $RCSfile: values.xsl,v $ + $RCSfile: fastresources_wml.xsl,v $ $Revision: 1.3 $ @@ -68,25 +68,12 @@ - - - -#ifndef INCLUDED_OOXML_VALUES_HXX -#define INCLUDED_OOXML_VALUES_HXX - + +#ifndef INCLUDED_FACTORY_VALUES #include <rtl/ustring.hxx> -#include "OOXMLPropertySetImpl.hxx" -namespace writerfilter { -namespace ooxml { - -/// @cond GENERATED - - - -/// @endcond -}} -#endif //INCLUDED_OOXML_VALUES_HXX - - + + +#endif // INCLUDED_FACTORY_VALUES + diff --git a/writerfilter/source/ooxml/factoryimpl.xsl b/writerfilter/source/ooxml/factoryimpl.xsl index d6b80fd6fe7e..aa8adbeb0d41 100644 --- a/writerfilter/source/ooxml/factoryimpl.xsl +++ b/writerfilter/source/ooxml/factoryimpl.xsl @@ -70,7 +70,11 @@ #include "OOXMLFactory.hxx" -#include "OOXMLFastHelper.hxx" +#include "OOXMLFastHelper.hxx" +#include "OOXMLStreamImpl.hxx" +#include "doctok/sprmids.hxx" +#include "doctok/resourceids.hxx" + namespace writerfilter { @@ -81,6 +85,9 @@ namespace ooxml { + + + /// @endcond }} diff --git a/writerfilter/source/ooxml/factoryimpl_ns.xsl b/writerfilter/source/ooxml/factoryimpl_ns.xsl index 53634cef9012..163e58815841 100644 --- a/writerfilter/source/ooxml/factoryimpl_ns.xsl +++ b/writerfilter/source/ooxml/factoryimpl_ns.xsl @@ -71,8 +71,9 @@ #include "doctok/sprmids.hxx" +#include "doctok/resourceids.hxx" #include "ooxml/resourceids.hxx" -#include "OOXMLfastresources.hxx" +#include "OOXMLFactory_values.hxx" #include "OOXMLFactory_ .hxx" diff --git a/writerfilter/source/ooxml/valuesimpl.xsl b/writerfilter/source/ooxml/factoryimpl_values.xsl similarity index 84% rename from writerfilter/source/ooxml/valuesimpl.xsl rename to writerfilter/source/ooxml/factoryimpl_values.xsl index c4b40b71fd2d..ef976809a6b8 100644 --- a/writerfilter/source/ooxml/valuesimpl.xsl +++ b/writerfilter/source/ooxml/factoryimpl_values.xsl @@ -7,7 +7,7 @@ OpenOffice.org - a multi-platform office productivity suite - $RCSfile: valuesimpl.xsl,v $ + $RCSfile: fastresources_wml.xsl,v $ $Revision: 1.3 $ @@ -68,22 +68,8 @@ - - - -#include <iostream> -#include <doctok/resourceids.hxx> -#include <ooxml/resourceids.hxx> -#include "OOXMLvalues.hxx" -#include "OOXMLPropertySetImpl.hxx" - -namespace writerfilter { -namespace ooxml { -using namespace ::std; - - - - -}} - - \ No newline at end of file + +#include "OOXMLFactory_values.hxx" + + + diff --git a/writerfilter/source/ooxml/fastresources.xsl b/writerfilter/source/ooxml/fastresources.xsl deleted file mode 100644 index 7e537d1881f4..000000000000 --- a/writerfilter/source/ooxml/fastresources.xsl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - -#ifndef INCLUDED_OOXML_RESOURCES_HXX -#define INCLUDED_OOXML_RESOURCES_HXX - -#include <vector> -#include <boost/shared_ptr.hpp> -#include <string> - -#include <resourcemodel/WW8ResourceModel.hxx> -#include <resourcemodel/TagLogger.hxx> -#include <doctok/resourceids.hxx> -#include <ooxml/resourceids.hxx> -#include <ooxml/OOXMLnamespaceids.hxx> -#include "OOXMLFastContextHandler.hxx" -#include "OOXMLFastTokens.hxx" -#include "OOXMLStreamImpl.hxx" - - -#include "OOXMLfastresources_ - -.hxx" - - - -namespace writerfilter { -namespace ooxml { - -extern TagLogger::Pointer_t debug_logger; - -using namespace ::std; -using namespace ::com::sun::star; - -uno::Reference < xml::sax::XFastContextHandler > -createFromStart(::sal_Int32 Element); -void dumpAttribs -(const uno::Reference < xml::sax::XFastAttributeList > & Attribs) - throw (uno::RuntimeException, xml::sax::SAXException); - - -/// @cond GENERATED - - - -/// @endcond -}} -#endif //INCLUDED_OOXML_RESOURCES_HXX - - - diff --git a/writerfilter/source/ooxml/fastresources_.xsl b/writerfilter/source/ooxml/fastresources_.xsl deleted file mode 100644 index 5d24a01fd240..000000000000 --- a/writerfilter/source/ooxml/fastresources_.xsl +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - -#ifndef INCLUDED_OOXML_FASTRESOURCES_WML_HXX -#define INCLUDED_OOXML_FASTRESOURCES_WML_HXX - -#include <vector> -#include <boost/shared_ptr.hpp> -#include <string> - -#include <resourcemodel/WW8ResourceModel.hxx> -#include "OOXMLFastContextHandler.hxx" -#include "OOXMLFastTokens.hxx" -#include "OOXMLStreamImpl.hxx" - -namespace writerfilter { -namespace ooxml { -using namespace ::std; -using namespace ::com::sun::star; -using namespace doctok; - -/// @cond GENERATED - - - wml - - -/// @endcond -}} -#endif //INCLUDED_OOXML_FASTRESOURCES_WML_HXX - - - - diff --git a/writerfilter/source/ooxml/fastresources_ns.xsl b/writerfilter/source/ooxml/fastresources_ns.xsl deleted file mode 100644 index dee4fa927b4b..000000000000 --- a/writerfilter/source/ooxml/fastresources_ns.xsl +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - INCLUDED_OOXML_FASTRESOURCES_ - - _HXX - - - -#ifndef - - -#define - - -#include <vector> -#include <boost/shared_ptr.hpp> -#include <string> - -#include <resourcemodel/WW8ResourceModel.hxx> -#include "OOXMLFastContextHandler.hxx" -#include "OOXMLFastTokens.hxx" -#include "OOXMLStreamImpl.hxx" - -namespace writerfilter { -namespace ooxml { -using namespace ::std; -using namespace ::com::sun::star; - -/// @cond GENERATED - - - - - -/// @endcond -}} -#endif // - - - - - - diff --git a/writerfilter/source/ooxml/fastresourcesimpl.xsl b/writerfilter/source/ooxml/fastresourcesimpl.xsl deleted file mode 100644 index 7b5e6429a032..000000000000 --- a/writerfilter/source/ooxml/fastresourcesimpl.xsl +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - -#include <string> -#include <doctok/sprmids.hxx> -#include "OOXMLFastHelper.hxx" -#include "OOXMLfastresources.hxx" - -/// @cond GENERATED - -namespace writerfilter { -namespace ooxml { -using namespace ::std; -using namespace ::com::sun::star; - - - - - - - - - -}} -/// @endcond GENERATED - - - - diff --git a/writerfilter/source/ooxml/fastresourcesimpl_ns.xsl b/writerfilter/source/ooxml/fastresourcesimpl_ns.xsl deleted file mode 100644 index 1b57435ff9de..000000000000 --- a/writerfilter/source/ooxml/fastresourcesimpl_ns.xsl +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - -// namespace: - - -#include <iostream> -#include <doctok/resourceids.hxx> -#include <ooxml/resourceids.hxx> -#include <doctok/sprmids.hxx> -#include "OOXMLfastresources.hxx" -#include "OOXMLFastTokens.hxx" -#include "OOXMLFastHelper.hxx" -#include "OOXMLvalues.hxx" -#include "Handler.hxx" - -/// @cond GENERATED - -namespace writerfilter { -namespace ooxml { -using namespace ::std; - - - - -}} -/// @endcond GENERATED - - - - diff --git a/writerfilter/source/ooxml/makefile.mk b/writerfilter/source/ooxml/makefile.mk index 5913b3365663..9d7af5394d4e 100644 --- a/writerfilter/source/ooxml/makefile.mk +++ b/writerfilter/source/ooxml/makefile.mk @@ -72,9 +72,6 @@ NAMESPACES= \ # --- Files -------------------------------------------------------- -SLOFASTNAMESPACES= \ - $(SLO)$/OOXMLfastresources_{$(NAMESPACES)}.obj - SLOFACTORIESNAMESPACES= \ $(SLO)$/OOXMLFactory_{$(NAMESPACES)}.obj @@ -84,8 +81,7 @@ SLOFILES= \ $(SLO)$/OOXMLFactory_generated.obj \ $(SLO)$/OOXMLFactory.obj \ $(SLO)$/OOXMLBinaryObjectReference.obj\ - $(SLO)$/OOXMLfastresources.obj \ - $(SLO)$/OOXMLvalues.obj \ + $(SLO)$/OOXMLFactory_values.obj \ $(SLO)$/OOXMLPropertySetImpl.obj \ $(SLO)$/OOXMLParserState.obj \ $(SLO)$/Handler.obj \ @@ -95,7 +91,6 @@ SLOFILES= \ $(SLO)$/OOXMLFastContextHandler.obj \ $(SLO)$/OOXMLFastTokenHandler.obj - SHL1TARGET=$(TARGET) .IF "$(GUI)"=="UNX" || "$(GUI)"=="MAC" @@ -137,9 +132,6 @@ OOXMLCXXOUTDIR=$(MISC) OOXMLHXXOUTDIR=$(INCCOM)/ooxml OOXMLHXXOUTDIRCREATED=$(OOXMLHXXOUTDIR)/created -OOXMLFASTRESOURCECXXS=$(OOXMLCXXOUTDIR)$/OOXMLfastresources_{$(NAMESPACES)}.cxx -OOXMLFASTRESOURCEHXXS=$(OOXMLHXXOUTDIR)$/OOXMLfastresources_{$(NAMESPACES)}.hxx - OOXMLFACTORYCXXS=$(OOXMLCXXOUTDIR)$/OOXMLFactory_{$(NAMESPACES)}.cxx OOXMLFACTORYHXXS=$(OOXMLHXXOUTDIR)$/OOXMLFactory_{$(NAMESPACES)}.hxx @@ -149,12 +141,10 @@ OOXMLRESOURCESTOOLSXSL=resourcestools.xsl OOXMLRESORUCETOKENSXSL=resourcestokens.xsl OOXMLFASTTOKENSXSL=fasttokens.xsl OOXMLFASTTOKENSIMPLXSL=fasttokensimpl.xsl -OOXMLFASTRESOURCESXSL=fastresources.xsl OOXMLRESOURCESIMPLXSL=resourcesimpl.xsl -OOXMLFASTRESOURCESIMPLXSL=fastresourcesimpl.xsl OOXMLNAMESPACEIDSXSL=namespaceids.xsl -OOXMLVALUESXSL=values.xsl -OOXMLVALUESIMPLXSL=valuesimpl.xsl +OOXMLFACTORYVALUESXSL=factory_values.xsl +OOXMLFACTORYVALUESIMPLXSL=factoryimpl_values.xsl OOXMLRESOURCEIDSXSL=resourceids.xsl OOXMLGPERFFASTTOKENXSL=gperffasttokenhandler.xsl @@ -166,21 +156,17 @@ TOKENXMLTMP=$(OOXMLCXXOUTDIR)$/token.tmp OOXMLFACTORYGENERATEDHXX=$(OOXMLHXXOUTDIR)$/OOXMLFactory_generated.hxx OOXMLFACTORYGENERATEDCXX=$(OOXMLCXXOUTDIR)$/OOXMLFactory_generated.cxx OOXMLFASTTOKENSHXX=$(OOXMLHXXOUTDIR)$/OOXMLFastTokens.hxx -OOXMLFASTRESOURCESHXX=$(OOXMLHXXOUTDIR)$/OOXMLfastresources.hxx OOXMLNAMESPACEIDSHXX=$(OOXMLHXXOUTDIR)$/OOXMLnamespaceids.hxx -OOXMLFASTRESOURCESCXX=$(OOXMLCXXOUTDIR)$/OOXMLfastresources.cxx -OOXMLVALUESHXX=$(OOXMLCXXOUTDIR)$/OOXMLvalues.hxx -OOXMLVALUESCXX=$(OOXMLCXXOUTDIR)$/OOXMLvalues.cxx +OOXMLFACTORYVALUESHXX=$(OOXMLCXXOUTDIR)$/OOXMLFactory_values.hxx +OOXMLFACTORYVALUESCXX=$(OOXMLCXXOUTDIR)$/OOXMLFactory_values.cxx GPERFFASTTOKENHXX=$(OOXMLHXXOUTDIR)$/gperffasttoken.hxx MODELPROCESSED=$(MISC)$/model_preprocessed.xml OOXMLGENHEADERS= \ $(OOXMLFACTORYGENERATEDHXX) \ $(OOXMLFACTORYHXXS) \ - $(OOXMLFASTRESOURCESHXX) \ $(OOXMLFASTTOKENSHXX) \ - $(OOXMLVALUESHXX) \ - $(OOXMLFASTRESOURCEHXXS) \ + $(OOXMLFACTORYVALUESHXX) \ $(GPERFFASTTOKENHXX) \ $(OOXMLRESOURCEIDSHXX) \ $(OOXMLNAMESPACEIDSHXX) @@ -190,8 +176,7 @@ GENERATEDFILES= \ $(MODELPROCESSED) \ $(OOXMLFACTORYGENERATEDCXX) \ $(OOXMLFACTORYCXXS) \ - $(OOXMLFASTRESOURCECXXS) \ - $(OOXMLVALUESCXX) \ + $(OOXMLFACTORYVALUESCXX) \ $(TOKENXMLTMP) \ $(TOKENXML) @@ -213,13 +198,6 @@ $(OOXMLGENHEADERS): $(OOXMLHXXOUTDIRCREATED) $(OOXMLFASTTOKENSHXX): $(OOXMLFASTTOKENSXSL) $(TOKENXML) $(XSLTPROC) $(OOXMLFASTTOKENSXSL) $(TOKENXML) > $@ -$(OOXMLFASTRESOURCESHXX): $(OOXMLFASTRESOURCESXSL) $(MODELPROCESSED) - $(XSLTPROC) $(OOXMLFASTRESOURCESXSL) $(MODELPROCESSED) > $@ - -$(OOXMLFASTRESOURCESCXX): $(OOXMLFASTRESOURCEHXXS) \ - $(OOXMLFASTRESOURCESIMPLXSL) $(MODELPROCESSED) - $(XSLTPROC) $(OOXMLFASTRESOURCESIMPLXSL) $(MODELPROCESSED) > $@ - $(OOXMLFACTORYGENERATEDHXX): factoryinc.xsl $(XSLTPROC) $< $(MODELPROCESSED) > $@ @@ -230,32 +208,21 @@ $(OOXMLFACTORYGENERATEDCXX): $(MODELPROCESSED) $(OOXMLFACTORYGENERATEDHXX): $(MODELPROCESSED) -$(OOXMLFASTRESOURCECXXS): $(MODELPROCESSED) - -$(OOXMLFASTRESOURCEHXXS): $(MODELPROCESSED) - $(OOXMLFACTORYCXXS): $(MODELPROCESSED) $(OOXMLFACTORYHXXS): $(MODELPROCESSED) -$(OOXMLCXXOUTDIR)$/OOXMLfastresources%.cxx: fastresourcesimpl_ns.xsl - $(XSLTPROC) --stringparam file $@ $< $(MODELPROCESSED) > $@ - -$(OOXMLHXXOUTDIR)$/OOXMLfastresources%.hxx: fastresources_ns.xsl - $(XSLTPROC) --stringparam file $@ $< $(MODELPROCESSED) > $@ - $(OOXMLCXXOUTDIR)$/OOXMLFactory%.cxx: factoryimpl_ns.xsl $(XSLTPROC) --stringparam file $@ $< $(MODELPROCESSED) > $@ $(OOXMLHXXOUTDIR)$/OOXMLFactory%.hxx: factory_ns.xsl $(XSLTPROC) --stringparam file $@ $< $(MODELPROCESSED) > $@ -$(OOXMLVALUESHXX): $(OOXMLVALUESXSL) $(MODELPROCESSED) - $(XSLTPROC) $(OOXMLVALUESXSL) $(MODELPROCESSED) > $@ +$(OOXMLFACTORYVALUESHXX): $(OOXMLFACTORYVALUESXSL) $(MODELPROCESSED) + $(XSLTPROC) $(OOXMLFACTORYVALUESXSL) $(MODELPROCESSED) > $@ -$(OOXMLVALUESCXX): $(OOXMLVALUESIMPLXSL) $(MODELPROCESSED) \ - $(OOXMLFASTRESOURCESHXX) - $(XSLTPROC) $(OOXMLVALUESIMPLXSL) $(MODELPROCESSED) > $@ +$(OOXMLFACTORYVALUESCXX): $(OOXMLFACTORYVALUESIMPLXSL) $(MODELPROCESSED) + $(XSLTPROC) $(OOXMLFACTORYVALUESIMPLXSL) $(MODELPROCESSED) > $@ $(OOXMLRESOURCEIDSHXX): $(OOXMLHXXOUTDIRCREATED) $(OOXMLRESOURCEIDSXSL) \ $(MODELPROCESSED) @@ -268,22 +235,16 @@ $(OOXMLNAMESPACEIDSHXX): $(OOXMLHXXOUTDIRCREATED) $(OOXMLNAMESPACEIDSXSL) \ $(GPERFFASTTOKENHXX): $(OOXMLGPERFFASTTOKENXSL) $(MODELPROCESSED) $(XSLTPROC) $(OOXMLGPERFFASTTOKENXSL) $(MODELPROCESSED) | tr -d '\r' | gperf -I -t -E -S1 -c -G -LC++ > $@ -$(SLOFASTNAMESPACES): $(OOXMLFASTRESOURCESCXX) $(OOXMLGENHEADERS) - $(SLOFACTORIESNAMESPACES): $(OOXMLFACTORYSCXXS) $(OOXMLGENHEADERS) $(GENERATEDFILES): $(OOXMLRESOURCESTOOLSXSL) $(SLOFILES): $(OOXMLGENHEADERS) -$(SLO)/OOXMLfastresources.obj: $(OOXMLFASTRESOURCESCXX) $(OOXMLGENHEADERS) - -$(SLO)/OOXMLvalues.obj: $(OOXMLVALUESCXX) $(OOXMLVALUESHXX) +$(SLO)/OOXMLFactory_values.obj: $(OOXMLFACTORYVALUESCXX) $(OOXMLFACTORYVALUESHXX) $(SLO)$/OOXMLFactory_generated.obj: $(OOXMLFACTORYGENERATEDCXX) $(OOXMLGENHEADERS) -$(SLOFASTNAMESPACES): OOXMLFastHelper.hxx - .PHONY: genclean genmake genheaders genclean: @@ -291,4 +252,4 @@ genclean: genmake: $(GENERATEDFILES) -genheaders: $(OOXMLFASTRESOURCEHXXS) +genheaders: $(GENHEADERS)