LibreOffice Module svx (master) 1
fmPropBrw.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#ifndef INCLUDED_SVX_SOURCE_INC_FMPROPBRW_HXX
20#define INCLUDED_SVX_SOURCE_INC_FMPROPBRW_HXX
21
22#include <com/sun/star/frame/XFrame2.hpp>
23#include <com/sun/star/inspection/XObjectInspectorModel.hpp>
24#include <com/sun/star/uno/XComponentContext.hpp>
25
26#include <sfx2/basedlgs.hxx>
27#include <sfx2/ctrlitem.hxx>
28#include <sfx2/childwin.hxx>
29#include <svx/fmtools.hxx>
30
31
32class FmPropBrwMgr final : public SfxChildWindow
33{
34public:
35 FmPropBrwMgr(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, const SfxChildWinInfo *pInfo);
37};
38
39class SfxBindings;
40class FmFormShell;
41
43{
48 std::unique_ptr<weld::Container> m_xContainer;
49 css::uno::Reference< css::uno::XComponentContext >
51 css::uno::Reference< css::uno::XComponentContext >
53 css::uno::Reference< css::frame::XFrame2 >
55 css::uno::Reference< css::uno::XInterface >
57 css::uno::Reference< css::inspection::XObjectInspectorModel >
59 css::uno::Reference< css::frame::XController >
61
62 virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState) override;
63 virtual void FillInfo( SfxChildWinInfo& rInfo ) const override;
64 virtual void Close() override;
65
66 DECL_LINK( OnAsyncGetFocus, void*, void );
67
68 void implSetNewSelection( const InterfaceBag& _rSelection );
70 bool implIsReadOnlyModel() const;
71 OUString getCurrentPage() const;
72
73public:
75 const css::uno::Reference< css::uno::XComponentContext >& _xORB,
77 SfxChildWindow* pMgr,
78 weld::Window* pParent,
79 const SfxChildWinInfo* _pInfo
80 );
81 virtual ~FmPropBrw() override;
82
83private:
84
92
101};
102#endif // INCLUDED_SVX_SOURCE_INC_FMPROPBRW_HXX
103
104/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SFX_DECL_CHILDWINDOW(FmPropBrwMgr)
FmPropBrwMgr(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, const SfxChildWinInfo *pInfo)
Definition: fmPropBrw.cxx:83
void implDetachController()
Definition: fmPropBrw.cxx:257
DECL_LINK(OnAsyncGetFocus, void *, void)
OUString getCurrentPage() const
Definition: fmPropBrw.cxx:237
css::uno::Reference< css::inspection::XObjectInspectorModel > m_xInspectorModel
Definition: fmPropBrw.hxx:58
virtual ~FmPropBrw() override
Definition: fmPropBrw.cxx:204
void impl_ensurePropertyBrowser_nothrow(FmFormShell *_pFormShell)
creates the PropertyBrowser (aka ObjectInspector) and plugs it into our frame
Definition: fmPropBrw.cxx:493
void impl_createPropertyBrowser_throw(FmFormShell *_pFormShell)
creates a property browser
Definition: fmPropBrw.cxx:414
css::uno::Reference< css::uno::XInterface > m_xLastKnownDocument
Definition: fmPropBrw.hxx:56
bool implIsReadOnlyModel() const
Definition: fmPropBrw.cxx:316
virtual void FillInfo(SfxChildWinInfo &rInfo) const override
Definition: fmPropBrw.cxx:388
css::uno::Reference< css::frame::XFrame2 > m_xMeAsFrame
Definition: fmPropBrw.hxx:54
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: fmPropBrw.cxx:525
virtual void Close() override
Definition: fmPropBrw.cxx:286
OUString m_sLastActivePage
Definition: fmPropBrw.hxx:47
weld::Window * m_pParent
Definition: fmPropBrw.hxx:45
std::unique_ptr< weld::Container > m_xContainer
Definition: fmPropBrw.hxx:48
bool m_bInitialStateChange
Definition: fmPropBrw.hxx:44
css::uno::Reference< css::uno::XComponentContext > m_xInspectorContext
Definition: fmPropBrw.hxx:50
ImplSVEvent * m_nAsyncGetFocusId
Definition: fmPropBrw.hxx:46
void implSetNewSelection(const InterfaceBag &_rSelection)
Definition: fmPropBrw.cxx:332
css::uno::Reference< css::uno::XComponentContext > m_xORB
Definition: fmPropBrw.hxx:52
css::uno::Reference< css::frame::XController > m_xBrowserController
Definition: fmPropBrw.hxx:60
FmPropBrw(const css::uno::Reference< css::uno::XComponentContext > &_xORB, SfxBindings *pBindings, SfxChildWindow *pMgr, weld::Window *pParent, const SfxChildWinInfo *_pInfo)
Definition: fmPropBrw.cxx:172
VclPtr< vcl::Window > pParent
SfxBindings * pBindings
sal_Int16 nId
SfxItemState