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

#include <transobj.hxx>

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

Public Member Functions

 ScTransferObj (ScDocumentUniquePtr pClipDoc, const TransferableObjectDescriptor &rDesc)
 
virtual ~ScTransferObj () 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
 
virtual sal_Bool SAL_CALL isComplex () override
 
ScDocumentGetDocument () const
 
const ScRangeGetRange () const
 
SCROW GetNonFilteredRows () const
 
SCCOL GetDragHandleX () const
 
SCROW GetDragHandleY () const
 
bool WasSourceCursorInSelection () const
 
SCCOL GetSourceCursorX () const
 
SCROW GetSourceCursorY () const
 
SCTAB GetVisibleTab () const
 
ScDragSrc GetDragSourceFlags () const
 
bool HasFilteredRows () const
 
bool GetUseInApi () const
 
ScDocShellGetSourceDocShell ()
 
ScDocumentGetSourceDocument ()
 
ScMarkData GetSourceMarkData () const
 
void SetDrawPersist (const SfxObjectShellRef &rRef)
 
void SetDragHandlePos (SCCOL nX, SCROW nY)
 
void SetSourceCursorPos (SCCOL nX, SCROW nY)
 
void SetVisibleTab (SCTAB nNew)
 
void SetDragSource (ScDocShell *pSourceShell, const ScMarkData &rMark)
 
void SetDragSourceFlags (ScDragSrc nFlags)
 
void SetDragWasInternal ()
 
SC_DLLPUBLIC void SetUseInApi (bool bSet)
 
virtual sal_Int64 SAL_CALL getSomething (const com::sun::star::uno::Sequence< sal_Int8 > &rId) override
 
- 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)
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rId) override
 

Static Public Member Functions

static SC_DLLPUBLIC ScTransferObjGetOwnClipboard (const css::uno::Reference< css::datatransfer::XTransferable2 > &)
 
static SfxObjectShellSetDrawClipDoc (bool bAnyOle)
 
static const com::sun::star::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 (bool bLimitToPageSize)
 

Static Private Member Functions

static void StripRefs (ScDocument *pDoc, SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY, ScDocument *pDestDoc)
 
static void PaintToDev (OutputDevice *pDev, ScDocument *pDoc, double nPrintFactor, const ScRange &rBlock)
 
static void GetAreaSize (const ScDocument *pDoc, SCTAB nTab1, SCTAB nTab2, SCROW &nRow, SCCOL &nCol)
 

Private Attributes

ScDocumentUniquePtr m_pDoc
 
ScRange m_aBlock
 
SCROW m_nNonFiltered
 
TransferableObjectDescriptor m_aObjDesc
 
SfxObjectShellRef m_aDocShellRef
 
SfxObjectShellRef m_aDrawPersistRef
 
css::uno::Reference< css::sheet::XSheetCellRanges > m_xDragSourceRanges
 
SCCOL m_nDragHandleX
 
SCROW m_nDragHandleY
 
SCCOL m_nSourceCursorX
 
SCROW m_nSourceCursorY
 
SCTAB m_nVisibleTab
 
ScDragSrc m_nDragSourceFlags
 
bool m_bDragWasInternal
 
bool m_bUsedForLink
 
bool m_bHasFiltered
 
bool m_bUseInApi
 

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 39 of file transobj.hxx.

Constructor & Destructor Documentation

ScTransferObj::ScTransferObj ( ScDocumentUniquePtr  pClipDoc,
const TransferableObjectDescriptor rDesc 
)
ScTransferObj::~ScTransferObj ( )
overridevirtual

Member Function Documentation

void ScTransferObj::AddSupportedFormats ( )
overridevirtual

Reimplemented from TransferDataContainer.

Definition at line 213 of file transobj.cxx.

References TransferableHelper::AddFormat(), ScRange::aEnd, ScRange::aStart, and m_aBlock.

void ScTransferObj::DragFinished ( sal_Int8  nDropAction)
overridevirtual
void ScTransferObj::GetAreaSize ( const ScDocument pDoc,
SCTAB  nTab1,
SCTAB  nTab2,
SCROW nRow,
SCCOL nCol 
)
staticprivate

