Issue 125266 - table cell can not display frames/images if not embraced with <text:p> tag
Summary: table cell can not display frames/images if not embraced with <text:p> tag
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: programming (show other issues)
Version: 4.1.0
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-17 01:20 UTC by niels.maschmeyer
Modified: 2014-07-17 01:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Displaying the unused space under an image in a table cell which can't be removed (143.84 KB, image/png)
2014-07-17 01:20 UTC, niels.maschmeyer
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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