/** * get StyleID of the style * * @return styleID StyleID of the style */ public String getStyleId() { return ctStyle.getStyleId(); }
/** * get StyleID of the style * * @return styleID StyleID of the style */ public String getStyleId() { return ctStyle.getStyleId(); }
/** * get StyleID of the style * @return styleID StyleID of the style */ public String getStyleId(){ return ctStyle.getStyleId(); }
public String getClassNames( String styleID ) { if ( StringUtils.isEmpty( styleID ) ) { return null; } StringBuilder classNames = new StringBuilder( getClassName( styleID ) ); CTStyle style = super.getStyle( styleID ); while ( style != null ) { style = super.getStyle( style.getBasedOn() ); if ( style != null ) { classNames.insert( 0, getClassName( style.getStyleId(), true ) ); } } return classNames.toString(); }
public String getClassNames( String styleID ) { if ( StringUtils.isEmpty( styleID ) ) { return null; } StringBuilder classNames = new StringBuilder( getClassName( styleID ) ); CTStyle style = super.getStyle( styleID ); while ( style != null ) { style = super.getStyle( style.getBasedOn() ); if ( style != null ) { classNames.insert( 0, getClassName( style.getStyleId(), true ) ); } } return classNames.toString(); }
stylesByStyleId.put( style.getStyleId(), style );
stylesByStyleId.put( style.getStyleId(), style );
@Override protected void visitStyle( CTStyle style, boolean defaultStyle ) { String styleId = style.getStyleId(); if ( StringUtils.isNotEmpty( styleId ) ) { String className = getClassName( styleId ); visitStyle( className, style.getPPr(), defaultStyle ); visitStyle( className, style.getRPr(), defaultStyle ); visitStyle( className, style.getTblPr(), defaultStyle ); visitStyle( className, style.getTrPr(), defaultStyle ); visitStyle( className, style.getTcPr(), defaultStyle ); } }
@Override protected void visitStyle( CTStyle style, boolean defaultStyle ) { String styleId = style.getStyleId(); if ( StringUtils.isNotEmpty( styleId ) ) { String className = getClassName( styleId ); visitStyle( className, style.getPPr(), defaultStyle ); visitStyle( className, style.getRPr(), defaultStyle ); visitStyle( className, style.getTblPr(), defaultStyle ); visitStyle( className, style.getTrPr(), defaultStyle ); visitStyle( className, style.getTcPr(), defaultStyle ); } }