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:
[legend]
Collaboration diagram for Gallery:
[legend]

Public Member Functions

 Gallery (const OUString &rMultiPath)
 
virtual ~Gallery () override
 
SAL_DLLPRIVATE size_t GetThemeCount () const
 
SAL_DLLPRIVATE const GalleryThemeEntryGetThemeInfo (size_t nPos)
 
SAL_DLLPRIVATE const GalleryThemeEntryGetThemeInfo (const OUString &rThemeName)
 
bool HasTheme (const OUString &rThemeName)
 
SAL_DLLPRIVATE OUString GetThemeName (sal_uInt32 nThemeId) const
 
bool CreateTheme (const OUString &rThemeName)
 
SAL_DLLPRIVATE 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 (const 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 85 of file gallery1.hxx.

Member Typedef Documentation

Definition at line 87 of file gallery1.hxx.

Constructor & Destructor Documentation

Gallery::Gallery ( Gallery const &  )
privatedelete

Referenced by GetGalleryInstance().

Gallery::Gallery ( const OUString &  rMultiPath)

Definition at line 254 of file gallery1.cxx.

References ImplLoad().

Gallery::~Gallery ( )
overridevirtual

Definition at line 260 of file gallery1.cxx.

Member Function Documentation

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

Definition at line 133 of file gallery1.hxx.

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

Definition at line 118 of file gallery1.hxx.

OUString Gallery::GetThemeName ( sal_uInt32  nThemeId) const
SAL_DLLPRIVATE const INetURLObject& Gallery::GetUserURL ( ) const
inline

Definition at line 132 of file gallery1.hxx.

Referenced by CreateTheme(), and GalleryBrowser1::GalleryBrowser1().

bool Gallery::HasTheme ( const OUString &  rThemeName)
void Gallery::ImplDeleteCachedTheme ( GalleryTheme const *  pTheme)
private

Definition at line 731 of file gallery1.cxx.

References aThemeCache.

Referenced by ReleaseTheme().

GalleryTheme * Gallery::ImplGetCachedTheme ( const GalleryThemeEntry pThemeEntry)
private
GalleryThemeEntry * Gallery::ImplGetThemeEntry ( const OUString &  rThemeName)
private

Definition at line 504 of file gallery1.cxx.

References aThemeList, GetThemeName(), and i.

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

void Gallery::ImplLoad ( const OUString &  rMultiPath)
private

Definition at line 274 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 
)
private
Gallery& Gallery::operator= ( Gallery const &  )
privatedelete
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
private

Definition at line 93 of file gallery1.hxx.

Referenced by ImplLoad().

GalleryCacheThemeList Gallery::aThemeCache
private

Definition at line 92 of file gallery1.hxx.

Referenced by ImplDeleteCachedTheme(), and ImplGetCachedTheme().

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

Definition at line 94 of file gallery1.hxx.

Referenced by ImplLoad().

bool Gallery::bMultiPath
private

Definition at line 95 of file gallery1.hxx.

Referenced by ImplLoad().


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