Use o3tl::convert in Math
[LibreOffice.git] / reportdesign / source / ui / inc / propbrw.hxx
blob5b697df054261f2d043813786af422a7ee8b31b2
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/frame/XFrame2.hpp>
24 #include <com/sun/star/inspection/XObjectInspector.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <svl/SfxBroadcaster.hxx>
27 #include <svl/lstner.hxx>
28 #include <vcl/dockwin.hxx>
29 #include <vcl/layout.hxx>
30 #include <svx/svdmark.hxx>
32 namespace rptui
35 class OSectionView;
36 class ODesignView;
37 class OObjectBase;
39 // PropBrw
42 class PropBrw final : public DockingWindow , public SfxListener, public SfxBroadcaster
44 VclPtr<VclVBox> m_xContentArea;
46 css::uno::Reference< css::uno::XComponentContext >
47 m_xInspectorContext;
48 css::uno::Reference< css::uno::XComponentContext >
49 m_xORB;
50 css::uno::Reference< css::frame::XFrame2 >
51 m_xMeAsFrame;
52 css::uno::Reference< css::inspection::XObjectInspector >
53 m_xBrowserController;
54 css::uno::Reference< css::uno::XInterface>
55 m_xLastSection; /// is the previously displayed section
56 OUString m_sLastActivePage;
57 VclPtr<ODesignView> m_pDesignView;
58 OSectionView* m_pView;
59 bool m_bInitialStateChange;
61 PropBrw(PropBrw const &) = delete;
62 void operator =(PropBrw const &) = delete;
64 virtual bool Close() override;
66 css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >
67 CreateCompPropSet(const SdrMarkList& rMarkList);
69 void implSetNewObject(
70 const css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >& _aObjects = css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >());
72 static OUString GetHeadlineName(
73 const css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >& _aObjects);
75 void implDetachController();
76 css::uno::Reference< css::uno::XInterface> CreateComponentPair(OObjectBase* _pObj);
77 css::uno::Reference< css::uno::XInterface> CreateComponentPair(
78 const css::uno::Reference< css::uno::XInterface>& _xFormComponent
79 ,const css::uno::Reference< css::uno::XInterface>& _xReportComponent);
80 DECL_LINK( OnAsyncGetFocus, void*, void );
82 public:
83 PropBrw(const css::uno::Reference< css::uno::XComponentContext >& _xORB
84 ,Window* pParent
85 ,ODesignView* _pDesignView);
86 virtual ~PropBrw() override;
87 virtual void dispose() override;
89 virtual void LoseFocus() override;
91 void Update( OSectionView* m_pView );
92 void Update( const css::uno::Reference< css::uno::XInterface>& _xReportComponent);
93 OUString getCurrentPage() const;
94 void setCurrentPage(const OUString& _sLastActivePage);
96 ::Size getMinimumSize() const;
99 } // rptui
101 #endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_PROPBRW_HXX
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */