KSpread::Conditions Class Reference

#include <kspread_condition.h>

Public Member Functions

 Conditions (const Cell *ownerCell)
 
bool currentCondition (Conditional &condition)
 
TQValueList< Conditional > conditionList () const
 
void setConditionList (const TQValueList< Conditional > &list)
 
TQDomElement saveConditions (TQDomDocument &doc) const
 
void loadConditions (const TQDomElement &element)
 
void loadOasisConditions (const TQDomElement &element)
 
void saveOasisConditions (KoGenStyle &currentCellStyle)
 
Style * matchedStyle () const
 
void checkMatches ()
 
bool operator== (const Conditions &other) const
 
bool operator!= (const Conditions &other) const
 

Detailed Description

Manages a set of conditions for a cell.

Definition at line 74 of file kspread_condition.h.

Constructor & Destructor Documentation

◆ Conditions()

Conditions::Conditions ( const Cell *  ownerCell)

Constructor.

There is no default constructor - you must use this one with the owner cell as a parameter

Definition at line 96 of file kspread_condition.cpp.

◆ ~Conditions()

Conditions::~Conditions ( )
virtual

Definition at line 102 of file kspread_condition.cpp.

Member Function Documentation

◆ checkMatches()

void Conditions::checkMatches ( )

Definition at line 107 of file kspread_condition.cpp.

◆ conditionList()

TQValueList< Conditional > Conditions::conditionList ( ) const

Retrieve the current list of conditions we're checking.

Definition at line 254 of file kspread_condition.cpp.

◆ currentCondition()

bool Conditions::currentCondition ( Conditional &  condition)

Use this function to see what conditions actually apply currently.

Parameters
conditiona reference to a condition that will be set to the matching condition. If none of the conditions are true then this parameter is undefined on exit (check the return value).
Returns
true if one of the conditions is true, false if not.

Definition at line 117 of file kspread_condition.cpp.

◆ loadConditions()

void Conditions::loadConditions ( const TQDomElement &  element)

Takes a parsed DOM element and recreates the conditions structure out of it.

Definition at line 585 of file kspread_condition.cpp.

◆ loadOasisConditions()

void Conditions::loadOasisConditions ( const TQDomElement &  element)

Definition at line 440 of file kspread_condition.cpp.

◆ matchedStyle()

Style * KSpread::Conditions::matchedStyle ( ) const
inline

returns the style that matches first (or NULL if no condition matches)

Definition at line 127 of file kspread_condition.h.

◆ operator!=()

bool KSpread::Conditions::operator!= ( const Conditions &  other) const
inline

Definition at line 132 of file kspread_condition.h.

◆ operator==()

bool Conditions::operator== ( const Conditions &  other) const

Definition at line 650 of file kspread_condition.cpp.

◆ saveConditions()

TQDomElement Conditions::saveConditions ( TQDomDocument &  doc) const

Saves the conditions to a DOM tree structure.

Returns
the DOM element for the conditions.

Definition at line 380 of file kspread_condition.cpp.

◆ saveOasisConditions()

void Conditions::saveOasisConditions ( KoGenStyle &  currentCellStyle)

Definition at line 271 of file kspread_condition.cpp.

◆ setConditionList()

void Conditions::setConditionList ( const TQValueList< Conditional > &  list)

Replace the current list of conditions with this new one.

Definition at line 259 of file kspread_condition.cpp.


The documentation for this class was generated from the following files: