3 Xt plugin embedding support
5 Copyright (c) 2000 Matthias Hoelzer-Kluepfel <hoelzer@kde.org>
6 Stefan Schimanski <1Stein@gmx.de>
7 2003-2005 George Staikos <staikos@kde.org>
8 2007 Maksim Orlovich <maksim@kde.org>
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 #ifndef PLUGIN_HOST_XT_H
27 #define PLUGIN_HOST_XT_H
29 #include "pluginhost.h"
30 #include <QX11EmbedContainer>
32 #include <X11/Intrinsic.h>
33 #include <X11/Composite.h>
34 #include <X11/Constraint.h>
35 #include <X11/Shell.h>
36 #include <X11/StringDefs.h>
39 class PluginHostXt
: public PluginHost
42 PluginHostXt(NSPluginInstance
* plugin
);
43 virtual void setupWindow(int winId
, int width
, int height
);
44 virtual void resizePlugin(int pluginWinId
, int w
, int h
);
45 virtual ~PluginHostXt();
47 static void forwarder(Widget w
, XtPointer cl_data
, XEvent
* event
, Boolean
* cont
);
48 NSPluginInstance
* _plugin
;
49 QX11EmbedWidget
* _outside
;
57 // kate: indent-width 4; replace-tabs on; tab-width 4; space-indent on;