~ubuntu-branches/ubuntu/breezy/libwpd/breezy

« back to all changes in this revision

Viewing changes to src/lib/WPXTable.h

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2004-08-10 00:37:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040810003747-5i7g92h2v88z70zo
Tags: 0.7.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
private:
66
66
        vector< vector<WPXTableCell *> * > m_tableRows;
67
67
};
 
68
 
 
69
class WPXTableList
 
70
{
 
71
public:
 
72
        WPXTableList();
 
73
        virtual ~WPXTableList();
 
74
        void addRef() { refCount++; }
 
75
        void unRef() { refCount--; if (refCount == 0) delete this; }
 
76
        WPXTable * operator[](size_t i) { return m_tableList[i]; }
 
77
        void add(WPXTable *table) { m_tableList.push_back(table); }
 
78
        size_t size() const { return m_tableList.size(); }
 
79
 
 
80
private:
 
81
        vector<WPXTable *> m_tableList; 
 
82
        int refCount;
 
83
};
68
84
#endif /* _WPXTABLE_H */