LibreOffice Module svtools (master) 1
|
#include <embedtransfer.hxx>
Public Member Functions | |
SvEmbedTransferHelper (const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, const Graphic *pGraphic, sal_Int64 nAspect) | |
virtual | ~SvEmbedTransferHelper () override |
void | SetParentShellID (const OUString &rShellID) |
![]() | |
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 | FillTransferableObjectDescriptor (TransferableObjectDescriptor &rDesc, const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, const Graphic *pGraphic, sal_Int64 nAspect) |
![]() | |
static void | ClearPrimarySelection () |
Private Member Functions | |
virtual void | AddSupportedFormats () override |
virtual bool | GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override |
virtual void | ObjectReleased () override |
Private Attributes | |
css::uno::Reference< css::embed::XEmbeddedObject > | m_xObj |
std::optional< Graphic > | m_oGraphic |
sal_Int64 | m_nAspect |
OUString | maParentShellID |
Additional Inherited Members | |
![]() | |
~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 29 of file embedtransfer.hxx.
SvEmbedTransferHelper::SvEmbedTransferHelper | ( | const css::uno::Reference< css::embed::XEmbeddedObject > & | xObj, |
const Graphic * | pGraphic, | ||
sal_Int64 | nAspect | ||
) |
Definition at line 44 of file embedtransfer.cxx.
References FillTransferableObjectDescriptor(), m_nAspect, m_oGraphic, m_xObj, and TransferableHelper::PrepareOLE().
|
overridevirtual |
Definition at line 62 of file embedtransfer.cxx.
|
overrideprivatevirtual |
Implements TransferableHelper.
Definition at line 72 of file embedtransfer.cxx.
References TransferableHelper::AddFormat().
|
static |
Definition at line 199 of file embedtransfer.cxx.
References SotExchange::GetFormatDataFlavor(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), OutputDevice::LogicToLogic(), TransferableObjectDescriptor::maClassName, TransferableObjectDescriptor::maDisplayName, TransferableObjectDescriptor::maDragStartPos, TransferableObjectDescriptor::maSize, TransferableObjectDescriptor::maTypeName, TransferableObjectDescriptor::mnViewAspect, and VCLUnoHelper::UnoEmbed2VCLMapUnit().
Referenced by GetData(), and SvEmbedTransferHelper().
|
overrideprivatevirtual |
Implements TransferableHelper.
Definition at line 81 of file embedtransfer.cxx.
References aName, aSeq, utl::UcbStreamHelper::CreateStream(), FillTransferableObjectDescriptor(), SvMemoryStream::GetData(), SotExchange::GetFormat(), comphelper::OStorageHelper::GetStorageFromStream(), utl::TempFileFast::GetStream(), comphelper::OStorageHelper::GetTemporaryStorage(), TransferableHelper::HasFormat(), comphelper::InitPropertySequence(), m_nAspect, m_oGraphic, m_xObj, maParentShellID, SvStream::ReadBytes(), SvStream::Seek(), TransferableHelper::SetAny(), TransferableHelper::SetBitmapEx(), TransferableHelper::SetTransferableObjectDescriptor(), SvStream::SetVersion(), SOFFICE_FILEFORMAT_CURRENT, STREAM_SEEK_TO_BEGIN, SvStream::TellEnd(), SvMemoryStream::TellEnd(), svt::EmbeddedObjectRef::TryRunningState(), and SvmWriter::Write().
|
overrideprivatevirtual |
Reimplemented from TransferableHelper.
Definition at line 194 of file embedtransfer.cxx.
References m_xObj.
void SvEmbedTransferHelper::SetParentShellID | ( | const OUString & | rShellID | ) |
Definition at line 66 of file embedtransfer.cxx.
References maParentShellID.
|
private |
Definition at line 35 of file embedtransfer.hxx.
Referenced by GetData(), and SvEmbedTransferHelper().
|
private |
Definition at line 34 of file embedtransfer.hxx.
Referenced by GetData(), and SvEmbedTransferHelper().
|
private |
Definition at line 33 of file embedtransfer.hxx.
Referenced by GetData(), ObjectReleased(), and SvEmbedTransferHelper().
|
private |
Definition at line 37 of file embedtransfer.hxx.
Referenced by GetData(), and SetParentShellID().