Definition at line 73 of file transobj.cxx.

References ScDocument::GetPrintArea().

Referenced by ScTransferObj().

bool ScTransferObj::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overridevirtual
ScDocument* ScTransferObj::GetDocument ( ) const
inline
SCCOL ScTransferObj::GetDragHandleX ( ) const
inline

Definition at line 84 of file transobj.hxx.

Referenced by ScGridWindow::AcceptPrivateDrop().

SCROW ScTransferObj::GetDragHandleY ( ) const
inline

Definition at line 85 of file transobj.hxx.

Referenced by ScGridWindow::AcceptPrivateDrop().

ScDragSrc ScTransferObj::GetDragSourceFlags ( ) const
inline
SCROW ScTransferObj::GetNonFilteredRows ( ) const
inline

Definition at line 83 of file transobj.hxx.

Referenced by ScGridWindow::AcceptPrivateDrop(), and ScGridWindow::DropTransferObj().

ScTransferObj * ScTransferObj::GetOwnClipboard ( const css::uno::Reference< css::datatransfer::XTransferable2 > &  )
static
const ScRange& ScTransferObj::GetRange ( ) const
inline
sal_Int64 SAL_CALL ScTransferObj::getSomething ( const com::sun::star::uno::Sequence< sal_Int8 > &  rId)
overridevirtual

Definition at line 927 of file transobj.cxx.

References TransferableHelper::getSomething().

Referenced by ScViewFunc::PasteFromTransferable().

SCCOL ScTransferObj::GetSourceCursorX ( ) const
inline

Definition at line 87 of file transobj.hxx.

Referenced by ScGridWindow::DropTransferObj().

SCROW ScTransferObj::GetSourceCursorY ( ) const
inline

Definition at line 88 of file transobj.hxx.

Referenced by ScGridWindow::DropTransferObj().

ScDocShell * ScTransferObj::GetSourceDocShell ( )
ScDocument * ScTransferObj::GetSourceDocument ( )
ScMarkData ScTransferObj::GetSourceMarkData ( ) const

Definition at line 647 of file transobj.cxx.

References m_pDoc, and m_xDragSourceRanges.

Referenced by DragFinished(), and ScGridWindow::DropTransferObj().

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

Definition at line 922 of file transobj.cxx.

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

bool ScTransferObj::GetUseInApi ( ) const
inline

Definition at line 92 of file transobj.hxx.

Referenced by ScVbaRange::Insert().

SCTAB ScTransferObj::GetVisibleTab ( ) const
inline
bool ScTransferObj::HasFilteredRows ( ) const
inline

Definition at line 91 of file transobj.hxx.

Referenced by ScGridWindow::AcceptPrivateDrop(), and ScGridWindow::DropTransferObj().

void ScTransferObj::InitDocShell ( bool  bLimitToPageSize)
private
sal_Bool SAL_CALL ScTransferObj::isComplex ( )
overridevirtual
void ScTransferObj::PaintToDev ( OutputDevice pDev,
ScDocument pDoc,
double  nPrintFactor,
const ScRange rBlock 
)
staticprivate
void ScTransferObj::SetDragHandlePos ( SCCOL  nX,
SCROW  nY 
)

Definition at line 579 of file transobj.cxx.

References m_nDragHandleX, and m_nDragHandleY.

void ScTransferObj::SetDragSource ( ScDocShell pSourceShell,
const ScMarkData rMark 
)

Definition at line 608 of file transobj.cxx.

References ScMarkData::FillRangeListWithMarks(), and m_xDragSourceRanges.

void ScTransferObj::SetDragSourceFlags ( ScDragSrc  nFlags)

Definition at line 615 of file transobj.cxx.

References m_nDragSourceFlags.

void ScTransferObj::SetDragWasInternal ( )

Definition at line 620 of file transobj.cxx.

References m_bDragWasInternal.

Referenced by ScGridWindow::DropTransferObj(), and ScTabControl::ExecuteDrop().

