Created attachment 107745 [details]
Document contains polygon with textbox and polygon with simple text
The attached file has been created this way:
Draw a polygon with simple text in Draw and insert it into the Writer document twice as 'drawing format'.
For the second polygon remove the text and add a textbox instead.
Insert a Math-object into this textbox.
Look into the content.xml of the document. Notice, that the Math-object is correctly stored inside the draw:frame element.
Open the document in version 4.4. Notice the text-box is missing.
I consider this not a "missing feature", but a defect, because the user notices, that the content is lost, only when reopening the document. If it is not possible to fix the opening till release of 4.4, then the feature "add textbox" should at least be disabled for non custom-shapes.
Confirmed missing text box.
Win 7 64-bit Version: 184.108.40.206.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-12_01:10:08
Lowered version number after reproducing with:
Ubuntu 14.10 64-bit
(In reply to Beluga from comment #2)
> Lowered version number after reproducing with:
> Ubuntu 14.10 64-bit
> LibreOffice 3.3.0
> OOO330m19 (Build:6)
> tag libreoffice-220.127.116.11
Version 3.3 makes no sense, because "Textbox in shape" is a new feature in LO4.4, which does not exist in version 3.3. For the new feature see https://wiki.documentfoundation.org/ReleaseNotes/4.4#Shapes_can_have_a_TextBox
Sorry for being senseless, changed back.
code here assumes that there is a writer text cursor at this point, which there isn't of course.
Created attachment 112558 [details]
a patch that allows the content to be imported, but not laid out right
It doesn't work because the special "writer" textbox are only enabled for inside enhanced shapes and not basic shapes. FWIW attached is a patch to enable those, but it doesn't result in right layout of the embedded textbox.
Without this (useless) patch SwXMLTextImportHelper::createAndInsertOLEObject will have a "XSimpleText" cursor into a simple editengine text box and that doesn't support inserting ole objects so nothing gets inserted.
I'm not working on this further, just wanted to have a quick look into it.
Basic shapes don't have the "Add Text Box" menu item since the fix for Bug 89266, so changing the severity to enhancement.