writer2latex.latex.util
Class Context
java.lang.Object
writer2latex.latex.util.Context
public class Context
- extends java.lang.Object
LaTeX code is in general very context dependent. This class tracks the
current context, which is the used by the converter to create valid and
optimal LaTeX code.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Context
public Context()
setBgColor
public void setBgColor(java.lang.String sBgColor)
getBgColor
public java.lang.String getBgColor()
setListStyleName
public void setListStyleName(java.lang.String sListStyleName)
getListStyleName
public java.lang.String getListStyleName()
setFontName
public void setFontName(java.lang.String sFontName)
getFontName
public java.lang.String getFontName()
setFontStyle
public void setFontStyle(java.lang.String sFontStyle)
getFontStyle
public java.lang.String getFontStyle()
setFontVariant
public void setFontVariant(java.lang.String sFontVariant)
getFontVariant
public java.lang.String getFontVariant()
setFontWeight
public void setFontWeight(java.lang.String sFontWeight)
getFontWeight
public java.lang.String getFontWeight()
setFontSize
public void setFontSize(java.lang.String sFontSize)
getFontSize
public java.lang.String getFontSize()
setFontColor
public void setFontColor(java.lang.String sFontColor)
getFontColor
public java.lang.String getFontColor()
setLang
public void setLang(java.lang.String sLang)
getLang
public java.lang.String getLang()
setCountry
public void setCountry(java.lang.String sCountry)
getCountry
public java.lang.String getCountry()
setInHeaderFooter
public void setInHeaderFooter(boolean bInHeaderFooter)
isInHeaderFooter
public boolean isInHeaderFooter()
setInTable
public void setInTable(boolean bInTable)
isInTable
public boolean isInTable()
setInLastTableColumn
public void setInLastTableColumn(boolean bInLastTableColumn)
isInLastTableColumn
public boolean isInLastTableColumn()
setInSimpleTable
public void setInSimpleTable(boolean bInSimpleTable)
isInSimpleTable
public boolean isInSimpleTable()
setInMulticols
public void setInMulticols(boolean bInMulticols)
isInMulticols
public boolean isInMulticols()
setListLevel
public void setListLevel(int nListLevel)
incListLevel
public void incListLevel()
getListLevel
public int getListLevel()
setInSection
public void setInSection(boolean bInSection)
isInSection
public boolean isInSection()
setInCaption
public void setInCaption(boolean bInCaption)
isInCaption
public boolean isInCaption()
setInFigureFloat
public void setInFigureFloat(boolean bInFigureFloat)
isInFigureFloat
public boolean isInFigureFloat()
setInTableFloat
public void setInTableFloat(boolean bInTableFloat)
isInTableFloat
public boolean isInTableFloat()
setInFrame
public void setInFrame(boolean bInFrame)
isInFrame
public boolean isInFrame()
setInFootnote
public void setInFootnote(boolean bInFootnote)
isInFootnote
public boolean isInFootnote()
setNoFootnotes
public void setNoFootnotes(boolean bNoFootnotes)
isNoFootnotes
public boolean isNoFootnotes()
setIgnoreLists
public void setIgnoreLists(boolean bIgnoreLists)
isIgnoreLists
public boolean isIgnoreLists()
setNoLineBreaks
public void setNoLineBreaks(boolean bNoLineBreaks)
isNoLineBreaks
public boolean isNoLineBreaks()
isVerbatim
public boolean isVerbatim()
setVerbatim
public void setVerbatim(boolean bVerbatim)
isMathMode
public boolean isMathMode()
setMathMode
public void setMathMode(boolean bMathMode)
updateFormattingFromStyle
public void updateFormattingFromStyle(StyleWithProperties style)
resetFormattingFromStyle
public void resetFormattingFromStyle(StyleWithProperties style)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object