1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _DEPAPP_HXX 25 #define _DEPAPP_HXX 26 27 28 #define EVENT_RESIZE 0x00000001 29 30 31 #include <svl/solar.hrc> 32 #include <tools/resmgr.hxx> 33 #include <soldep/sstring.hxx> 34 #include <vcl/event.hxx> 35 #include <vcl/svapp.hxx> 36 #include <vcl/wrkwin.hxx> 37 #include <vcl/msgbox.hxx> 38 #include <vcl/help.hxx> 39 #include <vcl/button.hxx> 40 #include <vcl/menu.hxx> 41 #include <soldep/soldep.hxx> 42 //#include <soldep/soldlg.hrc> 43 //#include <soldep/tbox.hxx> 44 // ----------------------------------------------------------------------- 45 #include <sal/main.h> 46 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 47 #include <comphelper/processfactory.hxx> 48 #include <cppuhelper/servicefactory.hxx> 49 #include <cppuhelper/bootstrap.hxx> 50 #include <cppuhelper/weak.hxx> 51 #include <soldep/soldep.hxx> 52 53 using namespace ::com::sun::star::uno; 54 using namespace ::com::sun::star::lang; 55 class MyWin; 56 57 class MyApp : public Application 58 { 59 ResMgr* pResMgr; 60 SolDep* pSolDep; 61 Application* pMyApp; 62 MyWin* pAppWindow; 63 64 public: 65 // MyApp(); 66 // ~MyApp() {}; 67 #if defined(WNT) 68 FILE* pDebugFile; 69 #endif 70 71 void Main(); GetResMgr() const72 ResMgr* GetResMgr() const { return pResMgr; } GetMyApp()73 Application* GetMyApp() { return pMyApp; } GetAppWin()74 MyWin* GetAppWin() { return pAppWindow; } GetSolDep()75 SolDep* GetSolDep() { return pSolDep; } 76 }; 77 78 // ----------------------------------------------------------------------- 79 80 class MyWin : public WorkWindow 81 { 82 protected: 83 MenuBar aMenuBar; 84 // SoldepToolBox aToolBox; //->depper.hxx 85 Wallpaper aWallpaper; 86 // FloatingWindow aTaskBarFrame; // For ToolBox 87 88 public: 89 MyWin( Window* pParent, WinBits nWinStyle ); 90 91 void MouseMove( const MouseEvent& rMEvt ); 92 void MouseButtonDown( const MouseEvent& rMEvt ); 93 void MouseButtonUp( const MouseEvent& rMEvt ); 94 void KeyInput( const KeyEvent& rKEvt ); 95 void KeyUp( const KeyEvent& rKEvt ); 96 void Paint( const Rectangle& rRect ); 97 void Resize(); 98 // FloatingWindow* GetTaskBarFrame() { return &aTaskBarFrame; } 99 // SoldepToolBox* GetSoldepToolBox() { return &aToolBox; } 100 101 }; 102 static MyApp aMyApp; 103 104 #endif 105 106