kspread

KSpread::Conditions Class Reference

#include <kspread_condition.h>

List of all members.


Detailed Description

Manages a set of conditions for a cell.

Definition at line 74 of file kspread_condition.h.


Public Member Functions

 Conditions (const Cell *ownerCell)
bool currentCondition (Conditional &condition)
QValueList< ConditionalconditionList () const
void setConditionList (const QValueList< Conditional > &list)
QDomElement saveConditions (QDomDocument &doc) const
void loadConditions (const QDomElement &element)
void loadOasisConditions (const QDomElement &element)
void saveOasisConditions (KoGenStyle &currentCellStyle)
StylematchedStyle () const
void checkMatches ()
bool operator== (const Conditions &other) const
bool operator!= (const Conditions &other) const

Constructor & Destructor Documentation

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.cc.


Member Function Documentation

bool Conditions::currentCondition ( Conditional condition  ) 

Use this function to see what conditions actually apply currently.

Parameters:
condition a 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.cc.

QValueList< Conditional > Conditions::conditionList (  )  const

Retrieve the current list of conditions we're checking.

Definition at line 254 of file kspread_condition.cc.

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

Replace the current list of conditions with this new one.

Definition at line 259 of file kspread_condition.cc.

QDomElement Conditions::saveConditions ( QDomDocument &  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.cc.

void Conditions::loadConditions ( const QDomElement &  element  ) 

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

Definition at line 585 of file kspread_condition.cc.

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.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys