LibreOffice Module vcl (master) 1
|
#include <transfer.hxx>
Public Member Functions | |
TransferDataContainer () | |
virtual | ~TransferDataContainer () override |
void | CopyINetBookmark (const INetBookmark &rBkmk) |
void | CopyString (const OUString &rStr) |
void | CopyString (SotClipboardFormatId nFmt, const OUString &rStr) |
void | CopyByteString (SotClipboardFormatId nFormatId, const OString &rStr) |
void | CopyAnyData (SotClipboardFormatId nFormatId, const char *pData, sal_uLong nLen) |
bool | HasAnyData () const |
void | StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions, const Link< sal_Int8, void > &rCallback) |
virtual void | DragFinished (sal_Int8 nDropAction) override |
void | StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions) |
Public Member Functions inherited from TransferableHelper | |
virtual css::uno::Any SAL_CALL | getTransferData (const css::datatransfer::DataFlavor &rFlavor) override |
virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL | getTransferDataFlavors () override |
virtual sal_Bool SAL_CALL | isDataFlavorSupported (const css::datatransfer::DataFlavor &rFlavor) override |
virtual css::uno::Any SAL_CALL | getTransferData2 (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override |
virtual sal_Bool SAL_CALL | isComplex () override |
void | PrepareOLE (const TransferableObjectDescriptor &rObjDesc) |
void | CopyToClipboard (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const |
void | CopyToClipboard (vcl::Window *pWindow) const |
void | CopyToPrimarySelection () const |
void | StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions) |
Private Member Functions | |
virtual void | AddSupportedFormats () override |
virtual bool | GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override |
Private Attributes | |
std::unique_ptr< TransferDataContainer_Impl > | pImpl |
Additional Inherited Members | |
Static Public Member Functions inherited from TransferableHelper | |
static void | ClearPrimarySelection () |
Protected Member Functions inherited from TransferableHelper | |
~TransferableHelper () | |
const css::uno::Reference< css::datatransfer::clipboard::XClipboard > & | getOwnClipboard () const |
void | implCallOwnLostOwnership (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &_rxClipboard, const css::uno::Reference< css::datatransfer::XTransferable > &_rxTrans) |
void | AddFormat (SotClipboardFormatId nFormat) |
void | AddFormat (const css::datatransfer::DataFlavor &rFlavor) |
void | RemoveFormat (SotClipboardFormatId nFormat) |
void | RemoveFormat (const css::datatransfer::DataFlavor &rFlavor) |
bool | HasFormat (SotClipboardFormatId nFormat) |
void | ClearFormats () |
bool | SetAny (const css::uno::Any &rAny) |
bool | SetString (const OUString &rString) |
bool | SetBitmapEx (const BitmapEx &rBitmap, const css::datatransfer::DataFlavor &rFlavor) |
bool | SetGDIMetaFile (const GDIMetaFile &rMtf) |
bool | SetGraphic (const Graphic &rGraphic) |
bool | SetImageMap (const ImageMap &rIMap) |
bool | SetTransferableObjectDescriptor (const TransferableObjectDescriptor &rDesc) |
bool | SetINetBookmark (const INetBookmark &rBmk, const css::datatransfer::DataFlavor &rFlavor) |
bool | SetINetImage (const INetImage &rINtImg, const css::datatransfer::DataFlavor &rFlavor) |
bool | SetObject (void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) |
virtual void | AddSupportedFormats ()=0 |
virtual bool | GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc)=0 |
virtual bool | WriteObject (tools::SvRef< SotTempStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) |
virtual void | DragFinished (sal_Int8 nDropAction) |
virtual void | ObjectReleased () |
void | CopyToSelection (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const |
Definition at line 482 of file transfer.hxx.
TransferDataContainer::TransferDataContainer | ( | ) |
Definition at line 329 of file transfer2.cxx.
|
overridevirtual |
Definition at line 335 of file transfer2.cxx.
|
overrideprivatevirtual |
Implements TransferableHelper.
Definition at line 340 of file transfer2.cxx.
void TransferDataContainer::CopyAnyData | ( | SotClipboardFormatId | nFormatId, |
const char * | pData, | ||
sal_uLong | nLen | ||
) |
Definition at line 395 of file transfer2.cxx.
References TransferableHelper::AddFormat(), aSeq, pData, and pImpl.
Referenced by CopyByteString().
void TransferDataContainer::CopyByteString | ( | SotClipboardFormatId | nFormatId, |
const OString & | rStr | ||
) |
Definition at line 412 of file transfer2.cxx.
References CopyAnyData().
void TransferDataContainer::CopyINetBookmark | ( | const INetBookmark & | rBkmk | ) |
Definition at line 382 of file transfer2.cxx.
References TransferableHelper::AddFormat(), and pImpl.
void TransferDataContainer::CopyString | ( | const OUString & | rStr | ) |
void TransferDataContainer::CopyString | ( | SotClipboardFormatId | nFmt, |
const OUString & | rStr | ||
) |
Definition at line 419 of file transfer2.cxx.
References TransferableHelper::AddFormat(), and pImpl.
|
overridevirtual |
Reimplemented from TransferableHelper.
Definition at line 454 of file transfer2.cxx.
References pImpl.
|
overrideprivatevirtual |
Implements TransferableHelper.
Definition at line 345 of file transfer2.cxx.
References SotExchange::GetFormat(), pImpl, TransferableHelper::SetAny(), and TransferableHelper::SetINetBookmark().
bool TransferDataContainer::HasAnyData | ( | ) | const |
Definition at line 438 of file transfer2.cxx.
References pImpl.
void TransferableHelper::StartDrag | ( | vcl::Window * | pWindow, |
sal_Int8 | nDragSourceActions | ||
) |
Definition at line 263 of file transfer.cxx.
void TransferDataContainer::StartDrag | ( | vcl::Window * | pWindow, |
sal_Int8 | nDragSourceActions, | ||
const Link< sal_Int8, void > & | rCallback | ||
) |
Definition at line 445 of file transfer2.cxx.
References pImpl, and TransferableHelper::StartDrag().
|
private |
Definition at line 484 of file transfer.hxx.
Referenced by CopyAnyData(), CopyINetBookmark(), CopyString(), DragFinished(), GetData(), HasAnyData(), and StartDrag().