bump product version to 6.3.0.0.beta1
[LibreOffice.git] / extensions / source / propctrlr / browserview.hxx
blob30203162fdab520322de4c35dacb30861b6c3d6c
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 INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_BROWSERVIEW_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_BROWSERVIEW_HXX
23 #include <com/sun/star/beans/XPropertySet.hpp>
24 #include <vcl/window.hxx>
25 #include <com/sun/star/awt/Size.hpp>
28 namespace pcr
32 class OPropertyEditor;
34 class OPropertyBrowserView final : public vcl::Window
36 VclPtr<OPropertyEditor> m_pPropBox;
37 sal_uInt16 m_nActivePage;
38 Link<LinkParamNone*,void> m_aPageActivationHandler;
40 virtual void Resize() override;
41 virtual void GetFocus() override;
42 virtual bool EventNotify( NotifyEvent& _rNEvt ) override;
44 public:
45 explicit OPropertyBrowserView( vcl::Window* pParent);
47 virtual ~OPropertyBrowserView() override;
48 virtual void dispose() override;
50 OPropertyEditor& getPropertyBox() { return *m_pPropBox; }
52 // page handling
53 sal_uInt16 getActivaPage() const { return m_nActivePage; }
54 void activatePage(sal_uInt16 _nPage);
56 void setPageActivationHandler(const Link<LinkParamNone*,void>& _rHdl) { m_aPageActivationHandler = _rHdl; }
58 css::awt::Size getMinimumSize();
60 private:
61 DECL_LINK(OnPageActivation, LinkParamNone*, void);
65 } // namespace pcr
68 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_BROWSERVIEW_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */