[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/koffice-essen/libs/kotext/opendocument
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2010-11-30 2:21:15
Message-ID: 20101130022115.34E3AAC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1202207 by sebsauer:

verbosity--

 M  +16 -2     KoTextLoader.cpp  


--- branches/work/koffice-essen/libs/kotext/opendocument/KoTextLoader.cpp \
#1202206:1202207 @@ -301,7 +301,9 @@
 //        d->changeTracker = dynamic_cast<KoChangeTracker \
*>(d->context.dataCenterMap().value("ChangeTracker"));  //    \
Q_ASSERT(d->changeTracker);  
+#ifdef KOOPENDOCUMENTLOADER_DEBUG
     kDebug(32500) << "text-style:" << \
KoTextDebug::textAttributes(cursor.blockCharFormat()); +#endif
 #if 0
     if ((document->isEmpty()) && (d->styleManager)) {
         QTextBlock block = cursor.block();
@@ -485,7 +487,10 @@
         inlineRdf->loadOdf(element);
         KoTextInlineRdf::attach(inlineRdf, cursor);
     }
+    
+#ifdef KOOPENDOCUMENTLOADER_DEBUG
     kDebug(32500) << "text-style:" << \
KoTextDebug::textAttributes(cursor.blockCharFormat()) << d->currentList << \
d->currentListStyle; +#endif
 
     bool stripLeadingSpace = true;
     loadSpan(element, cursor, &stripLeadingSpace);
@@ -543,7 +548,9 @@
         KoTextInlineRdf::attach(inlineRdf, cursor);
     }
 
+#ifdef KOOPENDOCUMENTLOADER_DEBUG
     kDebug(32500) << "text-style:" << \
KoTextDebug::textAttributes(cursor.blockCharFormat()); +#endif
 
     QTextCharFormat cf = cursor.charFormat(); // store the current cursor char \
format  
@@ -703,7 +710,9 @@
             c.setBlockFormat(blockFormat);
             d->currentList->add(c.block(), level);
         }
+#ifdef KOOPENDOCUMENTLOADER_DEBUG
         kDebug(32500) << "text-style:" << \
KoTextDebug::textAttributes(cursor.blockCharFormat()); +#endif
     }
 
     /*******************************ODF Bug Work-Around Code \
Changes***********************************/ @@ -839,7 +848,6 @@
 
 void KoTextLoader::loadNote(const KoXmlElement &noteElem, QTextCursor &cursor)
 {
-    kDebug(32500) << "Loading a text:note element.";
     KoTextDocumentLayout *layout = \
qobject_cast<KoTextDocumentLayout*>(cursor.block().document()->documentLayout());  if \
(layout) {  KoInlineNote *note = new KoInlineNote(KoInlineNote::Footnote);
@@ -847,7 +855,7 @@
             KoInlineTextObjectManager *textObjectManager = \
                layout->inlineTextObjectManager();
             textObjectManager->insertInlineObject(cursor, note, \
cursor.charFormat());  } else {
-            kDebug(32500) << "Error while loading the note !";
+            kWarning(32500) << "Error while loading the text note element!";
             delete note;
         }
     }
@@ -908,7 +916,9 @@
 
 void KoTextLoader::loadSpan(const KoXmlElement &element, QTextCursor &cursor, bool \
*stripLeadingSpace)  {
+#ifdef KOOPENDOCUMENTLOADER_DEBUG
     kDebug(32500) << "text-style:" << \
KoTextDebug::textAttributes(cursor.blockCharFormat()); +#endif
     Q_ASSERT(stripLeadingSpace);
     if (d->loadSpanLevel++ == 0)
         d->loadSpanInitialPos = cursor.position();
@@ -1000,7 +1010,9 @@
                 loadDeleteChangeWithinPorH(id, cursor);
             }
         } else if (isTextNS && localName == "meta") {
+#ifdef KOOPENDOCUMENTLOADER_DEBUG
             kDebug(30015) << "loading a text:meta";
+#endif
             KoTextDocumentLayout *layout = \
qobject_cast<KoTextDocumentLayout*>(cursor.block().document()->documentLayout());  if \
                (layout) {
                 const QTextDocument *document = cursor.block().document();
@@ -1116,7 +1128,9 @@
                     }
                 }
 #else
+#ifdef KOOPENDOCUMENTLOADER_DEBUG
                 kDebug(32500) << "Node '" << localName << "' unhandled";
+#endif
             }
 #endif
         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic