LibreOffice Module forms (master) 1
|
#include <clipboarddispatcher.hxx>
Public Types | |
enum | ClipboardFunc { eCut , eCopy , ePaste } |
Public Member Functions | |
OClipboardDispatcher (EditView &_rView, ClipboardFunc _eFunc) | |
Public Member Functions inherited from frm::ORichTextFeatureDispatcher | |
void | dispose () |
clean up resources associated with this instance More... | |
void | invalidate () |
Protected Member Functions | |
virtual void SAL_CALL | dispatch (const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override |
virtual void | invalidateFeatureState_Broadcast () override |
virtual css::frame::FeatureStateEvent | buildStatusEvent () const override |
virtual bool | implIsEnabled () const |
determines whether our functionality is currently available to be overridden for ePaste More... | |
Protected Member Functions inherited from frm::ORichTextFeatureDispatcher | |
EditView * | getEditView () |
const EditView * | getEditView () const |
const css::util::URL & | getFeatureURL () const |
::comphelper::OInterfaceContainerHelper3< css::frame::XStatusListener > & | getStatusListeners () |
bool | isDisposed () const |
void | checkDisposed () const |
ORichTextFeatureDispatcher (EditView &_rView, css::util::URL _aURL) | |
virtual | ~ORichTextFeatureDispatcher () override |
virtual void | disposing (::osl::ClearableMutexGuard &_rClearBeforeNotify) |
virtual void | invalidateFeatureState_Broadcast () |
virtual css::frame::FeatureStateEvent | buildStatusEvent () const |
virtual void SAL_CALL | addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &_rxControl, const css::util::URL &_rURL) override |
virtual void SAL_CALL | removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &_rxControl, const css::util::URL &_rURL) override |
Private Attributes | |
ClipboardFunc | m_eFunc |
bool | m_bLastKnownEnabled |
Additional Inherited Members | |
Static Protected Member Functions inherited from frm::ORichTextFeatureDispatcher | |
static void | doNotify (const css::uno::Reference< css::frame::XStatusListener > &_rxListener, const css::frame::FeatureStateEvent &_rEvent) |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 32 of file clipboarddispatcher.hxx.
Enumerator | |
---|---|
eCut | |
eCopy | |
ePaste |
Definition at line 35 of file clipboarddispatcher.hxx.
frm::OClipboardDispatcher::OClipboardDispatcher | ( | EditView & | _rView, |
ClipboardFunc | _eFunc | ||
) |
Definition at line 61 of file clipboarddispatcher.cxx.
|
overrideprotectedvirtual |
Reimplemented from frm::ORichTextFeatureDispatcher.
Definition at line 90 of file clipboarddispatcher.cxx.
References aEvent, frm::ORichTextFeatureDispatcher::buildStatusEvent(), and implIsEnabled().
|
overrideprotectedvirtual |
Definition at line 110 of file clipboarddispatcher.cxx.
References EditView::Copy(), EditView::Cut(), eCopy, eCut, ePaste, frm::ORichTextFeatureDispatcher::getEditView(), cppu::BaseMutex::m_aMutex, m_eFunc, and EditView::Paste().
|
protectedvirtual |
determines whether our functionality is currently available to be overridden for ePaste
Reimplemented in frm::OPasteClipboardDispatcher.
Definition at line 69 of file clipboarddispatcher.cxx.
References eCopy, eCut, ePaste, frm::ORichTextFeatureDispatcher::getEditView(), EditView::HasSelection(), EditView::IsReadOnly(), and m_eFunc.
Referenced by buildStatusEvent(), frm::OPasteClipboardDispatcher::implIsEnabled(), and invalidateFeatureState_Broadcast().
|
overrideprotectedvirtual |
Reimplemented from frm::ORichTextFeatureDispatcher.
Definition at line 98 of file clipboarddispatcher.cxx.
References implIsEnabled(), frm::ORichTextFeatureDispatcher::invalidateFeatureState_Broadcast(), and m_bLastKnownEnabled.
|
private |
Definition at line 44 of file clipboarddispatcher.hxx.
Referenced by invalidateFeatureState_Broadcast().
|
private |
Definition at line 43 of file clipboarddispatcher.hxx.
Referenced by dispatch(), and implIsEnabled().