Switch to splitters factory

This commit is contained in:
Georgy Litvinov 2020-07-24 20:46:02 +02:00
parent b954415d1a
commit 759d3302e7

View file

@ -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);