LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScDrawTransferObj Class Referencefinal

#include <drwtrans.hxx>

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

Public Member Functions

 ScDrawTransferObj (std::unique_ptr< SdrModel > pClipModel, ScDocShell *pContainerShell, TransferableObjectDescriptor aDesc)
 
virtual ~ScDrawTransferObj () override
 
virtual void AddSupportedFormats () override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
virtual bool WriteObject (tools::SvRef< SotTempStream > &rxOStm, void *pUserObject, sal_uInt32 nUserObjectId, const css::datatransfer::DataFlavor &rFlavor) override
 
virtual void DragFinished (sal_Int8 nDropAction) override
 
SdrModelGetModel () const
 
void SetDrawPersist (const SfxObjectShellRef &rRef)
 
void SetDragSource (const ScDrawView *pView)
 
void SetDragSourceObj (SdrObject &rObj, SCTAB nTab)
 
void SetDragSourceFlags (ScDragSrc nFlags)
 
void SetDragWasInternal ()
 
const OUString & GetShellID () const
 
SdrViewGetDragSourceView ()
 
ScDragSrc GetDragSourceFlags () const
 
const ScRangeListVectorGetProtectedChartRangesVector () const
 
- Public Member Functions inherited from TransferDataContainer
 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)
 

Static Public Member Functions

static ScDrawTransferObjGetOwnClipboard (const css::uno::Reference< css::datatransfer::XTransferable2 > &)
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearPrimarySelection ()
 

Private Member Functions

void InitDocShell ()
 
SdrOle2ObjGetSingleObject ()
 
void CreateOLEData ()
 

Private Attributes

std::unique_ptr< SdrModelm_pModel
 
TransferableDataHelper m_aOleData
 
TransferableObjectDescriptor m_aObjDesc
 
SfxObjectShellRef m_aDocShellRef
 
SfxObjectShellRef m_aDrawPersistRef
 
Size m_aSrcSize
 
std::optional< INetBookmarkm_oBookmark
 
bool m_bGraphic
 
bool m_bGrIsBit
 
bool m_bOleObj
 
std::unique_ptr< SdrViewm_pDragSourceView
 
ScDragSrc m_nDragSourceFlags
 
bool m_bDragWasInternal
 
ScRangeListVector m_aProtectedChartRangesVector
 
OUString maShellID
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 37 of file drwtrans.hxx.

Constructor & Destructor Documentation

◆ ScDrawTransferObj()

ScDrawTransferObj::ScDrawTransferObj ( std::unique_ptr< SdrModel pClipModel,
ScDocShell pContainerShell,
TransferableObjectDescriptor  aDesc 
)

◆ ~ScDrawTransferObj()

ScDrawTransferObj::~ScDrawTransferObj ( )
overridevirtual

Member Function Documentation

◆ AddSupportedFormats()

void ScDrawTransferObj::AddSupportedFormats ( )
overridevirtual

◆ CreateOLEData()

void ScDrawTransferObj::CreateOLEData ( )
private

◆ DragFinished()

void ScDrawTransferObj::DragFinished ( sal_Int8  nDropAction)
overridevirtual

◆ GetData()

bool ScDrawTransferObj::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overridevirtual

◆ GetDragSourceFlags()

ScDragSrc ScDrawTransferObj::GetDragSourceFlags ( ) const
inline

Definition at line 89 of file drwtrans.hxx.

References m_nDragSourceFlags.

Referenced by ScGridWindow::ExecuteDrop().

◆ GetDragSourceView()

SdrView * ScDrawTransferObj::GetDragSourceView ( )
inline

Definition at line 88 of file drwtrans.hxx.

References m_pDragSourceView.

Referenced by ScGridWindow::AcceptDrop(), and ScViewFunc::PasteDraw().

◆ GetModel()

SdrModel * ScDrawTransferObj::GetModel ( ) const
inline

Definition at line 78 of file drwtrans.hxx.

References m_pModel.

Referenced by ScGridWindow::ExecuteDrop(), and ScViewFunc::PasteDraw().

◆ GetOwnClipboard()

ScDrawTransferObj * ScDrawTransferObj::GetOwnClipboard ( const css::uno::Reference< css::datatransfer::XTransferable2 > &  )
static

◆ GetProtectedChartRangesVector()

const ScRangeListVector & ScDrawTransferObj::GetProtectedChartRangesVector ( ) const
inline

Definition at line 93 of file drwtrans.hxx.

References m_aProtectedChartRangesVector.

Referenced by ScViewFunc::PasteDraw().

◆ GetShellID()

const OUString & ScDrawTransferObj::GetShellID ( ) const

Definition at line 630 of file drwtrans.cxx.

References maShellID.

Referenced by ScViewFunc::PasteDraw().

◆ GetSingleObject()

SdrOle2Obj * ScDrawTransferObj::GetSingleObject ( )
private

Definition at line 635 of file drwtrans.cxx.

References m_pModel, SdrObjListIter::Next(), and pObject.

Referenced by CreateOLEData(), GetData(), and ScDrawTransferObj().

