Package org.apache.poi.hslf.record
Class TextSpecInfoRun
java.lang.Object
org.apache.poi.hslf.record.TextSpecInfoRun
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA enum that specifies the spelling status of a run of text. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortAlternate Windows LANGID of this text; must be a valid non-East Asian LANGID if the text has an East Asian language, otherwise may be an East Asian LANGID or language neutral (zero).getBidi()voidgetGrammarError(Boolean grammarError) shortWindows LANGID for this text.intintbyte[]voidsetAltLangId(short altLangId) voidvoidsetLangId(short langId) voidsetLength(int length) voidsetPP10RunId(int pp10RunId) voidsetSmartTagsBytes(byte[] smartTagsBytes) voidsetSpellInfo(TextSpecInfoRun.SpellInfoEnum spellInfo) voidwriteOut(OutputStream out) Write the contents of the record back, so it can be written to disk
-
Constructor Details
-
TextSpecInfoRun
public TextSpecInfoRun(int len) Inits a TextSpecInfoRun with default values- Parameters:
len- the length of the one and only run
-
TextSpecInfoRun
-
-
Method Details
-
writeOut
Write the contents of the record back, so it can be written to disk- Parameters:
out- the output stream to write to.- Throws:
IOException- if an error occurs.
-
getSpellInfo
- Returns:
- Spelling status of this text. null if not defined.
-
setSpellInfo
- Parameters:
spellInfo- Spelling status of this text. null if not defined.
-
getLangId
public short getLangId()Windows LANGID for this text.- Returns:
- Windows LANGID for this text, -1 if it's not set
-
setLangId
public void setLangId(short langId) - Parameters:
langId- Windows LANGID for this text, -1 to unset
-
getAltLangId
public short getAltLangId()Alternate Windows LANGID of this text; must be a valid non-East Asian LANGID if the text has an East Asian language, otherwise may be an East Asian LANGID or language neutral (zero).- Returns:
- Alternate Windows LANGID of this text, -1 if it's not set
-
setAltLangId
public void setAltLangId(short altLangId) -
getLength
public int getLength()- Returns:
- Length of special info run.
-
setLength
public void setLength(int length) - Parameters:
length- Length of special info run.
-
getBidi
- Returns:
- the bidirectional characters flag. false = not bidi, true = is bidi, null = not set
-
setBidi
- Parameters:
bidi- the bidirectional characters flag. false = not bidi, true = is bidi, null = not set
-
getSmartTagsBytes
public byte[] getSmartTagsBytes()- Returns:
- the unparsed smart tags
-
setSmartTagsBytes
public void setSmartTagsBytes(byte[] smartTagsBytes) - Parameters:
smartTagsBytes- the unparsed smart tags, null to unset
-
getPP10RunId
public int getPP10RunId()- Returns:
- an identifier for a character run that contains StyleTextProp11 data.
-
setPP10RunId
public void setPP10RunId(int pp10RunId) - Parameters:
pp10RunId- an identifier for a character run that contains StyleTextProp11 data, -1 to unset
-
getGrammarError
-
getGrammarError
-