On Thu, 2007-06-21 at 13:04 +0200, Oliver-Rainer Wittmann - Software Engineer - Sun Microsystems wrote: > Frank is right - Mircosoft Word doesn't support somelike "automatic page > break with changing the page style, e.g. the page margins". This is a > feature that Microsoft Word doesn't support. > > AFAIK, if you want to change page margins in Microsoft Word inside your > text flow, you need to insert at least a continuous section break. But, > this break will also break your text flow. If you additionally want to > change the page header or page footer, you need to unlink the page > header/footer from its previous one. If you want to switch off a page > header of page footer, I don't know a certain way in Microsoft Word to > do this. Probably, you find something for a concrete document by using > different page header/footer on first page and/or odd and even pages of > a certain Microsoft Word document section. But, I didn't see a general way. > > But, all these possible workarounds to simulate somelike "automatic page > break with changing the page style" will break the text flow, because a > break has to be inserted. That's something, that I don't think any user > wants to have.
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 :-(. 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. 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. 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 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. C. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
