LibreOffice Module svtools (master) 1
Static Public Member Functions | List of all members
svt::OStringTransfer Class Reference

#include <stringtransfer.hxx>

Static Public Member Functions

static SVT_DLLPUBLIC void CopyString (const OUString &_rContent, vcl::Window *_pWindow)
 copies the string given into the system clipboard More...
 
static SVT_DLLPUBLIC bool PasteString (OUString &_rContent, vcl::Window *_pWindow)
 extracts a string from the system clipboard given More...
 
static SVT_DLLPUBLIC void StartStringDrag (const OUString &_rContent, vcl::Window *_pWindow, sal_Int8 _nDragSourceActions)
 starts dragging a simple string More...
 

Detailed Description

Definition at line 45 of file stringtransfer.hxx.

Member Function Documentation

◆ CopyString()

void svt::OStringTransfer::CopyString ( const OUString &  _rContent,
vcl::Window _pWindow 
)
static

copies the string given into the system clipboard

Beware: In opposite to the old DragServer::CopyString, this method does not add the string to the clipboard, instead the old clipboard content is replaced!

Definition at line 64 of file stringtransfer.cxx.

◆ PasteString()

bool svt::OStringTransfer::PasteString ( OUString &  _rContent,
vcl::Window _pWindow 
)
static

extracts a string from the system clipboard given

Returns
<TRUE> if the extraction was successful, i.e. if the clipboard contained a string content

Definition at line 70 of file stringtransfer.cxx.

References TransferableDataHelper::CreateFromSystemClipboard(), TransferableDataHelper::GetDataFlavorExVector(), and TransferableDataHelper::GetString().

◆ StartStringDrag()

void svt::OStringTransfer::StartStringDrag ( const OUString &  _rContent,
vcl::Window _pWindow,
sal_Int8  _nDragSourceActions 
)
static

starts dragging a simple string

Definition at line 90 of file stringtransfer.cxx.


The documentation for this class was generated from the following files: