Robin Gareus
ad51c7c2ba
This is intended mainly for GNU/Linux distros who will remove GTK2 support in the near future.
2752 lines
92 KiB
C++
2752 lines
92 KiB
C++
// Generated by gtkmmproc -- DO NOT MODIFY!
|
|
|
|
|
|
#include <glibmm.h>
|
|
|
|
#include <atkmm/table.h>
|
|
#include <atkmm/private/table_p.h>
|
|
|
|
|
|
// -*- c++ -*-
|
|
/* $Id: table.ccg,v 1.1 2003/01/21 13:37:07 murrayc Exp $ */
|
|
|
|
/* Copyright 1998-2002 The gtkmm Development Team
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free
|
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#include <atkmm/object.h>
|
|
#include <atk/atktable.h>
|
|
|
|
|
|
namespace Atk
|
|
{
|
|
|
|
Glib::ArrayHandle<int> Table::get_selected_columns() const
|
|
{
|
|
int* selected = 0;
|
|
const int n_selected = atk_table_get_selected_columns(const_cast<AtkTable*>(gobj()), &selected);
|
|
|
|
return Glib::ArrayHandle<int>(selected, n_selected, Glib::OWNERSHIP_SHALLOW);
|
|
}
|
|
|
|
Glib::ArrayHandle<int> Table::get_selected_rows() const
|
|
{
|
|
int* selected = 0;
|
|
const int n_selected = atk_table_get_selected_rows(const_cast<AtkTable*>(gobj()), &selected);
|
|
|
|
return Glib::ArrayHandle<int>(selected, n_selected, Glib::OWNERSHIP_SHALLOW);
|
|
}
|
|
|
|
} // namespace Atk
|
|
|
|
|
|
namespace
|
|
{
|
|
|
|
|
|
static void Table_signal_row_inserted_callback(AtkTable* self, gint p0,gint p1,void* data)
|
|
{
|
|
using namespace Atk;
|
|
typedef sigc::slot< void,int,int > SlotType;
|
|
|
|
// Do not try to call a signal on a disassociated wrapper.
|
|
if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
|
|
(*static_cast<SlotType*>(slot))(p0
|
|
, p1
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
static const Glib::SignalProxyInfo Table_signal_row_inserted_info =
|
|
{
|
|
"row_inserted",
|
|
(GCallback) &Table_signal_row_inserted_callback,
|
|
(GCallback) &Table_signal_row_inserted_callback
|
|
};
|
|
|
|
|
|
static void Table_signal_column_inserted_callback(AtkTable* self, gint p0,gint p1,void* data)
|
|
{
|
|
using namespace Atk;
|
|
typedef sigc::slot< void,int,int > SlotType;
|
|
|
|
// Do not try to call a signal on a disassociated wrapper.
|
|
if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
|
|
(*static_cast<SlotType*>(slot))(p0
|
|
, p1
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
static const Glib::SignalProxyInfo Table_signal_column_inserted_info =
|
|
{
|
|
"column_inserted",
|
|
(GCallback) &Table_signal_column_inserted_callback,
|
|
(GCallback) &Table_signal_column_inserted_callback
|
|
};
|
|
|
|
|
|
static void Table_signal_row_deleted_callback(AtkTable* self, gint p0,gint p1,void* data)
|
|
{
|
|
using namespace Atk;
|
|
typedef sigc::slot< void,int,int > SlotType;
|
|
|
|
// Do not try to call a signal on a disassociated wrapper.
|
|
if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
|
|
(*static_cast<SlotType*>(slot))(p0
|
|
, p1
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
static const Glib::SignalProxyInfo Table_signal_row_deleted_info =
|
|
{
|
|
"row_deleted",
|
|
(GCallback) &Table_signal_row_deleted_callback,
|
|
(GCallback) &Table_signal_row_deleted_callback
|
|
};
|
|
|
|
|
|
static void Table_signal_column_deleted_callback(AtkTable* self, gint p0,gint p1,void* data)
|
|
{
|
|
using namespace Atk;
|
|
typedef sigc::slot< void,int,int > SlotType;
|
|
|
|
// Do not try to call a signal on a disassociated wrapper.
|
|
if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
|
|
(*static_cast<SlotType*>(slot))(p0
|
|
, p1
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
static const Glib::SignalProxyInfo Table_signal_column_deleted_info =
|
|
{
|
|
"column_deleted",
|
|
(GCallback) &Table_signal_column_deleted_callback,
|
|
(GCallback) &Table_signal_column_deleted_callback
|
|
};
|
|
|
|
|
|
static const Glib::SignalProxyInfo Table_signal_row_reordered_info =
|
|
{
|
|
"row_reordered",
|
|
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
|
|
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback
|
|
};
|
|
|
|
|
|
static const Glib::SignalProxyInfo Table_signal_column_reordered_info =
|
|
{
|
|
"column_reordered",
|
|
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
|
|
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback
|
|
};
|
|
|
|
|
|
static const Glib::SignalProxyInfo Table_signal_model_changed_info =
|
|
{
|
|
"model_changed",
|
|
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
|
|
(GCallback) &Glib::SignalProxyNormal::slot0_void_callback
|
|
};
|
|
|
|
|
|
} // anonymous namespace
|
|
|
|
|
|
namespace Glib
|
|
{
|
|
|
|
Glib::RefPtr<Atk::Table> wrap(AtkTable* object, bool take_copy)
|
|
{
|
|
return Glib::RefPtr<Atk::Table>( dynamic_cast<Atk::Table*> (Glib::wrap_auto_interface<Atk::Table> ((GObject*)(object), take_copy)) );
|
|
//We use dynamic_cast<> in case of multiple inheritance.
|
|
}
|
|
|
|
} // namespace Glib
|
|
|
|
|
|
namespace Atk
|
|
{
|
|
|
|
|
|
/* The *_Class implementation: */
|
|
|
|
const Glib::Interface_Class& Table_Class::init()
|
|
{
|
|
if(!gtype_) // create the GType if necessary
|
|
{
|
|
// Glib::Interface_Class has to know the interface init function
|
|
// in order to add interfaces to implementing types.
|
|
class_init_func_ = &Table_Class::iface_init_function;
|
|
|
|
// We can not derive from another interface, and it is not necessary anyway.
|
|
gtype_ = atk_table_get_type();
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
void Table_Class::iface_init_function(void* g_iface, void*)
|
|
{
|
|
BaseClassType *const klass = static_cast<BaseClassType*>(g_iface);
|
|
|
|
//This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
|
|
//This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
|
|
g_assert(klass != 0);
|
|
|
|
klass->ref_at = &ref_at_vfunc_callback;
|
|
klass->get_index_at = &get_index_at_vfunc_callback;
|
|
klass->get_column_at_index = &get_column_at_index_vfunc_callback;
|
|
klass->get_row_at_index = &get_row_at_index_vfunc_callback;
|
|
klass->get_n_columns = &get_n_columns_vfunc_callback;
|
|
klass->get_n_rows = &get_n_rows_vfunc_callback;
|
|
klass->get_column_extent_at = &get_column_extent_at_vfunc_callback;
|
|
klass->get_row_extent_at = &get_row_extent_at_vfunc_callback;
|
|
klass->get_caption = &get_caption_vfunc_callback;
|
|
klass->get_column_description = &get_column_description_vfunc_callback;
|
|
klass->get_column_header = &get_column_header_vfunc_callback;
|
|
klass->get_row_description = &get_row_description_vfunc_callback;
|
|
klass->get_row_header = &get_row_header_vfunc_callback;
|
|
klass->get_summary = &get_summary_vfunc_callback;
|
|
klass->set_caption = &set_caption_vfunc_callback;
|
|
klass->set_column_description = &set_column_description_vfunc_callback;
|
|
klass->set_column_header = &set_column_header_vfunc_callback;
|
|
klass->set_row_description = &set_row_description_vfunc_callback;
|
|
klass->set_row_header = &set_row_header_vfunc_callback;
|
|
klass->set_summary = &set_summary_vfunc_callback;
|
|
klass->is_column_selected = &is_column_selected_vfunc_callback;
|
|
klass->is_row_selected = &is_row_selected_vfunc_callback;
|
|
klass->is_selected = &is_selected_vfunc_callback;
|
|
klass->add_row_selection = &add_row_selection_vfunc_callback;
|
|
klass->remove_row_selection = &remove_row_selection_vfunc_callback;
|
|
klass->add_column_selection = &add_column_selection_vfunc_callback;
|
|
klass->remove_column_selection = &remove_column_selection_vfunc_callback;
|
|
klass->get_selected_columns = &get_selected_columns_vfunc_callback;
|
|
klass->get_selected_rows = &get_selected_rows_vfunc_callback;
|
|
|
|
klass->row_inserted = &row_inserted_callback;
|
|
klass->column_inserted = &column_inserted_callback;
|
|
klass->row_deleted = &row_deleted_callback;
|
|
klass->column_deleted = &column_deleted_callback;
|
|
klass->row_reordered = &row_reordered_callback;
|
|
klass->column_reordered = &column_reordered_callback;
|
|
klass->model_changed = &model_changed_callback;
|
|
}
|
|
|
|
AtkObject* Table_Class::ref_at_vfunc_callback(AtkTable* self, gint row, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return Glib::unwrap_copy(obj->get_at_vfunc(row
|
|
, column
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->ref_at)
|
|
{
|
|
AtkObject* retval = (*base->ref_at)(self, row, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef AtkObject* RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_index_at_vfunc_callback(AtkTable* self, gint row, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_index_at_vfunc(row
|
|
, column
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_index_at)
|
|
{
|
|
gint retval = (*base->get_index_at)(self, row, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_column_at_index_vfunc_callback(AtkTable* self, gint index_)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_column_at_index_vfunc(index_
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_column_at_index)
|
|
{
|
|
gint retval = (*base->get_column_at_index)(self, index_);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_row_at_index_vfunc_callback(AtkTable* self, gint index_)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_row_at_index_vfunc(index_
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_row_at_index)
|
|
{
|
|
gint retval = (*base->get_row_at_index)(self, index_);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_n_columns_vfunc_callback(AtkTable* self)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_n_columns_vfunc();
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_n_columns)
|
|
{
|
|
gint retval = (*base->get_n_columns)(self);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_n_rows_vfunc_callback(AtkTable* self)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_n_rows_vfunc();
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_n_rows)
|
|
{
|
|
gint retval = (*base->get_n_rows)(self);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_column_extent_at_vfunc_callback(AtkTable* self, gint row, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_column_extent_at_vfunc(row
|
|
, column
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_column_extent_at)
|
|
{
|
|
gint retval = (*base->get_column_extent_at)(self, row, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_row_extent_at_vfunc_callback(AtkTable* self, gint row, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_row_extent_at_vfunc(row
|
|
, column
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_row_extent_at)
|
|
{
|
|
gint retval = (*base->get_row_extent_at)(self, row, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
AtkObject* Table_Class::get_caption_vfunc_callback(AtkTable* self)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return Glib::unwrap(obj->get_caption_vfunc());
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_caption)
|
|
{
|
|
AtkObject* retval = (*base->get_caption)(self);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef AtkObject* RType;
|
|
return RType();
|
|
}
|
|
const gchar* Table_Class::get_column_description_vfunc_callback(AtkTable* self, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_column_description_vfunc(column
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_column_description)
|
|
{
|
|
const gchar* retval = (*base->get_column_description)(self, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef const gchar* RType;
|
|
return RType();
|
|
}
|
|
AtkObject* Table_Class::get_column_header_vfunc_callback(AtkTable* self, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return Glib::unwrap(obj->get_column_header_vfunc(column
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_column_header)
|
|
{
|
|
AtkObject* retval = (*base->get_column_header)(self, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef AtkObject* RType;
|
|
return RType();
|
|
}
|
|
const gchar* Table_Class::get_row_description_vfunc_callback(AtkTable* self, gint row)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_row_description_vfunc(row
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_row_description)
|
|
{
|
|
const gchar* retval = (*base->get_row_description)(self, row);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef const gchar* RType;
|
|
return RType();
|
|
}
|
|
AtkObject* Table_Class::get_row_header_vfunc_callback(AtkTable* self, gint row)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return Glib::unwrap(obj->get_row_header_vfunc(row
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_row_header)
|
|
{
|
|
AtkObject* retval = (*base->get_row_header)(self, row);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef AtkObject* RType;
|
|
return RType();
|
|
}
|
|
AtkObject* Table_Class::get_summary_vfunc_callback(AtkTable* self)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return Glib::unwrap(obj->get_summary_vfunc());
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_summary)
|
|
{
|
|
AtkObject* retval = (*base->get_summary)(self);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef AtkObject* RType;
|
|
return RType();
|
|
}
|
|
void Table_Class::set_caption_vfunc_callback(AtkTable* self, AtkObject* caption)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->set_caption_vfunc(Glib::wrap(caption, true)
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->set_caption)
|
|
{
|
|
(*base->set_caption)(self, caption);
|
|
}
|
|
|
|
}
|
|
void Table_Class::set_column_description_vfunc_callback(AtkTable* self, gint column, const gchar* description)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->set_column_description_vfunc(column
|
|
, description
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->set_column_description)
|
|
{
|
|
(*base->set_column_description)(self, column, description);
|
|
}
|
|
|
|
}
|
|
void Table_Class::set_column_header_vfunc_callback(AtkTable* self, gint column, AtkObject* header)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->set_column_header_vfunc(column
|
|
, Glib::wrap(header, true)
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->set_column_header)
|
|
{
|
|
(*base->set_column_header)(self, column, header);
|
|
}
|
|
|
|
}
|
|
void Table_Class::set_row_description_vfunc_callback(AtkTable* self, gint row, const gchar* description)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->set_row_description_vfunc(row
|
|
, description
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->set_row_description)
|
|
{
|
|
(*base->set_row_description)(self, row, description);
|
|
}
|
|
|
|
}
|
|
void Table_Class::set_row_header_vfunc_callback(AtkTable* self, gint row, AtkObject* header)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->set_row_header_vfunc(row
|
|
, Glib::wrap(header, true)
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->set_row_header)
|
|
{
|
|
(*base->set_row_header)(self, row, header);
|
|
}
|
|
|
|
}
|
|
void Table_Class::set_summary_vfunc_callback(AtkTable* self, AtkObject* accessible)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->set_summary_vfunc(Glib::wrap(accessible, true)
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->set_summary)
|
|
{
|
|
(*base->set_summary)(self, accessible);
|
|
}
|
|
|
|
}
|
|
gboolean Table_Class::is_column_selected_vfunc_callback(AtkTable* self, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return static_cast<int>(obj->is_column_selected_vfunc(column
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->is_column_selected)
|
|
{
|
|
gboolean retval = (*base->is_column_selected)(self, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gboolean RType;
|
|
return RType();
|
|
}
|
|
gboolean Table_Class::is_row_selected_vfunc_callback(AtkTable* self, gint row)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return static_cast<int>(obj->is_row_selected_vfunc(row
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->is_row_selected)
|
|
{
|
|
gboolean retval = (*base->is_row_selected)(self, row);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gboolean RType;
|
|
return RType();
|
|
}
|
|
gboolean Table_Class::is_selected_vfunc_callback(AtkTable* self, gint row, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return static_cast<int>(obj->is_selected_vfunc(row
|
|
, column
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->is_selected)
|
|
{
|
|
gboolean retval = (*base->is_selected)(self, row, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gboolean RType;
|
|
return RType();
|
|
}
|
|
gboolean Table_Class::add_row_selection_vfunc_callback(AtkTable* self, gint row)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return static_cast<int>(obj->add_row_selection_vfunc(row
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->add_row_selection)
|
|
{
|
|
gboolean retval = (*base->add_row_selection)(self, row);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gboolean RType;
|
|
return RType();
|
|
}
|
|
gboolean Table_Class::remove_row_selection_vfunc_callback(AtkTable* self, gint row)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return static_cast<int>(obj->remove_row_selection_vfunc(row
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->remove_row_selection)
|
|
{
|
|
gboolean retval = (*base->remove_row_selection)(self, row);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gboolean RType;
|
|
return RType();
|
|
}
|
|
gboolean Table_Class::add_column_selection_vfunc_callback(AtkTable* self, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return static_cast<int>(obj->add_column_selection_vfunc(column
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->add_column_selection)
|
|
{
|
|
gboolean retval = (*base->add_column_selection)(self, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gboolean RType;
|
|
return RType();
|
|
}
|
|
gboolean Table_Class::remove_column_selection_vfunc_callback(AtkTable* self, gint column)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return static_cast<int>(obj->remove_column_selection_vfunc(column
|
|
));
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->remove_column_selection)
|
|
{
|
|
gboolean retval = (*base->remove_column_selection)(self, column);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gboolean RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_selected_columns_vfunc_callback(AtkTable* self, gint** selected)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_selected_columns_vfunc(selected
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_selected_columns)
|
|
{
|
|
gint retval = (*base->get_selected_columns)(self, selected);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
gint Table_Class::get_selected_rows_vfunc_callback(AtkTable* self, gint** selected)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
return obj->get_selected_rows_vfunc(selected
|
|
);
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->get_selected_rows)
|
|
{
|
|
gint retval = (*base->get_selected_rows)(self, selected);
|
|
return retval;
|
|
}
|
|
|
|
|
|
typedef gint RType;
|
|
return RType();
|
|
}
|
|
|
|
void Table_Class::row_inserted_callback(AtkTable* self, gint p0, gint p1)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->on_row_inserted(p0
|
|
, p1
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->row_inserted)
|
|
(*base->row_inserted)(self, p0, p1);
|
|
}
|
|
void Table_Class::column_inserted_callback(AtkTable* self, gint p0, gint p1)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->on_column_inserted(p0
|
|
, p1
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->column_inserted)
|
|
(*base->column_inserted)(self, p0, p1);
|
|
}
|
|
void Table_Class::row_deleted_callback(AtkTable* self, gint p0, gint p1)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->on_row_deleted(p0
|
|
, p1
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->row_deleted)
|
|
(*base->row_deleted)(self, p0, p1);
|
|
}
|
|
void Table_Class::column_deleted_callback(AtkTable* self, gint p0, gint p1)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->on_column_deleted(p0
|
|
, p1
|
|
);
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->column_deleted)
|
|
(*base->column_deleted)(self, p0, p1);
|
|
}
|
|
void Table_Class::row_reordered_callback(AtkTable* self)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->on_row_reordered();
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->row_reordered)
|
|
(*base->row_reordered)(self);
|
|
}
|
|
void Table_Class::column_reordered_callback(AtkTable* self)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->on_column_reordered();
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->column_reordered)
|
|
(*base->column_reordered)(self);
|
|
}
|
|
void Table_Class::model_changed_callback(AtkTable* self)
|
|
{
|
|
Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
|
|
Glib::ObjectBase::_get_current_wrapper((GObject*)self));
|
|
|
|
// Non-gtkmmproc-generated custom classes implicitly call the default
|
|
// Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
|
|
// generated classes can use this optimisation, which avoids the unnecessary
|
|
// parameter conversions if there is no possibility of the virtual function
|
|
// being overridden:
|
|
if(obj_base && obj_base->is_derived_())
|
|
{
|
|
CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
|
|
if(obj) // This can be NULL during destruction.
|
|
{
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
try // Trap C++ exceptions which would normally be lost because this is a C callback.
|
|
{
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
// Call the virtual member method, which derived classes might override.
|
|
obj->on_model_changed();
|
|
return;
|
|
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
catch(...)
|
|
{
|
|
Glib::exception_handlers_invoke();
|
|
}
|
|
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
|
}
|
|
}
|
|
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
// Call the original underlying C function:
|
|
if(base && base->model_changed)
|
|
(*base->model_changed)(self);
|
|
}
|
|
|
|
|
|
Glib::ObjectBase* Table_Class::wrap_new(GObject* object)
|
|
{
|
|
return new Table((AtkTable*)(object));
|
|
}
|
|
|
|
|
|
/* The implementation: */
|
|
|
|
Table::Table()
|
|
:
|
|
Glib::Interface(table_class_.init())
|
|
{}
|
|
|
|
Table::Table(AtkTable* castitem)
|
|
:
|
|
Glib::Interface((GObject*)(castitem))
|
|
{}
|
|
|
|
Table::Table(const Glib::Interface_Class& interface_class)
|
|
: Glib::Interface(interface_class)
|
|
{
|
|
}
|
|
|
|
Table::~Table()
|
|
{}
|
|
|
|
// static
|
|
void Table::add_interface(GType gtype_implementer)
|
|
{
|
|
table_class_.init().add_interface(gtype_implementer);
|
|
}
|
|
|
|
Table::CppClassType Table::table_class_; // initialize static member
|
|
|
|
GType Table::get_type()
|
|
{
|
|
return table_class_.init().get_type();
|
|
}
|
|
|
|
|
|
GType Table::get_base_type()
|
|
{
|
|
return atk_table_get_type();
|
|
}
|
|
|
|
|
|
Glib::RefPtr<Atk::Object> Table::get_at(int row, int column)
|
|
{
|
|
return Glib::wrap(atk_table_ref_at(gobj(), row, column));
|
|
}
|
|
|
|
int Table::get_index_at(int row, int column) const
|
|
{
|
|
return atk_table_get_index_at(const_cast<AtkTable*>(gobj()), row, column);
|
|
}
|
|
|
|
int Table::get_column_at_index(int index) const
|
|
{
|
|
return atk_table_get_column_at_index(const_cast<AtkTable*>(gobj()), index);
|
|
}
|
|
|
|
int Table::get_row_at_index(int index) const
|
|
{
|
|
return atk_table_get_row_at_index(const_cast<AtkTable*>(gobj()), index);
|
|
}
|
|
|
|
int Table::get_n_columns() const
|
|
{
|
|
return atk_table_get_n_columns(const_cast<AtkTable*>(gobj()));
|
|
}
|
|
|
|
int Table::get_n_rows() const
|
|
{
|
|
return atk_table_get_n_rows(const_cast<AtkTable*>(gobj()));
|
|
}
|
|
|
|
int Table::get_column_extent_at(int row, int column) const
|
|
{
|
|
return atk_table_get_column_extent_at(const_cast<AtkTable*>(gobj()), row, column);
|
|
}
|
|
|
|
int Table::get_row_extent_at(int row, int column) const
|
|
{
|
|
return atk_table_get_row_extent_at(const_cast<AtkTable*>(gobj()), row, column);
|
|
}
|
|
|
|
Glib::RefPtr<Atk::Object> Table::get_caption()
|
|
{
|
|
Glib::RefPtr<Atk::Object> retvalue = Glib::wrap(atk_table_get_caption(gobj()));
|
|
if(retvalue)
|
|
retvalue->reference(); //The function does not do a ref for us.
|
|
return retvalue;
|
|
}
|
|
|
|
Glib::RefPtr<const Atk::Object> Table::get_caption() const
|
|
{
|
|
return const_cast<Table*>(this)->get_caption();
|
|
}
|
|
|
|
Glib::ustring Table::get_column_description(int column) const
|
|
{
|
|
return Glib::convert_const_gchar_ptr_to_ustring(atk_table_get_column_description(const_cast<AtkTable*>(gobj()), column));
|
|
}
|
|
|
|
Glib::RefPtr<Atk::Object> Table::get_column_header(int column)
|
|
{
|
|
Glib::RefPtr<Atk::Object> retvalue = Glib::wrap(atk_table_get_column_header(gobj(), column));
|
|
if(retvalue)
|
|
retvalue->reference(); //The function does not do a ref for us.
|
|
return retvalue;
|
|
}
|
|
|
|
Glib::RefPtr<const Atk::Object> Table::get_column_header(int column) const
|
|
{
|
|
return const_cast<Table*>(this)->get_column_header(column);
|
|
}
|
|
|
|
Glib::ustring Table::get_row_description(int row) const
|
|
{
|
|
return Glib::convert_const_gchar_ptr_to_ustring(atk_table_get_row_description(const_cast<AtkTable*>(gobj()), row));
|
|
}
|
|
|
|
Glib::RefPtr<Atk::Object> Table::get_row_header(int row)
|
|
{
|
|
Glib::RefPtr<Atk::Object> retvalue = Glib::wrap(atk_table_get_row_header(gobj(), row));
|
|
if(retvalue)
|
|
retvalue->reference(); //The function does not do a ref for us.
|
|
return retvalue;
|
|
}
|
|
|
|
Glib::RefPtr<const Atk::Object> Table::get_row_header(int row) const
|
|
{
|
|
return const_cast<Table*>(this)->get_row_header(row);
|
|
}
|
|
|
|
Glib::RefPtr<Atk::Object> Table::get_summary()
|
|
{
|
|
Glib::RefPtr<Atk::Object> retvalue = Glib::wrap(atk_table_get_summary(gobj()));
|
|
if(retvalue)
|
|
retvalue->reference(); //The function does not do a ref for us.
|
|
return retvalue;
|
|
}
|
|
|
|
Glib::RefPtr<const Atk::Object> Table::get_summary() const
|
|
{
|
|
return const_cast<Table*>(this)->get_summary();
|
|
}
|
|
|
|
void Table::set_caption(const Glib::RefPtr<Atk::Object>& caption)
|
|
{
|
|
atk_table_set_caption(gobj(), Glib::unwrap(caption));
|
|
}
|
|
|
|
void Table::set_column_description(int column, const Glib::ustring& description)
|
|
{
|
|
atk_table_set_column_description(gobj(), column, description.c_str());
|
|
}
|
|
|
|
void Table::set_column_header(int column, const Glib::RefPtr<Atk::Object>& header)
|
|
{
|
|
atk_table_set_column_header(gobj(), column, Glib::unwrap(header));
|
|
}
|
|
|
|
void Table::set_row_description(int row, const Glib::ustring& description)
|
|
{
|
|
atk_table_set_row_description(gobj(), row, description.c_str());
|
|
}
|
|
|
|
void Table::set_row_header(int row, const Glib::RefPtr<Atk::Object>& header)
|
|
{
|
|
atk_table_set_row_header(gobj(), row, Glib::unwrap(header));
|
|
}
|
|
|
|
void Table::set_summary(const Glib::RefPtr<Atk::Object>& accessible)
|
|
{
|
|
atk_table_set_summary(gobj(), Glib::unwrap(accessible));
|
|
}
|
|
|
|
bool Table::is_column_selected(int column) const
|
|
{
|
|
return atk_table_is_column_selected(const_cast<AtkTable*>(gobj()), column);
|
|
}
|
|
|
|
bool Table::is_row_selected(int row) const
|
|
{
|
|
return atk_table_is_row_selected(const_cast<AtkTable*>(gobj()), row);
|
|
}
|
|
|
|
bool Table::is_selected(int row, int column) const
|
|
{
|
|
return atk_table_is_selected(const_cast<AtkTable*>(gobj()), row, column);
|
|
}
|
|
|
|
bool Table::add_row_selection(int row)
|
|
{
|
|
return atk_table_add_row_selection(gobj(), row);
|
|
}
|
|
|
|
bool Table::remove_row_selection(int row)
|
|
{
|
|
return atk_table_remove_row_selection(gobj(), row);
|
|
}
|
|
|
|
bool Table::add_column_selection(int column)
|
|
{
|
|
return atk_table_add_column_selection(gobj(), column);
|
|
}
|
|
|
|
bool Table::remove_column_selection(int column)
|
|
{
|
|
return atk_table_remove_column_selection(gobj(), column);
|
|
}
|
|
|
|
|
|
Glib::SignalProxy2< void,int,int > Table::signal_row_inserted()
|
|
{
|
|
return Glib::SignalProxy2< void,int,int >(this, &Table_signal_row_inserted_info);
|
|
}
|
|
|
|
|
|
Glib::SignalProxy2< void,int,int > Table::signal_column_inserted()
|
|
{
|
|
return Glib::SignalProxy2< void,int,int >(this, &Table_signal_column_inserted_info);
|
|
}
|
|
|
|
|
|
Glib::SignalProxy2< void,int,int > Table::signal_row_deleted()
|
|
{
|
|
return Glib::SignalProxy2< void,int,int >(this, &Table_signal_row_deleted_info);
|
|
}
|
|
|
|
|
|
Glib::SignalProxy2< void,int,int > Table::signal_column_deleted()
|
|
{
|
|
return Glib::SignalProxy2< void,int,int >(this, &Table_signal_column_deleted_info);
|
|
}
|
|
|
|
|
|
Glib::SignalProxy0< void > Table::signal_row_reordered()
|
|
{
|
|
return Glib::SignalProxy0< void >(this, &Table_signal_row_reordered_info);
|
|
}
|
|
|
|
|
|
Glib::SignalProxy0< void > Table::signal_column_reordered()
|
|
{
|
|
return Glib::SignalProxy0< void >(this, &Table_signal_column_reordered_info);
|
|
}
|
|
|
|
|
|
Glib::SignalProxy0< void > Table::signal_model_changed()
|
|
{
|
|
return Glib::SignalProxy0< void >(this, &Table_signal_model_changed_info);
|
|
}
|
|
|
|
|
|
void Atk::Table::on_row_inserted(int row, int num_inserted)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->row_inserted)
|
|
(*base->row_inserted)(gobj(),row,num_inserted);
|
|
}
|
|
void Atk::Table::on_column_inserted(int column, int num_inserted)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->column_inserted)
|
|
(*base->column_inserted)(gobj(),column,num_inserted);
|
|
}
|
|
void Atk::Table::on_row_deleted(int row, int num_deleted)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->row_deleted)
|
|
(*base->row_deleted)(gobj(),row,num_deleted);
|
|
}
|
|
void Atk::Table::on_column_deleted(int column, int num_deleted)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->column_deleted)
|
|
(*base->column_deleted)(gobj(),column,num_deleted);
|
|
}
|
|
void Atk::Table::on_row_reordered()
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->row_reordered)
|
|
(*base->row_reordered)(gobj());
|
|
}
|
|
void Atk::Table::on_column_reordered()
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->column_reordered)
|
|
(*base->column_reordered)(gobj());
|
|
}
|
|
void Atk::Table::on_model_changed()
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->model_changed)
|
|
(*base->model_changed)(gobj());
|
|
}
|
|
|
|
Glib::RefPtr<Atk::Object> Atk::Table::get_at_vfunc(int row, int column)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->ref_at)
|
|
{
|
|
Glib::RefPtr<Atk::Object> retval(Glib::wrap((*base->ref_at)(gobj(),row,column)));
|
|
return retval;
|
|
}
|
|
|
|
typedef Glib::RefPtr<Atk::Object> RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_index_at_vfunc(int row, int column) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_index_at)
|
|
{
|
|
int retval((*base->get_index_at)(const_cast<AtkTable*>(gobj()),row,column));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_column_at_index_vfunc(int index) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_column_at_index)
|
|
{
|
|
int retval((*base->get_column_at_index)(const_cast<AtkTable*>(gobj()),index));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_row_at_index_vfunc(int index) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_row_at_index)
|
|
{
|
|
int retval((*base->get_row_at_index)(const_cast<AtkTable*>(gobj()),index));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_n_columns_vfunc() const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_n_columns)
|
|
{
|
|
int retval((*base->get_n_columns)(const_cast<AtkTable*>(gobj())));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_n_rows_vfunc() const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_n_rows)
|
|
{
|
|
int retval((*base->get_n_rows)(const_cast<AtkTable*>(gobj())));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_column_extent_at_vfunc(int row, int column) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_column_extent_at)
|
|
{
|
|
int retval((*base->get_column_extent_at)(const_cast<AtkTable*>(gobj()),row,column));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_row_extent_at_vfunc(int row, int column) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_row_extent_at)
|
|
{
|
|
int retval((*base->get_row_extent_at)(const_cast<AtkTable*>(gobj()),row,column));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
Glib::RefPtr<Atk::Object> Atk::Table::get_caption_vfunc()
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_caption)
|
|
{
|
|
Glib::RefPtr<Atk::Object> retval(Glib::wrap((*base->get_caption)(gobj()), true));
|
|
return retval;
|
|
}
|
|
|
|
typedef Glib::RefPtr<Atk::Object> RType;
|
|
return RType();
|
|
}
|
|
const char* Atk::Table::get_column_description_vfunc(int column) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_column_description)
|
|
{
|
|
const char* retval((*base->get_column_description)(const_cast<AtkTable*>(gobj()),column));
|
|
return retval;
|
|
}
|
|
|
|
typedef const char* RType;
|
|
return RType();
|
|
}
|
|
Glib::RefPtr<Atk::Object> Atk::Table::get_column_header_vfunc(int column)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_column_header)
|
|
{
|
|
Glib::RefPtr<Atk::Object> retval(Glib::wrap((*base->get_column_header)(gobj(),column), true));
|
|
return retval;
|
|
}
|
|
|
|
typedef Glib::RefPtr<Atk::Object> RType;
|
|
return RType();
|
|
}
|
|
const char* Atk::Table::get_row_description_vfunc(int row) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_row_description)
|
|
{
|
|
const char* retval((*base->get_row_description)(const_cast<AtkTable*>(gobj()),row));
|
|
return retval;
|
|
}
|
|
|
|
typedef const char* RType;
|
|
return RType();
|
|
}
|
|
Glib::RefPtr<Atk::Object> Atk::Table::get_row_header_vfunc(int row)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_row_header)
|
|
{
|
|
Glib::RefPtr<Atk::Object> retval(Glib::wrap((*base->get_row_header)(gobj(),row), true));
|
|
return retval;
|
|
}
|
|
|
|
typedef Glib::RefPtr<Atk::Object> RType;
|
|
return RType();
|
|
}
|
|
Glib::RefPtr<Atk::Object> Atk::Table::get_summary_vfunc()
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_summary)
|
|
{
|
|
Glib::RefPtr<Atk::Object> retval(Glib::wrap((*base->get_summary)(gobj()), true));
|
|
return retval;
|
|
}
|
|
|
|
typedef Glib::RefPtr<Atk::Object> RType;
|
|
return RType();
|
|
}
|
|
void Atk::Table::set_caption_vfunc(const Glib::RefPtr<Atk::Object>& caption)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->set_caption)
|
|
{
|
|
(*base->set_caption)(gobj(),Glib::unwrap(caption));
|
|
}
|
|
}
|
|
void Atk::Table::set_column_description_vfunc(int column, const char* description)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->set_column_description)
|
|
{
|
|
(*base->set_column_description)(gobj(),column,description);
|
|
}
|
|
}
|
|
void Atk::Table::set_column_header_vfunc(int column, const Glib::RefPtr<Atk::Object>& header)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->set_column_header)
|
|
{
|
|
(*base->set_column_header)(gobj(),column,Glib::unwrap(header));
|
|
}
|
|
}
|
|
void Atk::Table::set_row_description_vfunc(int row, const char* description)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->set_row_description)
|
|
{
|
|
(*base->set_row_description)(gobj(),row,description);
|
|
}
|
|
}
|
|
void Atk::Table::set_row_header_vfunc(int row, const Glib::RefPtr<Atk::Object>& header)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->set_row_header)
|
|
{
|
|
(*base->set_row_header)(gobj(),row,Glib::unwrap(header));
|
|
}
|
|
}
|
|
void Atk::Table::set_summary_vfunc(const Glib::RefPtr<Atk::Object>& accessible)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->set_summary)
|
|
{
|
|
(*base->set_summary)(gobj(),Glib::unwrap(accessible));
|
|
}
|
|
}
|
|
bool Atk::Table::is_column_selected_vfunc(int column) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->is_column_selected)
|
|
{
|
|
bool retval((*base->is_column_selected)(const_cast<AtkTable*>(gobj()),column));
|
|
return retval;
|
|
}
|
|
|
|
typedef bool RType;
|
|
return RType();
|
|
}
|
|
bool Atk::Table::is_row_selected_vfunc(int row) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->is_row_selected)
|
|
{
|
|
bool retval((*base->is_row_selected)(const_cast<AtkTable*>(gobj()),row));
|
|
return retval;
|
|
}
|
|
|
|
typedef bool RType;
|
|
return RType();
|
|
}
|
|
bool Atk::Table::is_selected_vfunc(int row, int column) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->is_selected)
|
|
{
|
|
bool retval((*base->is_selected)(const_cast<AtkTable*>(gobj()),row,column));
|
|
return retval;
|
|
}
|
|
|
|
typedef bool RType;
|
|
return RType();
|
|
}
|
|
bool Atk::Table::add_row_selection_vfunc(int row)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->add_row_selection)
|
|
{
|
|
bool retval((*base->add_row_selection)(gobj(),row));
|
|
return retval;
|
|
}
|
|
|
|
typedef bool RType;
|
|
return RType();
|
|
}
|
|
bool Atk::Table::remove_row_selection_vfunc(int row)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->remove_row_selection)
|
|
{
|
|
bool retval((*base->remove_row_selection)(gobj(),row));
|
|
return retval;
|
|
}
|
|
|
|
typedef bool RType;
|
|
return RType();
|
|
}
|
|
bool Atk::Table::add_column_selection_vfunc(int column)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->add_column_selection)
|
|
{
|
|
bool retval((*base->add_column_selection)(gobj(),column));
|
|
return retval;
|
|
}
|
|
|
|
typedef bool RType;
|
|
return RType();
|
|
}
|
|
bool Atk::Table::remove_column_selection_vfunc(int column)
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->remove_column_selection)
|
|
{
|
|
bool retval((*base->remove_column_selection)(gobj(),column));
|
|
return retval;
|
|
}
|
|
|
|
typedef bool RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_selected_columns_vfunc(int** selected) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_selected_columns)
|
|
{
|
|
int retval((*base->get_selected_columns)(const_cast<AtkTable*>(gobj()),selected));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
int Atk::Table::get_selected_rows_vfunc(int** selected) const
|
|
{
|
|
BaseClassType *const base = static_cast<BaseClassType*>(
|
|
g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
|
|
g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
|
|
) );
|
|
|
|
if(base && base->get_selected_rows)
|
|
{
|
|
int retval((*base->get_selected_rows)(const_cast<AtkTable*>(gobj()),selected));
|
|
return retval;
|
|
}
|
|
|
|
typedef int RType;
|
|
return RType();
|
|
}
|
|
|
|
|
|
} // namespace Atk
|
|
|
|
|