/* $Id: control.hg,v 1.4 2003/05/29 17:12:41 murrayc Exp $ -*- c++ -*- */ /* control.hg * * Copyright (C) 2002 The Bonobomm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include #m4 include(class_bonoboobject.m4) _DEFS(bonobomm/servers,libbonoboui) _PINCLUDE(bonobomm/servers/private/unknown_cimpl_p.h) namespace Gnome { namespace Bonobo { namespace Servers { class Control : public Bonobo::Servers::Unknown_CImpl, public virtual ::POA_Bonobo::Control { _CLASS_BONOBOOBJECT(Control, BonoboControl, BONOBO_CONTROL, Unknown_CImpl, BonoboObject,Bonobo::Control) _STRUCT_NOT_HIDDEN public: explicit Control (Gtk::Widget &widget); _WRAP_CORBA_METHOD(::Bonobo::PropertyBag_ptr getProperties()) _WRAP_CORBA_METHOD(::Bonobo::Gtk::Requisition getDesiredSize()) _WRAP_CORBA_METHOD(::Bonobo::Unknown_ptr getAccessible()) //Custom-implement this because our code-generator can't do special exceptions yet: virtual char* getWindowId(char const* cookie) throw (CORBA::SystemException,::Bonobo::Control::NoContents); _WRAP_CORBA_METHOD(::Bonobo::UIContainer_ptr getPopupContainer()) _WRAP_CORBA_METHOD(void setFrame(::Bonobo::ControlFrame_ptr frame)) _WRAP_CORBA_METHOD(void setSize(CORBA::Short width,CORBA::Short height)) _WRAP_CORBA_METHOD(void setState(::Bonobo::Gtk::State state)) _WRAP_CORBA_METHOD(void activate(CORBA::Boolean activate)) _WRAP_CORBA_METHOD(CORBA::Boolean focus(::Bonobo::Gtk::Direction direction)) _WRAP_CORBA_METHOD(void unImplemented()) _WRAP_CORBA_METHOD(void unImplemented2()) _WRAP_CORBA_METHOD(void unImplemented3()) }; } /* namespace Servers */ } /* namespace Bonobo */ } /* namespace Gnome */