[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: question about autoCreateNewFrame
From: Karl-Heinz Zimmer <khz () kde ! org>
Date: 2002-05-04 6:37:27
[Download RAW message or body]
On Tuesday 30 April 2002 14:27, Holger Schröder wrote:
> Hi,
>
> i am still working on the kword->openwriter filter.
Great! So we could combine the strengths of both worlds some day? :)
> i have the problem, that the ow xml does not know about
> AutoCreateNewFrame, like kw.
I am not sure but it might be that the following information is helpfull:
The XML Draft http://xml.openoffice.org/xml_specification_draft.pdf
(== "StarOffice XML File Format Working Draft - Technical Reference Manual")
tells us the following on page 60:
2.3.2 Master Pages
[..]
The attributes that you can associate with the <style:master-page>
attribute are:
* Page name
* Page master
* Next stype name
So - if I understand this correctly - you 1st declare your 'Page Master'(s)
to specify the page propperties and then (2nd) use 'Master Page'(s) to
actually _assign_ such PageMasters to the document's content.
Now you can 'forget' about your page specifications: Writer will use the
active MasterPage until you tell him to use another one.
This feature can be used for having Writer automatically create the 'basic'
frameset (Header frame/ Body frame / Footer frame) on each page.
> in kw the a frameset is only created for the first page it appears, and
> then it is implicitly created on the following pages, as many pages as
> are needed to contain the whole text.
As long as you do /not/ specify another MasterPage the Writer should
behave the same way.
> now the problem is atm i have to guess, how many pages a given text will
> need.
IMHO you should /not/ have to calculate this during document creation time
since this is subject to be determined by the layout engine - not by you.
> i think it is wrong design, if my filter would have to do some
> kind of "font metrics calculation", so i would like to hace a
> numberOfPages attribute to the FRAME or FRAMESET element, which
> contains this number of pages actually needed to contain the whole
> text.
> it would belong to frame, but when i write a text needing more than one
> page, on the second page there is not only created the first frame, but
> already all frames, so it would also fit into frameset...
I am not sure if I understand the above sentences.
Did you read pp53 - 62 of the XML Draft?
Cheers,
Karl-Heinz
PS: Please don't use an Umlaut in your mail's From header - there is a good
chance that some subscribers of the mailing list don't see them correctly.
--
Karl-Heinz Zimmer, Senior Software Engineer, Klarälvdalens Datakonsult AB
<mailto:khz@klaralvdalens-datakonsult.se> <mailto:khz@kde.org>
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic