private final Set<Bookmark> bookmarkStack = new LinkedHashSet<Bookmark>();
- private PicturesManager fileManager;
-
private FontReplacer fontReplacer = new DefaultFontReplacer();
+ private PicturesManager picturesManager;
+
protected Triplet getCharacterRunTriplet( CharacterRun characterRun )
{
Triplet original = new Triplet();
public abstract Document getDocument();
- public PicturesManager getFileManager()
- {
- return fileManager;
- }
-
public FontReplacer getFontReplacer()
{
return fontReplacer;
return count;
}
+ public PicturesManager getPicturesManager()
+ {
+ return picturesManager;
+ }
+
protected int getTableCellEdgesIndexSkipCount( Table table, int r,
int[] tableCellEdges, int currentEdgeIndex, int c,
TableCell tableCell )
protected abstract void processTable( HWPFDocumentCore wordDocument,
Element flow, Table table );
- public void setFileManager( PicturesManager fileManager )
+ public void setFontReplacer( FontReplacer fontReplacer )
{
- this.fileManager = fileManager;
+ this.fontReplacer = fontReplacer;
}
- public void setFontReplacer( FontReplacer fontReplacer )
+ public void setPicturesManager( PicturesManager fileManager )
{
- this.fontReplacer = fontReplacer;
+ this.picturesManager = fileManager;
}
protected int tryDeadField( HWPFDocumentCore wordDocument, Range range,
* HWPF object, contained picture data and properties
*/
protected void processImage( Element currentBlock, boolean inlined,
- Picture picture ) {
- PicturesManager fileManager = getFileManager();
+ Picture picture )
+ {
+ PicturesManager fileManager = getPicturesManager();
if ( fileManager != null )
{
String url = fileManager.savePicture( picture );
public class WordToHtmlConverter extends AbstractWordConverter
{
- /**
- * Holds properties values, applied to current <tt>p</tt> element. Those
- * properties shall not be doubled in children <tt>span</tt> elements.
- */
- private static class BlockProperies
- {
- final String pFontName;
- final int pFontSize;
-
- public BlockProperies( String pFontName, int pFontSize )
- {
- this.pFontName = pFontName;
- this.pFontSize = pFontSize;
- }
- }
-
private static final POILogger logger = POILogFactory
.getLogger( WordToHtmlConverter.class );
protected void processImage( Element currentBlock, boolean inlined,
Picture picture )
{
- PicturesManager fileManager = getFileManager();
+ PicturesManager fileManager = getPicturesManager();
if ( fileManager != null )
{
String url = fileManager.savePicture( picture );
}
}
+ /**
+ * Holds properties values, applied to current <tt>p</tt> element. Those
+ * properties shall not be doubled in children <tt>span</tt> elements.
+ */
+ private static class BlockProperies
+ {
+ final String pFontName;
+ final int pFontSize;
+
+ public BlockProperies( String pFontName, int pFontSize )
+ {
+ this.pFontName = pFontName;
+ this.pFontSize = pFontSize;
+ }
+ }
+
}