bump product version to 4.1.6.2
[LibreOffice.git] / extensions / source / propctrlr / browserview.hxx
blob8b7358d43afd9ef342b3e815fb69b32825b3b6d5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_
21 #define _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_
23 #include <com/sun/star/beans/XPropertySet.hpp>
24 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
25 #include <vcl/window.hxx>
26 #include <tools/resid.hxx>
27 #include <com/sun/star/awt/Size.hpp>
29 //............................................................................
30 namespace pcr
32 //............................................................................
34 class OPropertyEditor;
36 //========================================================================
37 //=
38 //========================================================================
39 class OPropertyBrowserView : public Window
41 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB;
43 OPropertyEditor* m_pPropBox;
44 sal_uInt16 m_nActivePage;
45 Link m_aPageActivationHandler;
47 protected:
48 virtual void Resize();
49 virtual void GetFocus();
50 virtual long Notify( NotifyEvent& _rNEvt );
52 public:
53 OPropertyBrowserView(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB,
54 Window* pParent, WinBits nBits = 0);
56 virtual ~OPropertyBrowserView();
58 OPropertyEditor& getPropertyBox() { return *m_pPropBox; }
60 // page handling
61 sal_uInt16 getActivaPage() const { return m_nActivePage; }
62 void activatePage(sal_uInt16 _nPage);
64 void setPageActivationHandler(const Link& _rHdl) { m_aPageActivationHandler = _rHdl; }
65 Link getPageActivationHandler() const { return m_aPageActivationHandler; }
67 ::com::sun::star::awt::Size getMinimumSize();
69 protected:
70 DECL_LINK(OnPageActivation, void*);
74 //............................................................................
75 } // namespace pcr
76 //............................................................................
78 #endif // _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */