bump product version to 6.3.0.0.beta1
[LibreOffice.git] / reportdesign / source / ui / inc / propbrw.hxx
blobf09e8c205ddfa0d33108529f8c65632a18611aa0
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_REPORTDESIGN_SOURCE_UI_INC_PROPBRW_HXX
21 #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_PROPBRW_HXX
23 #include <com/sun/star/beans/XPropertySet.hpp>
24 #include <com/sun/star/awt/XControlContainer.hpp>
25 #include <com/sun/star/frame/XFrame2.hpp>
26 #include <com/sun/star/inspection/XObjectInspector.hpp>
27 #include <com/sun/star/uno/XComponentContext.hpp>
28 #include <svl/SfxBroadcaster.hxx>
29 #include <svl/lstner.hxx>
30 #include <vcl/dockwin.hxx>
31 #include <svx/svdmark.hxx>
33 namespace rptui
36 class OSectionView;
37 class ODesignView;
38 class OObjectBase;
40 // PropBrw
43 class PropBrw final : public DockingWindow , public SfxListener, public SfxBroadcaster
45 css::uno::Reference< css::uno::XComponentContext >
46 m_xInspectorContext;
47 css::uno::Reference< css::uno::XComponentContext >
48 m_xORB;
49 css::uno::Reference< css::frame::XFrame2 >
50 m_xMeAsFrame;
51 css::uno::Reference< css::inspection::XObjectInspector >
52 m_xBrowserController;
53 css::uno::Reference< css::awt::XWindow >
54 m_xBrowserComponentWindow;
55 css::uno::Reference< css::uno::XInterface>
56 m_xLastSection; /// is the previously displayed section
57 OUString m_sLastActivePage;
58 VclPtr<ODesignView> m_pDesignView;
59 OSectionView* m_pView;
60 bool m_bInitialStateChange;
62 PropBrw(PropBrw const &) = delete;
63 void operator =(PropBrw const &) = delete;
65 virtual void Resize() override;
66 virtual bool Close() override;
68 css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >
69 CreateCompPropSet(const SdrMarkList& rMarkList);
71 void implSetNewObject(
72 const css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >& _aObjects = css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >());
74 static OUString GetHeadlineName(
75 const css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >& _aObjects);
77 void implDetachController();
78 css::uno::Reference< css::uno::XInterface> CreateComponentPair(OObjectBase* _pObj);
79 css::uno::Reference< css::uno::XInterface> CreateComponentPair(
80 const css::uno::Reference< css::uno::XInterface>& _xFormComponent
81 ,const css::uno::Reference< css::uno::XInterface>& _xReportComponent);
82 DECL_LINK( OnAsyncGetFocus, void*, void );
84 public:
85 PropBrw(const css::uno::Reference< css::uno::XComponentContext >& _xORB
86 ,Window* pParent
87 ,ODesignView* _pDesignView);
88 virtual ~PropBrw() override;
89 virtual void dispose() override;
91 virtual void LoseFocus() override;
93 void Update( OSectionView* m_pView );
94 void Update( const css::uno::Reference< css::uno::XInterface>& _xReportComponent);
95 OUString getCurrentPage() const;
96 void setCurrentPage(const OUString& _sLastActivePage);
98 ::Size getMinimumSize() const;
99 private:
100 using Window::Update;
103 } // rptui
105 #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_PROPBRW_HXX
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */