Package org.docx4j.model.styles
Class StyleUtil
java.lang.Object
org.docx4j.model.styles.StyleUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Booleanprotected static Stringprotected static BigIntegerapply(BigInteger source, BigInteger destination) static voidapply(List<CTTblStylePr> source, List<CTTblStylePr> destination) static BooleanDefaultTrueapply(BooleanDefaultTrue source, BooleanDefaultTrue destination) static Colorstatic CTBorderstatic CTCnfstatic CTEmstatic CTFramePrstatic CTLanguageapply(CTLanguage source, CTLanguage destination) static CTShdstatic CTShortHexNumberapply(CTShortHexNumber source, CTShortHexNumber destination) static CTSignedHpsMeasureapply(CTSignedHpsMeasure source, CTSignedHpsMeasure destination) static CTSignedTwipsMeasureapply(CTSignedTwipsMeasure source, CTSignedTwipsMeasure destination) static CTTblCellMarapply(CTTblCellMar source, CTTblCellMar destination) static CTTblLayoutTypeapply(CTTblLayoutType source, CTTblLayoutType destination) static CTTblLookstatic CTTblOverlapapply(CTTblOverlap source, CTTblOverlap destination) static CTTblPPrapply(CTTblPrBase.TblStyleColBandSize source, CTTblPrBase.TblStyleColBandSize destination) static CTTblPrBase.TblStyleapply(CTTblPrBase.TblStyle source, CTTblPrBase.TblStyle destination) apply(CTTblPrBase.TblStyleRowBandSize source, CTTblPrBase.TblStyleRowBandSize destination) static CTTblPrBaseapply(CTTblPrBase source, CTTblPrBase destination) static CTTblStylePrapply(CTTblStylePr source, CTTblStylePr destination) static CTTextboxTightWrapapply(CTTextboxTightWrap source, CTTextboxTightWrap destination) static CTTextEffectapply(CTTextEffect source, CTTextEffect destination) static CTTextScaleapply(CTTextScale source, CTTextScale destination) static CTVerticalAlignRunapply(CTVerticalAlignRun source, CTVerticalAlignRun destination) static CTVerticalJcapply(CTVerticalJc source, CTVerticalJc destination) static Highlightstatic HpsMeasureapply(HpsMeasure source, HpsMeasure destination) static Jcstatic ParaRPrstatic RPrstatic PPrBase.Indapply(PPrBase.Ind source, PPrBase.Ind destination) static PPrBase.NumPrapply(PPrBase.NumPr source, PPrBase.NumPr destination) static PPrBase.OutlineLvlapply(PPrBase.OutlineLvl source, PPrBase.OutlineLvl destination) static PPrBase.PBdrapply(PPrBase.PBdr source, PPrBase.PBdr destination) static PPrBase.PStyleapply(PPrBase.PStyle source, PPrBase.PStyle destination) static PPrBase.Spacingapply(PPrBase.Spacing source, PPrBase.Spacing destination) static PPrBase.TextAlignmentapply(PPrBase.TextAlignment source, PPrBase.TextAlignment destination) static voidstatic PPrstatic Stylestatic RFontsstatic ParaRPrstatic RPrstatic Stylestatic RStylestatic SectPrstatic STEmstatic STLineSpacingRuleapply(STLineSpacingRule source, STLineSpacingRule destination) static STShdhttp://webapp.docx4java.org/OnlineDemo/ecma376/WordML/ST_Shd.htmlstatic STTblLayoutTypeapply(STTblLayoutType source, STTblLayoutType destination) static STTblOverlapapply(STTblOverlap source, STTblOverlap destination) http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/ST_TblOverlap.htmlstatic STTextEffectapply(STTextEffect source, STTextEffect destination) static STVerticalAlignRunapply(STVerticalAlignRun source, STVerticalAlignRun destination) static STVerticalJcapply(STVerticalJc source, STVerticalJc destination) static StyleNote that this method does not climb the hierarchy to take any account of what these styles are basedOn (other than to set the basedOn value)static Tabsstatic TblBordersapply(TblBorders source, TblBorders destination) static TblWidthstatic TcMarstatic TcPrInner.GridSpanapply(TcPrInner.GridSpan source, TcPrInner.GridSpan destination) static TcPrInner.HMergeapply(TcPrInner.HMerge source, TcPrInner.HMerge destination) static TcPrInner.TcBordersapply(TcPrInner.TcBorders source, TcPrInner.TcBorders destination) static TcPrInner.VMergeapply(TcPrInner.VMerge source, TcPrInner.VMerge destination) static TcPrstatic TextDirectionapply(TextDirection source, TextDirection destination) static TrPrstatic UnderlineEnumerationapply(UnderlineEnumeration source, UnderlineEnumeration destination) static Ustatic booleanprotected static booleanprotected static booleanstatic booleanareEqual(BigInteger val1, BigInteger val2) static booleanareEqual(List<CTTblStylePr> tblStylePrList1, List<CTTblStylePr> tblStylePrList2) static booleanareEqual(BooleanDefaultTrue booleanDefaultTrue1, BooleanDefaultTrue booleanDefaultTrue2) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanareEqual(CTShortHexNumber number1, CTShortHexNumber number2) static booleanareEqual(CTSignedHpsMeasure measure1, CTSignedHpsMeasure measure2) static booleanareEqual(CTSignedTwipsMeasure measure1, CTSignedTwipsMeasure measure2) static booleanstatic booleanareEqual(CTTblCellMar margin1, CTTblCellMar margin2) static booleanareEqual(CTTblLayoutType tblLayout1, CTTblLayoutType tblLayout2) static booleanstatic booleanareEqual(CTTblOverlap overlap1, CTTblOverlap overlap2) static booleanstatic booleanareEqual(CTTblPrBase.TblStyleColBandSize bandSize1, CTTblPrBase.TblStyleColBandSize bandSize2) static booleanareEqual(CTTblPrBase.TblStyle style1, CTTblPrBase.TblStyle style2) static booleanareEqual(CTTblPrBase.TblStyleRowBandSize bandSize1, CTTblPrBase.TblStyleRowBandSize bandSize2) static booleanareEqual(CTTblPrBase tblPr1, CTTblPrBase tblPr2) static booleanareEqual(CTTblStylePr ctTblStylePr1, CTTblStylePr ctTblStylePr2) static booleanareEqual(CTTextboxTightWrap textboxTightWrap1, CTTextboxTightWrap textboxTightWrap2) static booleanareEqual(CTTextEffect effect1, CTTextEffect effect2) static booleanareEqual(CTTextScale scale1, CTTextScale scale2) static booleanareEqual(CTTrPrBase.GridAfter value1, CTTrPrBase.GridAfter value2) static booleanareEqual(CTTrPrBase.GridBefore value1, CTTrPrBase.GridBefore value2) static booleanareEqual(CTVerticalAlignRun vertAlign1, CTVerticalAlignRun vertAlign2) static booleanareEqual(CTVerticalJc vAlign1, CTVerticalJc vAlign2) static booleanstatic booleanareEqual(HpsMeasure measure1, HpsMeasure measure2) static booleanstatic booleanstatic booleanareEqual(PPrBase.Ind ind1, PPrBase.Ind ind2) static booleanareEqual(PPrBase.NumPr numPr1, PPrBase.NumPr numPr2) static booleanareEqual(PPrBase.OutlineLvl outlineLvl1, PPrBase.OutlineLvl outlineLvl2) static booleanareEqual(PPrBase.PBdr pBdr1, PPrBase.PBdr pBdr2) static booleanareEqual(PPrBase.PStyle pStyle1, PPrBase.PStyle pStyle2) static booleanareEqual(PPrBase.Spacing spacing1, PPrBase.Spacing spacing2) static booleanareEqual(PPrBase.TextAlignment textAlignment1, PPrBase.TextAlignment textAlignment2) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanareEqual(STHeightRule hRule1, STHeightRule hRule2) static booleanareEqual(STTblLayoutType val1, STTblLayoutType val2) static booleanareEqual(STTblOverlap val1, STTblOverlap val2) static booleanareEqual(STTblStyleOverrideType val1, STTblStyleOverrideType val2) static booleanareEqual(STTextEffect val1, STTextEffect val2) static booleanareEqual(STThemeColor themeColor1, STThemeColor themeColor2) static booleanstatic booleanareEqual(STVerticalAlignRun val1, STVerticalAlignRun val2) static booleanareEqual(STVerticalJc val1, STVerticalJc val2) static booleanstatic booleanstatic booleanstatic booleanareEqual(Style.BasedOn basedOn1, Style.BasedOn basedOn2) static booleanstatic booleanstatic booleanareEqual(TblBorders borders1, TblBorders borders2) static booleanstatic booleanstatic booleanareEqual(TcPrInner.GridSpan gridSpan1, TcPrInner.GridSpan gridSpan2) static booleanareEqual(TcPrInner.HMerge merge1, TcPrInner.HMerge merge2) static booleanareEqual(TcPrInner.TcBorders borders1, TcPrInner.TcBorders borders2) static booleanareEqual(TcPrInner.VMerge merge1, TcPrInner.VMerge merge2) static booleanstatic booleanareEqual(TextDirection textDirection1, TextDirection textDirection2) static booleanstatic booleanareEqual(UnderlineEnumeration val1, UnderlineEnumeration val2) static booleanstatic booleanprotected static booleanprotected static booleanprotected static booleanisEmpty(BigInteger val) static booleanisEmpty(List<CTTblStylePr> tblStylePrList) static booleanisEmpty(BooleanDefaultTrue booleanDefaultTrue) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanisEmpty(CTShortHexNumber number) static booleanisEmpty(CTSignedHpsMeasure measure) static booleanisEmpty(CTSignedTwipsMeasure measure) static booleanstatic booleanisEmpty(CTTblCellMar margin) static booleanisEmpty(CTTblLayoutType tblLayout) static booleanstatic booleanisEmpty(CTTblOverlap overlap) static booleanstatic booleanisEmpty(CTTblPrBase tblPr) static booleanisEmpty(CTTblPrBase.TblStyle style) static booleanisEmpty(CTTblPrBase.TblStyleColBandSize bandSize) static booleanisEmpty(CTTblPrBase.TblStyleRowBandSize bandSize) static booleanisEmpty(CTTblStylePr ctTblStylePr) static booleanisEmpty(CTTextboxTightWrap textboxTightWrap) static booleanisEmpty(CTTextEffect effect) static booleanisEmpty(CTTextScale scale) static booleanisEmpty(CTVerticalAlignRun vertAlign) static booleanisEmpty(CTVerticalJc vAlign) static booleanstatic booleanisEmpty(HpsMeasure measure) static booleanstatic booleanstatic booleanstatic booleanstatic booleanisEmpty(PPrBase.Ind ind) static booleanisEmpty(PPrBase.NumPr numPr) static booleanisEmpty(PPrBase.OutlineLvl outlineLvl) static booleanisEmpty(PPrBase.PBdr pBdr) static booleanisEmpty(PPrBase.PStyle pStyle) static booleanisEmpty(PPrBase.Spacing spacing) static booleanisEmpty(PPrBase.TextAlignment textAlignment) static booleanisEmpty (non sensitive to presence of possible hint ie would still return true)static booleanisEmpty returns true if rPr is null, or each of its properties is in turn, emptystatic booleanprotected static booleanstatic booleanstatic booleanprotected static booleanisEmpty(STThemeColor val) static booleanstatic booleanstatic booleanisEmpty(TblBorders borders) static booleanstatic booleanstatic booleanstatic booleanisEmpty(TcPrInner.GridSpan gridSpan) static booleanisEmpty(TcPrInner.HMerge merge) static booleanisEmpty(TcPrInner.TcBorders borders) static booleanisEmpty(TcPrInner.VMerge merge) static booleanisEmpty(TextDirection textDirection) static booleanstatic boolean
-
Field Details
-
log
protected static org.slf4j.Logger log -
CHARACTER_STYLE
- See Also:
-
PARAGRAPH_STYLE
- See Also:
-
TABLE_STYLE
- See Also:
-
NUMBERING_STYLE
- See Also:
-
-
Constructor Details
-
StyleUtil
public StyleUtil()
-
-
Method Details
-
areEqual
-
areEqual
-
areEqual
- Parameters:
sectPr1-sectPr2-- Returns:
- Since:
- 3.2
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
public static boolean areEqual(List<CTTblStylePr> tblStylePrList1, List<CTTblStylePr> tblStylePrList2) -
areEqual
-
areEqual
-
areEqual
public static boolean areEqual(CTTextboxTightWrap textboxTightWrap1, CTTextboxTightWrap textboxTightWrap2) -
areEqual
public static boolean areEqual(PPrBase.TextAlignment textAlignment1, PPrBase.TextAlignment textAlignment2) -
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
public static boolean areEqual(CTTblPrBase.TblStyleColBandSize bandSize1, CTTblPrBase.TblStyleColBandSize bandSize2) -
areEqual
public static boolean areEqual(CTTblPrBase.TblStyleRowBandSize bandSize1, CTTblPrBase.TblStyleRowBandSize bandSize2) -
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
-
areEqual
public static boolean areEqual(BooleanDefaultTrue booleanDefaultTrue1, BooleanDefaultTrue booleanDefaultTrue2) -
areEqual
-
areEqual
-
areEqual
-
areEqual
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
isEmpty returns true if rPr is null, or each of its properties is in turn, empty- Parameters:
rPr-- Returns:
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
isEmpty (non sensitive to presence of possible hint ie would still return true)- Parameters:
rFonts-- Returns:
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
isEmpty
-
apply
- Parameters:
source-destination-- Returns:
- Since:
- 3.3.0
-
apply
- Parameters:
source-destination-- Returns:
- Since:
- 3.3.0
-
apply
Note that this method does not climb the hierarchy to take any account of what these styles are basedOn (other than to set the basedOn value)- Parameters:
source-destination-
-
apply
-
apply
-
apply
- Parameters:
source-destination-- Returns:
- Since:
- 3.2
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
public static PPrBase.TextAlignment apply(PPrBase.TextAlignment source, PPrBase.TextAlignment destination) -
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
public static CTSignedTwipsMeasure apply(CTSignedTwipsMeasure source, CTSignedTwipsMeasure destination) -
apply
-
apply
-
apply
-
apply
-
apply
public static CTTblPrBase.TblStyleColBandSize apply(CTTblPrBase.TblStyleColBandSize source, CTTblPrBase.TblStyleColBandSize destination) -
apply
public static CTTblPrBase.TblStyleRowBandSize apply(CTTblPrBase.TblStyleRowBandSize source, CTTblPrBase.TblStyleRowBandSize destination) -
apply
-
apply
-
apply
public static CTTblPrBase.TblStyle apply(CTTblPrBase.TblStyle source, CTTblPrBase.TblStyle destination) -
apply
-
apply
-
apply
public static TcPrInner.TcBorders apply(TcPrInner.TcBorders source, TcPrInner.TcBorders destination) -
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/ST_Shd.html- Parameters:
source-destination-- Returns:
-
apply
http://webapp.docx4java.org/OnlineDemo/ecma376/WordML/ST_TblOverlap.html- Parameters:
source-destination-- Returns:
-
apply
-
apply
public static UnderlineEnumeration apply(UnderlineEnumeration source, UnderlineEnumeration destination) -
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-