[Libreoffice-commits] .: writerfilter/inc writerfilter/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Tue Nov 23 05:40:18 PST 2010


 writerfilter/inc/writerfilter.mk             |    4 ++++
 writerfilter/source/dmapper/DomainMapper.cxx |    1 +
 2 files changed, 5 insertions(+)

New commits:
commit c463ab27234a22672da943e932be94d5f48f9add
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Tue Nov 23 14:38:36 2010 +0100

    Ease the debugging of writerfilter.
    
    * Bind some useful debug flags to the osl debug levels
    * Print the name of the unhandled SPRM, their ID isn't enought

diff --git a/writerfilter/inc/writerfilter.mk b/writerfilter/inc/writerfilter.mk
index f8ea735..5b11db1 100644
--- a/writerfilter/inc/writerfilter.mk
+++ b/writerfilter/inc/writerfilter.mk
@@ -27,3 +27,7 @@
 
 CDEFS+=-DWRITERFILTER_DLLIMPLEMENTATION
  
+.IF "$(DBG_LEVEL)" > "0"
+CDEFS+=-DDEBUG_DOMAINMAPPER -DDEBUG_ELEMENT -DDEBUG_RESOLVE \
+       -DDEBUG_CONTEXT_STACK -DDEBUG_ATTRIBUTES -DDEBUG_PROPERTIES
+.ENDIF
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index b25c055..239f89a 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -4243,6 +4243,7 @@ void DomainMapper::sprm( Sprm& rSprm, PropertyMapPtr rContext, SprmType eSprmTyp
 #ifdef DEBUG_DOMAINMAPPER
             dmapper_logger->startElement("unhandled");
             dmapper_logger->attribute("id", nSprmId);
+            dmapper_logger->attribute("name", rSprm.getName());
             dmapper_logger->endElement("unhandled");
 #endif
         }


More information about the Libreoffice-commits mailing list