◆ InitDocShell()

void ScDrawTransferObj::InitDocShell ( )
private

◆ SetDragSource()

void ScDrawTransferObj::SetDragSource ( const ScDrawView pView)

add as listener with document, delete pDragSourceView if document gone

Definition at line 602 of file drwtrans.cxx.

References SdrPaintView::getSdrModelFromSdrView(), ScDrawView::GetTab(), lcl_InitMarks(), and m_pDragSourceView.

◆ SetDragSourceFlags()

void ScDrawTransferObj::SetDragSourceFlags ( ScDragSrc  nFlags)

Definition at line 620 of file drwtrans.cxx.

References m_nDragSourceFlags.

◆ SetDragSourceObj()

void ScDrawTransferObj::SetDragSourceObj ( SdrObject rObj,
SCTAB  nTab 
)

add as listener with document, delete pDragSourceView if document gone

Definition at line 610 of file drwtrans.cxx.

References SdrObject::getSdrModelFromSdrObject(), and m_pDragSourceView.

◆ SetDragWasInternal()

void ScDrawTransferObj::SetDragWasInternal ( )

Definition at line 625 of file drwtrans.cxx.

References m_bDragWasInternal.

Referenced by ScGridWindow::ExecuteDrop().

◆ SetDrawPersist()

void ScDrawTransferObj::SetDrawPersist ( const SfxObjectShellRef rRef)

Definition at line 580 of file drwtrans.cxx.

References m_aDrawPersistRef.

◆ WriteObject()

bool ScDrawTransferObj::WriteObject ( tools::SvRef< SotTempStream > &  rxOStm,
void *  pUserObject,
sal_uInt32  nUserObjectId,
const css::datatransfer::DataFlavor &  rFlavor 
)
overridevirtual

Member Data Documentation

◆ m_aDocShellRef

SfxObjectShellRef ScDrawTransferObj::m_aDocShellRef
private

Definition at line 43 of file drwtrans.hxx.

Referenced by GetData(), InitDocShell(), and ~ScDrawTransferObj().

◆ m_aDrawPersistRef

SfxObjectShellRef ScDrawTransferObj::m_aDrawPersistRef
private

Definition at line 44 of file drwtrans.hxx.

Referenced by SetDrawPersist(), and ~ScDrawTransferObj().

◆ m_aObjDesc

TransferableObjectDescriptor ScDrawTransferObj::m_aObjDesc
private

Definition at line 42 of file drwtrans.hxx.

Referenced by GetData(), and ScDrawTransferObj().

◆ m_aOleData

TransferableDataHelper ScDrawTransferObj::m_aOleData
private

Definition at line 41 of file drwtrans.hxx.

Referenced by AddSupportedFormats(), CreateOLEData(), GetData(), and ~ScDrawTransferObj().

◆ m_aProtectedChartRangesVector

ScRangeListVector ScDrawTransferObj::m_aProtectedChartRangesVector
private

Definition at line 58 of file drwtrans.hxx.

Referenced by GetProtectedChartRangesVector(), and ScDrawTransferObj().

◆ m_aSrcSize

Size ScDrawTransferObj::m_aSrcSize
private

Definition at line 47 of file drwtrans.hxx.

Referenced by InitDocShell(), and ScDrawTransferObj().

◆ m_bDragWasInternal

bool ScDrawTransferObj::m_bDragWasInternal
private

Definition at line 56 of file drwtrans.hxx.

Referenced by DragFinished(), and SetDragWasInternal().

◆ m_bGraphic

bool ScDrawTransferObj::m_bGraphic
private

Definition at line 49 of file drwtrans.hxx.

Referenced by AddSupportedFormats(), and ScDrawTransferObj().

◆ m_bGrIsBit

bool ScDrawTransferObj::m_bGrIsBit
private

Definition at line 50 of file drwtrans.hxx.

Referenced by AddSupportedFormats(), and ScDrawTransferObj().

◆ m_bOleObj

bool ScDrawTransferObj::m_bOleObj
private

Definition at line 51 of file drwtrans.hxx.

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

◆ m_nDragSourceFlags

ScDragSrc ScDrawTransferObj::m_nDragSourceFlags
private

Definition at line 55 of file drwtrans.hxx.

Referenced by DragFinished(), GetDragSourceFlags(), and SetDragSourceFlags().

◆ m_oBookmark

std::optional<INetBookmark> ScDrawTransferObj::m_oBookmark
private

Definition at line 48 of file drwtrans.hxx.

Referenced by AddSupportedFormats(), GetData(), ScDrawTransferObj(), and ~ScDrawTransferObj().

◆ m_pDragSourceView

std::unique_ptr<SdrView> ScDrawTransferObj::m_pDragSourceView
private

◆ m_pModel

std::unique_ptr<SdrModel> ScDrawTransferObj::m_pModel
private

◆ maShellID

OUString ScDrawTransferObj::maShellID
private

Definition at line 60 of file drwtrans.hxx.

Referenced by CreateOLEData(), and GetShellID().


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