LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Gallery Class Referencefinal

#include <gallery1.hxx>

Inheritance diagram for Gallery:
Collaboration diagram for Gallery:

Public Member Functions

 Gallery (const OUString &rMultiPath)
virtual ~Gallery () override
size_t GetThemeCount () const
SAL_DLLPRIVATE const GalleryThemeEntryGetThemeInfo (size_t nPos)
const GalleryThemeEntryGetThemeInfo (const OUString &rThemeName)
bool HasTheme (const OUString &rThemeName)
SAL_DLLPRIVATE OUString GetThemeName (sal_uInt32 nThemeId) const
bool CreateTheme (const OUString &rThemeName)
void RenameTheme (const OUString &rOldName, const OUString &rNewName)
bool RemoveTheme (const OUString &rThemeName)
GalleryThemeAcquireTheme (const OUString &rThemeName, SfxListener &rListener)
void ReleaseTheme (GalleryTheme *pTheme, SfxListener &rListener)
SAL_DLLPRIVATE const INetURLObjectGetUserURL () const
SAL_DLLPRIVATE const INetURLObjectGetRelativeURL () const
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 SfxBroadcaster (const SfxBroadcaster &rBC)
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
void Broadcast (const SfxHint &rHint)
bool HasListeners () const
size_t GetListenerCount () const
size_t GetSizeOfVector () const
SfxListenerGetListener (size_t nNo) const

Static Public Member Functions

static GalleryGetGalleryInstance ()

Private Types

typedef std::vector< GalleryThemeCacheEntry * > GalleryCacheThemeList

Private Member Functions

SAL_DLLPRIVATE void ImplLoad (const OUString &rMultiPath)
SAL_DLLPRIVATE void ImplLoadSubDirs (const INetURLObject &rBaseURL, bool &rbIsReadOnly)
GalleryThemeEntryImplGetThemeEntry (const OUString &rThemeName)
SAL_DLLPRIVATE GalleryThemeImplGetCachedTheme (GalleryThemeEntry *pThemeEntry)
SAL_DLLPRIVATE void ImplDeleteCachedTheme (GalleryTheme const *pTheme)
Galleryoperator= (Gallery const &)=delete
 Gallery (Gallery const &)=delete

Private Attributes

std::vector< std::unique_ptr< GalleryThemeEntry > > aThemeList
GalleryCacheThemeList aThemeCache
INetURLObject aRelURL
INetURLObject aUserURL
bool bMultiPath

Additional Inherited Members

- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)

Detailed Description

Definition at line 93 of file gallery1.hxx.

Member Typedef Documentation

Definition at line 95 of file gallery1.hxx.

Constructor & Destructor Documentation

Gallery::Gallery ( Gallery const &  )

Referenced by GetGalleryInstance().

Gallery::Gallery ( const OUString &  rMultiPath)

Definition at line 229 of file gallery1.cxx.

References ImplLoad().

Gallery::~Gallery ( )

Definition at line 235 of file gallery1.cxx.

Member Function Documentation

GalleryTheme * Gallery::AcquireTheme ( const OUString &  rThemeName,
SfxListener rListener 
bool Gallery::CreateTheme ( const OUString &  rThemeName)
Gallery * Gallery::GetGalleryInstance ( )
SAL_DLLPRIVATE const INetURLObject& Gallery::GetRelativeURL ( ) const

Definition at line 141 of file gallery1.hxx.

Referenced by GalleryBinaryEngine::writeGalleryTheme().

size_t Gallery::GetThemeCount ( ) const
SAL_DLLPRIVATE const GalleryThemeEntry* Gallery::GetThemeInfo ( size_t  nPos)
const GalleryThemeEntry* Gallery::GetThemeInfo ( const OUString &  rThemeName)

Definition at line 126 of file gallery1.hxx.

OUString Gallery::GetThemeName ( sal_uInt32  nThemeId) const
SAL_DLLPRIVATE const INetURLObject& Gallery::GetUserURL ( ) const
bool Gallery::HasTheme ( const OUString &  rThemeName)
void Gallery::ImplDeleteCachedTheme ( GalleryTheme const *  pTheme)

Definition at line 683 of file gallery1.cxx.

References aThemeCache.

Referenced by ReleaseTheme().

GalleryTheme * Gallery::ImplGetCachedTheme ( GalleryThemeEntry pThemeEntry)

Definition at line 658 of file gallery1.cxx.

References aThemeCache, and GalleryThemeEntry::getCachedTheme().

Referenced by AcquireTheme().

GalleryThemeEntry * Gallery::ImplGetThemeEntry ( const OUString &  rThemeName)

Definition at line 479 of file gallery1.cxx.

References aThemeList, GetThemeName(), i, and n.

Referenced by AcquireTheme(), GetThemeName(), HasTheme(), RemoveTheme(), and RenameTheme().

void Gallery::ImplLoad ( const OUString &  rMultiPath)

Definition at line 249 of file gallery1.cxx.

References aRelURL, aUserURL, bMultiPath, DBG_ASSERT, INetURLObject::GetProtocol(), and ImplLoadSubDirs().

Referenced by Gallery().

void Gallery::ImplLoadSubDirs ( const INetURLObject rBaseURL,
bool &  rbIsReadOnly 
Gallery& Gallery::operator= ( Gallery const &  )
void Gallery::ReleaseTheme ( GalleryTheme pTheme,
SfxListener rListener 
bool Gallery::RemoveTheme ( const OUString &  rThemeName)
void Gallery::RenameTheme ( const OUString &  rOldName,
const OUString &  rNewName 

Member Data Documentation

INetURLObject Gallery::aRelURL

Definition at line 101 of file gallery1.hxx.

Referenced by ImplLoad().

GalleryCacheThemeList Gallery::aThemeCache

Definition at line 100 of file gallery1.hxx.

Referenced by ImplDeleteCachedTheme(), and ImplGetCachedTheme().

std::vector< std::unique_ptr<GalleryThemeEntry> > Gallery::aThemeList
INetURLObject Gallery::aUserURL

Definition at line 102 of file gallery1.hxx.

Referenced by ImplLoad().

bool Gallery::bMultiPath

Definition at line 103 of file gallery1.hxx.

Referenced by ImplLoad().

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