Renamed splitter

This commit is contained in:
Georgy Litvinov 2020-07-25 12:31:56 +02:00
parent ce0a5d5df9
commit 9c5be98655
2 changed files with 4 additions and 4 deletions

View file

@ -12,9 +12,9 @@ import org.w3c.dom.NodeList;
import w2phtml.office.OfficeReader;
public class PageSplitter extends BasicSplitter implements ISplitter {
public class ParagraphSplitter extends BasicSplitter implements ISplitter {
public PageSplitter(OfficeReader officeReader, SplitFactory factory) {
public ParagraphSplitter(OfficeReader officeReader, SplitFactory factory) {
super(officeReader, factory);
// TODO Auto-generated constructor stub
}

View file

@ -22,9 +22,9 @@ public class SplitFactory {
splitter = new SpanSplitter(officeReader, this);
} else
if (nodeName.contentEquals(TEXT_P) || nodeName.contentEquals(TEXT_H)) {
splitter = new PageSplitter(officeReader, this);
splitter = new ParagraphSplitter(officeReader, this);
} else
if (nodeName.contentEquals(TEXT_NOTE) || nodeName.contentEquals(OFFICE_TEXT)) {
if (nodeName.contentEquals(TEXT_NOTE_BODY) || nodeName.contentEquals(OFFICE_TEXT)) {
splitter = new TextSplitter(officeReader, this);
} else
if (nodeName.contentEquals(TEXT_ILLUSTRATION_INDEX)) {