Issue 125266

Summary: table cell can not display frames/images if not embraced with <text:p> tag
Product: Writer Reporter: niels.maschmeyer
Component: programmingAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3    
Version: 4.1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Displaying the unused space under an image in a table cell which can't be removed none

Description niels.maschmeyer 2014-07-17 01:20:52 UTC
Created attachment 83700 [details]
Displaying the unused space under an image in a table cell which can't be removed

I am working on a odt report engine, using the OASIS Open Document Format specification 1.2 as a reference and display the xml based generated document source (odt) in your OpenOffice writer.
Based on the offical odt spec. 9.1.4 <table:table-cell> page 178 of the document can a table cell <table:table-cell> have a child fram element <draw:frame>. 
When I try to use it, the image is not displayed in the Writer, only when I embrace the frame node with an <text:p> node it works.
But this causes me some problems when the table cell only includes an image and no text. It will leave an empty text space under the image which can't be removed and blows up the size of the table space by the factor 2...
But acording to the spec, it should work without the paragraph node <text:p> around the frame node <draw:fame> and don't display the additional paragraph, text space underneath.

working Example:
..
<table:table-cell>
<text:p>
<draw:frame draw:style-name="P15" draw:name="GP15" text:anchor-type="paragraph" svg:y="0cm" svg:width="2.090cm" svg:height="0.473cm" draw:z-index="10">
<draw:image xlink:href="Pictures/AwaitingYourData.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</text:p>
</table:table-cell>
..

not working Example but correct xml acording to the spec:
..
<table:table-cell>
<draw:frame draw:style-name="P15" draw:name="GP15" text:anchor-type="paragraph" svg:y="0cm" svg:width="2.090cm" svg:height="0.473cm" draw:z-index="10">
<draw:image xlink:href="Pictures/AwaitingYourData.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
</draw:frame>
</table:table-cell>
..

When I work on the odt file source I have to work 100% with the odt spec.
Is there a work around for me to get rid of the space underneath and the time being?


Kind regards
Niels