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::Box> m_xDialogBox;
49 std::unique_ptr<weld::Container> m_xContainer;
50 css::uno::Reference< css::uno::XComponentContext >
52 css::uno::Reference< css::uno::XComponentContext >
54 css::uno::Reference< css::frame::XFrame2 >
56 css::uno::Reference< css::uno::XInterface >
58 css::uno::Reference< css::inspection::XObjectInspectorModel >
60 css::uno::Reference< css::frame::XController >
62
63 virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState) override;
64 virtual void FillInfo( SfxChildWinInfo& rInfo ) const override;
65 virtual void Close() override;
66
67 DECL_LINK( OnAsyncGetFocus, void*, void );
68
69 void implSetNewSelection( const InterfaceBag& _rSelection );
71 bool implIsReadOnlyModel() const;
72 OUString getCurrentPage() const;
73
74public:
76 const css::uno::Reference< css::uno::XComponentContext >& _xORB,
78 SfxChildWindow* pMgr,
79 weld::Window* pParent,
80 const SfxChildWinInfo* _pInfo
81 );
82 virtual ~FmPropBrw() override;
83
84private:
85
93
102};
103#endif // INCLUDED_SVX_SOURCE_INC_FMPROPBRW_HXX
104
105/* 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:258
DECL_LINK(OnAsyncGetFocus, void *, void)
OUString getCurrentPage() const
Definition: fmPropBrw.cxx:238
css::uno::Reference< css::inspection::XObjectInspectorModel > m_xInspectorModel
Definition: fmPropBrw.hxx:59
virtual ~FmPropBrw() override
Definition: fmPropBrw.cxx:205
void impl_ensurePropertyBrowser_nothrow(FmFormShell *_pFormShell)
creates the PropertyBrowser (aka ObjectInspector) and plugs it into our frame
Definition: fmPropBrw.cxx:495
void impl_createPropertyBrowser_throw(FmFormShell *_pFormShell)
creates a property browser
Definition: fmPropBrw.cxx:416
css::uno::Reference< css::uno::XInterface > m_xLastKnownDocument
Definition: fmPropBrw.hxx:57
bool implIsReadOnlyModel() const
Definition: fmPropBrw.cxx:317
virtual void FillInfo(SfxChildWinInfo &rInfo) const override
Definition: fmPropBrw.cxx:389
css::uno::Reference< css::frame::XFrame2 > m_xMeAsFrame
Definition: fmPropBrw.hxx:55
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: fmPropBrw.cxx:527
virtual void Close() override
Definition: fmPropBrw.cxx:287
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:49
std::unique_ptr< weld::Box > m_xDialogBox
Definition: fmPropBrw.hxx:48
bool m_bInitialStateChange
Definition: fmPropBrw.hxx:44
css::uno::Reference< css::uno::XComponentContext > m_xInspectorContext
Definition: fmPropBrw.hxx:51
ImplSVEvent * m_nAsyncGetFocusId
Definition: fmPropBrw.hxx:46
void implSetNewSelection(const InterfaceBag &_rSelection)
Definition: fmPropBrw.cxx:333
css::uno::Reference< css::uno::XComponentContext > m_xORB
Definition: fmPropBrw.hxx:53
css::uno::Reference< css::frame::XController > m_xBrowserController
Definition: fmPropBrw.hxx:61
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