示例#1
0
 public String toFormulaString(String[] operands) {
   if (space.isSet(_options)) {
     return operands[0];
   } else if (optiIf.isSet(_options)) {
     return toFormulaString() + "(" + operands[0] + ")";
   } else if (optiSkip.isSet(_options)) {
     return toFormulaString()
         + operands[0]; // goto isn't a real formula element should not show up
   } else {
     return toFormulaString() + "(" + operands[0] + ")";
   }
 }
示例#2
0
 public String toFormulaString() {
   if (semiVolatile.isSet(_options)) {
     return "ATTR(semiVolatile)";
   }
   if (optiIf.isSet(_options)) {
     return "IF";
   }
   if (optiChoose.isSet(_options)) {
     return "CHOOSE";
   }
   if (optiSkip.isSet(_options)) {
     return "";
   }
   if (optiSum.isSet(_options)) {
     return "SUM";
   }
   if (baxcel.isSet(_options)) {
     return "ATTR(baxcel)";
   }
   if (space.isSet(_options)) {
     return "";
   }
   return "UNKNOWN ATTRIBUTE";
 }
示例#3
0
 private boolean isExtendedText() {
   return extBit.isSet(getOptionFlags());
 }
示例#4
0
 /**
  * This bit MUST be ignored
  *
  * @return the unused1 field value.
  * @deprecated This field should not be used according to specification
  */
 @Internal
 @Deprecated
 public boolean isUnused1() {
   return unused1.isSet(field_3_info);
 }
示例#5
0
 /**
  * A bit that specifies whether the level indented the text it was applied to and that the indent
  * needs to be removed when numbering is removed. The indent to be removed is stored in
  * dxaIndentSav
  *
  * @return the fIndentSav field value.
  */
 @Internal
 public boolean isFIndentSav() {
   return fIndentSav.isSet(field_3_info);
 }
示例#6
0
 /**
  * A bit that specifies whether this level overrides the nfc of all inherited level numbers. If
  * the original nfc of a level number is msonfcArabicLZ, it is preserved. Otherwise, the nfc of
  * the level number is overridden by msonfcArabic.
  *
  * @return the fLegal field value.
  */
 @Internal
 public boolean isFLegal() {
   return fLegal.isSet(field_3_info);
 }
 /** @return the fVertMerge field value. */
 public boolean isFVertMerge() {
   return fVertMerge.isSet(field_1_rgf);
 }
 /** @return the fBackward field value. */
 public boolean isFBackward() {
   return fBackward.isSet(field_1_rgf);
 }
 /** @return the fMerged field value. */
 public boolean isFMerged() {
   return fMerged.isSet(field_1_rgf);
 }
示例#10
0
 public boolean isSemiVolatile() {
   return semiVolatile.isSet(_options);
 }
 /** @return the text locked field value. */
 public boolean isTextLocked() {
   return textLocked.isSet(field_1_options);
 }
示例#12
0
 public boolean isCalcOnLoad() {
   return calcOnLoad.isSet(field_5_options);
 }
示例#13
0
 public boolean isAlwaysCalc() {
   return alwaysCalc.isSet(field_5_options);
 }
示例#14
0
 public boolean isSharedFormula() {
   return sharedFormula.isSet(field_5_options);
 }
示例#15
0
 /** @return lastcol relative or not */
 public final boolean isLastColRelative() {
   return colRelative.isSet(field_4_last_column);
 }
示例#16
0
 /** @return isrelative first column to relative or not */
 public final boolean isFirstColRelative() {
   return colRelative.isSet(field_3_first_column);
 }
 /** @return the fFirstMerged field value. */
 public boolean isFFirstMerged() {
   return fFirstMerged.isSet(field_1_rgf);
 }
示例#18
0
 public boolean isOptimizedIf() {
   return optiIf.isSet(_options);
 }
 /** @return the fVertical field value. */
 public boolean isFVertical() {
   return fVertical.isSet(field_1_rgf);
 }
示例#20
0
 public boolean isOptimizedChoose() {
   return optiChoose.isSet(_options);
 }
 /** @return the fRotateFont field value. */
 public boolean isFRotateFont() {
   return fRotateFont.isSet(field_1_rgf);
 }
示例#22
0
 public boolean isSum() {
   return optiSum.isSet(_options);
 }
 /** @return the fVertRestart field value. */
 public boolean isFVertRestart() {
   return fVertRestart.isSet(field_1_rgf);
 }
示例#24
0
 public boolean isSkip() {
   return optiSkip.isSet(_options);
 }
示例#25
0
 /**
  * A bit that specifies whether the number sequence of the level does not restart after a level is
  * encountered that is more significant than the level to which this LVLF corresponds
  *
  * @return the fNoRestart field value.
  */
 @Internal
 public boolean isFNoRestart() {
   return fNoRestart.isSet(field_3_info);
 }
示例#26
0
 // lets hope no one uses this anymore
 private boolean isBaxcel() {
   return baxcel.isSet(_options);
 }
示例#27
0
 /**
  * A bit that specifies whether the nfc of this LVLF structure was previously a temporary value
  * used for bidirectional compatibility that was converted into a standard MSONFC
  *
  * @return the fConverted field value.
  */
 @Internal
 public boolean isFConverted() {
   return fConverted.isSet(field_3_info);
 }
示例#28
0
 public boolean isSpace() {
   return space.isSet(_options);
 }
示例#29
0
 /**
  * A bit that specifies whether the format of the level is tentative
  *
  * @return the fTentative field value.
  */
 @Internal
 public boolean isFTentative() {
   return fTentative.isSet(field_3_info);
 }
示例#30
0
 private boolean isRichText() {
   return richText.isSet(getOptionFlags());
 }