https://issues.apache.org/ooo/show_bug.cgi?id=125266

          Issue ID: 125266
        Issue Type: DEFECT
           Summary: table cell can not display frames/images if not
                    embraced with <text:p> tag
           Product: Writer
           Version: 4.1.0
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: programming
          Assignee: issues@openoffice.apache.org
          Reporter: niels.maschme...@gmail.com

Created attachment 83700
  --> https://issues.apache.org/ooo/attachment.cgi?id=83700&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to