[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Calculating the size of headers/footers in KWord import filters
From: "Clarence Dang" <CTRL_CD () bigpond ! com>
Date: 2001-12-18 11:18:24
[Download RAW message or body]
Hi,
It's me again :)
Note: In this mail, I'll refer to Framesets and Frames as the same thing
since all my framesets only contain 1 frame!
I'm implementing headers and footers in an import filter. The headers and
footers are the same on every page so the layout of the document looks like
this:
header text ("Even Pages Header")
body text
body text ("Text Frameset 1")
body text
more body text etc.
footer text ("Even Pages Footer")
The trouble is that for the Header, Footer and "Text Frameset 1" frames, how
do I calculate the dimensions in advance?
<!ATTLIST FRAME
left CDATA #REQUIRED
right CDATA #REQUIRED
top CDATA #REQUIRED
bottom CDATA #REQUIRED
E.g. For the Header, I can easily specify the 'left", "right" and "top"
attributes but how does the import filter know what the "bottom" will be
(maybe the user had a long header)? Since the attribute is "#REQUIRED", I
don't know what to do :(
The "bottom" of the Header would obviously affect the "top" of "Text
Frameset 1", just as the "top" of the Footer would obviously affect the
"bottom" of "Text Frameset 1".
<FRAMESET frameType="1" frameInfo="3" name="Even Pages Header" visible="1" >
<FRAME runaround="1" copy="0" right="567" left="28" newFrameBehaviour="2"
bottom="HOW DO I KNOW THIS???" runaroundGap="2.83465" top="42"
autoCreateNewFrame="0" />
</FRAMESET>
I'm pretty sure that someone has implemented headers and footers before
so...
Please help! :)
Thankyou!
Clarence
_______________________________________________
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