kspread

KSpread::Binding Class Reference

Abstracts read-only access to the ValueStorage. More...

#include <Binding.h>

List of all members.

Public Member Functions

 Binding (const Binding &other)
 Binding (const Region &region)
 Binding ()
 ~Binding ()
bool isEmpty () const
QAbstractItemModelmodel () const
bool operator< (const Binding &other) const
void operator= (const Binding &other)
bool operator== (const Binding &other) const
const Regionregion () const
void setRegion (const Region &region)
void update (const Region &region)

Detailed Description

Abstracts read-only access to the ValueStorage.

Useful for KChart (or other apps, that want read-only access to KSpread's data).

If a cell in the region is updated, the BindingManager informs this Binding, which in turn informs the model it holds.

Definition at line 41 of file Binding.h.


Constructor & Destructor Documentation

Binding::Binding (  ) 

Definition at line 45 of file Binding.cpp.

Binding::Binding ( const Region region  )  [explicit]

Definition at line 50 of file Binding.cpp.

Binding::Binding ( const Binding other  ) 

Definition at line 58 of file Binding.cpp.

Binding::~Binding (  ) 

Definition at line 63 of file Binding.cpp.


Member Function Documentation

bool Binding::isEmpty (  )  const

Definition at line 67 of file Binding.cpp.

QAbstractItemModel * Binding::model (  )  const

Definition at line 72 of file Binding.cpp.

bool Binding::operator< ( const Binding other  )  const

Definition at line 120 of file Binding.cpp.

void Binding::operator= ( const Binding other  ) 

Definition at line 110 of file Binding.cpp.

bool Binding::operator== ( const Binding other  )  const

Definition at line 115 of file Binding.cpp.

const KSpread::Region & Binding::region (  )  const

Definition at line 77 of file Binding.cpp.

void Binding::setRegion ( const Region region  ) 

Definition at line 82 of file Binding.cpp.

void Binding::update ( const Region region  ) 

Definition at line 87 of file Binding.cpp.


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