LibreOffice Module svtools (master) 1
|
#include <toolboxcontroller.hxx>
Classes | |
struct | DispatchInfo |
struct | Listener |
Public Member Functions | |
ToolboxController (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &xFrame, OUString aCommandURL) | |
ToolboxController () | |
virtual | ~ToolboxController () override |
css::uno::Reference< css::frame::XFrame > | getFrameInterface () const |
const css::uno::Reference< css::uno::XComponentContext > & | getContext () const |
css::uno::Reference< css::frame::XLayoutManager > | getLayoutManager () const |
void | updateStatus (const OUString &aCommandURL) |
void | updateStatus () |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual void SAL_CALL | update () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | statusChanged (const css::frame::FeatureStateEvent &Event) override=0 |
virtual void SAL_CALL | execute (sal_Int16 KeyModifier) override |
virtual void SAL_CALL | click () override |
virtual void SAL_CALL | doubleClick () override |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | createPopupWindow () override |
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL | createItemWindow (const css::uno::Reference< css::awt::XWindow > &Parent) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
const OUString & | getCommandURL () const |
const OUString & | getModuleName () const |
void | dispatchCommand (const OUString &sCommandURL, const css::uno::Sequence< css::beans::PropertyValue > &rArgs, const OUString &rTarget=OUString()) |
void | enable (bool bEnable) |
bool | IsInSidebar () const |
![]() | |
OMutexAndBroadcastHelper () | |
::osl::Mutex & | GetMutex () |
::cppu::OBroadcastHelper & | GetBroadcastHelper () |
const ::cppu::OBroadcastHelper & | GetBroadcastHelper () const |
![]() | |
virtual | ~OPropertyContainer () |
![]() | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Types | |
typedef std::unordered_map< OUString, css::uno::Reference< css::frame::XDispatch > > | URLToDispatchMap |
Protected Member Functions | |
bool | getToolboxId (ToolBoxItemId &rItemId, ToolBox **ppToolBox) |
DECL_DLLPRIVATE_STATIC_LINK (ToolboxController, ExecuteHdl_Impl, void *, void) | |
void | addStatusListener (const OUString &aCommandURL) |
void | removeStatusListener (const OUString &aCommandURL) |
void | bindListener () |
void | unbindListener () |
const css::uno::Reference< css::util::XURLTransformer > & | getURLTransformer () const |
const css::uno::Reference< css::awt::XWindow > & | getParent () const |
![]() | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
![]() | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Protected Attributes | |
bool | m_bInitialized |
bool | m_bDisposed |
bool | m_bSidebar |
ToolBoxItemId | m_nToolBoxId |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
OUString | m_aCommandURL |
URLToDispatchMap | m_aListenerMap |
comphelper::OMultiTypeInterfaceContainerHelper2 | m_aListenerContainer |
css::uno::Reference< css::awt::XWindow > | m_xParentWindow |
container for ALL Listener More... | |
css::uno::Reference< css::util::XURLTransformer > | m_xUrlTransformer |
OUString | m_sModuleName |
weld::Toolbar * | m_pToolbar |
weld::Builder * | m_pBuilder |
![]() | |
::osl::Mutex | m_aMutex |
::cppu::OBroadcastHelper | m_aBHelper |
Private Attributes | |
bool | m_bSupportVisible |
Additional Inherited Members | |
![]() | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
![]() | |
static std::mutex & | theMutex () |
![]() | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 64 of file toolboxcontroller.hxx.
|
protected |
Definition at line 164 of file toolboxcontroller.hxx.
svt::ToolboxController::ToolboxController | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
const css::uno::Reference< css::frame::XFrame > & | xFrame, | ||
OUString | aCommandURL | ||
) |
References queryInterface().
svt::ToolboxController::ToolboxController | ( | ) |
Definition at line 85 of file toolboxcontroller.cxx.
References m_aMutex, m_bDisposed, m_bSupportVisible, m_pBuilder, comphelper::OPropertyContainerHelper::registerProperty(), SAL_MAX_UINT16, TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIBLE, and TOOLBARCONTROLLER_PROPNAME_SUPPORTSVISIBLE.
|
overridevirtual |
Definition at line 102 of file toolboxcontroller.cxx.
|
overridevirtualnoexcept |
Definition at line 148 of file toolboxcontroller.cxx.
|
overridevirtual |
Definition at line 277 of file toolboxcontroller.cxx.
References comphelper::OMultiTypeInterfaceContainerHelper2::addInterface(), and m_aListenerContainer.
|
protected |
Definition at line 377 of file toolboxcontroller.cxx.
References aTargetURL, Exception, m_aListenerMap, m_bInitialized, m_xContext, m_xFrame, m_xUrlTransformer, and xDispatch.
|
protected |
Definition at line 470 of file toolboxcontroller.cxx.
References Any, aProperties, aTargetURL, Exception, vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetModuleIdentifier(), vcl::CommandInfoProvider::GetRealCommandForCommand(), m_aCommandURL, m_aListenerMap, m_bInitialized, m_xContext, m_xFrame, m_xUrlTransformer, and xDispatch.
Referenced by update(), and updateStatus().
|
overridevirtual |
Definition at line 359 of file toolboxcontroller.cxx.
Referenced by svt::PopupWindowController::click().
|
overridevirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 709 of file toolboxcontroller.cxx.
References m_bSupportVisible, nHandle, and TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIBLE.
|
overridevirtual |
Implements comphelper::OPropertyArrayUsageHelper< ToolboxController >.
Definition at line 702 of file toolboxcontroller.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
|
overridevirtual |
Definition at line 372 of file toolboxcontroller.cxx.
|
overridevirtual |
Definition at line 367 of file toolboxcontroller.cxx.
|
protected |
void svt::ToolboxController::dispatchCommand | ( | const OUString & | sCommandURL, |
const css::uno::Sequence< css::beans::PropertyValue > & | rArgs, | ||
const OUString & | rTarget = OUString() |
||
) |
Definition at line 667 of file toolboxcontroller.cxx.
References aURL, Exception, getURLTransformer(), LINK, m_xFrame, Application::PostUserEvent(), URL, and xDispatch.
|
overridevirtual |
Definition at line 239 of file toolboxcontroller.cxx.
References aEvent, aTargetURL, comphelper::OMultiTypeInterfaceContainerHelper2::disposeAndClear(), Exception, m_aListenerContainer, m_aListenerMap, m_bDisposed, m_xUrlTransformer, and xDispatch.
Referenced by svt::PopupWindowController::dispose().
|
overridevirtual |
Definition at line 288 of file toolboxcontroller.cxx.
References m_aListenerMap, m_bDisposed, m_xFrame, and Source.
|
overridevirtual |
Definition at line 363 of file toolboxcontroller.cxx.
void svt::ToolboxController::enable | ( | bool | bEnable | ) |
Definition at line 753 of file toolboxcontroller.cxx.
References ToolBox::EnableItem(), and getToolboxId().
|
overridevirtual |
Definition at line 317 of file toolboxcontroller.cxx.
References aTargetURL, m_aCommandURL, m_aListenerMap, m_bDisposed, m_bInitialized, m_xFrame, m_xUrlTransformer, comphelper::makePropertyValue(), and xDispatch.
|
inline |
Definition at line 126 of file toolboxcontroller.hxx.
const Reference< XComponentContext > & svt::ToolboxController::getContext | ( | ) | const |
Definition at line 112 of file toolboxcontroller.cxx.
References m_xContext.
Reference< XFrame > svt::ToolboxController::getFrameInterface | ( | ) | const |
Definition at line 106 of file toolboxcontroller.cxx.
References m_xFrame.
|
override |
Definition at line 696 of file toolboxcontroller.cxx.
References comphelper::OPropertyArrayUsageHelper< ToolboxController >::getArrayHelper().
Referenced by getPropertySetInfo().
Reference< XLayoutManager > svt::ToolboxController::getLayoutManager | ( | ) | const |
Definition at line 118 of file toolboxcontroller.cxx.
|
inline |
Definition at line 127 of file toolboxcontroller.hxx.
|
inlineprotected |
Definition at line 175 of file toolboxcontroller.hxx.
Referenced by getToolboxId(), and initialize().
|
overridevirtual |
Definition at line 690 of file toolboxcontroller.cxx.
References getInfoHelper().
|
protected |
Definition at line 763 of file toolboxcontroller.cxx.
References ToolBox::GetItemCommand(), ToolBox::GetItemCount(), ToolBox::GetItemId(), getParent(), VCLUnoHelper::GetWindow(), m_aCommandURL, m_nToolBoxId, nCount, nPos, and SAL_MAX_UINT16.
Referenced by enable().
|
overridevirtual |
Definition at line 158 of file toolboxcontroller.cxx.
References comphelper::concatSequences(), and comphelper::OPropertyContainer::getBaseTypes().
|
inlineprotected |
Definition at line 173 of file toolboxcontroller.hxx.
Referenced by dispatchCommand().
|
overridevirtual |
Definition at line 164 of file toolboxcontroller.cxx.
References aArguments, Exception, get(), comphelper::getComponentContext(), getParent(), m_aCommandURL, m_aListenerMap, m_bDisposed, m_bInitialized, m_bSidebar, m_bSupportVisible, m_nToolBoxId, m_pBuilder, m_pToolbar, m_sModuleName, m_xContext, m_xFrame, m_xParentWindow, and m_xUrlTransformer.
|
inline |
Definition at line 133 of file toolboxcontroller.hxx.
|
overridevirtual |
Definition at line 142 of file toolboxcontroller.cxx.
|
overridevirtualnoexcept |
Definition at line 153 of file toolboxcontroller.cxx.
|
overridevirtual |
Definition at line 282 of file toolboxcontroller.cxx.
References m_aListenerContainer, and comphelper::OMultiTypeInterfaceContainerHelper2::removeInterface().
|
protected |
Definition at line 443 of file toolboxcontroller.cxx.
References aTargetURL, Exception, m_aListenerMap, m_xUrlTransformer, and xDispatch.
|
overridevirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 732 of file toolboxcontroller.cxx.
References m_bInitialized, m_bSupportVisible, nHandle, and TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIBLE.
|
overridepure virtual |
Definition at line 311 of file toolboxcontroller.cxx.
|
protected |
Definition at line 583 of file toolboxcontroller.cxx.
References aTargetURL, Exception, m_aListenerMap, m_bInitialized, m_xContext, m_xFrame, m_xUrlTransformer, and xDispatch.
|
overridevirtual |
Definition at line 226 of file toolboxcontroller.cxx.
References bindListener(), and m_bDisposed.
void svt::ToolboxController::updateStatus | ( | ) |
Definition at line 620 of file toolboxcontroller.cxx.
References bindListener().
void svt::ToolboxController::updateStatus | ( | const OUString & | aCommandURL | ) |
Definition at line 625 of file toolboxcontroller.cxx.
References aTargetURL, Exception, m_bInitialized, m_xContext, m_xFrame, m_xUrlTransformer, and xDispatch.
|
protected |
Definition at line 183 of file toolboxcontroller.hxx.
Referenced by bindListener(), execute(), getToolboxId(), and initialize().
|
protected |
Definition at line 185 of file toolboxcontroller.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
protected |
Definition at line 184 of file toolboxcontroller.hxx.
Referenced by addStatusListener(), bindListener(), dispose(), disposing(), execute(), initialize(), removeStatusListener(), and unbindListener().
|
protected |
Definition at line 178 of file toolboxcontroller.hxx.
Referenced by dispose(), disposing(), execute(), initialize(), and update().
|
protected |
Definition at line 177 of file toolboxcontroller.hxx.
Referenced by addStatusListener(), bindListener(), execute(), initialize(), setFastPropertyValue_NoBroadcast(), unbindListener(), and updateStatus().
|
protected |
Definition at line 179 of file toolboxcontroller.hxx.
Referenced by initialize().
|
private |
Definition at line 71 of file toolboxcontroller.hxx.
Referenced by convertFastPropertyValue(), initialize(), setFastPropertyValue_NoBroadcast(), and ToolboxController().
|
protected |
Definition at line 180 of file toolboxcontroller.hxx.
Referenced by getToolboxId(), and initialize().
|
protected |
Definition at line 191 of file toolboxcontroller.hxx.
Referenced by initialize().
|
protected |
Definition at line 190 of file toolboxcontroller.hxx.
Referenced by initialize().
|
protected |
Definition at line 189 of file toolboxcontroller.hxx.
Referenced by initialize().
|
protected |
Definition at line 182 of file toolboxcontroller.hxx.
Referenced by addStatusListener(), bindListener(), getContext(), initialize(), unbindListener(), and updateStatus().
|
protected |
Definition at line 181 of file toolboxcontroller.hxx.
Referenced by addStatusListener(), bindListener(), dispatchCommand(), disposing(), execute(), getFrameInterface(), getLayoutManager(), initialize(), unbindListener(), and updateStatus().
|
protected |
container for ALL Listener
Definition at line 187 of file toolboxcontroller.hxx.
Referenced by initialize().
|
protected |
Definition at line 188 of file toolboxcontroller.hxx.
Referenced by addStatusListener(), bindListener(), dispose(), execute(), initialize(), removeStatusListener(), unbindListener(), and updateStatus().