LibreOffice Module vcl (master) 1
|
#include <transfer.hxx>
Classes | |
class | TerminateListener |
Public Member Functions | |
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) |
Static Public Member Functions | |
static void | ClearPrimarySelection () |
Protected Member Functions | |
~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 |
Private Member Functions | |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | dragDropEnd (const css::datatransfer::dnd::DragSourceDropEvent &dsde) override |
virtual void SAL_CALL | dragEnter (const css::datatransfer::dnd::DragSourceDragEvent &dsde) override |
virtual void SAL_CALL | dragExit (const css::datatransfer::dnd::DragSourceEvent &dse) override |
virtual void SAL_CALL | dragOver (const css::datatransfer::dnd::DragSourceDragEvent &dsde) override |
virtual void SAL_CALL | dropActionChanged (const css::datatransfer::dnd::DragSourceDragEvent &dsde) override |
virtual void SAL_CALL | lostOwnership (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &xClipboard, const css::uno::Reference< css::datatransfer::XTransferable > &xTrans) override |
VCL_DLLPRIVATE void | ImplFlush () |
Private Attributes | |
css::uno::Any | maAny |
OUString | maLastFormat |
css::uno::Reference< css::datatransfer::clipboard::XClipboard > | mxClipboard |
css::uno::Reference< css::frame::XTerminateListener > | mxTerminateListener |
DataFlavorExVector | maFormats |
std::unique_ptr< TransferableObjectDescriptor > | mxObjDesc |
Friends | |
class | TransferableHelper::TerminateListener |
Definition at line 130 of file transfer.hxx.
|
protected |
Definition at line 266 of file transfer.cxx.
References comphelper::getProcessComponentContext(), and mxTerminateListener.
|
protected |
|
protected |
Definition at line 529 of file transfer.cxx.
References AddFormat(), and SotExchange::GetFormatDataFlavor().
Referenced by AddFormat(), TransferDataContainer::CopyAnyData(), TransferDataContainer::CopyINetBookmark(), TransferDataContainer::CopyString(), and PrepareOLE().
|
protectedpure virtual |
Implemented in TransferDataContainer.
Referenced by getTransferData2(), getTransferDataFlavors(), and isDataFlavorSupported().
|
protected |
Definition at line 619 of file transfer.cxx.
|
static |
Definition at line 987 of file transfer.cxx.
References GetSystemPrimarySelection().
void TransferableHelper::CopyToClipboard | ( | const css::uno::Reference< css::datatransfer::clipboard::XClipboard > & | rClipboard | ) | const |
Referenced by CopyToClipboard().
void TransferableHelper::CopyToClipboard | ( | vcl::Window * | pWindow | ) | const |
Definition at line 911 of file transfer.cxx.
References CopyToClipboard(), DBG_ASSERT, and vcl::Window::GetClipboard().
void TransferableHelper::CopyToPrimarySelection | ( | ) | const |
Definition at line 941 of file transfer.cxx.
References CopyToSelection(), and GetSystemPrimarySelection().
|
protected |
Definition at line 922 of file transfer.cxx.
References mxTerminateListener.
Referenced by CopyToPrimarySelection().
|
overrideprivatevirtual |
Definition at line 469 of file transfer.cxx.
|
overrideprivatevirtual |
Definition at line 474 of file transfer.cxx.
References DragFinished(), and ObjectReleased().
|
overrideprivatevirtual |
Definition at line 489 of file transfer.cxx.
|
overrideprivatevirtual |
Definition at line 494 of file transfer.cxx.
|
protectedvirtual |
Reimplemented in TransferDataContainer.
Definition at line 871 of file transfer.cxx.
Referenced by dragDropEnd().
|
overrideprivatevirtual |
Definition at line 499 of file transfer.cxx.
|
overrideprivatevirtual |
Definition at line 504 of file transfer.cxx.
|
protectedpure virtual |
Implemented in TransferDataContainer.
Referenced by getTransferData2().
|
inlineprotected |
Definition at line 178 of file transfer.hxx.
References mxClipboard.
|
overridevirtual |
Definition at line 279 of file transfer.cxx.
References Any, and getTransferData2().
|
overridevirtual |
Definition at line 284 of file transfer.cxx.
References AddSupportedFormats(), Any, aSeq, ConvertGDIMetaFileToWMF(), EMF, ERRCODE_NONE, GraphicConverter::Export(), SvMemoryStream::GetData(), GetData(), SotExchange::GetFormatDataFlavor(), TransferableDataHelper::IsEqual(), maAny, maFormats, maLastFormat, SvmReader::Read(), and SvMemoryStream::TellEnd().
Referenced by getTransferData().
|
overridevirtual |
Definition at line 405 of file transfer.cxx.
References AddSupportedFormats(), and maFormats.
|
protected |
|
inlineprotected |
Definition at line 211 of file transfer.hxx.
References lostOwnership().
|
private |
Definition at line 509 of file transfer.cxx.
References mxClipboard.
|
overridevirtual |
Definition at line 398 of file transfer.cxx.
|
overridevirtual |
Definition at line 422 of file transfer.cxx.
References AddSupportedFormats(), TransferableDataHelper::IsEqual(), and maFormats.
|
overrideprivatevirtual |
Definition at line 447 of file transfer.cxx.
References mxTerminateListener, and ObjectReleased().
Referenced by implCallOwnLostOwnership().
|
protectedvirtual |
Definition at line 876 of file transfer.cxx.
Referenced by dragDropEnd(), and lostOwnership().
void TransferableHelper::PrepareOLE | ( | const TransferableObjectDescriptor & | rObjDesc | ) |
Definition at line 881 of file transfer.cxx.
References AddFormat(), HasFormat(), and mxObjDesc.
Referenced by SetTransferableObjectDescriptor().
|
protected |
|
protected |
Definition at line 589 of file transfer.cxx.
References SotExchange::GetFormatDataFlavor(), and RemoveFormat().
Referenced by RemoveFormat().
|
protected |
Definition at line 626 of file transfer.cxx.
References maAny.
Referenced by TransferDataContainer::GetData().
|
protected |
Definition at line 640 of file transfer.cxx.
References BitmapEx::GetBitmap(), SvMemoryStream::GetData(), BitmapEx::IsEmpty(), maAny, vcl::PngImageWriter::setParameters(), SvMemoryStream::TellEnd(), vcl::PngImageWriter::write(), and WriteDIB().
|
protected |
Definition at line 682 of file transfer.cxx.
References GDIMetaFile::GetActionSize(), SvMemoryStream::GetData(), maAny, SvMemoryStream::TellEnd(), and SvmWriter::Write().
|
protected |
Definition at line 697 of file transfer.cxx.
References SvMemoryStream::GetData(), Graphic::GetType(), maAny, NONE, SvStream::SetCompressMode(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_50, SvMemoryStream::TellEnd(), and TypeSerializer::writeGraphic().
|
protected |
Definition at line 716 of file transfer.cxx.
References SvMemoryStream::GetData(), maAny, SvStream::SetVersion(), SOFFICE_FILEFORMAT_50, SvMemoryStream::TellEnd(), and ImageMap::Write().
|
protected |
Definition at line 741 of file transfer.cxx.
References aSeq, aStr, INetBookmark::GetDescription(), SotExchange::GetFormat(), INetBookmark::GetURL(), maAny, OUStringToOString(), and u.
Referenced by TransferDataContainer::GetData().
|
protected |
Definition at line 820 of file transfer.cxx.
References SvMemoryStream::GetData(), SotExchange::GetFormat(), maAny, SvStream::SetVersion(), SOFFICE_FILEFORMAT_50, SvMemoryStream::TellEnd(), and INetImage::Write().
|
protected |
Definition at line 834 of file transfer.cxx.
References aSeq, SotExchange::GetFormat(), maAny, SOFFICE_FILEFORMAT_50, STREAM_SEEK_TO_BEGIN, and WriteObject().
|
protected |
Definition at line 633 of file transfer.cxx.
References maAny.
|
protected |
Definition at line 728 of file transfer.cxx.
References SvMemoryStream::GetData(), maAny, PrepareOLE(), SvStream::Tell(), and WriteTransferableObjectDescriptor().
void TransferableHelper::StartDrag | ( | vcl::Window * | pWindow, |
sal_Int8 | nDragSourceActions | ||
) |
Definition at line 946 of file transfer.cxx.
References DBG_ASSERT, DND_IMAGE_NONE, DND_POINTER_NONE, vcl::Window::GetDragSource(), vcl::Window::GetPointerPosPixel(), vcl::Window::IsMouseCaptured(), vcl::Window::ReleaseMouse(), Point::X(), and Point::Y().
Referenced by TransferDataContainer::StartDrag().
|
protectedvirtual |
Definition at line 864 of file transfer.cxx.
Referenced by SetObject().
|
friend |
Definition at line 163 of file transfer.hxx.
|
private |
Definition at line 167 of file transfer.hxx.
Referenced by ClearFormats(), getTransferData2(), SetAny(), SetBitmapEx(), SetGDIMetaFile(), SetGraphic(), SetImageMap(), SetINetBookmark(), SetINetImage(), SetObject(), SetString(), and SetTransferableObjectDescriptor().
|
private |
Definition at line 171 of file transfer.hxx.
Referenced by ClearFormats(), getTransferData2(), getTransferDataFlavors(), HasFormat(), and isDataFlavorSupported().
|
private |
Definition at line 168 of file transfer.hxx.
Referenced by getTransferData2().
|
mutableprivate |
Definition at line 169 of file transfer.hxx.
Referenced by getOwnClipboard(), and ImplFlush().
|
private |
Definition at line 172 of file transfer.hxx.
Referenced by PrepareOLE().
|
private |
Definition at line 170 of file transfer.hxx.
Referenced by CopyToSelection(), lostOwnership(), and ~TransferableHelper().