.\" This is a wxWidgets manpage page generated from the XML docs .TH wxGridTableBase 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxGridTableBase \- .SH DESCRIPTION Grid table classes. .SH "PARENTS" wxObject .SH "INCLUDE FILES" wx/grid.h .SH MEMBERS .SS wxGridTableBase () .SS ~wxGridTableBase () .SS int GetNumberRows () You must override these functions in a derived table class. .SS int GetNumberCols () .SS bool IsEmptyCell (int rowint col) .SS wxString GetValue (int rowint col) .SS void SetValue (int rowint colconst wxString& value) .SS wxString GetTypeName (int rowint col) Data type determination and value access. .SS bool CanGetValueAs (int rowint colconst wxString& typeName) .SS bool CanSetValueAs (int rowint colconst wxString& typeName) .SS long GetValueAsLong (int rowint col) .SS double GetValueAsDouble (int rowint col) .SS bool GetValueAsBool (int rowint col) .SS void SetValueAsLong (int rowint collong value) .SS void SetValueAsDouble (int rowint coldouble value) .SS void SetValueAsBool (int rowint colbool value) .SS void* GetValueAsCustom (int rowint colconst wxString& typeName) For user defined types .SS void SetValueAsCustom (int rowint colconst wxString& typeNamevoid* value) .SS void SetView (wxGrid* grid) Overriding these is optional .SS wxGrid * GetView () .SS void Clear () .SS bool InsertRows (size_t pos = 0size_t numRows = 1) .SS bool AppendRows (size_t numRows = 1) .SS bool DeleteRows (size_t pos = 0size_t numRows = 1) .SS bool InsertCols (size_t pos = 0size_t numCols = 1) .SS bool AppendCols (size_t numCols = 1) .SS bool DeleteCols (size_t pos = 0size_t numCols = 1) .SS wxString GetRowLabelValue (int row) .SS wxString GetColLabelValue (int col) .SS void SetRowLabelValue (int WXUNUSED(row)const wxString&) .SS void SetColLabelValue (int WXUNUSED(col)const wxString&) .SS void SetAttrProvider (wxGridCellAttrProvider* attrProvider) Attribute handling give us the attr provider to use - we take ownership of the pointer .SS wxGridCellAttrProvider* GetAttrProvider () get the currently used attr provider (may be NULL) .SS bool CanHaveAttributes () Does this table allow attributes? Default implementation creates a wxGridCellAttrProvider if necessary. .SS void UpdateAttrRows (size_t posint numRows) change row/col number in attribute if needed .SS void UpdateAttrCols (size_t posint numCols) .SS wxGridCellAttr* GetAttr (int rowint col) by default forwarded to wxGridCellAttrProvider if any. May be overridden to handle attributes directly in the table. .SS void SetAttr (wxGridCellAttr* attrint rowint col) these functions take ownership of the pointer .SS void SetRowAttr (wxGridCellAttr* attrint row) .SS void SetColAttr (wxGridCellAttr* attrint col) .SH "SEE ALSO" wxObject .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.