SfxObjectShell * ScTransferObj::SetDrawClipDoc ( bool  bAnyOle)
static
void ScTransferObj::SetDrawPersist ( const SfxObjectShellRef rRef)

Definition at line 603 of file transobj.cxx.

References m_aDrawPersistRef.

void ScTransferObj::SetSourceCursorPos ( SCCOL  nX,
SCROW  nY 
)

Definition at line 585 of file transobj.cxx.

References m_nSourceCursorX, and m_nSourceCursorY.

void ScTransferObj::SetUseInApi ( bool  bSet)

Definition at line 625 of file transobj.cxx.

References m_bUseInApi.

Referenced by ooo::vba::excel::implnCopy(), and ooo::vba::excel::implnCut().

void ScTransferObj::SetVisibleTab ( SCTAB  nNew)

Definition at line 598 of file transobj.cxx.

References m_nVisibleTab.

void ScTransferObj::StripRefs ( ScDocument pDoc,
SCCOL  nStartX,
SCROW  nStartY,
SCCOL  nEndX,
SCROW  nEndY,
ScDocument pDestDoc 
)
staticprivate
bool ScTransferObj::WasSourceCursorInSelection ( ) const
bool ScTransferObj::WriteObject ( tools::SvRef< SotStorageStream > &  rxOStm,
void pUserObject,
sal_uInt32  nUserObjectId,
const css::datatransfer::DataFlavor &  rFlavor 
)
overridevirtual

Member Data Documentation

ScRange ScTransferObj::m_aBlock
private
SfxObjectShellRef ScTransferObj::m_aDocShellRef
private

Definition at line 46 of file transobj.hxx.

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

SfxObjectShellRef ScTransferObj::m_aDrawPersistRef
private

Definition at line 47 of file transobj.hxx.

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

TransferableObjectDescriptor ScTransferObj::m_aObjDesc
private

Definition at line 45 of file transobj.hxx.

Referenced by GetData(), and ScTransferObj().

bool ScTransferObj::m_bDragWasInternal
private

Definition at line 55 of file transobj.hxx.

Referenced by DragFinished(), and SetDragWasInternal().

bool ScTransferObj::m_bHasFiltered
private

Definition at line 57 of file transobj.hxx.

Referenced by ScTransferObj().

bool ScTransferObj::m_bUsedForLink
private

Definition at line 56 of file transobj.hxx.

Referenced by GetData().

bool ScTransferObj::m_bUseInApi
private

Definition at line 58 of file transobj.hxx.

Referenced by SetUseInApi().

SCCOL ScTransferObj::m_nDragHandleX
private

Definition at line 49 of file transobj.hxx.

Referenced by SetDragHandlePos().

SCROW ScTransferObj::m_nDragHandleY
private

Definition at line 50 of file transobj.hxx.

Referenced by SetDragHandlePos().

ScDragSrc ScTransferObj::m_nDragSourceFlags
private

Definition at line 54 of file transobj.hxx.

Referenced by DragFinished(), and SetDragSourceFlags().

SCROW ScTransferObj::m_nNonFiltered
private

Definition at line 44 of file transobj.hxx.

Referenced by ScTransferObj().

SCCOL ScTransferObj::m_nSourceCursorX
private

Definition at line 51 of file transobj.hxx.

Referenced by SetSourceCursorPos(), and WasSourceCursorInSelection().

SCROW ScTransferObj::m_nSourceCursorY
private

Definition at line 52 of file transobj.hxx.

Referenced by SetSourceCursorPos(), and WasSourceCursorInSelection().

SCTAB ScTransferObj::m_nVisibleTab
private

Definition at line 53 of file transobj.hxx.

Referenced by ScTransferObj(), and SetVisibleTab().

ScDocumentUniquePtr ScTransferObj::m_pDoc
private
css::uno::Reference<css::sheet::XSheetCellRanges> ScTransferObj::m_xDragSourceRanges
private

Definition at line 48 of file transobj.hxx.

Referenced by DragFinished(), GetSourceDocShell(), GetSourceMarkData(), and SetDragSource().


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