23#include <com/sun/star/lang/DisposedException.hpp>
26#include <osl/diagnose.h>
48 aURL.Complete =
".uno:Cut";
51 aURL.Complete =
".uno:Copy";
54 aURL.Complete =
".uno:Paste";
64 ,m_bLastKnownEnabled( true )
71 bool bEnabled =
false;
112 ::osl::MutexGuard aGuard(
m_aMutex );
114 throw DisposedException();
134 ,m_bPastePossible( false )
142 aDataHelper.
HasFormat( SotClipboardFormatId::RTF ) || aDataHelper.
HasFormat( SotClipboardFormatId::RICHTEXT ) );
158 OSL_ENSURE( _pDataHelper,
"OPasteClipboardDispatcher::OnClipboardChanged: ooops!" );
159 m_bPastePossible = _pDataHelper->HasFormat( SotClipboardFormatId::STRING )
160 || _pDataHelper->HasFormat( SotClipboardFormatId::RTF )
161 || _pDataHelper->HasFormat( SotClipboardFormatId::RICHTEXT );
169 OSL_ENSURE(
getEditView() &&
getEditView()->GetWindow(),
"OPasteClipboardDispatcher::disposing: EditView should not (yet) be disfunctional here!" );
bool HasSelection() const
vcl::Window * GetWindow() const
static TransferableDataHelper CreateFromSystemClipboard(vcl::Window *pWindow)
bool HasFormat(SotClipboardFormatId nFormat) const
mutable::osl::Mutex m_aMutex
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
OClipboardDispatcher(EditView &_rView, ClipboardFunc _eFunc)
virtual bool implIsEnabled() const override
determines whether our functionality is currently available to be overridden for ePaste
virtual void disposing(::osl::ClearableMutexGuard &_rClearBeforeNotify) override
rtl::Reference< TransferableClipboardListener > m_pClipListener
OPasteClipboardDispatcher(EditView &_rView)
virtual ~OPasteClipboardDispatcher() override
void dispose()
clean up resources associated with this instance
virtual void invalidateFeatureState_Broadcast()
virtual css::frame::FeatureStateEvent buildStatusEvent() const
virtual void disposing(::osl::ClearableMutexGuard &_rClearBeforeNotify)
#define LINK(Instance, Class, Member)
ListBox is a bit confusing / different from other form components, so here are a few notes:
IMPL_LINK(OClickableImageBaseModel, OnImageImportDone, Graphic *, i_pGraphic, void)