Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_
21 : #define _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_
22 :
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>
28 :
29 : //............................................................................
30 : namespace pcr
31 : {
32 : //............................................................................
33 :
34 : class OPropertyEditor;
35 :
36 : //========================================================================
37 : //=
38 : //========================================================================
39 : class OPropertyBrowserView : public Window
40 : {
41 : ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB;
42 :
43 : OPropertyEditor* m_pPropBox;
44 : sal_uInt16 m_nActivePage;
45 : Link m_aPageActivationHandler;
46 :
47 : protected:
48 : virtual void Resize();
49 : virtual void GetFocus();
50 : virtual long Notify( NotifyEvent& _rNEvt );
51 :
52 : public:
53 : OPropertyBrowserView(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB,
54 : Window* pParent, WinBits nBits = 0);
55 :
56 : virtual ~OPropertyBrowserView();
57 :
58 0 : OPropertyEditor& getPropertyBox() { return *m_pPropBox; }
59 :
60 : // page handling
61 0 : sal_uInt16 getActivaPage() const { return m_nActivePage; }
62 : void activatePage(sal_uInt16 _nPage);
63 :
64 0 : void setPageActivationHandler(const Link& _rHdl) { m_aPageActivationHandler = _rHdl; }
65 : Link getPageActivationHandler() const { return m_aPageActivationHandler; }
66 :
67 : ::com::sun::star::awt::Size getMinimumSize();
68 :
69 : protected:
70 : DECL_LINK(OnPageActivation, void*);
71 : };
72 :
73 :
74 : //............................................................................
75 : } // namespace pcr
76 : //............................................................................
77 :
78 : #endif // _EXTENSIONS_PROPCTRLR_BROWSERVIEW_HXX_
79 :
80 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|