Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

objectfactory.h

Go to the documentation of this file.
00001 /*  Inti: Integrated Foundation Classes
00002  *  Copyright (C) 2002 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018  
00024 
00025 #ifndef INTI_ATK_OBJECT_FACTORY_H
00026 #define INTI_ATK_OBJECT_FACTORY_H
00027 
00028 #ifndef INTI_G_OBJECT_H
00029 #include <inti/glib/object.h>
00030 #endif
00031 
00032 #ifndef __ATK_OBJECT_FACTORY_H__
00033 #include <atk/atkobjectfactory.h>
00034 #endif
00035 
00036 namespace Inti {
00037 
00038 namespace Atk {
00039 
00040 class Object;
00041 
00042 class ObjectFactoryClass;
00043 
00054 
00055 class ObjectFactory : public G::Object
00056 {
00057         friend class G::Object;
00058         friend class ObjectFactoryClass;
00059 
00060         ObjectFactory(const ObjectFactory&);
00061         ObjectFactory& operator=(const ObjectFactory&);
00062         
00063 protected:
00066 
00067         explicit ObjectFactory(AtkObjectFactory *factory, bool reference = true);
00074 
00076 //  Override these do_ methods when you want to change the default behaviour of the AtkObjectFactory.
00077         
00078         virtual void do_invalidate();
00079 
00080 public:
00083 
00084         virtual ~ObjectFactory();
00086 
00090 
00091         AtkObjectFactory* atk_object_factory() const { return (AtkObjectFactory*)instance; }
00093 
00094         AtkObjectFactoryClass* atk_object_factory_class() const;
00096 
00097         operator AtkObjectFactory* () const;
00099 
00100         GType get_accessible_type() const;
00105         
00109 
00110         Atk::Object* create_accessible(const G::Object& object);
00114 
00115         void invalidate();
00121 
00122 
00124 };
00125 
00126 } // namespace Atk
00127 
00128 } // namespace Inti
00129 
00130 #endif // INTI_ATK_OBJECT_FACTORY_H
00131 
Main Page - Footer


Generated on Sun Sep 14 20:08:03 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002