1 \section{\class{wxGridTableBase
}}\label{wxgridtablebase
}
6 \wxheading{Derived from
}
8 \helpref{wxObject
}{wxobject
}
10 \wxheading{Data structures
}
12 \latexignore{\rtfignore{\wxheading{Members
}}}
15 \membersection{wxGridTableBase::wxGridTableBase
}\label{wxgridtablebasewxgridtablebase
}
17 \func{}{wxGridTableBase
}{\void}
20 \membersection{wxGridTableBase::
\destruct{wxGridTableBase
}}\label{wxgridtablebasedtor
}
22 \func{}{\destruct{wxGridTableBase
}}{\void}
25 \membersection{wxGridTableBase::GetNumberRows
}\label{wxgridtablebasegetnumberrows
}
27 \func{int
}{GetNumberRows
}{\void}
29 You must override these functions in a derived table class
32 \membersection{wxGridTableBase::GetNumberCols
}\label{wxgridtablebasegetnumbercols
}
34 \func{int
}{GetNumberCols
}{\void}
37 \membersection{wxGridTableBase::IsEmptyCell
}\label{wxgridtablebaseisemptycell
}
39 \func{bool
}{IsEmptyCell
}{\param{int
}{row
},
\param{int
}{col
}}
42 \membersection{wxGridTableBase::GetValue
}\label{wxgridtablebasegetvalue
}
44 \func{wxString
}{GetValue
}{\param{int
}{row
},
\param{int
}{col
}}
47 \membersection{wxGridTableBase::SetValue
}\label{wxgridtablebasesetvalue
}
49 \func{void
}{SetValue
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{value
}}
52 \membersection{wxGridTableBase::GetTypeName
}\label{wxgridtablebasegettypename
}
54 \func{wxString
}{GetTypeName
}{\param{int
}{row
},
\param{int
}{col
}}
56 Data type determination and value access
59 \membersection{wxGridTableBase::CanGetValueAs
}\label{wxgridtablebasecangetvalueas
}
61 \func{bool
}{CanGetValueAs
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
}}
64 \membersection{wxGridTableBase::CanSetValueAs
}\label{wxgridtablebasecansetvalueas
}
66 \func{bool
}{CanSetValueAs
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
}}
69 \membersection{wxGridTableBase::GetValueAsLong
}\label{wxgridtablebasegetvalueaslong
}
71 \func{long
}{GetValueAsLong
}{\param{int
}{row
},
\param{int
}{col
}}
74 \membersection{wxGridTableBase::GetValueAsDouble
}\label{wxgridtablebasegetvalueasdouble
}
76 \func{double
}{GetValueAsDouble
}{\param{int
}{row
},
\param{int
}{col
}}
79 \membersection{wxGridTableBase::GetValueAsBool
}\label{wxgridtablebasegetvalueasbool
}
81 \func{bool
}{GetValueAsBool
}{\param{int
}{row
},
\param{int
}{col
}}
84 \membersection{wxGridTableBase::SetValueAsLong
}\label{wxgridtablebasesetvalueaslong
}
86 \func{void
}{SetValueAsLong
}{\param{int
}{row
},
\param{int
}{col
},
\param{long
}{value
}}
89 \membersection{wxGridTableBase::SetValueAsDouble
}\label{wxgridtablebasesetvalueasdouble
}
91 \func{void
}{SetValueAsDouble
}{\param{int
}{row
},
\param{int
}{col
},
\param{double
}{value
}}
94 \membersection{wxGridTableBase::SetValueAsBool
}\label{wxgridtablebasesetvalueasbool
}
96 \func{void
}{SetValueAsBool
}{\param{int
}{row
},
\param{int
}{col
},
\param{bool
}{value
}}
99 \membersection{wxGridTableBase::GetValueAsCustom
}\label{wxgridtablebasegetvalueascustom
}
101 \func{void*
}{GetValueAsCustom
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
}}
103 For user defined types
106 \membersection{wxGridTableBase::SetValueAsCustom
}\label{wxgridtablebasesetvalueascustom
}
108 \func{void
}{SetValueAsCustom
}{\param{int
}{row
},
\param{int
}{col
},
\param{const wxString\&
}{typeName
},
\param{void*
}{value
}}
111 \membersection{wxGridTableBase::SetView
}\label{wxgridtablebasesetview
}
113 \func{void
}{SetView
}{\param{wxGrid*
}{grid
}}
115 Overriding these is optional
118 \membersection{wxGridTableBase::GetView
}\label{wxgridtablebasegetview
}
120 \constfunc{wxGrid *
}{GetView
}{\void}
123 \membersection{wxGridTableBase::Clear
}\label{wxgridtablebaseclear
}
125 \func{void
}{Clear
}{\void}
128 \membersection{wxGridTableBase::InsertRows
}\label{wxgridtablebaseinsertrows
}
130 \func{bool
}{InsertRows
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numRows =
1}}
133 \membersection{wxGridTableBase::AppendRows
}\label{wxgridtablebaseappendrows
}
135 \func{bool
}{AppendRows
}{\param{size
\_t }{numRows =
1}}
138 \membersection{wxGridTableBase::DeleteRows
}\label{wxgridtablebasedeleterows
}
140 \func{bool
}{DeleteRows
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numRows =
1}}
143 \membersection{wxGridTableBase::InsertCols
}\label{wxgridtablebaseinsertcols
}
145 \func{bool
}{InsertCols
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numCols =
1}}
148 \membersection{wxGridTableBase::AppendCols
}\label{wxgridtablebaseappendcols
}
150 \func{bool
}{AppendCols
}{\param{size
\_t }{numCols =
1}}
153 \membersection{wxGridTableBase::DeleteCols
}\label{wxgridtablebasedeletecols
}
155 \func{bool
}{DeleteCols
}{\param{size
\_t }{pos =
0},
\param{size
\_t }{numCols =
1}}
158 \membersection{wxGridTableBase::GetRowLabelValue
}\label{wxgridtablebasegetrowlabelvalue
}
160 \func{wxString
}{GetRowLabelValue
}{\param{int
}{row
}}
163 \membersection{wxGridTableBase::GetColLabelValue
}\label{wxgridtablebasegetcollabelvalue
}
165 \func{wxString
}{GetColLabelValue
}{\param{int
}{col
}}
168 \membersection{wxGridTableBase::SetRowLabelValue
}\label{wxgridtablebasesetrowlabelvalue
}
170 \func{void
}{SetRowLabelValue
}{\param{int
}{WXUNUSED(row)
},
\param{const
}{wxString\&
}}
173 \membersection{wxGridTableBase::SetColLabelValue
}\label{wxgridtablebasesetcollabelvalue
}
175 \func{void
}{SetColLabelValue
}{\param{int
}{WXUNUSED(col)
},
\param{const
}{wxString\&
}}
178 \membersection{wxGridTableBase::SetAttrProvider
}\label{wxgridtablebasesetattrprovider
}
180 \func{void
}{SetAttrProvider
}{\param{wxGridCellAttrProvider*
}{attrProvider
}}
183 give us the attr provider to use - we take ownership of the pointer
186 \membersection{wxGridTableBase::GetAttrProvider
}\label{wxgridtablebasegetattrprovider
}
188 \constfunc{wxGridCellAttrProvider*
}{GetAttrProvider
}{\void}
190 get the currently used attr provider (may be NULL)
193 \membersection{wxGridTableBase::CanHaveAttributes
}\label{wxgridtablebasecanhaveattributes
}
195 \func{bool
}{CanHaveAttributes
}{\void}
197 Does this table allow attributes? Default implementation creates
198 a wxGridCellAttrProvider if necessary.
201 \membersection{wxGridTableBase::UpdateAttrRows
}\label{wxgridtablebaseupdateattrrows
}
203 \func{void
}{UpdateAttrRows
}{\param{size
\_t }{pos
},
\param{int
}{numRows
}}
205 change row/col number in attribute if needed
208 \membersection{wxGridTableBase::UpdateAttrCols
}\label{wxgridtablebaseupdateattrcols
}
210 \func{void
}{UpdateAttrCols
}{\param{size
\_t }{pos
},
\param{int
}{numCols
}}
213 \membersection{wxGridTableBase::GetAttr
}\label{wxgridtablebasegetattr
}
215 \func{wxGridCellAttr*
}{GetAttr
}{\param{int
}{row
},
\param{int
}{col
}}
217 by default forwarded to wxGridCellAttrProvider if any. May be
218 overridden to handle attributes directly in the table.
221 \membersection{wxGridTableBase::SetAttr
}\label{wxgridtablebasesetattr
}
223 \func{void
}{SetAttr
}{\param{wxGridCellAttr*
}{attr
},
\param{int
}{row
},
\param{int
}{col
}}
225 these functions take ownership of the pointer
228 \membersection{wxGridTableBase::SetRowAttr
}\label{wxgridtablebasesetrowattr
}
230 \func{void
}{SetRowAttr
}{\param{wxGridCellAttr*
}{attr
},
\param{int
}{row
}}
233 \membersection{wxGridTableBase::SetColAttr
}\label{wxgridtablebasesetcolattr
}
235 \func{void
}{SetColAttr
}{\param{wxGridCellAttr*
}{attr
},
\param{int
}{col
}}