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

#include <drwtrans.hxx>

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

Public Member Functions

 ScDrawTransferObj (std::unique_ptr< SdrModel > pClipModel, ScDocShell *pContainerShell, const TransferableObjectDescriptor &rDesc)
 
virtual ~ScDrawTransferObj () override
 
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
 
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
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rId) override
 
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 > &rCallbck)
 
- 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)
 

Static Public Member Functions

static ScDrawTransferObjGetOwnClipboard (const css::uno::Reference< css::datatransfer::XTransferable2 > &)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearSelection (vcl::Window *pWindow)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

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::unique_ptr< INetBookmarkm_pBookmark
 
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, 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)
 
virtual void ObjectReleased ()
 

Detailed Description

Definition at line 38 of file drwtrans.hxx.

Constructor & Destructor Documentation

ScDrawTransferObj::ScDrawTransferObj ( std::unique_ptr< SdrModel pClipModel,
ScDocShell pContainerShell,
const TransferableObjectDescriptor rDesc 
)
ScDrawTransferObj::~ScDrawTransferObj ( )
overridevirtual

Member Function Documentation

void ScDrawTransferObj::AddSupportedFormats ( )
overridevirtual
void ScDrawTransferObj::CreateOLEData ( )
private
void ScDrawTransferObj::DragFinished ( sal_Int8  nDropAction)
overridevirtual
bool ScDrawTransferObj::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overridevirtual
ScDragSrc ScDrawTransferObj::GetDragSourceFlags ( ) const
inline

Definition at line 90 of file drwtrans.hxx.

References m_nDragSourceFlags.

Referenced by ScGridWindow::ExecuteDrop().

SdrView* ScDrawTransferObj::GetDragSourceView ( )
inline

Definition at line 89 of file drwtrans.hxx.

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

SdrModel* ScDrawTransferObj::GetModel ( ) const
inline
ScDrawTransferObj * ScDrawTransferObj::GetOwnClipboard ( const css::uno::Reference< css::datatransfer::XTransferable2 > &  )
static
const ScRangeListVector& ScDrawTransferObj::GetProtectedChartRangesVector ( ) const
inline

Definition at line 97 of file drwtrans.hxx.

References m_aProtectedChartRangesVector.

Referenced by ScViewFunc::PasteDraw().

const OUString & ScDrawTransferObj::GetShellID ( ) const

Definition at line 641 of file drwtrans.cxx.

References maShellID.

Referenced by ScViewFunc::PasteDraw(), and ScViewFunc::PasteFromTransferable().

SdrOle2Obj * ScDrawTransferObj::GetSingleObject ( )
private
sal_Int64 SAL_CALL ScDrawTransferObj::getSomething ( const css::uno::Sequence< sal_Int8 > &  rId)
overridevirtual

Reimplemented from TransferableHelper.

Definition at line 751 of file drwtrans.cxx.

References TransferableHelper::getSomething().

const css::uno::Sequence< sal_Int8 > & ScDrawTransferObj::getUnoTunnelId ( )
static

Definition at line 746 of file drwtrans.cxx.

Referenced by GetOwnClipboard(), and ScViewFunc::PasteFromTransferable().

void ScDrawTransferObj::InitDocShell ( )
private
void ScDrawTransferObj::SetDragSource ( const ScDrawView pView)

add as listener with document, delete pDragSourceView if document gone

Definition at line 613 of file drwtrans.cxx.

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

void ScDrawTransferObj::SetDragSourceFlags ( ScDragSrc  nFlags)

Definition at line 631 of file drwtrans.cxx.

References m_nDragSourceFlags.

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

add as listener with document, delete pDragSourceView if document gone

Definition at line 621 of file drwtrans.cxx.

References SdrObject::getSdrModelFromSdrObject(), and m_pDragSourceView.

void ScDrawTransferObj::SetDragWasInternal ( )

Definition at line 636 of file drwtrans.cxx.

References m_bDragWasInternal.

Referenced by ScGridWindow::ExecuteDrop().

void ScDrawTransferObj::SetDrawPersist ( const SfxObjectShellRef rRef)

Definition at line 591 of file drwtrans.cxx.

References m_aDrawPersistRef.

Referenced by ScDrawView::CopyToTransferable().

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

Member Data Documentation

SfxObjectShellRef ScDrawTransferObj::m_aDocShellRef
private

Definition at line 44 of file drwtrans.hxx.

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

SfxObjectShellRef ScDrawTransferObj::m_aDrawPersistRef
private

Definition at line 45 of file drwtrans.hxx.

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

TransferableObjectDescriptor ScDrawTransferObj::m_aObjDesc
private

Definition at line 43 of file drwtrans.hxx.

Referenced by GetData(), and ScDrawTransferObj().

TransferableDataHelper ScDrawTransferObj::m_aOleData
private

Definition at line 42 of file drwtrans.hxx.

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

ScRangeListVector ScDrawTransferObj::m_aProtectedChartRangesVector
private

Definition at line 59 of file drwtrans.hxx.

Referenced by GetProtectedChartRangesVector(), and ScDrawTransferObj().

Size ScDrawTransferObj::m_aSrcSize
private

Definition at line 48 of file drwtrans.hxx.

Referenced by InitDocShell(), and ScDrawTransferObj().

bool ScDrawTransferObj::m_bDragWasInternal
private

Definition at line 57 of file drwtrans.hxx.

Referenced by DragFinished(), and SetDragWasInternal().

bool ScDrawTransferObj::m_bGraphic
private

Definition at line 50 of file drwtrans.hxx.

Referenced by AddSupportedFormats(), and ScDrawTransferObj().

bool ScDrawTransferObj::m_bGrIsBit
private

Definition at line 51 of file drwtrans.hxx.

Referenced by AddSupportedFormats(), and ScDrawTransferObj().

bool ScDrawTransferObj::m_bOleObj
private

Definition at line 52 of file drwtrans.hxx.

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

ScDragSrc ScDrawTransferObj::m_nDragSourceFlags
private

Definition at line 56 of file drwtrans.hxx.

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

std::unique_ptr<INetBookmark> ScDrawTransferObj::m_pBookmark
private

Definition at line 49 of file drwtrans.hxx.

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

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

Definition at line 55 of file drwtrans.hxx.

Referenced by DragFinished(), SetDragSource(), SetDragSourceObj(), and ~ScDrawTransferObj().

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

Definition at line 61 of file drwtrans.hxx.

Referenced by CreateOLEData(), and GetShellID().


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