merge the formfield patch from ooo-build
[ooovba.git] / soldep / source / depapp.hxx
blob78558179d1b07768bc3a2d166878c1adf4360cb2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: depapp.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
31 #ifndef _DEPAPP_HXX
32 #define _DEPAPP_HXX
35 #define EVENT_RESIZE 0x00000001
38 #include <svtools/solar.hrc>
39 #include <tools/resmgr.hxx>
40 #include <bootstrp/sstring.hxx>
41 #include <vcl/event.hxx>
42 #include <vcl/svapp.hxx>
43 #include <vcl/wrkwin.hxx>
44 #include <vcl/msgbox.hxx>
45 #include <vcl/help.hxx>
46 #include <vcl/button.hxx>
47 #include <vcl/menu.hxx>
48 #include <soldep/soldep.hxx>
49 //#include <soldep/soldlg.hrc>
50 //#include <soldep/tbox.hxx>
51 // -----------------------------------------------------------------------
52 #include <sal/main.h>
53 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
54 #include <comphelper/processfactory.hxx>
55 #include <cppuhelper/servicefactory.hxx>
56 #include <cppuhelper/bootstrap.hxx>
57 #include <cppuhelper/weak.hxx>
58 #include <soldep/soldep.hxx>
60 using namespace ::com::sun::star::uno;
61 using namespace ::com::sun::star::lang;
62 class MyWin;
64 class MyApp : public Application
66 ResMgr* pResMgr;
67 SolDep* pSolDep;
68 Application* pMyApp;
69 MyWin* pAppWindow;
71 public:
72 // MyApp();
73 // ~MyApp() {};
74 #if defined(WNT)
75 FILE* pDebugFile;
76 #endif
78 void Main();
79 ResMgr* GetResMgr() const { return pResMgr; }
80 Application* GetMyApp() { return pMyApp; }
81 MyWin* GetAppWin() { return pAppWindow; }
82 SolDep* GetSolDep() { return pSolDep; }
85 // -----------------------------------------------------------------------
87 class MyWin : public WorkWindow
89 protected:
90 MenuBar aMenuBar;
91 // SoldepToolBox aToolBox; //->depper.hxx
92 Wallpaper aWallpaper;
93 // FloatingWindow aTaskBarFrame; // For ToolBox
95 public:
96 MyWin( Window* pParent, WinBits nWinStyle );
98 void MouseMove( const MouseEvent& rMEvt );
99 void MouseButtonDown( const MouseEvent& rMEvt );
100 void MouseButtonUp( const MouseEvent& rMEvt );
101 void KeyInput( const KeyEvent& rKEvt );
102 void KeyUp( const KeyEvent& rKEvt );
103 void Paint( const Rectangle& rRect );
104 void Resize();
105 // FloatingWindow* GetTaskBarFrame() { return &aTaskBarFrame; }
106 // SoldepToolBox* GetSoldepToolBox() { return &aToolBox; }
109 static MyApp aMyApp;
111 #endif