public abstract class I18n
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | bAlwaysUseDefaultLang | 
| protected boolean | bGreekMath | 
| protected LaTeXConfig | config | 
| protected java.util.HashSet<java.lang.String> | languages | 
| protected OfficeReader | ofr | 
| protected java.lang.String | sDefaultCountry | 
| protected java.lang.String | sDefaultCTLCountry | 
| protected java.lang.String | sDefaultCTLLanguage | 
| protected java.lang.String | sDefaultLanguage | 
| protected ReplacementTrie | stringReplace | 
| Constructor and Description | 
|---|
| I18n(OfficeReader ofr,
    LaTeXConfig config,
    ConverterPalette palette)Construct a new I18n as ConverterHelper | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | 
| java.lang.String | getDefaultCountry()Get the default country | 
| java.lang.String | getDefaultLanguage()Get the default language (either the document language or the most used language) | 
| abstract void | popSpecialTable()Pop a font from the font stack | 
| abstract void | pushSpecialTable(java.lang.String sName)Push a font to the font stack | 
protected OfficeReader ofr
protected LaTeXConfig config
protected ReplacementTrie stringReplace
protected boolean bGreekMath
protected boolean bAlwaysUseDefaultLang
protected java.lang.String sDefaultCTLLanguage
protected java.lang.String sDefaultCTLCountry
protected java.lang.String sDefaultLanguage
protected java.lang.String sDefaultCountry
protected java.util.HashSet<java.lang.String> languages
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)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 attributes frombDecl - 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 stringpublic java.lang.String getDefaultLanguage()
public java.lang.String getDefaultCountry()