1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: testapp.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 #include <vcl/svapp.hxx>
34 #ifndef _DIALOG_HXX //autogen
35 #include <vcl/dialog.hxx>
37 #ifndef _BUTTON_HXX //autogen
38 #include <vcl/button.hxx>
40 #ifndef _FIELD_HXX //autogen
41 #include <vcl/field.hxx>
43 #ifndef _EDIT_HXX //autogen
44 #include <vcl/edit.hxx>
46 #ifndef _GROUP_HXX //autogen
47 #include <vcl/group.hxx>
49 #ifndef _COMBOBOX_HXX //autogen
50 #include <vcl/combobox.hxx>
52 #ifndef _FIXED_HXX //autogen
53 #include <vcl/fixed.hxx>
55 #ifndef _MENU_HXX //autogen
56 #include <vcl/menu.hxx>
58 #ifndef _WRKWIN_HXX //autogen
59 #include <vcl/wrkwin.hxx>
61 #include <svtools/poolitem.hxx>
64 #include "editwin.hxx"
68 #define EXECUTE_POSSIBLE 1
70 #define EXECUTEMODE_ASYNCHRON 1
71 #define EXECUTEMODE_DIALOGASYNCHRON 2
75 class MainWindow
: public WorkWindow
80 MainWindow(MyApp
*pAppl
);
81 virtual BOOL
Close(); // derived
86 void Tree(GHEditWindow
*aEditWin
, Window
*pBase
, USHORT Indent
);
89 DECL_LINK(MenuSelectHdl
,MenuBar
*);
92 #define PlugInDispatcher MyDispatcher
98 MyDispatcher(MainWindow
*MainWin
) : pMainWin(MainWin
) {};
99 virtual ~MyDispatcher() {};
100 virtual USHORT
ExecuteFunction( USHORT nSID
, SfxPoolItem
** ppArgs
= 0, USHORT nMode
= 0);
101 virtual void SetExecuteMode( USHORT nMode
)
103 (void) nMode
; /* avoid warning about unused parameter */
104 }; // Ist hier sowieso egal
107 class MyApp
: public Application
111 PlugInDispatcher
*pMyDispatcher
;
117 virtual void Property( ApplicationProperty
& );
118 virtual PlugInDispatcher
* GetDispatcher();
120 MainWindow
*pMainWin
;
123 // -----------------------------------------------------------------------