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::GalleryObjectCollection ( )

Definition at line 22 of file galleryobjectcollection.cxx.

GalleryObjectCollection::GalleryObjectCollection ( GalleryObjectCollection const &  )
delete

Member Function Documentation

void GalleryObjectCollection::clear ( )

Definition at line 24 of file galleryobjectcollection.cxx.

References m_aObjectList.

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

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

Definition at line 56 of file galleryobjectcollection.hxx.

References nPos.

const GalleryObject * GalleryObjectCollection::getForPosition ( sal_uInt32  nPos) const
std::vector<std::unique_ptr<GalleryObject> >& GalleryObjectCollection::getObjectList ( )
inline
const INetURLObject & GalleryObjectCollection::getURLForPosition ( sal_uInt32  nPos) const

Definition at line 53 of file galleryobjectcollection.cxx.

References g_aInvalidURL, and size().

Referenced by GalleryTheme::GetObjectURL().

void GalleryObjectCollection::operator= ( GalleryObjectCollection const &  )
delete
const GalleryObject * GalleryObjectCollection::searchObjectWithURL ( const INetURLObject rURL)

Definition at line 26 of file galleryobjectcollection.cxx.

References m_aObjectList, and pObject.

sal_uInt32 GalleryObjectCollection::searchPosWithObject ( const GalleryObject pObj)

Definition at line 36 of file galleryobjectcollection.cxx.

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

sal_uInt32 GalleryObjectCollection::size ( ) const
inline

Member Data Documentation

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: