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 _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_ 25 #define _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_ 26 27 #include <com/sun/star/beans/XPropertySet.hpp> 28 #include <com/sun/star/lang/XMultiServiceFactory.hpp> 29 #include <vcl/window.hxx> 30 #include <tools/resid.hxx> 31 // #95343# -------------------- 32 #include <com/sun/star/awt/Size.hpp> 33 34 //............................................................................ 35 namespace pcr 36 { 37 //............................................................................ 38 39 class OPropertyEditor; 40 41 //======================================================================== 42 //= 43 //======================================================================== 44 class OPropertyBrowserView : public Window 45 { 46 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB; 47 48 OPropertyEditor* m_pPropBox; 49 sal_uInt16 m_nActivePage; 50 Link m_aPageActivationHandler; 51 52 protected: 53 virtual void Resize(); 54 virtual void GetFocus(); 55 virtual long Notify( NotifyEvent& _rNEvt ); 56 57 public: 58 OPropertyBrowserView(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB, 59 Window* pParent, WinBits nBits = 0); 60 61 virtual ~OPropertyBrowserView(); 62 getPropertyBox()63 OPropertyEditor& getPropertyBox() { return *m_pPropBox; } 64 65 // page handling getActivaPage() const66 sal_uInt16 getActivaPage() const { return m_nActivePage; } 67 void activatePage(sal_uInt16 _nPage); 68 setPageActivationHandler(const Link & _rHdl)69 void setPageActivationHandler(const Link& _rHdl) { m_aPageActivationHandler = _rHdl; } getPageActivationHandler() const70 Link getPageActivationHandler() const { return m_aPageActivationHandler; } 71 72 // #95343# ------------------ 73 ::com::sun::star::awt::Size getMinimumSize(); 74 75 protected: 76 DECL_LINK(OnPageActivation, void*); 77 }; 78 79 80 //............................................................................ 81 } // namespace pcr 82 //............................................................................ 83 84 #endif // _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_ 85 86