LibreOffice Module svx (master) 1
|
#include <fmPropBrw.hxx>
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 |
SfxBindings & | GetBindings () 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 | |
SfxBindings & | GetBindings () |
const SfxBindings & | GetBindings () 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 () |
SfxControllerItem * | GetItemLink () |
SfxControllerItem * | ChangeItemLink (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 |
weld::Window * | m_pParent |
ImplSVEvent * | m_nAsyncGetFocusId |
OUString | m_sLastActivePage |
std::unique_ptr< weld::Box > | m_xDialogBox |
std::unique_ptr< weld::Container > | m_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) | |
Definition at line 42 of file fmPropBrw.hxx.
FmPropBrw::FmPropBrw | ( | const css::uno::Reference< css::uno::XComponentContext > & | _xORB, |
SfxBindings * | pBindings, | ||
SfxChildWindow * | pMgr, | ||
weld::Window * | pParent, | ||
const SfxChildWinInfo * | _pInfo | ||
) |
Definition at line 172 of file fmPropBrw.cxx.
References SfxChildWinInfo::aExtraString, Exception, m_sLastActivePage, m_xContainer, m_xContainer, m_xMeAsFrame, and m_xORB.
|
overridevirtual |
Definition at line 205 of file fmPropBrw.cxx.
References DBG_UNHANDLED_EXCEPTION, SfxControllerItem::dispose(), Exception, i, implDetachController(), m_nAsyncGetFocusId, m_xBrowserController, m_xInspectorContext, and Application::RemoveUserEvent().
|
overrideprivatevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 287 of file fmPropBrw.cxx.
References SfxModelessDialogController::Close(), Exception, SfxControllerItem::GetBindings(), implDetachController(), SfxBindings::Invalidate(), m_xMeAsFrame, TOOLS_WARN_EXCEPTION, and xController.
|
private |
|
overrideprivatevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 389 of file fmPropBrw.cxx.
References SfxChildWinInfo::aExtraString, SfxChildWinInfo::bVisible, and getCurrentPage().
|
private |
Definition at line 238 of file fmPropBrw.cxx.
References Exception, m_sLastActivePage, m_xBrowserController, and TOOLS_WARN_EXCEPTION.
Referenced by FillInfo(), and implDetachController().
|
private |
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().
|
private |
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().
|
private |
Definition at line 258 of file fmPropBrw.cxx.
References Exception, getCurrentPage(), implSetNewSelection(), m_sLastActivePage, m_xBrowserController, m_xInspectorModel, m_xMeAsFrame, and TOOLS_WARN_EXCEPTION.
Referenced by Close(), and ~FmPropBrw().
|
private |
Definition at line 317 of file fmPropBrw.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and m_xInspectorModel.
Referenced by implSetNewSelection().
|
private |
Definition at line 333 of file fmPropBrw.cxx.
References Any, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), comphelper::containerToSequence(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), Exception, FM_PROP_CLASSID, GetUIHeadlineName(), implIsReadOnlyModel(), m_xBrowserController, m_xDialog, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), SvxResId(), and TOOLS_WARN_EXCEPTION.
Referenced by implDetachController(), and StateChangedAtToolBoxControl().
|
overrideprivatevirtual |
Reimplemented from SfxControllerItem.
Definition at line 527 of file fmPropBrw.cxx.
References Any, Exception, FmFormShell::GetImpl(), GetShell(), impl_ensurePropertyBrowser_nothrow(), implSetNewSelection(), LINK, m_bInitialStateChange, m_nAsyncGetFocusId, m_sLastActivePage, m_xBrowserController, Application::PostUserEvent(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 44 of file fmPropBrw.hxx.
Referenced by StateChangedAtToolBoxControl().
|
private |
Definition at line 46 of file fmPropBrw.hxx.
Referenced by StateChangedAtToolBoxControl(), and ~FmPropBrw().
|
private |
Definition at line 45 of file fmPropBrw.hxx.
Referenced by impl_createPropertyBrowser_throw().
|
private |
Definition at line 47 of file fmPropBrw.hxx.
Referenced by FmPropBrw(), getCurrentPage(), implDetachController(), and StateChangedAtToolBoxControl().
|
private |
Definition at line 61 of file fmPropBrw.hxx.
Referenced by getCurrentPage(), impl_createPropertyBrowser_throw(), impl_ensurePropertyBrowser_nothrow(), implDetachController(), implSetNewSelection(), StateChangedAtToolBoxControl(), and ~FmPropBrw().
|
private |
Definition at line 49 of file fmPropBrw.hxx.
Referenced by FmPropBrw().
|
private |
Definition at line 48 of file fmPropBrw.hxx.
|
private |
Definition at line 51 of file fmPropBrw.hxx.
Referenced by impl_createPropertyBrowser_throw(), and ~FmPropBrw().
|
private |
Definition at line 59 of file fmPropBrw.hxx.
Referenced by impl_createPropertyBrowser_throw(), impl_ensurePropertyBrowser_nothrow(), implDetachController(), and implIsReadOnlyModel().
|
private |
Definition at line 57 of file fmPropBrw.hxx.
Referenced by impl_ensurePropertyBrowser_nothrow().
|
private |
Definition at line 55 of file fmPropBrw.hxx.
Referenced by Close(), FmPropBrw(), impl_createPropertyBrowser_throw(), impl_ensurePropertyBrowser_nothrow(), and implDetachController().
|
private |
Definition at line 53 of file fmPropBrw.hxx.
Referenced by FmPropBrw(), and impl_createPropertyBrowser_throw().