OpenDocument4all - Info and tools about OpenDocument
Sunday, 05 February 2012
Home arrow Forum
Forum Statistics
Total user: 89
Total message: 179
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

OpenDocument4all-Forum

 
Page Break
Date: 2007/07/05 15:33 By: Darius Damalakas Status: User  
Karma: 0  
Senior Boarder

Posts: 19
graphgraph
I need to implement a page break functionality (so i could join many documents into one big, separated with page breaks).


Analyzing ODT xml, i found that it creates an automatic style with page breake, for example:

Code:

  <office:automatic-styles> <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard"> <style:paragraph-properties fo:break-before="page"/> </style:style> </office:automatic-styles>




and the simply insert the text with specified text style.


The question would be this: how to add this kind of automatic style in the best way?

Post edited by: DarkCloud, at: 2007/07/05 15:41
The administrator has disabled public write access.

Re:Page Break
Date: 2007/07/05 15:40 By: Darius Damalakas Status: User  
Karma: 0  
Senior Boarder

Posts: 19
graphgraph
Okay, the solution is simply to create a new style and BreakBefore property
Simple as this.

However, the problem is that i frankly can not understand where is the code of the AODL? is it in the cvs repository, or in the svn?






Code to create and add new style

Code:

  ParagraphStyle pstyle = new AODL.Document.Styles.ParagraphStyle(table.Document"P1"); pstyle.ParagraphProperties.BreakBefore "page"; table.Document.Styles.Add(pstyle);

The administrator has disabled public write access.

Re:Page Break
Date: 2007/12/30 06:42 By: lindesbs Status: User  
Karma: 0  
Fresh Boarder

Posts: 3
graphgraph
hm, i´ve tried your code, but no result here.
I´m using aodl 1.3.0.0 and 1.2.0.1

Any hints ?

Post edited by: lindesbs, at: 2007/12/30 06:47
The administrator has disabled public write access.

Re:Page Break
Date: 2007/12/30 17:54 By: Darius Damalakas Status: User  
Karma: 0  
Senior Boarder

Posts: 19
graphgraph
I am in need of this functionality too, but i've not used page break before. I'll try to look into this next week
The administrator has disabled public write access.

Re:Page Break
Date: 2008/07/17 23:41 By: Bitnapper Status: User  
Karma: 0  
Fresh Boarder

Posts: 3
graphgraph
Darius wrote:
Okay, the solution is simply to create a new style and BreakBefore property
But this way you alter the style or have to create a new style. I would prefer to alter the paragraph properties without altering the style (like in Open Office). Is that possible with AODL?

Best regards,

Bitnapper
The administrator has disabled public write access.

Quick jump
Download area
Who's Online
We have 26 guests online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.