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 __FRAMEWORK_LAYOUTMANAGER_PANEL_HXX_ 25 #define __FRAMEWORK_LAYOUTMANAGER_PANEL_HXX_ 26 27 //_________________________________________________________________________________________________________________ 28 // my own includes 29 //_________________________________________________________________________________________________________________ 30 31 #include <macros/generic.hxx> 32 #include <stdtypes.h> 33 #include <properties.h> 34 35 //_________________________________________________________________________________________________________________ 36 // interface includes 37 //_________________________________________________________________________________________________________________ 38 39 #include <com/sun/star/awt/XWindow.hpp> 40 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 41 42 //_________________________________________________________________________________________________________________ 43 // other includes 44 //_________________________________________________________________________________________________________________ 45 46 #include <vcl/window.hxx> 47 #include <vcl/splitwin.hxx> 48 49 //_________________________________________________________________________________________________________________ 50 // namespace 51 //_________________________________________________________________________________________________________________ 52 53 namespace framework 54 { 55 56 enum PanelPosition 57 { 58 PANEL_TOP, 59 PANEL_LEFT, 60 PANEL_RIGHT, 61 PANEL_BOTTOM, 62 PANEL_COUNT 63 }; 64 65 class Panel 66 { 67 public: 68 Panel( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMGR, 69 const css::uno::Reference< css::awt::XWindow >& rParent, 70 PanelPosition nPanel ); 71 virtual ~Panel(); 72 73 private: 74 css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMGR; 75 css::uno::Reference< css::awt::XWindow > m_xPanelWindow; 76 PanelPosition m_nPanelPosition; 77 }; 78 79 } 80 81 #endif // __FRAMEWORK_LAYOUTMANAGER_PANEL_HXX_ 82