~ubuntu-branches/ubuntu/oneiric/koffice/oneiric-updates

« back to all changes in this revision

Viewing changes to kspread/BindingModel.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef KSPREAD_BINDING_MODEL
22
22
#define KSPREAD_BINDING_MODEL
23
23
 
 
24
#include "Region.h"
 
25
 
24
26
#include <KoChartModel.h>
25
 
#include <KoTableInterface.h>
26
27
 
27
28
#include <QAbstractTableModel>
28
29
 
30
31
{
31
32
class Binding;
32
33
 
33
 
class BindingModel : public QAbstractTableModel, public KoChart::ChartModel, public KoTable::ModelExtension
 
34
/**
 
35
 * A model for a cell range acting as data source.
 
36
 */
 
37
class BindingModel : public QAbstractTableModel, public KoChart::ChartModel
34
38
{
35
39
    Q_OBJECT
36
 
    Q_INTERFACES(KoChart::ChartModel KoTable::ModelExtension)
 
40
    Q_INTERFACES(KoChart::ChartModel)
37
41
public:
38
 
    BindingModel(Binding* binding, QObject *parent = 0);
 
42
    explicit BindingModel(Binding* binding, QObject *parent = 0);
39
43
 
40
44
    // QAbstractTableModel interface
41
45
    virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
48
52
    virtual bool setCellRegion(const QString& regionName);
49
53
    virtual bool isCellRegionValid(const QString& regionName) const;
50
54
 
51
 
    // ModelExtension interface
52
 
    virtual QString regionAddress() const;
53
 
 
54
55
    const Region& region() const;
55
56
    void setRegion(const Region& region);
56
57