|
LibreOffice Module sfx2 (master) 1
|
This class is a helper for broadcasting context changes that are tied to shells being activated or deactivated. More...
#include <ContextChangeBroadcaster.hxx>
Public Member Functions | |
| ContextChangeBroadcaster () | |
| ~ContextChangeBroadcaster () | |
| void | Initialize (const OUString &rsContextName) |
| void | Activate (const css::uno::Reference< css::frame::XFrame > &rxFrame) |
| void | Deactivate (const css::uno::Reference< css::frame::XFrame > &rxFrame) |
| bool | SetBroadcasterEnabled (const bool bIsEnabled) |
| Enable or disable the broadcaster. More... | |
Private Member Functions | |
| void | BroadcastContextChange (const css::uno::Reference< css::frame::XFrame > &rxFrame, const OUString &rsModuleName, const OUString &rsContextName) |
Static Private Member Functions | |
| static OUString | GetModuleName (const css::uno::Reference< css::frame::XFrame > &rxFrame) |
Private Attributes | |
| OUString | msContextName |
| bool | mbIsBroadcasterEnabled |
This class is a helper for broadcasting context changes that are tied to shells being activated or deactivated.
Definition at line 30 of file ContextChangeBroadcaster.hxx.
| sfx2::sidebar::ContextChangeBroadcaster::ContextChangeBroadcaster | ( | ) |
Definition at line 36 of file ContextChangeBroadcaster.cxx.
| sfx2::sidebar::ContextChangeBroadcaster::~ContextChangeBroadcaster | ( | ) |
Definition at line 41 of file ContextChangeBroadcaster.cxx.
| void sfx2::sidebar::ContextChangeBroadcaster::Activate | ( | const css::uno::Reference< css::frame::XFrame > & | rxFrame | ) |
Definition at line 50 of file ContextChangeBroadcaster.cxx.
References BroadcastContextChange(), GetModuleName(), and msContextName.
|
private |
Definition at line 72 of file ContextChangeBroadcaster.cxx.
References aEvent, comphelper::LibreOfficeKit::isActive(), mbIsBroadcasterEnabled, and SfxLokHelper::notifyContextChange().
Referenced by Activate(), and Deactivate().
| void sfx2::sidebar::ContextChangeBroadcaster::Deactivate | ( | const css::uno::Reference< css::frame::XFrame > & | rxFrame | ) |
Definition at line 56 of file ContextChangeBroadcaster.cxx.
References BroadcastContextChange(), vcl::EnumContext::Default, vcl::EnumContext::GetContextName(), GetModuleName(), comphelper::LibreOfficeKit::isActive(), and msContextName.
|
staticprivate |
Definition at line 108 of file ContextChangeBroadcaster.cxx.
References Exception, and TOOLS_WARN_EXCEPTION.
Referenced by Activate(), and Deactivate().
| void sfx2::sidebar::ContextChangeBroadcaster::Initialize | ( | const OUString & | rsContextName | ) |
Definition at line 45 of file ContextChangeBroadcaster.cxx.
References msContextName.
| bool sfx2::sidebar::ContextChangeBroadcaster::SetBroadcasterEnabled | ( | const bool | bIsEnabled | ) |
Enable or disable the broadcaster.
| bIsEnabled | The new value of the "enabled" state. |
Definition at line 65 of file ContextChangeBroadcaster.cxx.
References bIsEnabled, and mbIsBroadcasterEnabled.
|
private |
Definition at line 51 of file ContextChangeBroadcaster.hxx.
Referenced by BroadcastContextChange(), and SetBroadcasterEnabled().
|
private |
Definition at line 50 of file ContextChangeBroadcaster.hxx.
Referenced by Activate(), Deactivate(), and Initialize().