Hi,
On Mon, Feb 15, 2016 at 11:54 PM, Stef Bon <stefbon@gmail.com> wrote:
Hi,
I'm working on a viewer for officefiles uing lokit.
Right now I'm just writing tests, getting used with the api.
My testprogram writes the type, the size and the output of the'
call getPartPageRectangles:
[sbon@ws-001 test-lokit]$ ./lokit /home/sbon/Documenten/opinieict.odt
Type : 0
Size (TWIPS) WxH: 12474 x 17406
PartPageRectangles: 284, 284, 11906, 16838
What do these last values mean?
In the .hxx file the comment says:"logical rectangle of each part".
What are these?
A writer document is always rendered complete with all pages, so in
that case the size will tell you the dimensions of the whole document.
Usually this is enough but sometimes you also need want to know where
the actual pages are located in the document. This is what
getPartPageRectangles returns - the rectangles of pages in the
document.
Impress and Draw however are different - there a slide/page is
rendered separately so you have to switch parts to switch slide/pages.
Stef Bon
Regards, Tomaž
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.