[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - svx/source

matteocam matteo.campanelli at gmail.com
Mon Jul 13 13:03:28 PDT 2015


 svx/source/svdraw/textchainflow.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 8291a205f220a975dc2f44b6de0b06f4310fc879
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Mon Jul 13 16:02:30 2015 -0400

    Add debug info for para counts
    
    Change-Id: I0a2a6b7d783fc3c27ddaea4cc1dad6595617f948

diff --git a/svx/source/svdraw/textchainflow.cxx b/svx/source/svdraw/textchainflow.cxx
index 57147d3..fe4f9fc 100644
--- a/svx/source/svdraw/textchainflow.cxx
+++ b/svx/source/svdraw/textchainflow.cxx
@@ -21,12 +21,15 @@
 #include <svx/svdotext.hxx>
 #include <svx/svdoutl.hxx>
 #include <editeng/outlobj.hxx>
+#include <editeng/editobj.hxx>
 #include <editeng/overflowingtxt.hxx>
 #include <svx/textchainflow.hxx>
 
 TextChainFlow::TextChainFlow(SdrTextObj *pChainTarget)
     : mpTargetLink(pChainTarget)
 {
+    fprintf(stderr, "[TEXTCHAINFLOW] Creating a new TextChainFlow\n");
+
     mpTextChain = mpTargetLink->GetTextChain();
     mpNextLink = mpTargetLink->GetNextLinkInChain();
     bCheckedFlowEvents = false;
@@ -196,6 +199,9 @@ void TextChainFlow::ExecuteOverflow(SdrOutliner *pNonOverflOutl, SdrOutliner *pO
 void TextChainFlow::impLeaveOnlyNonOverflowingText(SdrOutliner *pNonOverflOutl)
 {
     OutlinerParaObject *pNewText = impGetNonOverflowingParaObject(pNonOverflOutl);
+
+    fprintf(stderr, "[TEXTCHAINFLOW - OF] SOURCE box set to %d paras \n", pNewText->GetTextObject().GetParagraphCount());
+
     // adds it to current outliner anyway (useful in static decomposition)
     pNonOverflOutl->SetText(*pNewText);
 
@@ -214,6 +220,7 @@ void TextChainFlow::impMoveChainedTextToNextLink(SdrOutliner *pOverflOutl)
     }
 
     OutlinerParaObject *pNewText = impGetOverflowingParaObject(pOverflOutl);
+    fprintf(stderr, "[TEXTCHAINFLOW - OF] DEST box set to %d paras \n", pNewText->GetTextObject().GetParagraphCount());
     if (pNewText)
         mpNextLink->NbcSetOutlinerParaObject(pNewText);
 }


More information about the Libreoffice-commits mailing list