Switch to splitters factory
This commit is contained in:
parent
b954415d1a
commit
759d3302e7
1 changed files with 4 additions and 1 deletions
|
@ -42,6 +42,7 @@ import w2phtml.office.OfficeStyle;
|
||||||
import w2phtml.office.PageLayout;
|
import w2phtml.office.PageLayout;
|
||||||
import w2phtml.office.StyleWithProperties;
|
import w2phtml.office.StyleWithProperties;
|
||||||
import w2phtml.office.XMLString;
|
import w2phtml.office.XMLString;
|
||||||
|
import w2phtml.pageSplitters.SplitFactory;
|
||||||
import w2phtml.util.Misc;
|
import w2phtml.util.Misc;
|
||||||
import w2phtml.xhtml.Converter;
|
import w2phtml.xhtml.Converter;
|
||||||
import w2phtml.xhtml.ODFPageSplitter;
|
import w2phtml.xhtml.ODFPageSplitter;
|
||||||
|
@ -166,7 +167,9 @@ public class TextParser extends Parser {
|
||||||
//Split pages
|
//Split pages
|
||||||
|
|
||||||
if (pagination) {
|
if (pagination) {
|
||||||
ODFPageSplitter.splitOfficeText(onode, ofr);
|
//ODFPageSplitter.splitOfficeText(onode, ofr);
|
||||||
|
SplitFactory splitters = new SplitFactory(ofr);
|
||||||
|
splitters.split(onode);
|
||||||
//Debug.printNode(onode);
|
//Debug.printNode(onode);
|
||||||
}
|
}
|
||||||
hnode = (Element)traverseBlockText(onode,hnode);
|
hnode = (Element)traverseBlockText(onode,hnode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue