<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 6:18 PM, Matteo Campanelli <span dir="ltr"><<a href="mailto:matteo.campanelli@gmail.com" target="_blank">matteo.campanelli@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>[Code] </div></div></blockquote>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>The code above truncates the text in the first box.</div>


<div>The text in the second paragraph is restored by creating an appropriate SdrChainedTextPrimitive object and its create2DDecomposition method.</div>
<div>It seems that such a method is never called when all text is overflowing, i.e. when newText above is NULL.</div><div>The two are plausibly one consequence of the other.</div></div></blockquote><div>Elaborating on the last two sentences:</div>


<div>I verified that when OutlinerParaObject is NULL, SdrChainedTextPrimitive is not created (and thus text cannot be moved to the second text box).</div><div><br></div><div>I traced the problem back to SdrTextAttribute objects in createTextPrimitive not having a property isToBeChained set to true.</div>

<div>Apparently, this happens because createSdrFooAttribute functions (sdrattributecreator.cxx) ignores chaining property. I fixed the issue for createSdrTextAttribute but it seems not to be that simple for the sibling methods.</div>

<div>Working on that...</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><br></div><div>An ideal solution would be to replace that NULL pointer with a dummy OutlinerParaObject or something like that.<br>
Any hint on how to do this?</div></div></blockquote><div>This may still be necessary to bypass the problem. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div><br></div><div>In case anyone wanted to have a look:</div><div><a href="http://cgit.freedesktop.org/libreoffice/core/tree/svx/source/svdraw/svdotxed.cxx?h=feature/gsoc14-draw-chained-text-boxes#n252" target="_blank">http://cgit.freedesktop.org/libreoffice/core/tree/svx/source/svdraw/svdotxed.cxx?h=feature/gsoc14-draw-chained-text-boxes#n252</a><br>



</div><div><br></div><div><a href="http://cgit.freedesktop.org/libreoffice/core/tree/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx?h=feature/gsoc14-draw-chained-text-boxes#n488" target="_blank">http://cgit.freedesktop.org/libreoffice/core/tree/svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx?h=feature/gsoc14-draw-chained-text-boxes#n488</a><br>



</div><div><br></div><div>Cheers,</div><div>Matteo</div></div>
</blockquote></div><br></div></div>