org.odftoolkit.odfdom.converter.pdf.internal.stylable
Class StylableDocument

java.lang.Object
  extended by com.lowagie.text.Document
      extended by fr.opensagres.xdocreport.itext.extension.ExtendedDocument
          extended by org.odftoolkit.odfdom.converter.pdf.internal.stylable.StylableDocument
All Implemented Interfaces:
com.lowagie.text.DocListener, com.lowagie.text.ElementListener, IITextContainer, IITextElement, EventListener, IBoundsLimitContainer, IBreakHandlingContainer, IStylableContainer, IStylableElement, IStylableFactory

public class StylableDocument
extends ExtendedDocument
implements IStylableContainer, IBoundsLimitContainer, IBreakHandlingContainer, IStylableFactory

fixes for pdf conversion by Leszek Piotrowicz


Field Summary
 
Fields inherited from class fr.opensagres.xdocreport.itext.extension.ExtendedDocument
originMarginBottom, originMarginLeft, originMarginRight, originMarginTop, writer
 
Fields inherited from class com.lowagie.text.Document
chapternumber, close, compress, footer, header, htmlStyleClass, javaScript_onLoad, javaScript_onUnLoad, marginBottom, marginLeft, marginMirroring, marginMirroringTopBottom, marginRight, marginTop, open, pageN, pageSize, plainRandomAccess, wmfFontCorrection
 
Constructor Summary
StylableDocument(OutputStream out, StyleEngineForIText styleEngine)
           
 
Method Summary
 void addElement(com.lowagie.text.Element element)
           
 void applyStyles(Style style)
           
 void close()
           
 void columnBreak()
           
 StylableAnchor createAnchor(IStylableContainer parent)
           
 StylableChunk createChunk(IStylableContainer parent, String textContent, FontGroup fontGroup)
           
 StylableDocumentSection createDocumentSection(IStylableContainer parent, boolean inHeaderFooter)
           
 StylableHeaderFooter createHeaderFooter(boolean header)
           
 StylableHeading createHeading(IStylableContainer parent, List<Integer> headingNumbering)
           
 StylableImage createImage(IStylableContainer parent, com.lowagie.text.Image image, Float x, Float y, Float width, Float height)
           
 StylableList createList(IStylableContainer parent, int listLevel)
           
 StylableListItem createListItem(IStylableContainer parent)
           
 StylableParagraph createParagraph(IStylableContainer parent)
           
 StylablePhrase createPhrase(IStylableContainer parent)
           
 StylableTab createTab(IStylableContainer parent, boolean inTableOfContent)
           
 StylableTable createTable(IStylableContainer parent, int numColumns)
           
 StylableTableCell createTableCell(IStylableContainer parent)
           
 StylableMasterPage getActiveMasterPage()
           
 StylableMasterPage getDefaultMasterPage()
           
 com.lowagie.text.Element getElement()
           
 float getHeightLimit()
          get available height limit or value < 0 if there is no height limit
 Style getLastStyleApplied()
           
 StylableMasterPage getMasterPage(String masterPageName)
           
 float getPageWidth()
           
 IStylableContainer getParent()
           
 Style getStyleMasterPage(StylableMasterPage masterPage)
           
 float getWidthLimit()
          get width available for an element to be added to this container
 boolean newPage()
           
 void pageBreak()
           
 void setActiveMasterPage(IMasterPage masterPage)
           
 
Methods inherited from class fr.opensagres.xdocreport.itext.extension.ExtendedDocument
add, addMasterPage, createExtendedHeaderFooter, getITextContainer, getOrientation, getOriginMarginBottom, getOriginMarginLeft, getOriginMarginRight, getOriginMarginTop, getPageNumber, setActiveMasterPage, setITextContainer, setOrientation, setOriginalMargins
 
Methods inherited from class com.lowagie.text.Document
addAuthor, addCreationDate, addCreator, addDocListener, addHeader, addKeywords, addProducer, addSubject, addTitle, bottom, bottom, bottomMargin, getHtmlStyleClass, getJavaScript_onLoad, getJavaScript_onUnLoad, getPageSize, getProduct, getRelease, getVersion, isMarginMirroring, isOpen, left, left, leftMargin, open, removeDocListener, resetFooter, resetHeader, resetPageCount, right, right, rightMargin, setFooter, setHeader, setHtmlStyleClass, setJavaScript_onLoad, setJavaScript_onUnLoad, setMarginMirroring, setMarginMirroringTopBottom, setMargins, setPageCount, setPageSize, top, top, topMargin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StylableDocument

