LibreOffice Module svx (master) 1
Public Member Functions | Private Attributes | List of all members
GalleryObjectCollection Class Reference

#include <galleryobjectcollection.hxx>

Public Member Functions

 GalleryObjectCollection ()
 
std::vector< std::unique_ptr< GalleryObject > > & getObjectList ()
 
std::unique_ptr< GalleryObject > & get (sal_uInt32 nPos)
 
const std::unique_ptr< GalleryObject > & get (sal_uInt32 nPos) const
 
sal_uInt32 size () const
 
const GalleryObjectsearchObjectWithURL (const INetURLObject &rURL)
 
const GalleryObjectgetForPosition (sal_uInt32 nPos) const
 
sal_uInt32 searchPosWithObject (const GalleryObject *pObj)
 
const INetURLObjectgetURLForPosition (sal_uInt32 nPos) const
 
void clear ()
 
 GalleryObjectCollection (GalleryObjectCollection const &)=delete
 
void operator= (GalleryObjectCollection const &)=delete
 

Private Attributes

std::vector< std::unique_ptr< GalleryObject > > m_aObjectList
 

Detailed Description

Definition at line 47 of file galleryobjectcollection.hxx.

Constructor & Destructor Documentation

◆ GalleryObjectCollection() [1/2]

GalleryObjectCollection::GalleryObjectCollection ( )

Definition at line 22 of file galleryobjectcollection.cxx.

◆ GalleryObjectCollection() [2/2]

GalleryObjectCollection::GalleryObjectCollection ( GalleryObjectCollection const &  )
delete

Member Function Documentation

◆ clear()

void GalleryObjectCollection::clear ( )

Definition at line 24 of file galleryobjectcollection.cxx.

References m_aObjectList.

Referenced by GalleryTheme::ReadData(), and GalleryTheme::~GalleryTheme().

◆ get() [1/2]

std::unique_ptr< GalleryObject > & GalleryObjectCollection::get ( sal_uInt32  nPos)
inline

◆ get() [2/2]

const std::unique_ptr< GalleryObject > & GalleryObjectCollection::get ( sal_uInt32  nPos) const
inline

Definition at line 56 of file galleryobjectcollection.hxx.

References nPos.

◆ getForPosition()

const GalleryObject * GalleryObjectCollection::getForPosition ( sal_uInt32  nPos) const

◆ getObjectList()

std::vector< std::unique_ptr< GalleryObject > > & GalleryObjectCollection::getObjectList ( )
inline

◆ getURLForPosition()

const INetURLObject & GalleryObjectCollection::getURLForPosition ( sal_uInt32  nPos) const

Definition at line 53 of file galleryobjectcollection.cxx.

References g_aInvalidURL, get(), nPos, and size().

Referenced by GalleryTheme::GetObjectURL().

◆ operator=()

void GalleryObjectCollection::operator= ( GalleryObjectCollection const &  )
delete

◆ searchObjectWithURL()

const GalleryObject * GalleryObjectCollection::searchObjectWithURL ( const INetURLObject rURL)

Definition at line 26 of file galleryobjectcollection.cxx.

References m_aObjectList, and pObject.

◆ searchPosWithObject()

sal_uInt32 GalleryObjectCollection::searchPosWithObject ( const GalleryObject pObj)

Definition at line 36 of file galleryobjectcollection.cxx.

References get(), i, n, SAL_MAX_UINT32, and size().

Referenced by unogallery::GalleryItem::_getPropertyValues().

◆ size()

sal_uInt32 GalleryObjectCollection::size ( ) const
inline

Member Data Documentation

◆ m_aObjectList

std::vector<std::unique_ptr<GalleryObject> > GalleryObjectCollection::m_aObjectList
private

Definition at line 50 of file galleryobjectcollection.hxx.

Referenced by clear(), and searchObjectWithURL().


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