LibreOffice Module sd (master) 1
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::slidesorter::controller::TransferableData Class Referencefinal

Represent previews and other information so that they can be attached to an existing transferable. More...

#include <SlsTransferableData.hxx>

Inheritance diagram for sd::slidesorter::controller::TransferableData:
[legend]
Collaboration diagram for sd::slidesorter::controller::TransferableData:
[legend]

Classes

class  Representative
 

Public Member Functions

 TransferableData (SlideSorterViewShell *pViewShell, ::std::vector< TransferableData::Representative > &&rRepresentatives)
 
virtual ~TransferableData () override
 
const ::std::vector< Representative > & GetRepresentatives () const
 
SlideSorterViewShellGetSourceViewShell () const
 Return the view shell for which the transferable was created. More...
 
- Public Member Functions inherited from SdTransferable::UserData
virtual ~UserData ()
 
- 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 rtl::Reference< SdTransferableCreateTransferable (SdDrawDocument *pSrcDoc, SlideSorterViewShell *pViewShell, ::std::vector< TransferableData::Representative > &&rRepresentatives)
 
static std::shared_ptr< TransferableDataGetFromTransferable (const SdTransferable *pTransferable)
 

Private Member Functions

virtual void Notify (SfxBroadcaster &rBroadcaster, const SfxHint &rHint) override
 

Private Attributes

SlideSorterViewShellmpViewShell
 
const ::std::vector< RepresentativemaRepresentatives
 

Detailed Description

Represent previews and other information so that they can be attached to an existing transferable.

Definition at line 36 of file SlsTransferableData.hxx.

Constructor & Destructor Documentation

◆ TransferableData()

sd::slidesorter::controller::TransferableData::TransferableData ( SlideSorterViewShell pViewShell,
::std::vector< TransferableData::Representative > &&  rRepresentatives 
)

Definition at line 52 of file SlsTransferableData.cxx.

References mpViewShell, and SfxListener::StartListening().

◆ ~TransferableData()

sd::slidesorter::controller::TransferableData::~TransferableData ( )
overridevirtual

Definition at line 62 of file SlsTransferableData.cxx.

References SfxListener::EndListening(), and mpViewShell.

Member Function Documentation

◆ CreateTransferable()

rtl::Reference< SdTransferable > sd::slidesorter::controller::TransferableData::CreateTransferable ( SdDrawDocument pSrcDoc,
SlideSorterViewShell pViewShell,
::std::vector< TransferableData::Representative > &&  rRepresentatives 
)
static

◆ GetFromTransferable()

std::shared_ptr< TransferableData > sd::slidesorter::controller::TransferableData::GetFromTransferable ( const SdTransferable pTransferable)
static

◆ GetRepresentatives()

const ::std::vector< Representative > & sd::slidesorter::controller::TransferableData::GetRepresentatives ( ) const
inline

Definition at line 63 of file SlsTransferableData.hxx.

References maRepresentatives.

◆ GetSourceViewShell()

SlideSorterViewShell * sd::slidesorter::controller::TransferableData::GetSourceViewShell ( ) const
inline

Return the view shell for which the transferable was created.

Definition at line 67 of file SlsTransferableData.hxx.

References mpViewShell.

◆ Notify()

void sd::slidesorter::controller::TransferableData::Notify ( SfxBroadcaster rBroadcaster,
const SfxHint rHint 
)
overrideprivatevirtual

Reimplemented from SfxListener.

Definition at line 68 of file SlsTransferableData.cxx.

References SfxListener::EndListening(), SfxHint::GetId(), and mpViewShell.

Member Data Documentation

◆ maRepresentatives

const ::std::vector<Representative> sd::slidesorter::controller::TransferableData::maRepresentatives
private

Definition at line 71 of file SlsTransferableData.hxx.

Referenced by GetRepresentatives().

◆ mpViewShell

SlideSorterViewShell* sd::slidesorter::controller::TransferableData::mpViewShell
private

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