LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FmPropBrw Class Referencefinal

#include <fmPropBrw.hxx>

Inheritance diagram for FmPropBrw:
Collaboration diagram for FmPropBrw:

Public Member Functions

 FmPropBrw (const css::uno::Reference< css::uno::XComponentContext > &_xORB, SfxBindings *pBindings, SfxChildWindow *pMgr, weld::Window *pParent, const SfxChildWinInfo *_pInfo)
virtual ~FmPropBrw () override
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
void Initialize (SfxChildWinInfo const *pInfo)
bool IsClosing () const
virtual void Close () override
virtual void EndDialog (int nResponse) override
virtual void Activate () override
virtual void Deactivate () override
virtual void ChildWinDispose () override
virtual void FillInfo (SfxChildWinInfo &) const
SfxBindingsGetBindings () const
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
virtual void Activate ()
virtual void Deactivate ()
virtual void ChildWinDispose ()
virtual void Close ()
virtual void EndDialog (int nResponse)
virtual bool CloseOnHide () const
- Public Member Functions inherited from SfxControllerItem
SfxBindingsGetBindings ()
const SfxBindingsGetBindings () const
 SfxControllerItem ()
 SfxControllerItem (sal_uInt16 nId, SfxBindings &)
virtual ~SfxControllerItem ()
virtual void dispose ()
void Bind (sal_uInt16 nNewId, SfxBindings *)
void UnBind ()
void ReBind ()
bool IsBound () const
void ClearCache ()
SfxControllerItemGetItemLink ()
SfxControllerItemChangeItemLink (SfxControllerItem *pNewLink)
void SetId (sal_uInt16 nItemId)
sal_uInt16 GetId () const
virtual void StateChangedAtToolBoxControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState)
virtual void GetControlState (sal_uInt16 nSID, boost::property_tree::ptree &)
MapUnit GetCoreMetric () const
void SetFallbackCoreMetric (MapUnit eFallback)
SAL_DLLPRIVATE void BindInternal_Impl (sal_uInt16 nNewId, SfxBindings *)

Private Member Functions

virtual void StateChangedAtToolBoxControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
virtual void FillInfo (SfxChildWinInfo &rInfo) const override
virtual void Close () override
 DECL_LINK (OnAsyncGetFocus, void *, void)
void implSetNewSelection (const InterfaceBag &_rSelection)
void implDetachController ()
bool implIsReadOnlyModel () const
OUString getCurrentPage () const
void impl_ensurePropertyBrowser_nothrow (FmFormShell *_pFormShell)
 creates the PropertyBrowser (aka ObjectInspector) and plugs it into our frame More...
void impl_createPropertyBrowser_throw (FmFormShell *_pFormShell)
 creates a property browser More...

Private Attributes

bool m_bInitialStateChange
OUString m_sLastActivePage
std::unique_ptr< weld::Boxm_xDialogBox
std::unique_ptr< weld::Containerm_xContainer
css::uno::Reference< css::uno::XComponentContext > m_xInspectorContext
css::uno::Reference< css::uno::XComponentContext > m_xORB
css::uno::Reference< css::frame::XFrame2 > m_xMeAsFrame
css::uno::Reference< css::uno::XInterface > m_xLastKnownDocument
css::uno::Reference< css::inspection::XObjectInspectorModel > m_xInspectorModel
css::uno::Reference< css::frame::XController > m_xBrowserController

Additional Inherited Members

- Static Public Member Functions inherited from SfxControllerItem
static SfxItemState GetItemState (const SfxPoolItem *pState)
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)

Detailed Description

Definition at line 42 of file fmPropBrw.hxx.

Constructor & Destructor Documentation

◆ FmPropBrw()

