LibreOffice Module reportdesign (master) 1
propbrw.hxx
Go to the documentation of this file.
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 INCLUDED_REPORTDESIGN_SOURCE_UI_INC_PROPBRW_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_PROPBRW_HXX
22
23#include <com/sun/star/frame/XFrame2.hpp>
24#include <com/sun/star/inspection/XObjectInspector.hpp>
25#include <com/sun/star/uno/XComponentContext.hpp>
27#include <svl/lstner.hxx>
28#include <vcl/dockwin.hxx>
29#include <vcl/layout.hxx>
30#include <svx/svdmark.hxx>
31
32namespace rptui
33{
34
35class OSectionView;
36class ODesignView;
37class OObjectBase;
38
39// PropBrw
40
41
42class PropBrw final : public DockingWindow , public SfxListener, public SfxBroadcaster
43{
45
46 css::uno::Reference< css::uno::XComponentContext >
48 css::uno::Reference< css::uno::XComponentContext >
50 css::uno::Reference< css::frame::XFrame2 >
52 css::uno::Reference< css::inspection::XObjectInspector >
54 css::uno::Reference< css::uno::XInterface>
60
61 PropBrw(PropBrw const &) = delete;
62 void operator =(PropBrw const &) = delete;
63
64 virtual bool Close() override;
65
66 css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >
67 CreateCompPropSet(const SdrMarkList& rMarkList);
68
70 const css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >& _aObjects = css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >());
71
72 static OUString GetHeadlineName(
73 const css::uno::Sequence< css::uno::Reference< css::uno::XInterface> >& _aObjects);
74
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 );
81
82public:
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;
88
89 virtual void LoseFocus() override;
90
92 void Update( const css::uno::Reference< css::uno::XInterface>& _xReportComponent);
93 OUString getCurrentPage() const;
94 void setCurrentPage(const OUString& _sLastActivePage);
95
96 ::Size getMinimumSize() const;
97};
98
99} // rptui
100
101#endif // INCLUDED_REPORTDESIGN_SOURCE_UI_INC_PROPBRW_HXX
102
103/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PropBrw(const css::uno::Reference< css::uno::XComponentContext > &_xORB, Window *pParent, ODesignView *_pDesignView)
css::uno::Reference< css::inspection::XObjectInspector > m_xBrowserController
Definition: propbrw.hxx:53
css::uno::Reference< css::uno::XInterface > m_xLastSection
Definition: propbrw.hxx:55
static OUString GetHeadlineName(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > &_aObjects)
::Size getMinimumSize() const
Definition: propbrw.cxx:403
void implSetNewObject(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > &_aObjects=css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >())
css::uno::Reference< css::uno::XInterface > CreateComponentPair(const css::uno::Reference< css::uno::XInterface > &_xFormComponent, const css::uno::Reference< css::uno::XInterface > &_xReportComponent)
void setCurrentPage(const OUString &_sLastActivePage)
Definition: propbrw.cxx:202
VclPtr< ODesignView > m_pDesignView
Definition: propbrw.hxx:57
OSectionView * m_pView
Definition: propbrw.hxx:58
css::uno::Reference< css::frame::XFrame2 > m_xMeAsFrame
Definition: propbrw.hxx:51
void Update(const css::uno::Reference< css::uno::XInterface > &_xReportComponent)
OUString getCurrentPage() const
Definition: propbrw.cxx:223
virtual bool Close() override
Definition: propbrw.cxx:243
void implDetachController()
Definition: propbrw.cxx:208
VclPtr< VclVBox > m_xContentArea
Definition: propbrw.hxx:44
css::uno::Reference< css::uno::XComponentContext > m_xORB
Definition: propbrw.hxx:49
bool m_bInitialStateChange
Definition: propbrw.hxx:59
void Update(OSectionView *m_pView)
Definition: propbrw.cxx:418
PropBrw(PropBrw const &)=delete
virtual ~PropBrw() override
Definition: propbrw.cxx:171
DECL_LINK(OnAsyncGetFocus, void *, void)
void operator=(PropBrw const &)=delete
OUString m_sLastActivePage
is the previously displayed section
Definition: propbrw.hxx:56
css::uno::Reference< css::uno::XInterface > CreateComponentPair(OObjectBase *_pObj)
Definition: propbrw.cxx:386
css::uno::Reference< css::uno::XComponentContext > m_xInspectorContext
Definition: propbrw.hxx:47
virtual void LoseFocus() override
Definition: propbrw.cxx:519
virtual void dispose() override
Definition: propbrw.cxx:176
css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > CreateCompPropSet(const SdrMarkList &rMarkList)
Definition: propbrw.cxx:267
Window(vcl::Window *pParent, WinBits nStyle=0)