public StylableDocument(OutputStream out,
                        StyleEngineForIText styleEngine)
                 throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException
Method Detail

createAnchor

public StylableAnchor createAnchor(IStylableContainer parent)
Specified by:
createAnchor in interface IStylableFactory

createChunk

public StylableChunk createChunk(IStylableContainer parent,
                                 String textContent,
                                 FontGroup fontGroup)
Specified by:
createChunk in interface IStylableFactory

createDocumentSection

public StylableDocumentSection createDocumentSection(IStylableContainer parent,
                                                     boolean inHeaderFooter)
Specified by:
createDocumentSection in interface IStylableFactory

createHeaderFooter

public StylableHeaderFooter createHeaderFooter(boolean header)
Specified by:
createHeaderFooter in interface IStylableFactory

createHeading

public StylableHeading createHeading(IStylableContainer parent,
                                     List<Integer> headingNumbering)
Specified by:
createHeading in interface IStylableFactory

createImage

public StylableImage createImage(IStylableContainer parent,
                                 com.lowagie.text.Image image,
                                 Float x,
                                 Float y,
                                 Float width,
                                 Float height)
Specified by:
createImage in interface IStylableFactory

createList

public StylableList createList(IStylableContainer parent,
                               int listLevel)
Specified by:
createList in interface IStylableFactory

createListItem

public StylableListItem createListItem(IStylableContainer parent)
Specified by:
createListItem in interface IStylableFactory

createParagraph

public StylableParagraph createParagraph(IStylableContainer parent)
Specified by:
createParagraph in interface IStylableFactory

createPhrase

public StylablePhrase createPhrase(IStylableContainer parent)
Specified by:
createPhrase in interface IStylableFactory

createTab

public StylableTab createTab(IStylableContainer parent,
                             boolean inTableOfContent)
Specified by:
createTab in interface IStylableFactory

createTable

public StylableTable createTable(IStylableContainer parent,
                                 int numColumns)
Specified by:
createTable in interface IStylableFactory

createTableCell

public StylableTableCell createTableCell(IStylableContainer parent)
Specified by:
createTableCell in interface IStylableFactory

setActiveMasterPage

public void setActiveMasterPage(IMasterPage masterPage)
Overrides:
setActiveMasterPage in class ExtendedDocument

getActiveMasterPage

public StylableMasterPage getActiveMasterPage()
Overrides:
getActiveMasterPage in class ExtendedDocument

getStyleMasterPage

public Style getStyleMasterPage(StylableMasterPage masterPage)

getMasterPage

public StylableMasterPage getMasterPage(String masterPageName)
Overrides:
getMasterPage in class ExtendedDocument

getDefaultMasterPage

public StylableMasterPage getDefaultMasterPage()
Overrides:
getDefaultMasterPage in class ExtendedDocument

applyStyles

public void applyStyles(Style style)
Specified by:
applyStyles in interface IStylableElement

getLastStyleApplied

public Style getLastStyleApplied()
Specified by:
getLastStyleApplied in interface IStylableElement

getParent

public IStylableContainer getParent()
Specified by:
getParent in interface IStylableElement

getElement

public com.lowagie.text.Element getElement()
Specified by:
getElement in interface IStylableElement

addElement

public void addElement(com.lowagie.text.Element element)
Specified by:
addElement in interface IITextContainer
Specified by:
addElement in interface IStylableContainer
Overrides:
addElement in class ExtendedDocument

columnBreak

public void columnBreak()
Specified by:
columnBreak in interface IBreakHandlingContainer

pageBreak

public void pageBreak()
Specified by:
pageBreak in interface IBreakHandlingContainer

newPage

public boolean newPage()
Specified by:
newPage in interface com.lowagie.text.DocListener
Overrides:
newPage in class com.lowagie.text.Document

close

public void close()
Specified by:
close in interface com.lowagie.text.DocListener
Overrides:
close in class com.lowagie.text.Document

getWidthLimit

public float getWidthLimit()
Description copied from interface: IBoundsLimitContainer
get width available for an element to be added to this container

Specified by:
getWidthLimit in interface IBoundsLimitContainer

getHeightLimit

public float getHeightLimit()
Description copied from interface: IBoundsLimitContainer
get available height limit or value < 0 if there is no height limit

Specified by:
getHeightLimit in interface IBoundsLimitContainer

getPageWidth

public float getPageWidth()


Copyright © 2013. All rights reserved.