KSpreadConditions Class Reference
Manages a set of conditions for a cell. More...
#include <kspread_condition.h>
Collaboration diagram for KSpreadConditions:

Public Member Functions | |
KSpreadConditions (const KSpreadCell *ownerCell) | |
bool | currentCondition (KSpreadConditional &condition) |
QValueList< KSpreadConditional > | conditionList () const |
void | setConditionList (const QValueList< KSpreadConditional > &list) |
QDomElement | saveConditions (QDomDocument &doc) const |
void | loadConditions (const QDomElement &element) |
void | loadOasisConditions (const QDomElement &element) |
void | saveOasisConditions (KoGenStyle ¤tCellStyle) |
KSpreadStyle * | matchedStyle () const |
void | checkMatches () |
Detailed Description
Manages a set of conditions for a cell.
Definition at line 65 of file kspread_condition.h.
Constructor & Destructor Documentation
|
Constructor. There is no default constructor - you must use this one with the owner cell as a parameter Definition at line 77 of file kspread_condition.cc. References KSpreadConditions(). Referenced by KSpreadConditions(). |
Member Function Documentation
|
Use this function to see what conditions actually apply currently.
Definition at line 98 of file kspread_condition.cc. References KSpreadCell::text(), and KSpreadCell::value(). |
|
Retrieve the current list of conditions we're checking.
Definition at line 233 of file kspread_condition.cc. |
|
Replace the current list of conditions with this new one.
Definition at line 238 of file kspread_condition.cc. |
|
Saves the conditions to a DOM tree structure.
Definition at line 359 of file kspread_condition.cc. References KSpreadConditional::colorcond, KSpreadConditional::cond, KSpreadConditional::fontcond, KSpreadConditional::strVal1, KSpreadConditional::strVal2, KSpreadConditional::styleName, KSpreadConditional::val1, and KSpreadConditional::val2. |
|
Takes a parsed DOM element and recreates the conditions structure out of it.
Definition at line 565 of file kspread_condition.cc. References KSpreadConditional::colorcond, KSpreadConditional::cond, KSpreadConditional::fontcond, KSpreadCell::sheet(), KSpreadConditional::strVal1, KSpreadConditional::strVal2, KSpreadConditional::style, KSpreadConditional::styleName, KSpreadConditional::val1, and KSpreadConditional::val2. |
|
returns the style that matches first (or NULL if no condition matches)
Definition at line 118 of file kspread_condition.h. |
The documentation for this class was generated from the following files: