Package org.docx4j.openpackaging.parts
Class ThemePart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<E>
org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware<Theme>
org.docx4j.openpackaging.parts.ThemePart
- All Implemented Interfaces:
XPathEnabled<Theme>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BaseStyles.FontSchemeprivate static org.slf4j.Loggerprivate TextFontprivate TextFontprivate FontCollectionprivate booleanprivate TextFontprivate TextFontprivate TextFontprivate FontCollectionprivate booleanprivate TextFontprivate booleanFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
binderFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_ErrorFields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFont(STTheme type, CTLanguage themeFontLang) getFontFromTheme(STTheme type) private StringgetLang(CTLanguage themeFontLang, STTheme range) private TextFontprivate TextFontprivate FontCollectionprivate TextFontprivate TextFontprivate TextFontprivate FontCollectionprivate TextFontprivate TextFontprivate TextFontgetTextFontFromTheme(STTheme type) voidinit()private booleanMethods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
createBinderAndJaxbElement, getBinder, getJAXBAssociationsForXPath, getJAXBAssociationsForXPath, getJAXBNodesViaXPath, getJAXBNodesViaXPath, setJaxbElement, unmarshal, unmarshalMethods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
addMcChoiceNamespace, getConfiguredUnmarshaller, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, getXMLStreamReader, inputStreamToXSR, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, preprocess, replacePartContent, setContents, setJAXBContext, setJaxbElement, setMceIgnorable, transform, transformToDom, variableReplaceMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersionMethods inherited from class org.docx4j.openpackaging.Base
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
-
Field Details
-
log
private static org.slf4j.Logger log -
fontScheme
-
scriptToTypefaceMajor
-
scriptToTypefaceMinor
-
majorFontCollection
-
majorFontCollectionInitialised
private boolean majorFontCollectionInitialised -
minorFontCollection
-
minorFontCollectionInitialised
private boolean minorFontCollectionInitialised -
majorLatin
-
majorEastAsian
-
majorComplexScript
-
minorLatin
-
minorEastAsian
-
minorComplexScript
-
reportedEmptyMINOR_EAST_ASIA
private boolean reportedEmptyMINOR_EAST_ASIA
-
-
Constructor Details
-
ThemePart
- Throws:
InvalidFormatException
-
ThemePart
- Throws:
InvalidFormatException
-
-
Method Details
-
init
public void init() -
getFontScheme
-
getScriptToTypefaceMajor
- Throws:
Docx4JException
-
getScriptToTypefaceMinor
- Throws:
Docx4JException
-
getMajorFontCollection
- Throws:
Docx4JException
-
getMinorFontCollection
- Throws:
Docx4JException
-
getMajorLatin
- Throws:
Docx4JException
-
getMajorHighAnsi
- Throws:
Docx4JException
-
getMajorEastAsian
- Throws:
Docx4JException
-
getMajorComplexScript
- Throws:
Docx4JException
-
getMinorLatin
- Throws:
Docx4JException
-
getMinorHighAnsi
- Throws:
Docx4JException
-
getMinorEastAsian
- Throws:
Docx4JException
-
getMinorComplexScript
- Throws:
Docx4JException
-
getTextFontFromTheme
- Throws:
Docx4JException
-
getFontFromTheme
- Throws:
Docx4JException
-
getFont
- Throws:
Docx4JException
-
isMajor
-
getLang
- Parameters:
themeFontLang-range-- Since:
- 3.0.0
-