kxmlguibuilder.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2000 Simon Hausmann <hausmann@kde.org> 00003 David Faure <faure@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 #ifndef __kxmlguibuilder_h__ 00021 #define __kxmlguibuilder_h__ 00022 00023 #include <tqdom.h> 00024 #include <tqstringlist.h> 00025 00026 #include <tdelibs_export.h> 00027 00028 class KXMLGUIBuilderPrivate; 00029 class TQWidget; 00030 class TDEInstance; 00031 class KXMLGUIClient; 00032 00039 class TDEUI_EXPORT KXMLGUIBuilder 00040 { 00041 public: 00042 00043 KXMLGUIBuilder( TQWidget *widget ); 00044 virtual ~KXMLGUIBuilder(); 00045 00046 /* @internal */ 00047 KXMLGUIClient *builderClient() const; 00048 /* @internal */ 00049 void setBuilderClient( KXMLGUIClient *client ); 00050 /* @internal */ 00051 TDEInstance *builderInstance() const; 00052 /* @internal */ 00053 void setBuilderInstance( TDEInstance *instance ); 00054 /* @internal */ 00055 TQWidget *widget(); 00056 00057 virtual TQStringList containerTags() const; 00058 00071 virtual TQWidget *createContainer( TQWidget *parent, int index, 00072 const TQDomElement &element, int &id ); 00073 00079 virtual void removeContainer( TQWidget *container, TQWidget *parent, 00080 TQDomElement &element, int id ); 00081 00082 virtual TQStringList customTags() const; 00083 00084 virtual int createCustomElement( TQWidget *parent, int index, const TQDomElement &element ); 00085 00086 virtual void removeCustomElement( TQWidget *parent, int id ); 00087 00088 virtual void finalizeGUI( KXMLGUIClient *client ); 00089 00090 protected: 00091 virtual void virtual_hook( int id, void* data ); 00092 private: 00093 KXMLGUIBuilderPrivate *d; 00094 }; 00095 00096 #endif