LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SdPageObjsTLV::SdPageObjsTransferable Class Referencefinal

#include <sdtreelb.hxx>

Inheritance diagram for SdPageObjsTLV::SdPageObjsTransferable:
[legend]
Collaboration diagram for SdPageObjsTLV::SdPageObjsTransferable:
[legend]

Public Member Functions

 SdPageObjsTransferable (INetBookmark aBookmark, ::sd::DrawDocShell &rDocShell, NavigatorDragType eDragType)
 
::sd::DrawDocShellGetDocShell () const
 
NavigatorDragType GetDragType () const
 
- Public Member Functions inherited from SdTransferable
 SdTransferable (SdDrawDocument *pSrcDoc, ::sd::View *pWorkView, bool bInitOnGetData)
 
virtual ~SdTransferable () override
 
void SetDocShell (const SfxObjectShellRef &rRef)
 
const SfxObjectShellRefGetDocShell () const
 
void SetWorkDocument (const SdDrawDocument *pWorkDoc)
 
const SdDrawDocumentGetWorkDocument () const
 
void SetView (const ::sd::View *pView)
 
const ::sd::ViewGetView () const
 
void SetObjectDescriptor (std::unique_ptr< TransferableObjectDescriptor > pObjDesc)
 
void SetStartPos (const Point &rStartPos)
 
const PointGetStartPos () const
 
void SetInternalMove (bool bSet)
 
bool IsInternalMove () const
 
bool HasSourceDoc (const SdDrawDocument *pDoc) const
 
void SetPageBookmarks (std::vector< OUString > &&rPageBookmarks, bool bPersistent)
 
bool IsPageTransferable () const
 
bool HasPageBookmarks () const
 
const std::vector< OUString > & GetPageBookmarks () const
 
::sd::DrawDocShellGetPageDocShell () const
 
bool SetTableRTF (SdDrawDocument *)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual void DragFinished (sal_Int8 nDropAction) override
 
SdDrawDocumentGetSourceDoc () const
 
void AddUserData (const std::shared_ptr< UserData > &rpData)
 Add a user data object. More...
 
sal_Int32 GetUserDataCount () const
 Return the number of user data objects. More...
 
std::shared_ptr< UserDataGetUserData (const sal_Int32 nIndex) const
 Return the specified user data object. More...
 
- 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)
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Static Public Member Functions

static SdPageObjsTransferablegetImplementation (const css::uno::Reference< css::uno::XInterface > &rxData) noexcept
 
static SotClipboardFormatId GetListBoxDropFormatId ()
 Return a temporary transferable data flavor that is used internally in the navigator for reordering entries. More...
 
- Static Public Member Functions inherited from SdTransferable
static SdTransferablegetImplementation (const css::uno::Reference< css::uno::XInterface > &rxData) noexcept
 
- Static Public Member Functions inherited from TransferableHelper
static void ClearPrimarySelection ()
 

Private Member Functions

virtual ~SdPageObjsTransferable () override
 
virtual void AddSupportedFormats () override
 
virtual bool GetData (const css::datatransfer::DataFlavor &rFlavor, const OUString &rDestDoc) override
 
virtual void DragFinished (sal_Int8 nDropAction) override
 

Private Attributes

INetBookmark const maBookmark
 
::sd::DrawDocShellmrDocShell
 
NavigatorDragType const meDragType
 

Static Private Attributes

static SotClipboardFormatId mnListBoxDropFormatId = static_cast<SotClipboardFormatId>(SAL_MAX_UINT32)
 Temporary drop flavor id that is used internally in the navigator. More...
 

Additional Inherited Members

- Protected Member Functions inherited from SdTransferable
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 ObjectReleased () override final
 
- 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 424 of file sdtreelb.hxx.

Constructor & Destructor Documentation

◆ SdPageObjsTransferable()

SdPageObjsTLV::SdPageObjsTransferable::SdPageObjsTransferable ( INetBookmark  aBookmark,
::sd::DrawDocShell rDocShell,
NavigatorDragType  eDragType 
)

Definition at line 83 of file sdtreelb.cxx.

◆ ~SdPageObjsTransferable()

SdPageObjsTLV::SdPageObjsTransferable::~SdPageObjsTransferable ( )
overrideprivatevirtual

Definition at line 94 of file sdtreelb.cxx.

Member Function Documentation

◆ AddSupportedFormats()

void SdPageObjsTLV::SdPageObjsTransferable::AddSupportedFormats ( )
overrideprivatevirtual

Reimplemented from SdTransferable.

Definition at line 98 of file sdtreelb.cxx.

◆ DragFinished()

void SdPageObjsTLV::SdPageObjsTransferable::DragFinished ( sal_Int8  nDropAction)
overrideprivatevirtual

Reimplemented from SdTransferable.

Definition at line 126 of file sdtreelb.cxx.

References SdTransferable::DragFinished(), and SdPageObjsTLV::OnDragFinished().

◆ GetData()

bool SdPageObjsTLV::SdPageObjsTransferable::GetData ( const css::datatransfer::DataFlavor &  rFlavor,
const OUString &  rDestDoc 
)
overrideprivatevirtual

Reimplemented from SdTransferable.

Definition at line 105 of file sdtreelb.cxx.

References SotExchange::GetFormat().

◆ GetDocShell()

::sd::DrawDocShell & SdPageObjsTLV::SdPageObjsTransferable::GetDocShell ( ) const
inline

◆ GetDragType()

NavigatorDragType SdPageObjsTLV::SdPageObjsTransferable::GetDragType ( ) const
inline

Definition at line 432 of file sdtreelb.hxx.

Referenced by sd::View::ExecuteDrop(), and sd::IMPL_LINK().

◆ getImplementation()

SdPageObjsTLV::SdPageObjsTransferable * SdPageObjsTLV::SdPageObjsTransferable::getImplementation ( const css::uno::Reference< css::uno::XInterface > &  rxData)
staticnoexcept

Definition at line 132 of file sdtreelb.cxx.

Referenced by sd::View::ExecuteDrop(), and sd::IMPL_LINK().

◆ GetListBoxDropFormatId()

SotClipboardFormatId SdPageObjsTLV::SdPageObjsTransferable::GetListBoxDropFormatId ( )
static

Return a temporary transferable data flavor that is used internally in the navigator for reordering entries.

Its lifetime ends with the office application.

Definition at line 138 of file sdtreelb.cxx.

References SotExchange::RegisterFormatMimeType(), and SAL_MAX_UINT32.

Referenced by sd::View::AcceptDrop().

Member Data Documentation

◆ maBookmark

INetBookmark const SdPageObjsTLV::SdPageObjsTransferable::maBookmark
private

Definition at line 447 of file sdtreelb.hxx.

◆ meDragType

NavigatorDragType const SdPageObjsTLV::SdPageObjsTransferable::meDragType
private

Definition at line 449 of file sdtreelb.hxx.

◆ mnListBoxDropFormatId

SotClipboardFormatId SdPageObjsTLV::SdPageObjsTransferable::mnListBoxDropFormatId = static_cast<SotClipboardFormatId>(SAL_MAX_UINT32)
staticprivate

Temporary drop flavor id that is used internally in the navigator.

Definition at line 445 of file sdtreelb.hxx.

◆ mrDocShell

::sd::DrawDocShell& SdPageObjsTLV::SdPageObjsTransferable::mrDocShell
private

Definition at line 448 of file sdtreelb.hxx.


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