Hi Caolan,
Thanks for your technical info. Some remarks in line.
Caolan McNamara wrote:
Yeah, I don't think we can go any better here. What we have in 2.0.X is
the best I could think of :-(.
Close to, IMO :-)
While Word has a "title page" idea for its sections which has the
concept of detect automatic break and then enable different features on
the title vs rest of the pages the rules are pretty strict in comparison
with the writer system. IIRC the rules are basically encapsulated by
"IsPlausableSingleWordSection" in the ww filter, i.e.
a) has to have the same number of columns
b) has to have the same left/right margins
c) has to have "compatible" top/bottom header/footer areas dimensions.
But not the same header/footer content.
and there's a list of issues referenced for background reading :-)
I reckon we have done the best we possibly can here. Trying to use word
sections if possible, and there's even some code
(SwWW8Writer::Out_SfxBreakItems) that also checks when exporting a
"normal" page break to see if the writer page description after that
break has automatically changed due to the break and fixes thing up as
well as possible. But "text flow" breaks are not detected, and no effort
is made to manually insert a "hard break", it seemed a dangerous thing
to attempt.
Agree about the hard breaks. But since Word does allow different
header/footer on both
- first page in a section;
- left/right pages;
SwWW8Writer::Out_SfxBreakItems, what you mention, could be the right
place to start that export.
Sequence LeftPage / RightPage style could be exported to a section with
different left/right headers.
Sequence FirstPage/Default (or any other) could be exported to Different
header/footer on first page of section.
Then at least those are conserved.
So at least it means that any .doc imported that used title pages should
re-export back to .doc equivalently, and so should a native .odt which
falls into the "compatible with word" margin criteria. And for those
.doc equivalently as decribed by myself, above?
Could it be off help if I make a description of options in OOo and how I
think they can be implemented (if at all) in Word?
that don't, we make enough effort that if the users happens to insert a
real page break to go from the title page to the next one then they will
"get lucky" and get a reasonable .doc export.
wwSectionManager::InsertSegments for import is similarly difficult, and
more "best effort" is required for some edge cases, e.g. the strange
ability for continuous sections to have headers/footers.
Isn't this that you can choose to change headers/footers for the net
pages after a certain point? That means that if this continuous break is
forced to the next page (more content inserted before) the header footer
of one pages changes.
Regards,
Cor
--
Cor Nouws
Arnhem - Netherlands
nl.OpenOffice.org - marketing contact
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]