Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / grid / cpp / gridtable.h
1
2
3
4 #include "cpp/v_cback.h"
5
6 class wxPlGridTable : public wxGridTableBase
7 {
8     WXPLI_DECLARE_DYNAMIC_CLASS( wxPlGridTable );
9     WXPLI_DECLARE_V_CBACK();
10 public:
11     wxPlGridTable( const char* package )
12         :m_callback( "Wx::GridTableBase" )
13     {
14         m_callback.SetSelf( wxPli_make_object( this, package ), true );
15     }
16
17     DEC_V_CBACK_INT__VOID( GetNumberRows );
18     DEC_V_CBACK_INT__VOID( GetNumberCols );
19     DEC_V_CBACK_BOOL__INT_INT( IsEmptyCell );
20     DEC_V_CBACK_WXSTRING__INT_INT( GetValue );
21     DEC_V_CBACK_VOID__INT_INT_WXSTRING( SetValue );
22     DEC_V_CBACK_WXSTRING__INT_INT( GetTypeName );
23     DEC_V_CBACK_BOOL__INT_INT_WXSTRING( CanGetValueAs );
24     DEC_V_CBACK_BOOL__INT_INT_WXSTRING( CanSetValueAs );
25     DEC_V_CBACK_LONG__INT_INT( GetValueAsLong );
26     DEC_V_CBACK_DOUBLE__INT_INT( GetValueAsDouble );
27     DEC_V_CBACK_BOOL__INT_INT( GetValueAsBool );
28     // DEC_V_CBACK_VOIDP__INT_INT_WXSTRING( GetValueAsCustom );
29     DEC_V_CBACK_VOID__INT_INT_LONG( SetValueAsLong );
30     DEC_V_CBACK_VOID__INT_INT_DOUBLE( SetValueAsDouble );
31     DEC_V_CBACK_VOID__INT_INT_BOOL( SetValueAsBool );
32     // DEC_V_CBACK_VOIDP_INT_INT_WXSTRING_VOIDP( SetValueAsCustom );
33     DEC_V_CBACK_VOID__WXGRID( SetView );
34     DEC_V_CBACK_WXGRID__VOID_const( GetView );
35     DEC_V_CBACK_VOID__VOID( Clear );
36     DEC_V_CBACK_BOOL__SIZET_SIZET( InsertRows );
37     DEC_V_CBACK_BOOL__SIZET( AppendRows );
38     DEC_V_CBACK_BOOL__SIZET_SIZET( DeleteRows );
39     DEC_V_CBACK_BOOL__SIZET_SIZET( InsertCols );
40     DEC_V_CBACK_BOOL__SIZET( AppendCols );
41     DEC_V_CBACK_BOOL__SIZET_SIZET( DeleteCols );
42     DEC_V_CBACK_WXSTRING__INT( GetRowLabelValue );
43     DEC_V_CBACK_WXSTRING__INT( GetColLabelValue );
44     DEC_V_CBACK_VOID__INT_WXSTRING( SetRowLabelValue );
45     DEC_V_CBACK_VOID__INT_WXSTRING( SetColLabelValue );
46 };
47
48 DEF_V_CBACK_INT__VOID_pure( wxPlGridTable, wxGridTableBase, GetNumberRows );
49 DEF_V_CBACK_INT__VOID_pure( wxPlGridTable, wxGridTableBase, GetNumberCols );
50 DEF_V_CBACK_BOOL__INT_INT_pure( wxPlGridTable, wxGridTableBase, IsEmptyCell );
51 DEF_V_CBACK_WXSTRING__INT_INT_pure( wxPlGridTable, wxGridTableBase, GetValue );
52 DEF_V_CBACK_VOID__INT_INT_WXSTRING_pure( wxPlGridTable, wxGridTableBase, SetValue );
53 DEF_V_CBACK_WXSTRING__INT_INT( wxPlGridTable, wxGridTableBase, GetTypeName );
54 DEF_V_CBACK_BOOL__INT_INT_WXSTRING( wxPlGridTable, wxGridTableBase, CanGetValueAs );
55 DEF_V_CBACK_BOOL__INT_INT_WXSTRING( wxPlGridTable, wxGridTableBase, CanSetValueAs );
56 DEF_V_CBACK_LONG__INT_INT( wxPlGridTable, wxGridTableBase, GetValueAsLong );
57 DEF_V_CBACK_DOUBLE__INT_INT( wxPlGridTable, wxGridTableBase, GetValueAsDouble );
58 DEF_V_CBACK_BOOL__INT_INT( wxPlGridTable, wxGridTableBase, GetValueAsBool );
59 // DEF_V_CBACK_VOIDP__INT_INT_WXSTRING( wxPlGridTable, wxGridTableBase, GetValueAsCustom );
60 DEF_V_CBACK_VOID__INT_INT_LONG( wxPlGridTable, wxGridTableBase, SetValueAsLong );
61 DEF_V_CBACK_VOID__INT_INT_DOUBLE( wxPlGridTable, wxGridTableBase, SetValueAsDouble );
62 DEF_V_CBACK_VOID__INT_INT_BOOL( wxPlGridTable, wxGridTableBase, SetValueAsBool );
63 // DEF_V_CBACK_VOIDP_INT_INT_WXSTRING_VOIDP( wxPlGridTable, wxGridTableBase, SetValueAsCustom );
64 DEF_V_CBACK_VOID__WXGRID( wxPlGridTable, wxGridTableBase, SetView );
65 DEF_V_CBACK_WXGRID__VOID_const( wxPlGridTable, wxGridTableBase, GetView );
66 DEF_V_CBACK_VOID__VOID( wxPlGridTable, wxGridTableBase, Clear );
67 DEF_V_CBACK_BOOL__SIZET_SIZET( wxPlGridTable, wxGridTableBase, InsertRows );
68 DEF_V_CBACK_BOOL__SIZET( wxPlGridTable, wxGridTableBase, AppendRows );
69 DEF_V_CBACK_BOOL__SIZET_SIZET( wxPlGridTable, wxGridTableBase, DeleteRows );
70 DEF_V_CBACK_BOOL__SIZET_SIZET( wxPlGridTable, wxGridTableBase, InsertCols );
71 DEF_V_CBACK_BOOL__SIZET( wxPlGridTable, wxGridTableBase, AppendCols );
72 DEF_V_CBACK_BOOL__SIZET_SIZET( wxPlGridTable, wxGridTableBase, DeleteCols );
73 DEF_V_CBACK_WXSTRING__INT( wxPlGridTable, wxGridTableBase, GetRowLabelValue );
74 DEF_V_CBACK_WXSTRING__INT( wxPlGridTable, wxGridTableBase, GetColLabelValue );
75 DEF_V_CBACK_VOID__INT_WXSTRING( wxPlGridTable, wxGridTableBase, SetRowLabelValue );
76 DEF_V_CBACK_VOID__INT_WXSTRING( wxPlGridTable, wxGridTableBase, SetColLabelValue );
77
78 WXPLI_IMPLEMENT_DYNAMIC_CLASS( wxPlGridTable, wxGridTableBase );
79
80
81