public class PropertyResolver extends Object
Constructor and Description |
---|
PropertyResolver(WordprocessingMLPackage wordMLPackage) |
Modifier and Type | Method and Description |
---|---|
boolean |
activateStyle(String styleId) |
boolean |
activateStyle(Style s) |
protected void |
applyPPr(PPr pPrToApply,
PPr effectivePPr) |
protected void |
applyRPr(ParaRPr rPrToApply,
RPr effectiveRPr) |
protected void |
applyRPr(RPr rPrToApply,
RPr effectiveRPr) |
RPr |
getDocumentDefaultRPr() |
PPr |
getEffectivePPr(PPr expressPPr)
Follow the resolution rules to return the
paragraph properties which actually apply,
given this pPr element (on a w:p).
|
PPr |
getEffectivePPr(String styleId)
Follow the resolution rules to return the
paragraph properties which actually apply,
given this paragraph style
Note 1: the properties are not the definition
of any style name returned.
|
RPr |
getEffectiveRPr(RPr expressRPr,
PPr pPr) |
RPr |
getEffectiveRPr(String styleId)
apply the rPr in the stack of styles, including documentDefaultRPr
|
RPr |
getEffectiveRPrUsingPStyleRPr(RPr expressRPr,
RPr rPrFromPStyle)
Return effective rPr, as follows: Starting with the rPr from the pStyle,
apply character style (if any) specified on the run,
then any other direct (ad-hoc) run formatting.
|
Style |
getEffectiveTableStyle(TblPr tblPr) |
int |
getLvlFromHeadingStyle(String style) |
Style |
getStyle(String styleId) |
public PropertyResolver(WordprocessingMLPackage wordMLPackage) throws Docx4JException
Docx4JException
public RPr getDocumentDefaultRPr()
public PPr getEffectivePPr(PPr expressPPr)
expressPPr
- public PPr getEffectivePPr(String styleId)
expressPPr
- public RPr getEffectiveRPr(RPr expressRPr, PPr pPr)
expressRPr
- pPr
- -public RPr getEffectiveRPrUsingPStyleRPr(RPr expressRPr, RPr rPrFromPStyle)
expressRPr
- rPrFromPStyle
- should be rPr from the paragraph style (as opposed to rPr in the direct pPr, which is only relevant to the paragraph mark)public RPr getEffectiveRPr(String styleId)
styleId
- public int getLvlFromHeadingStyle(String style)
public boolean activateStyle(String styleId)
public boolean activateStyle(Style s)
Copyright © 2007-2014. All Rights Reserved.