INTEGRATION: CWS xmlfilter02 (1.1.6); FILE ADDED

2007/11/21 11:42:09 hbrinkm 1.1.6.5: use xsl:template fasttokens instead of enumfasttokens
2007/11/14 12:59:00 hbrinkm 1.1.6.4: namespace clean up
2007/10/18 09:43:40 hbrinkm 1.1.6.3: licenseheader clean-up
2007/10/01 10:11:10 os 1.1.6.2: integration of cws writerfilter3 into cws xmlfilter02
2007/08/16 14:50:00 os 1.1.6.1: file fasttokens.xsl was added on branch cws_src680_xmlfilter02 on 2007-10-01 10:11:10 +0000
This commit is contained in:
Oliver Bolte 2008-01-10 11:10:56 +00:00
parent b0a7b2eb0c
commit 4183d5ece2

View file

@ -0,0 +1,104 @@
<!--
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fasttokens.xsl,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2008-01-10 12:10:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
-->
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0"
xmlns:ooo="http://openoffice.org/2004/office"
xmlns:ooow="http://openoffice.org/2004/writer"
xmlns:oooc="http://openoffice.org/2004/calc"
xmlns:dom="http://www.w3.org/2001/xml-events"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default">
<xsl:output method="text" />
<xsl:param name="prefix"/>
<xsl:include href="resourcestools.xsl"/>
<xsl:template match="/">
<out xml:space="preserve">
<xsl:call-template name="licenseheader"/>
<xsl:text>
#ifndef INCLUDED_OOXML_FAST_TOKENS_HXX
#define INCLUDED_OOXML_FAST_TOKENS_HXX
#include &lt;map&gt;
#include &lt;vector&gt;
#include &lt;boost/shared_ptr.hpp&gt;
#include &lt;string&gt;
#include &lt;resourcemodel/WW8ResourceModel.hxx&gt;
namespace writerfilter {
namespace ooxml {
using namespace ::std;
using namespace ::com::sun::star;
</xsl:text>
<xsl:call-template name="fasttokens"/>
<xsl:call-template name="namespaceids"/>
<xsl:text>
string fastTokenToId(sal_uInt32 nToken);
static const sal_uInt32 F_Attribute = 1U &lt;&lt; 31;
}}
#endif //INCLUDED_OOXML_FAST_TOKENS_HXX&#xa;</xsl:text></out></xsl:template>
<xsl:template match="*"/>
</xsl:stylesheet>