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: depapp.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 ************************************************************************/
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 // -----------------------------------------------------------------------
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
;
64 class MyApp
: public Application
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
91 // SoldepToolBox aToolBox; //->depper.hxx
93 // FloatingWindow aTaskBarFrame; // For ToolBox
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
);
105 // FloatingWindow* GetTaskBarFrame() { return &aTaskBarFrame; }
106 // SoldepToolBox* GetSoldepToolBox() { return &aToolBox; }