20#include <config_features.h>
21#include <config_fuzzers.h>
25#include <com/sun/star/scanner/XScannerManager2.hpp>
26#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
55 , m_bSelectObject(false)
56 , m_bEditingPositionSet(false)
75#if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
101 case SID_TWAIN_SELECT:
104 Reference< XScannerManager2 > xScanMgr =
SW_MOD()->GetScannerManager();
111 const Sequence< ScannerContext >
112 aContexts( xScanMgr->getAvailableScanners() );
114 if( aContexts.hasElements() )
116 Reference< XEventListener > xLstner = &rListener;
117 ScannerContext aContext( aContexts.getConstArray()[ 0 ] );
119 Reference<lang::XInitialization> xInit(xScanMgr, UNO_QUERY);
128 xInit->initialize(
aSeq );
131 bDone = xScanMgr->configureScannerAndScan( aContext, xLstner );
148 case SID_TWAIN_TRANSFER:
152 Reference< XScannerManager2 > xScanMgr =
SW_MOD()->GetScannerManager();
158 const Sequence< scanner::ScannerContext >aContexts( xScanMgr->getAvailableScanners() );
159 if( aContexts.hasElements() )
161 Reference< XEventListener > xLstner = &rListener;
162 xScanMgr->startScan( aContexts.getConstArray()[ 0 ], xLstner );
174 VclMessageType::Info, VclButtonsType::Ok,
214 pTransferable->Invalidate();
221 osl_atomic_increment(&rTransferable.m_refCount);
226 return !rTunnel.get();
231 osl_atomic_decrement(&rTransferable.m_refCount);
235 const OUString& rFactory,
237 const sal_uInt16 nSlotId
243 case SID_DOCUMENT_MERGE:
246 case SID_DOCUMENT_COMPARE:
273#if defined(_WIN32) || defined UNX
312 rBind.
Invalidate( SID_CLIPBOARD_FORMAT_ITEMS );
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
void Invalidate(sal_uInt16 nId)
sal_uInt16 GetSlot() const
weld::Window * GetFrameWeld() const
void Done(bool bRemove=false)
SfxBindings & GetBindings()
weld::Window * GetFrameWeld() const
SfxViewFrame & GetViewFrame() const
void AddRemoveClipboardListener(const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > &, bool)
virtual ~SwClipboardChangeListener() override
virtual void SAL_CALL disposing(const css::lang::EventObject &rEventObject) override
virtual void SAL_CALL changedContents(const css::datatransfer::clipboard::ClipboardEvent &rEventObject) override
void AddRemoveListener(bool bAdd)
virtual ~SwScannerEventListener() override
virtual void SAL_CALL disposing(const css::lang::EventObject &rEventObject) override
static bool IsPasteSpecial(const SwWrtShell &rWrtShell, const TransferableDataHelper &)
static SotExchangeDest GetSotDestination(const SwWrtShell &rSh)
static bool IsPaste(const SwWrtShell &, const TransferableDataHelper &)
rtl::Reference< SwScannerEventListener > mxScanEvtLstnr
void SetShellMode(ShellMode eSet)
std::unique_ptr< SfxRequest > m_pRequest
rtl::Reference< SwXTextView > mxXTextView
rtl::Reference< SwXDispatchProviderInterceptor > m_xDispatchProviderInterceptor
std::vector< unotools::WeakReference< SwTransferable > > mxTransferables
css::view::XSelectionSupplier * GetUNOObject()
SwView_Impl(SwView *pShell)
void StartDocumentInserter(const OUString &rFactory, const Link< sfx2::FileDialogHelper *, void > &rEndDialogHdl, const sal_uInt16 nSlotId)
void AddTransferable(SwTransferable &rTransferable)
void AddClipboardListener()
SwXTextView * GetUNOObject_Impl()
std::unique_ptr< sfx2::DocumentInserter > m_pDocInserter
void InitRequest(const SfxRequest &rRequest)
SwScannerEventListener & GetScannerEventListener()
void ExecuteScan(SfxRequest &rReq)
std::unique_ptr< SfxMedium > CreateMedium()
std::shared_ptr< SwMailMergeConfigItem > m_xConfigItem
rtl::Reference< SwClipboardChangeListener > mxClipEvtLstnr
SotExchangeDest m_nLastPasteDestination
SwWrtShell & GetWrtShell() const
bool m_bPasteSpecialState
Used by the UI to modify the document model.
css::uno::Reference< css::datatransfer::XTransferable > GetXTransferable() const
virtual css::uno::Reference< css::awt::XWindow > GetXWindow()=0
Sequence< sal_Int8 > aSeq
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence(::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
OUString SwResId(TranslateId aId)