public byte[] getCHPX(int styleIndex) { if (styleIndex == NIL_STYLE) { return NIL_CHPX; } if (styleIndex >= _styleDescriptions.length) { return NIL_CHPX; } if (styleIndex == -1) { return NIL_CHPX; } if (_styleDescriptions[styleIndex] == null) { return NIL_CHPX; } if (_styleDescriptions[styleIndex].getCHPX() == null) { return NIL_CHPX; } return _styleDescriptions[styleIndex].getCHPX(); }
public byte[] getCHPX( int styleIndex ) { if ( styleIndex == NIL_STYLE ) { return NIL_CHPX; } if ( styleIndex >= _styleDescriptions.length ) { return NIL_CHPX; } if ( _styleDescriptions[styleIndex] == null ) { return NIL_CHPX; } if ( _styleDescriptions[styleIndex].getCHPX() == null ) { return NIL_CHPX; } return _styleDescriptions[styleIndex].getCHPX(); }
private void dumpStyles() { if ( _doc instanceof HWPFOldDocument ) { System.out.println( "Word 95 not supported so far" ); return; } HWPFDocument hwpfDocument = (HWPFDocument) _doc; for ( int s = 0; s < hwpfDocument.getStyleSheet().numStyles(); s++ ) { StyleDescription styleDescription = hwpfDocument.getStyleSheet() .getStyleDescription( s ); if ( styleDescription == null ) continue; System.out.println( "=== Style #" + s + " '" + styleDescription.getName() + "' ===" ); System.out.println( styleDescription ); if ( styleDescription.getPAPX() != null ) dumpSprms( new SprmIterator( styleDescription.getPAPX(), 2 ), "Style's PAP SPRM: " ); if ( styleDescription.getCHPX() != null ) dumpSprms( new SprmIterator( styleDescription.getCHPX(), 0 ), "Style's CHP SPRM: " ); } }
private void dumpStyles() { if ( _doc instanceof HWPFOldDocument ) { System.out.println( "Word 95 not supported so far" ); return; } HWPFDocument hwpfDocument = (HWPFDocument) _doc; for ( int s = 0; s < hwpfDocument.getStyleSheet().numStyles(); s++ ) { StyleDescription styleDescription = hwpfDocument.getStyleSheet() .getStyleDescription( s ); if ( styleDescription == null ) continue; System.out.println( "=== Style #" + s + " '" + styleDescription.getName() + "' ===" ); System.out.println( styleDescription ); if ( styleDescription.getPAPX() != null ) dumpSprms( new SprmIterator( styleDescription.getPAPX(), 2 ), "Style's PAP SPRM: " ); if ( styleDescription.getCHPX() != null ) dumpSprms( new SprmIterator( styleDescription.getCHPX(), 0 ), "Style's CHP SPRM: " ); } }
byte[] chpx = sd.getCHPX(); int baseIndex = sd.getBaseStyle();
StyleDescription sd = _styleDescriptions[istd]; CharacterProperties chp = sd.getCHP(); byte[] chpx = sd.getCHPX(); int baseIndex = sd.getBaseStyle();