summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-09 20:18:51 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-09 20:23:05 +0100
commitb089c1091dcd854ad83152ebf602a9a8e32485d6 (patch)
tree043b245e37c47cdd550674d9d42181324bea124d
parentb3f1d8af89b015df0108a82ce7f19bfc957e0f69 (diff)
writerfilter: move QNameToString to the OOXML tokenizer
It's filled with contents in the OOXML tokenizer anyway, keeping its interface outside of it is pointless. Change-Id: I10051c5b41a1247417bfb3dd3170a76bf20925aa
-rw-r--r--writerfilter/Library_writerfilter.mk2
-rw-r--r--writerfilter/inc/ooxml/QNameToString.hxx (renamed from writerfilter/inc/resourcemodel/QNameToString.hxx)8
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx2
-rw-r--r--writerfilter/source/ooxml/OOXMLFastHelper.hxx2
-rw-r--r--writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx2
-rw-r--r--writerfilter/source/ooxml/qnametostr.py4
-rw-r--r--writerfilter/source/ooxml/qnametostrcore.cxx (renamed from writerfilter/source/resourcemodel/qnametostrcore.cxx)4
-rw-r--r--writerfilter/source/resourcemodel/LoggedResources.cxx2
-rw-r--r--writerfilter/source/resourcemodel/TagLogger.cxx2
-rw-r--r--writerfilter/source/rtftok/rtfsprm.cxx2
10 files changed, 15 insertions, 15 deletions
diff --git a/writerfilter/Library_writerfilter.mk b/writerfilter/Library_writerfilter.mk
index 8377e191783e..63d17f0316aa 100644
--- a/writerfilter/Library_writerfilter.mk
+++ b/writerfilter/Library_writerfilter.mk
@@ -122,10 +122,10 @@ $(eval $(call gb_Library_add_exception_objects,writerfilter,\
writerfilter/source/ooxml/OOXMLParserState \
writerfilter/source/ooxml/OOXMLPropertySetImpl \
writerfilter/source/ooxml/OOXMLStreamImpl \
+ writerfilter/source/ooxml/qnametostrcore \
writerfilter/source/resourcemodel/LoggedResources \
writerfilter/source/resourcemodel/ResourceModelHelper \
writerfilter/source/resourcemodel/TagLogger \
- writerfilter/source/resourcemodel/qnametostrcore \
))
$(eval $(call gb_Library_add_generated_exception_objects,writerfilter,\
diff --git a/writerfilter/inc/resourcemodel/QNameToString.hxx b/writerfilter/inc/ooxml/QNameToString.hxx
index 0218984fc235..89ddcf786b91 100644
--- a/writerfilter/inc/resourcemodel/QNameToString.hxx
+++ b/writerfilter/inc/ooxml/QNameToString.hxx
@@ -16,8 +16,8 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_QNAMETOSTRING_HXX
-#define INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_QNAMETOSTRING_HXX
+#ifndef INCLUDED_WRITERFILTER_INC_OOXML_QNAMETOSTRING_HXX
+#define INCLUDED_WRITERFILTER_INC_OOXML_QNAMETOSTRING_HXX
#include <boost/shared_ptr.hpp>
#include <map>
@@ -36,7 +36,7 @@ class QNameToString
static Pointer_t pInstance;
- void init_ooxml();
+ void init();
Map mMap;
@@ -54,6 +54,6 @@ public:
}
-#endif // INCLUDED_WRITERFILTER_INC_RESOURCEMODEL_QNAMETOSTRING_HXX
+#endif // INCLUDED_WRITERFILTER_INC_OOXML_QNAMETOSTRING_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 30caf267e344..bb0c9774e232 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -23,7 +23,7 @@
#include <comphelper/servicehelper.hxx>
#include <com/sun/star/drawing/XShapes.hpp>
#include <com/sun/star/xml/sax/FastShapeContextHandler.hpp>
-#include <resourcemodel/QNameToString.hxx>
+#include <ooxml/QNameToString.hxx>
#include <ooxml/resourceids.hxx>
#include <oox/token/namespaces.hxx>
#include <dmapper/DomainMapper.hxx>
diff --git a/writerfilter/source/ooxml/OOXMLFastHelper.hxx b/writerfilter/source/ooxml/OOXMLFastHelper.hxx
index 4d5b9715ff91..88e5c236f30f 100644
--- a/writerfilter/source/ooxml/OOXMLFastHelper.hxx
+++ b/writerfilter/source/ooxml/OOXMLFastHelper.hxx
@@ -20,7 +20,7 @@
#define INCLUDED_WRITERFILTER_SOURCE_OOXML_OOXMLFASTHELPER_HXX
#include <iostream>
-#include <resourcemodel/QNameToString.hxx>
+#include <ooxml/QNameToString.hxx>
#include "OOXMLFastContextHandler.hxx"
namespace writerfilter {
diff --git a/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx b/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
index 01b8b4d612de..52e755061e5e 100644
--- a/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
+++ b/writerfilter/source/ooxml/OOXMLPropertySetImpl.cxx
@@ -20,7 +20,7 @@
#include "OOXMLPropertySetImpl.hxx"
#include <stdio.h>
#include <iostream>
-#include <resourcemodel/QNameToString.hxx>
+#include <ooxml/QNameToString.hxx>
#include <com/sun/star/drawing/XShape.hpp>
#include <oox/token/tokens.hxx>
diff --git a/writerfilter/source/ooxml/qnametostr.py b/writerfilter/source/ooxml/qnametostr.py
index 4a98d4f836ac..7b6f8de0f9f3 100644
--- a/writerfilter/source/ooxml/qnametostr.py
+++ b/writerfilter/source/ooxml/qnametostr.py
@@ -19,12 +19,12 @@ class ContentHandler(xml.sax.handler.ContentHandler):
def startDocument(self):
print("""
#include "ooxml/resourceids.hxx"
-#include "resourcemodel/QNameToString.hxx"
+#include "ooxml/QNameToString.hxx"
namespace writerfilter
{
-void QNameToString::init_ooxml()
+void QNameToString::init()
{
#ifdef DEBUG_WRITERFILTER
/* ooxml */
diff --git a/writerfilter/source/resourcemodel/qnametostrcore.cxx b/writerfilter/source/ooxml/qnametostrcore.cxx
index 861e994d39e1..2cf13703d99a 100644
--- a/writerfilter/source/resourcemodel/qnametostrcore.cxx
+++ b/writerfilter/source/ooxml/qnametostrcore.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <resourcemodel/QNameToString.hxx>
+#include <ooxml/QNameToString.hxx>
namespace writerfilter
{
@@ -47,7 +47,7 @@ std::string QNameToString::operator()(Id qName)
QNameToString::QNameToString()
{
- init_ooxml();
+ init();
}
}
diff --git a/writerfilter/source/resourcemodel/LoggedResources.cxx b/writerfilter/source/resourcemodel/LoggedResources.cxx
index 3b730bd77461..6aa834b2b801 100644
--- a/writerfilter/source/resourcemodel/LoggedResources.cxx
+++ b/writerfilter/source/resourcemodel/LoggedResources.cxx
@@ -19,7 +19,7 @@
#include <rtl/ustrbuf.hxx>
#include <resourcemodel/LoggedResources.hxx>
-#include <resourcemodel/QNameToString.hxx>
+#include <ooxml/QNameToString.hxx>
using namespace ::com::sun::star;
diff --git a/writerfilter/source/resourcemodel/TagLogger.cxx b/writerfilter/source/resourcemodel/TagLogger.cxx
index d10610cb519c..d6c17b5b35f9 100644
--- a/writerfilter/source/resourcemodel/TagLogger.cxx
+++ b/writerfilter/source/resourcemodel/TagLogger.cxx
@@ -20,7 +20,7 @@
#include <libxml/xmlstring.h>
#include <string.h>
#include <resourcemodel/TagLogger.hxx>
-#include <resourcemodel/QNameToString.hxx>
+#include <ooxml/QNameToString.hxx>
#include <boost/unordered_map.hpp>
using namespace css;
diff --git a/writerfilter/source/rtftok/rtfsprm.cxx b/writerfilter/source/rtftok/rtfsprm.cxx
index dbd84d96f6d0..b4e1e2e11885 100644
--- a/writerfilter/source/rtftok/rtfsprm.cxx
+++ b/writerfilter/source/rtftok/rtfsprm.cxx
@@ -12,7 +12,7 @@
#include <rtl/strbuf.hxx>
#include <ooxml/resourceids.hxx>
-#include <resourcemodel/QNameToString.hxx>
+#include <ooxml/QNameToString.hxx>
namespace writerfilter