FmPropBrw::FmPropBrw ( const css::uno::Reference< css::uno::XComponentContext > &  _xORB,
SfxBindings pBindings,
SfxChildWindow pMgr,
weld::Window pParent,
const SfxChildWinInfo _pInfo 

◆ ~FmPropBrw()

FmPropBrw::~FmPropBrw ( )

Member Function Documentation

◆ Close()

void FmPropBrw::Close ( )


FmPropBrw::DECL_LINK ( OnAsyncGetFocus  ,
void *  ,

◆ FillInfo()

void FmPropBrw::FillInfo ( SfxChildWinInfo rInfo) const

◆ getCurrentPage()

OUString FmPropBrw::getCurrentPage ( ) const

Definition at line 238 of file fmPropBrw.cxx.

References Exception, m_sLastActivePage, m_xBrowserController, and TOOLS_WARN_EXCEPTION.

Referenced by FillInfo(), and implDetachController().

◆ impl_createPropertyBrowser_throw()

void FmPropBrw::impl_createPropertyBrowser_throw ( FmFormShell _pFormShell)

creates a property browser

After this method returns, m_xBrowserController is not <NULL>.

@precond we don't have an ObjectInspector, yet, i.e. m_xBrowserController is <NULL>.

Definition at line 416 of file fmPropBrw.cxx.

References Any, SdrPageWindow::GetControlContainer(), FmFormShell::GetCurPage(), FmFormShell::GetFormView(), FmFormPage::GetImpl(), SfxObjectShell::GetModel(), SfxShell::GetObjectShell(), SdrPageView::GetPageWindow(), SdrPaintView::GetSdrPageView(), m_pParent, m_xBrowserController, m_xDialog, m_xInspectorContext, m_xInspectorModel, m_xMeAsFrame, m_xORB, SAL_N_ELEMENTS, ShowServiceNotAvailableError(), and u.

Referenced by impl_ensurePropertyBrowser_nothrow().

◆ impl_ensurePropertyBrowser_nothrow()

void FmPropBrw::impl_ensurePropertyBrowser_nothrow ( FmFormShell _pFormShell)

creates the PropertyBrowser (aka ObjectInspector) and plugs it into our frame

This method ensures that a new component is created every time the XModel which we're working for changed. This is necessary since this model is part of the ComponentContext we use to create the ObjectInspector.

Definition at line 495 of file fmPropBrw.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, SfxObjectShell::GetModel(), SfxShell::GetObjectShell(), impl_createPropertyBrowser_throw(), m_xBrowserController, m_xInspectorModel, m_xLastKnownDocument, and m_xMeAsFrame.

Referenced by StateChangedAtToolBoxControl().

◆ implDetachController()

void FmPropBrw::implDetachController ( )

◆ implIsReadOnlyModel()

bool FmPropBrw::implIsReadOnlyModel ( ) const

Definition at line 317 of file fmPropBrw.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_xInspectorModel.

Referenced by implSetNewSelection().

◆ implSetNewSelection()

void FmPropBrw::implSetNewSelection ( const InterfaceBag _rSelection)

◆ StateChangedAtToolBoxControl()

void FmPropBrw::StateChangedAtToolBoxControl ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 

Member Data Documentation

◆ m_bInitialStateChange

bool FmPropBrw::m_bInitialStateChange

Definition at line 44 of file fmPropBrw.hxx.

Referenced by StateChangedAtToolBoxControl().

◆ m_nAsyncGetFocusId

ImplSVEvent* FmPropBrw::m_nAsyncGetFocusId

Definition at line 46 of file fmPropBrw.hxx.

Referenced by StateChangedAtToolBoxControl(), and ~FmPropBrw().

◆ m_pParent

weld::Window* FmPropBrw::m_pParent

Definition at line 45 of file fmPropBrw.hxx.

Referenced by impl_createPropertyBrowser_throw().

◆ m_sLastActivePage

OUString FmPropBrw::m_sLastActivePage

◆ m_xBrowserController

css::uno::Reference< css::frame::XController > FmPropBrw::m_xBrowserController

◆ m_xContainer

std::unique_ptr<weld::Container> FmPropBrw::m_xContainer

Definition at line 49 of file fmPropBrw.hxx.

Referenced by FmPropBrw().

◆ m_xDialogBox

std::unique_ptr<weld::Box> FmPropBrw::m_xDialogBox

Definition at line 48 of file fmPropBrw.hxx.

◆ m_xInspectorContext

css::uno::Reference< css::uno::XComponentContext > FmPropBrw::m_xInspectorContext

Definition at line 51 of file fmPropBrw.hxx.

Referenced by impl_createPropertyBrowser_throw(), and ~FmPropBrw().

◆ m_xInspectorModel

css::uno::Reference< css::inspection::XObjectInspectorModel > FmPropBrw::m_xInspectorModel

◆ m_xLastKnownDocument

css::uno::Reference< css::uno::XInterface > FmPropBrw::m_xLastKnownDocument

Definition at line 57 of file fmPropBrw.hxx.

Referenced by impl_ensurePropertyBrowser_nothrow().

◆ m_xMeAsFrame

css::uno::Reference< css::frame::XFrame2 > FmPropBrw::m_xMeAsFrame

◆ m_xORB

css::uno::Reference< css::uno::XComponentContext > FmPropBrw::m_xORB

Definition at line 53 of file fmPropBrw.hxx.

Referenced by FmPropBrw(), and impl_createPropertyBrowser_throw().

The documentation for this class was generated from the following files: