LibreOffice Module svx (master)  1
Private Member Functions | Private Attributes | Friends | List of all members
GalleryTransferable Class Referencefinal

#include <galmisc.hxx>

Inheritance diagram for GalleryTransferable:
[legend]
Collaboration diagram for GalleryTransferable:
[legend]

Private Member Functions

 GalleryTransferable (GalleryTheme *pTheme, sal_uInt32 nObjectPos, bool bLazy)
 
virtual ~GalleryTransferable () override
 
void InitData (bool bLazy)
 
virtual void AddSupportedFormats () override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
virtual bool WriteObject (tools::SvRef< SotStorageStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) override
 
virtual void DragFinished (sal_Int8 nDropAction) override
 
virtual void ObjectReleased () override
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 

Private Attributes

GalleryThemempTheme
 
SgaObjKind const meObjectKind
 
sal_uInt32 const mnObjectPos
 
tools::SvRef< SotStorageStreammxModelStream
 
std::unique_ptr< GraphicObjectmpGraphicObject
 
std::unique_ptr< INetURLObjectmpURL
 

Friends

class GalleryTheme
 

Additional Inherited Members

- Public Member Functions inherited from TransferableHelper
void PrepareOLE (const TransferableObjectDescriptor &rObjDesc)
 
void CopyToClipboard (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToSelection (const css::uno::Reference< css::datatransfer::clipboard::XClipboard > &rClipboard) const
 
void CopyToClipboard (vcl::Window *pWindow) const
 
void CopyToSelection (vcl::Window *pWindow) const
 
void StartDrag (vcl::Window *pWindow, sal_Int8 nDragSourceActions)
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rId) override
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearSelection (vcl::Window *pWindow)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
- 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, const css::datatransfer::DataFlavor &rFlavor)
 
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)
 

Detailed Description

Definition at line 134 of file galmisc.hxx.

Constructor & Destructor Documentation

GalleryTransferable::GalleryTransferable ( GalleryTheme pTheme,
sal_uInt32  nObjectPos,
bool  bLazy 
)
private

Definition at line 376 of file galmisc.cxx.

References InitData().

GalleryTransferable::~GalleryTransferable ( )
overrideprivatevirtual

Definition at line 385 of file galmisc.cxx.

Member Function Documentation

void GalleryTransferable::AddSupportedFormats ( )
overrideprivatevirtual

Implements TransferableHelper.

Definition at line 450 of file galmisc.cxx.

References TransferableHelper::AddFormat(), meObjectKind, mpGraphicObject, mpURL, and SvDraw.

void GalleryTransferable::DragFinished ( sal_Int8  nDropAction)
overrideprivatevirtual
bool GalleryTransferable::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprivatevirtual
void GalleryTransferable::InitData ( bool  bLazy)
private
void GalleryTransferable::ObjectReleased ( )
overrideprivatevirtual

Reimplemented from TransferableHelper.

Definition at line 539 of file galmisc.cxx.

References tools::SvRef< T >::clear(), mpGraphicObject, mpURL, and mxModelStream.

void GalleryTransferable::StartDrag ( vcl::Window pWindow,
sal_Int8  nDragSourceActions 
)
private
bool GalleryTransferable::WriteObject ( tools::SvRef< SotStorageStream > &  rxOStm,
void pUserObject,
sal_uInt32  nUserObjectId,
const css::datatransfer::DataFlavor &  rFlavor 
)
overrideprivatevirtual

Reimplemented from TransferableHelper.

Definition at line 513 of file galmisc.cxx.

References ERRCODE_NONE.

Friends And Related Function Documentation

friend class GalleryTheme
friend

Definition at line 136 of file galmisc.hxx.

Member Data Documentation

SgaObjKind const GalleryTransferable::meObjectKind
private

Definition at line 140 of file galmisc.hxx.

Referenced by AddSupportedFormats(), GetData(), and InitData().

sal_uInt32 const GalleryTransferable::mnObjectPos
private

Definition at line 141 of file galmisc.hxx.

Referenced by InitData(), and StartDrag().

std::unique_ptr<GraphicObject> GalleryTransferable::mpGraphicObject
private

Definition at line 143 of file galmisc.hxx.

Referenced by AddSupportedFormats(), GetData(), InitData(), and ObjectReleased().

GalleryTheme* GalleryTransferable::mpTheme
private

Definition at line 139 of file galmisc.hxx.

Referenced by DragFinished(), InitData(), and StartDrag().

std::unique_ptr<INetURLObject> GalleryTransferable::mpURL
private

Definition at line 144 of file galmisc.hxx.

Referenced by AddSupportedFormats(), GetData(), InitData(), and ObjectReleased().

tools::SvRef<SotStorageStream> GalleryTransferable::mxModelStream
private

Definition at line 142 of file galmisc.hxx.

Referenced by GetData(), InitData(), and ObjectReleased().


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