diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-01 22:55:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-07 16:17:51 +0000 |
commit | 6dd888e8998b94cf8a3092485c90a35fd4d05109 (patch) | |
tree | bd8688a102a4784870dbd30437f6b30c67815753 /writerfilter | |
parent | 5d4a4f75981a9a8c199164959d3acee438d864b4 (diff) |
callcatcher: update unused code
Change-Id: Ic896ea234c3ea7bfaa94ab2441471926beae427d
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/inc/doctok/WW8Document.hxx | 4 | ||||
-rw-r--r-- | writerfilter/source/doctok/analyzer.xsl | 27 | ||||
-rw-r--r-- | writerfilter/source/doctok/qnametostr.xsl | 2 | ||||
-rw-r--r-- | writerfilter/source/doctok/resourcetools.xsl | 105 | ||||
-rw-r--r-- | writerfilter/source/ooxml/qnametostr.xsl | 34 |
5 files changed, 0 insertions, 172 deletions
diff --git a/writerfilter/inc/doctok/WW8Document.hxx b/writerfilter/inc/doctok/WW8Document.hxx index e9e8ac60c90a..b624ce710dc2 100644 --- a/writerfilter/inc/doctok/WW8Document.hxx +++ b/writerfilter/inc/doctok/WW8Document.hxx @@ -427,10 +427,6 @@ public: createDocument(WW8Stream::Pointer_t rpStream); }; -void sprmidsToXML(::std::iostream & out); - -void doctokidsToXML(::std::iostream & out); - }} #endif // INCLUDED_WW8_DOCUMENT_HXX diff --git a/writerfilter/source/doctok/analyzer.xsl b/writerfilter/source/doctok/analyzer.xsl deleted file mode 100644 index 049150cf81f3..000000000000 --- a/writerfilter/source/doctok/analyzer.xsl +++ /dev/null @@ -1,27 +0,0 @@ -<!-- - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . ---> -<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:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:UML = 'org.omg.xmi.namespace.UML' xml:space="default"> -<xsl:output method="text" /> -<xsl:include href="resourcetools.xsl"/> - -<xsl:template match="/"> - <xsl:call-template name="analyzerdoctokids"/> -</xsl:template> - -</xsl:stylesheet>
\ No newline at end of file diff --git a/writerfilter/source/doctok/qnametostr.xsl b/writerfilter/source/doctok/qnametostr.xsl index e3009c952cde..a101fb3700b2 100644 --- a/writerfilter/source/doctok/qnametostr.xsl +++ b/writerfilter/source/doctok/qnametostr.xsl @@ -28,8 +28,6 @@ namespace writerfilter { <xsl:apply-templates select=".//UML:Model" mode="qnametostr"/> - <xsl:apply-templates select='.//UML:Model' mode='sprmidstoxml'/> - <xsl:apply-templates select='.//UML:Model' mode='analyzerdoctokids'/> } </xsl:template> </xsl:stylesheet> diff --git a/writerfilter/source/doctok/resourcetools.xsl b/writerfilter/source/doctok/resourcetools.xsl index f3df28d1a1db..7218b5dd1344 100644 --- a/writerfilter/source/doctok/resourcetools.xsl +++ b/writerfilter/source/doctok/resourcetools.xsl @@ -371,34 +371,6 @@ namespace NS_sprm { </xsl:text> <xsl:text> | cat
</xsl:text> </xsl:template> -<xsl:template match="UML:Model" mode="sprmidstoxml"> - <xsl:text> -void sprmidsToXML(::std::ostream & out) -{ - </xsl:text> - <xsl:for-each select=".//UML:Class[.//UML:Stereotype/@xmi.idref='ww8sprm']"> - <xsl:variable name="sprmcode"> - <xsl:value-of select=".//UML:TaggedValue[.//UML:TagDefinition/@xmi.idref = 'sprmcode']/UML:TaggedValue.dataValue"/> - </xsl:variable> - <xsl:variable name="sprmcodelower"> - <xsl:value-of select="translate($sprmcode, 'ABCDEF', 'abcdef')"/> - </xsl:variable> - <xsl:variable name="sprmidname"> - <xsl:text>sprm:</xsl:text> - <xsl:value-of select="substring-after(@name, 'sprm')"/> - </xsl:variable> - <xsl:text> - out << "<theid name=\"</xsl:text> - <xsl:value-of select="$sprmidname"/> - <xsl:text>\"></xsl:text> - <xsl:value-of select="$sprmcodelower"/> - <xsl:text></theid>" << endl;</xsl:text> - </xsl:for-each> - <xsl:text> -} - </xsl:text> -</xsl:template> - <xsl:template match="UML:Model" mode='sprmreplace'> <xsl:for-each select=".//UML:Class[.//UML:Stereotype/@xmi.idref='ww8sprm']"> <xsl:variable name="pattern"> @@ -439,83 +411,6 @@ sed "s/</xsl:text> <xsl:key name="same-valued-tagged-data" match="UML:TaggedValue.dataValue" use="." /> -<xsl:template name="analyzerdoctokidsattrs"> - <xsl:text> - /* Attributes */</xsl:text> - <xsl:for-each select='.//UML:Attribute[@name!="reserved"]'> - <xsl:if test='count(.//UML:Stereotype[@xmi.idref="noqname"]) = 0'> - <xsl:for-each select='.//UML:TaggedValue[.//UML:TagDefinition/@xmi.idref="attrid"]'> - <xsl:choose> - <xsl:when test='generate-id(UML:TaggedValue.dataValue) != generate-id(key("same-valued-tagged-data", UML:TaggedValue.dataValue)[1])'/> - <xsl:otherwise> - <xsl:text> - out << "<theid name=\"</xsl:text> - <xsl:value-of select=".//UML:TaggedValue.dataValue"/> - <xsl:text>\"></xsl:text> - <xsl:value-of select='10000 + position()'/> - <xsl:text></theid>" << endl;</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:for-each> - </xsl:if> - </xsl:for-each> -</xsl:template> - -<xsl:template name="analyzerdoctokidsops"> - <xsl:text> - /* Operations */</xsl:text> - <xsl:for-each select='.//UML:Operation[@name!="reserved"]'> - <xsl:if test='count(.//UML:Stereotype[@xmi.idref="noqname"]) = 0'> - <xsl:for-each select='.//UML:TaggedValue[.//UML:TagDefinition/@xmi.idref="opid"]'> - <xsl:choose> - <xsl:when test='generate-id(UML:TaggedValue.dataValue) != generate-id(key("same-valued-tagged-data", UML:TaggedValue.dataValue)[1])'/> - <xsl:otherwise> - <xsl:text> - out << "<theid name=\"</xsl:text> - <xsl:value-of select=".//UML:TaggedValue.dataValue"/> - <xsl:text>\"></xsl:text> - <xsl:value-of select='20000 + position()'/> - <xsl:text></theid>" << endl;</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:for-each> - </xsl:if> - </xsl:for-each> -</xsl:template> - -<xsl:template name="analyzerdoctokidsclasses"> - <xsl:text> - /* clases */</xsl:text> - <xsl:for-each select='.//UML:Class[@name!="reserved"]'> - <xsl:for-each select='.//UML:TaggedValue[.//UML:TagDefinition/@xmi.idref="classid"]'> - <xsl:choose> - <xsl:when test='.//UML:Stereotype[@xmi.idref="noqname"]'/> - <xsl:when test='generate-id(UML:TaggedValue.dataValue) != generate-id(key("same-valued-tagged-data", UML:TaggedValue.dataValue)[1])'/> - <xsl:otherwise> - <xsl:text> - out << "<theid name=\"</xsl:text> - <xsl:value-of select=".//UML:TaggedValue.dataValue"/> - <xsl:text>\"></xsl:text> - <xsl:value-of select='30000 + position()'/> - <xsl:text></theid>" << endl;</xsl:text> - </xsl:otherwise> - </xsl:choose> - </xsl:for-each> - </xsl:for-each> -</xsl:template> - -<xsl:template match="UML:Model" mode="analyzerdoctokids"> - <xsl:text> -void doctokidsToXML(::std::ostream & out) -{</xsl:text> -<xsl:call-template name="analyzerdoctokidsattrs"/> -<xsl:call-template name="analyzerdoctokidsops"/> -<xsl:call-template name="analyzerdoctokidsclasses"/> -<xsl:text> -} - </xsl:text> -</xsl:template> - <xsl:template name="licenseheader"> <xsl:text> /* diff --git a/writerfilter/source/ooxml/qnametostr.xsl b/writerfilter/source/ooxml/qnametostr.xsl index a7a7d6c4aa93..5d09c8b245f2 100644 --- a/writerfilter/source/ooxml/qnametostr.xsl +++ b/writerfilter/source/ooxml/qnametostr.xsl @@ -79,39 +79,6 @@ void QNameToString::init_ooxml() </xsl:text> </xsl:template> - <xsl:template name="ooxmlidstoxml"> - <xsl:text> -void ooxmlsprmidsToXML(::std::ostream & out) -{</xsl:text> - <xsl:for-each select="//@tokenid"> - <xsl:if test="contains(., 'ooxml:') and generate-id(.) = generate-id(key('tokenids', .)[1]) and ancestor::element"> - <xsl:text> - out << "<theid name=\"</xsl:text> - <xsl:value-of select="."/> - <xsl:text>\"></xsl:text> - <xsl:value-of select="90000 + position()"/> - <xsl:text></theid>" << endl; </xsl:text> - </xsl:if> - </xsl:for-each> - <xsl:text> -}</xsl:text> - <xsl:text> -void ooxmlidsToXML(::std::ostream & out) -{</xsl:text> - <xsl:for-each select="//@tokenid"> - <xsl:if test="contains(., 'ooxml:') and generate-id(.) = generate-id(key('tokenids', .)[1]) and ancestor::attribute"> - <xsl:text> - out << "<theid name=\"</xsl:text> - <xsl:value-of select="."/> - <xsl:text>\"></xsl:text> - <xsl:value-of select="90000 + position()"/> - <xsl:text></theid>" << endl; </xsl:text> - </xsl:if> - </xsl:for-each> - <xsl:text> -}</xsl:text> - </xsl:template> - <xsl:template match="/"> #include "ooxml/resourceids.hxx" #include "resourcemodel/QNameToString.hxx" @@ -119,7 +86,6 @@ void ooxmlidsToXML(::std::ostream & out) namespace writerfilter { <xsl:call-template name="qnametostr"/> - <xsl:call-template name="ooxmlidstoxml"/> } </xsl:template> |