1 \section{\class{wxGridTableBase
}}\label{wxgridtablebase
}
5 \wxheading{Derived from
}
7 \helpref{wxObject
}{wxobject
}
9 \wxheading{Data structures
}
11 \latexignore{\rtfignore{\wxheading{Members
}}}
13 \membersection{wxGridTableBase::wxGridTableBase
}\label{wxgridtablebasewxgridtablebase
}
15 \func{}{wxGridTableBase
}{\void}
17 \membersection{wxGridTableBase::
\destruct{wxGridTableBase
}}\label{wxgridtablebasedtor
}
19 \func{}{\destruct{wxGridTableBase
}}{\void}
21 \membersection{wxGridTableBase::GetNumberRows
}\label{wxgridtablebasegetnumberrows
}
23 \func{int
}{GetNumberRows
}{\void}
25 You must override these functions in a derived table class.
27 \membersection{wxGridTableBase::GetNumberCols
}\label{wxgridtablebasegetnumbercols
}
29 \func{int
}{GetNumberCols
}{\void}
32 \membersection{wxGridTableBase::IsEmptyCell
}\label{wxgridtablebaseisemptycell
}
34 \func{bool
}{IsEmptyCell
}{\param{int
}{row
},
\param{int
}{col
}}
37 \membersection{wxGridTableBase::GetValue
}\label{wxgridtablebasegetvalue
}
39 \func{wxString
}{GetValue
}{\param{int
}{row
},
\param{int
}{col
}}
42 \membersection{wxGridTableBase::SetValue
}\label{wxgridtablebasesetvalue
}
44 \func{void
}{SetValue
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{value
}}
47 \membersection{wxGridTableBase::GetTypeName
}\label{wxgridtablebasegettypename
}
49 \func{wxString
}{GetTypeName
}{\param{int
}{row
},
\param{int
}{col
}}
51 Data type determination and value access.
53 \membersection{wxGridTableBase::CanGetValueAs
}\label{wxgridtablebasecangetvalueas
}
55 \func{bool
}{CanGetValueAs
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
}}
58 \membersection{wxGridTableBase::CanSetValueAs
}\label{wxgridtablebasecansetvalueas
}
60 \func{bool
}{CanSetValueAs
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
}}
63 \membersection{wxGridTableBase::GetValueAsLong
}\label{wxgridtablebasegetvalueaslong
}
65 \func{long
}{GetValueAsLong
}{\param{int
}{row
},
\param{int
}{col
}}
68 \membersection{wxGridTableBase::GetValueAsDouble
}\label{wxgridtablebasegetvalueasdouble
}
70 \func{double
}{GetValueAsDouble
}{\param{int
}{row
},
\param{int
}{col
}}
73 \membersection{wxGridTableBase::GetValueAsBool
}\label{wxgridtablebasegetvalueasbool
}
75 \func{bool
}{GetValueAsBool
}{\param{int
}{row
},
\param{int
}{col
}}
78 \membersection{wxGridTableBase::SetValueAsLong
}\label{wxgridtablebasesetvalueaslong
}
80 \func{void
}{SetValueAsLong
}{\param{int
}{row
},
\param{int
}{col
},
\param{long
}{value
}}
83 \membersection{wxGridTableBase::SetValueAsDouble
}\label{wxgridtablebasesetvalueasdouble
}
85 \func{void
}{SetValueAsDouble
}{\param{int
}{row
},
\param{int
}{col
},
\param{double
}{value
}}
88 \membersection{wxGridTableBase::SetValueAsBool
}\label{wxgridtablebasesetvalueasbool
}
90 \func{void
}{SetValueAsBool
}{\param{int
}{row
},
\param{int
}{col
},
\param{bool
}{value
}}
93 \membersection{wxGridTableBase::GetValueAsCustom
}\label{wxgridtablebasegetvalueascustom
}
95 \func{void*
}{GetValueAsCustom
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
}}
97 For user defined types
100 \membersection{wxGridTableBase::SetValueAsCustom
}\label{wxgridtablebasesetvalueascustom
}
102 \func{void
}{SetValueAsCustom
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
},
\param{void*
}{value
}}
105 \membersection{wxGridTableBase::SetView
}\label{wxgridtablebasesetview
}
107 \func{void
}{SetView
}{\param{wxGrid*
}{grid
}}
109 Overriding these is optional
112 \membersection{wxGridTableBase::GetView
}\label{wxgridtablebasegetview
}
114 \constfunc{wxGrid *
}{GetView
}{\void}
117 \membersection{wxGridTableBase::Clear
}\label{wxgridtablebaseclear
}
119 \func{void
}{Clear
}{\void}
122 \membersection{wxGridTableBase::InsertRows
}\label{wxgridtablebaseinsertrows
}
124 \func{bool
}{InsertRows
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numRows =
1}}
127 \membersection{wxGridTableBase::AppendRows
}\label{wxgridtablebaseappendrows
}
129 \func{bool
}{AppendRows
}{\param{size
\_t }{numRows =
1}}
132 \membersection{wxGridTableBase::DeleteRows
}\label{wxgridtablebasedeleterows
}
134 \func{bool
}{DeleteRows
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numRows =
1}}
137 \membersection{wxGridTableBase::InsertCols
}\label{wxgridtablebaseinsertcols
}
139 \func{bool
}{InsertCols
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numCols =
1}}
142 \membersection{wxGridTableBase::AppendCols
}\label{wxgridtablebaseappendcols
}
144 \func{bool
}{AppendCols
}{\param{size
\_t }{numCols =
1}}
147 \membersection{wxGridTableBase::DeleteCols
}\label{wxgridtablebasedeletecols
}
149 \func{bool
}{DeleteCols
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numCols =
1}}
152 \membersection{wxGridTableBase::GetRowLabelValue
}\label{wxgridtablebasegetrowlabelvalue
}
154 \func{wxString
}{GetRowLabelValue
}{\param{int
}{row
}}
157 \membersection{wxGridTableBase::GetColLabelValue
}\label{wxgridtablebasegetcollabelvalue
}
159 \func{wxString
}{GetColLabelValue
}{\param{int
}{col
}}
162 \membersection{wxGridTableBase::SetRowLabelValue
}\label{wxgridtablebasesetrowlabelvalue
}
164 \func{void
}{SetRowLabelValue
}{\param{int
}{WXUNUSED(row)
},
\param{const
}{wxString\&
}}
167 \membersection{wxGridTableBase::SetColLabelValue
}\label{wxgridtablebasesetcollabelvalue
}
169 \func{void
}{SetColLabelValue
}{\param{int
}{WXUNUSED(col)
},
\param{const
}{wxString\&
}}
172 \membersection{wxGridTableBase::SetAttrProvider
}\label{wxgridtablebasesetattrprovider
}
174 \func{void
}{SetAttrProvider
}{\param{wxGridCellAttrProvider*
}{attrProvider
}}
177 give us the attr provider to use - we take ownership of the pointer
180 \membersection{wxGridTableBase::GetAttrProvider
}\label{wxgridtablebasegetattrprovider
}
182 \constfunc{wxGridCellAttrProvider*
}{GetAttrProvider
}{\void}
184 get the currently used attr provider (may be NULL)
187 \membersection{wxGridTableBase::CanHaveAttributes
}\label{wxgridtablebasecanhaveattributes
}
189 \func{bool
}{CanHaveAttributes
}{\void}
191 Does this table allow attributes? Default implementation creates
192 a wxGridCellAttrProvider if necessary.
195 \membersection{wxGridTableBase::UpdateAttrRows
}\label{wxgridtablebaseupdateattrrows
}
197 \func{void
}{UpdateAttrRows
}{\param{size
\_t }{pos
},
\param{int
}{numRows
}}
199 change row/col number in attribute if needed
202 \membersection{wxGridTableBase::UpdateAttrCols
}\label{wxgridtablebaseupdateattrcols
}
204 \func{void
}{UpdateAttrCols
}{\param{size
\_t }{pos
},
\param{int
}{numCols
}}
207 \membersection{wxGridTableBase::GetAttr
}\label{wxgridtablebasegetattr
}
209 \func{wxGridCellAttr*
}{GetAttr
}{\param{int
}{row
},
\param{int
}{col
}}
211 by default forwarded to wxGridCellAttrProvider if any. May be
212 overridden to handle attributes directly in the table.
215 \membersection{wxGridTableBase::SetAttr
}\label{wxgridtablebasesetattr
}
217 \func{void
}{SetAttr
}{\param{wxGridCellAttr*
}{attr
},
\param{int
}{row
},
\param{int
}{col
}}
219 these functions take ownership of the pointer
222 \membersection{wxGridTableBase::SetRowAttr
}\label{wxgridtablebasesetrowattr
}
224 \func{void
}{SetRowAttr
}{\param{wxGridCellAttr*
}{attr
},
\param{int
}{row
}}
227 \membersection{wxGridTableBase::SetColAttr
}\label{wxgridtablebasesetcolattr
}
229 \func{void
}{SetColAttr
}{\param{wxGridCellAttr*
}{attr
},
\param{int
}{col
}}