|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwriter2latex.latex.i18n.I18n
public abstract class I18n
This abstract class takes care of i18n in the LaTeX export. Since i18n is handled quite differently in LaTeX "Classic" and XeTeX, we use two different classes
Field Summary | |
---|---|
protected boolean |
bAlwaysUseDefaultLang
|
protected boolean |
bGreekMath
|
protected LaTeXConfig |
config
|
protected java.util.HashSet |
languages
|
protected java.lang.String |
sDefaultLanguage
|
protected ReplacementTrie |
stringReplace
|
Constructor Summary | |
---|---|
I18n(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
Construct a new I18n as ConverterHelper |
Method Summary | |
---|---|
abstract void |
appendDeclarations(LaTeXDocumentPortion pack,
LaTeXDocumentPortion decl)
Add declarations to the preamble to load the required packages |
abstract void |
applyLanguage(StyleWithProperties style,
boolean bDecl,
boolean bInherit,
BeforeAfter ba)
Apply a language language |
abstract java.lang.String |
convert(java.lang.String s,
boolean bMathMode,
java.lang.String sLang)
Convert a string of characters into LaTeX |
abstract void |
popSpecialTable()
Pop a font from the font stack |
abstract void |
pushSpecialTable(java.lang.String sName)
Push a font to the font stack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LaTeXConfig config
protected ReplacementTrie stringReplace
protected boolean bGreekMath
protected boolean bAlwaysUseDefaultLang
protected java.lang.String sDefaultLanguage
protected java.util.HashSet languages
Constructor Detail |
---|
public I18n(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
ofr
- the OfficeReader to get language information fromconfig
- the configuration which determines the symbols to usepalette
- the ConverterPalette (unused)Method Detail |
---|
public abstract void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
pack
- usepackage declarationsdecl
- other declarationspublic abstract void applyLanguage(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba)
style
- the OOo style to read attributesfrombDecl
- true if declaration form is requiredbInherit
- true if inherited properties should be usedba
- the BeforeAfter
to add LaTeX code to.public abstract void pushSpecialTable(java.lang.String sName)
sName
- the name of the fontpublic abstract void popSpecialTable()
public abstract java.lang.String convert(java.lang.String s, boolean bMathMode, java.lang.String sLang)
s
- the source stringbMathMode
- true if the string should be rendered in math modesLang
- the iso language of the string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |