From 78f822d90f4846a1c44fa8e98a49bcbea222b2a1 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Wed, 19 Feb 2020 21:06:55 +0100 Subject: [PATCH] Renaming --- src/main/java/writer2latex/epub/EPUB3Converter.java | 4 ++-- src/main/java/writer2latex/epub/EPUBConverter.java | 4 ++-- src/main/java/writer2latex/xhtml/Converter.java | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/writer2latex/epub/EPUB3Converter.java b/src/main/java/writer2latex/epub/EPUB3Converter.java index d719e6f..8a761a0 100644 --- a/src/main/java/writer2latex/epub/EPUB3Converter.java +++ b/src/main/java/writer2latex/epub/EPUB3Converter.java @@ -43,13 +43,13 @@ public final class EPUB3Converter extends Html5Converter { } @Override public ConverterResult convert(InputStream is, String sTargetFileName) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(is, "chapter"); return createPackage(xhtmlResult,sTargetFileName); } @Override public ConverterResult convert(org.w3c.dom.Document dom, String sTargetFileName, boolean bDestructive) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(dom, "chapter", bDestructive); return createPackage(xhtmlResult,sTargetFileName); } diff --git a/src/main/java/writer2latex/epub/EPUBConverter.java b/src/main/java/writer2latex/epub/EPUBConverter.java index ba82239..456e5ab 100644 --- a/src/main/java/writer2latex/epub/EPUBConverter.java +++ b/src/main/java/writer2latex/epub/EPUBConverter.java @@ -43,13 +43,13 @@ public final class EPUBConverter extends Xhtml11Converter { } @Override public ConverterResult convert(InputStream is, String sTargetFileName) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(is, "chapter"); return createPackage(xhtmlResult,sTargetFileName); } @Override public ConverterResult convert(org.w3c.dom.Document dom, String sTargetFileName, boolean bDestructive) throws IOException { - setOPS(true); + setOpenPubStructure(true); ConverterResult xhtmlResult = super.convert(dom, "chapter", bDestructive); return createPackage(xhtmlResult,sTargetFileName); } diff --git a/src/main/java/writer2latex/xhtml/Converter.java b/src/main/java/writer2latex/xhtml/Converter.java index 645de7f..9d6c83b 100644 --- a/src/main/java/writer2latex/xhtml/Converter.java +++ b/src/main/java/writer2latex/xhtml/Converter.java @@ -100,11 +100,12 @@ public class Converter extends BasicConverter { // The xhtml output file(s) public int nType = XhtmlDocument.XHTML10; // the doctype private boolean bOPS = false; // Do we need to be OPS conforming? - Vector outFiles; + public Vector outFiles; private int outFileIndex; private XhtmlDocument htmlDoc; // current outfile private Document htmlDOM; // current DOM, usually within htmlDoc public PageContainer pageContainer = null; + public boolean isRDF = false; //private int nTocFileIndex = -1; //private int nAlphabeticalIndex = -1; @@ -242,7 +243,7 @@ public class Converter extends BasicConverter { public L10n getL10n() { return l10n; } - public void setOPS(boolean b) { bOPS = true; } + public void setOpenPubStructure(boolean b) { bOPS = true; } public boolean isOPS() { return bOPS; }