try {
ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);
} catch (EvaluationException e) {
- if (false) {
- // Note - it is more usual to propagate error codes straight to the result like this:
- return e.getErrorEval();
- // but logical functions behave a little differently
- }
- // this will usually cause a 'FALSE' result except for ISNONTEXT()
+ // Note - it is more usual to propagate error codes straight to the result like this:
+ // but logical functions behave a little differently
+ // return e.getErrorEval();
+
+ // this will usually cause a 'FALSE' result except for ISNONTEXT()
ve = e.getErrorEval();
}
return BoolEval.valueOf(evaluate(ve));
}
}
- if ( true )
+ String text = new Range( chpx.getStart(), chpx.getEnd(),
+ _doc.getOverallRange() )
{
- String text = new Range( chpx.getStart(), chpx.getEnd(),
- _doc.getOverallRange() )
+ public String toString()
{
- public String toString()
- {
- return "CHPX range (" + super.toString() + ")";
- }
- }.text();
- StringBuilder stringBuilder = new StringBuilder();
- for ( char c : text.toCharArray() )
- {
- if ( c < 30 )
- stringBuilder
- .append( "\\0x" + Integer.toHexString( c ) );
- else
- stringBuilder.append( c );
+ return "CHPX range (" + super.toString() + ")";
}
- System.out.println( stringBuilder );
+ }.text();
+ StringBuilder stringBuilder = new StringBuilder();
+ for ( char c : text.toCharArray() )
+ {
+ if ( c < 30 )
+ stringBuilder
+ .append( "\\0x" + Integer.toHexString( c ) );
+ else
+ stringBuilder.append( c );
}
+ System.out.println( stringBuilder );
}
}
System.out.println( paragraph.getProps() );
}
- if ( true )
- {
- SprmIterator sprmIt = new SprmIterator( papx.getGrpprl(), 2 );
- dumpSprms( sprmIt, "\t" );
- }
+ SprmIterator sprmIt = new SprmIterator( papx.getGrpprl(), 2 );
+ dumpSprms( sprmIt, "\t" );
}
}