Package org.apache.poi.hslf.record.StyleTextPropAtom

Examples of org.apache.poi.hslf.record.StyleTextPropAtom.CharFlagsTextProp


   * Fetch the value of the given flag in the CharFlagsTextProp.
   * Returns false if the CharFlagsTextProp isn't present, since the
   *  text property won't be set if there's no CharFlagsTextProp.
   */
  private boolean isCharFlagsTextPropVal(int index) {
        CharFlagsTextProp cftp = null;
        if (characterStyle != null){
            cftp = (CharFlagsTextProp)characterStyle.findByName("char_flags");
        }
        if (cftp == null){
            Sheet sheet = parentRun.getSheet();
            int txtype = parentRun.getRunType();
            SlideMaster master = (SlideMaster)sheet.getMasterSheet();
            cftp = (CharFlagsTextProp)master.getStyleAttribute(txtype, getIndentLevel(), "char_flags", true);
        }

    return cftp == null ? false : cftp.getSubValue(index);
  }
View Full Code Here


    if(characterStyle == null) {
      parentRun.ensureStyleAtomPresent();
      // characterStyle will now be defined
    }
   
    CharFlagsTextProp cftp = (CharFlagsTextProp)
      fetchOrAddTextProp(characterStyle, "char_flags");
    cftp.setSubValue(value,index);
  }
View Full Code Here

   *  text property won't be set if there's no CharFlagsTextProp.
   */
  private boolean isCharFlagsTextPropVal(int index) {
    if(characterStyle == null) { return false; }
   
    CharFlagsTextProp cftp = (CharFlagsTextProp)
      characterStyle.findByName("char_flags");
   
    if(cftp == null) { return false; }
    return cftp.getSubValue(index);
  }
View Full Code Here

    if(characterStyle == null) {
      parentRun.ensureStyleAtomPresent();
      // characterStyle will now be defined
    }
   
    CharFlagsTextProp cftp = (CharFlagsTextProp)
      fetchOrAddTextProp(characterStyle, "char_flags");
    cftp.setSubValue(value,index);
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hslf.record.StyleTextPropAtom.CharFlagsTextProp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.