diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-08-26 01:49:18 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-08-26 01:49:42 +0200 |
commit | f446e9f259cf9f61f5c0d5f9323ad19fe5864dc8 (patch) | |
tree | ad989bc805c4c3078421c2a95b4f4206703b7111 /writerfilter | |
parent | unusedcode: ucbhelper:: cleaning (diff) | |
download | core-f446e9f259cf9f61f5c0d5f9323ad19fe5864dc8.tar.gz core-f446e9f259cf9f61f5c0d5f9323ad19fe5864dc8.zip |
TagLogger: debug code in non-debug build
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/inc/resourcemodel/TagLogger.hxx | 7 | ||||
-rw-r--r-- | writerfilter/source/resourcemodel/TagLogger.cxx | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/writerfilter/inc/resourcemodel/TagLogger.hxx b/writerfilter/inc/resourcemodel/TagLogger.hxx index 4f47c67ca694..acae4225c703 100644 --- a/writerfilter/inc/resourcemodel/TagLogger.hxx +++ b/writerfilter/inc/resourcemodel/TagLogger.hxx @@ -63,10 +63,15 @@ namespace writerfilter static Pointer_t getInstance(const char * name); +#ifdef DEBUG_IMPORT void setFileName(const std::string & filename); void startDocument(); +#endif + +#ifdef DEBUG_DOMAINMAPPER void element(const std::string & name); +#endif void startElement(const std::string & name); void attribute(const std::string & name, const std::string & value); void attribute(const std::string & name, const ::rtl::OUString & value); @@ -78,8 +83,10 @@ namespace writerfilter void endDocument(); void unoPropertySet(uno::Reference<beans::XPropertySet> rPropSet); +#ifdef DEBUG_CONTEXT_HANDLER void propertySet(writerfilter::Reference<Properties>::Pointer_t props, IdToString::Pointer_t pIdToString); +#endif }; } diff --git a/writerfilter/source/resourcemodel/TagLogger.cxx b/writerfilter/source/resourcemodel/TagLogger.cxx index 2d4aa11336e7..dd8cc6b7d77b 100644 --- a/writerfilter/source/resourcemodel/TagLogger.cxx +++ b/writerfilter/source/resourcemodel/TagLogger.cxx @@ -49,6 +49,7 @@ namespace writerfilter pName = NULL; } +#ifdef DEBUG_IMPORT void TagLogger::setFileName( const string & filename ) { if ( pWriter ) @@ -80,6 +81,7 @@ namespace writerfilter pWriter = xmlNewTextWriterFilename( fileName.c_str(), 0 ); xmlTextWriterSetIndent( pWriter, 4 ); } +#endif TagLogger::Pointer_t TagLogger::getInstance(const char * name) { @@ -102,17 +104,21 @@ namespace writerfilter return aIt->second; } +#ifdef DEBUG_IMPORT void TagLogger::startDocument() { xmlTextWriterStartDocument( pWriter, NULL, NULL, NULL ); xmlTextWriterStartElement( pWriter, BAD_CAST( "root" ) ); } +#endif +#ifdef DEBUG_DOMAINMAPPER void TagLogger::element(const string & name) { startElement(name); endElement(); } +#endif void TagLogger::startElement(const string & name) { @@ -262,6 +268,7 @@ namespace writerfilter m_pLogger->endElement(); } +#ifdef DEBUG_CONTEXT_HANDLER void TagLogger::propertySet(writerfilter::Reference<Properties>::Pointer_t props, IdToString::Pointer_t pIdToString) { @@ -273,6 +280,7 @@ namespace writerfilter endElement( ); } +#endif void TagLogger::unoPropertySet(uno::Reference<beans::XPropertySet> rPropSet) { |