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 72 of file kspread_condition.h.


Public Member Functions

 Conditions (const Cell *ownerCell)
virtual ~Conditions ()
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 ()

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 79 of file kspread_condition.cc.


Member Function Documentation

QValueList< Conditional > Conditions::conditionList  )  const
 

Retrieve the current list of conditions we're checking.

Definition at line 237 of file kspread_condition.cc.

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 100 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 569 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 125 of file kspread_condition.h.

QDomElement Conditions::saveConditions QDomDocument &  doc  )  const
 

Saves the conditions to a DOM tree structure.

Returns:
the DOM element for the conditions.

Definition at line 363 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 242 of file kspread_condition.cc.


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