interface XSheetCondition in module com::sun::star::sheet::

(Global Index)

Syntax

interface XSheetCondition : com::sun::star::uno::XInterface ;

Description

represents a condition in conditional formats or validation.

See also

TableValidation

See also

TableConditionalEntry

Method Summary

getOperator returns the operator in the condition.

setOperator sets the operator in the condition.

getFormula1 returns either the comparison value, which is used in the condition, or the first value if two values are needed for the operator.

setFormula1 sets either the comparison value, which is used in the condition, or the first value if two values are needed for the operator.

getFormula2 if two values are needed for the operator, this method returns the second one.

setFormula2 if two values are needed for the operator, this method sets the second one.

getSourcePosition returns the position in the document which is used as a base for relative references in the formulas.

setSourcePosition sets the position in the document which is used as a base for relative references in the formulas.

Known Services Which Export this Interface

com::sun::star::sheet::TableValidation

com::sun::star::sheet::TableConditionalEntry

Method Details



getOperator

Syntax

com::sun::star::sheet::ConditionOperator getOperator ();

Description

returns the operator in the condition.


setOperator

Syntax

void setOperator (
com::sun::star::sheet::ConditionOperator nOperator );

Description

sets the operator in the condition.


getFormula1

Syntax

string getFormula1 ();

Description

returns either the comparison value, which is used in the condition, or the first value if two values are needed for the operator.

This can be a formula, a numeric constant, or a string constant in quotes.


setFormula1

Syntax

void setFormula1 (
string aFormula1 );

Description

sets either the comparison value, which is used in the condition, or the first value if two values are needed for the operator.

This can be a formula, a numeric constant, or a string constant in quotes.


getFormula2

Syntax

string getFormula2 ();

Description

if two values are needed for the operator, this method returns the second one.

this can be a formula, a numeric constant, or a string constant in quotes. The operators ConditionOperator::BETWEEN and ConditionOperator::NOT_BETWEEN need two values each.


setFormula2

Syntax

void setFormula2 (
string aFormula2 );

Description

if two values are needed for the operator, this method sets the second one.

This can be a formula, a numeric constant, or a string constant in quotes. The operators ConditionOperator::BETWEEN and ConditionOperator::NOT_BETWEEN need two values each.


getSourcePosition

Syntax

com::sun::star::table::CellAddress getSourcePosition ();

Description

returns the position in the document which is used as a base for relative references in the formulas.


setSourcePosition

Syntax

void setSourcePosition (
com::sun::star::table::CellAddress aSourcePosition );

Description

sets the position in the document which is used as a base for relative references in the formulas.

Top of Page