org.docx4j.convert.in.xhtml.XHTMLImporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j-core Show documentation
Show all versions of docx4j-core Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
/**
*
*/
package org.docx4j.convert.in.xhtml;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import javax.xml.transform.Source;
import org.docx4j.openpackaging.exceptions.Docx4JException;
import org.w3c.dom.Node;
import org.xml.sax.InputSource;
/**
* @author jharrop
*
*/
public interface XHTMLImporter {
/**
* Configure, how the Importer styles hyperlinks
*
* If hyperlinkStyleId is set to null
, hyperlinks are
* styled using just the CSS. This is the default behavior.
*
* If hyperlinkStyleId is set to "someWordHyperlinkStyleName"
,
* that style is used. The default Word hyperlink style name is "Hyperlink".
* It is currently your responsibility to define that style in your
* styles definition part.
*
* @param hyperlinkStyleID
* The style to use for hyperlinks (eg Hyperlink)
*/
public void setHyperlinkStyle (String hyperlinkStyleID);
public void setRunFormatting(FormattingOption runFormatting);
public void setParagraphFormatting(FormattingOption paragraphFormatting);
public void setTableFormatting(FormattingOption tableFormatting);
/**
* Convert the well formed XHTML contained in file to a list of WML objects.
*
* @param file
* @param baseUrl
* @param wordMLPackage
* @return
* @throws IOException
*/
public List