20#ifndef INCLUDED_SVX_GALLERY1_HXX
21#define INCLUDED_SVX_GALLERY1_HXX
23#include <rtl/ustring.hxx>
52 const OUString& rName,
69 bool IsHidden()
const {
return aName.match(
"private://gallery/hidden/"); }
74 void SetName(
const OUString& rNewName );
78 void SetId( sal_uInt32 nNewId,
bool bResetThemeName );
99 std::vector< std::unique_ptr<GalleryThemeEntry> >
aThemeList;
105 SAL_DLLPRIVATE
void ImplLoad( std::u16string_view rMultiPath );
106 SAL_DLLPRIVATE
void ImplLoadSubDirs(
const INetURLObject& rBaseURL,
bool& rbIsReadOnly );
111 SAL_DLLPRIVATE
void ImplDeleteCachedTheme(
GalleryTheme const * pTheme );
118 Gallery( std::u16string_view rMultiPath );
121 static Gallery* GetGalleryInstance();
125 {
return nPos < aThemeList.size() ? aThemeList[
nPos ].get() :
nullptr; }
128 bool HasTheme( std::u16string_view rThemeName );
129 SAL_DLLPRIVATE OUString GetThemeName( sal_uInt32 nThemeId )
const;
131 bool CreateTheme(
const OUString& rThemeName );
132 void RenameTheme(
const OUString& rOldName,
const OUString& rNewName );
133 bool RemoveTheme(
const OUString& rThemeName );
const std::unique_ptr< GalleryBinaryEngineEntry > & getGalleryStorageEngineEntry() const
const OUString & GetThemeName() const
std::unique_ptr< GalleryBinaryEngineEntry > mpGalleryStorageEngineEntry
bool IsNameFromResource() const
GalleryThemeEntry(bool bCreateUniqueURL, const INetURLObject &rBaseURL, const OUString &rName, bool bReadOnly, bool bNewFile, sal_uInt32 nId, bool bThemeNameFromResource)
GalleryTheme * createGalleryTheme(Gallery *pGallery)
GalleryStorageLocations & getGalleryStorageLocations() const
void setStorageLocations(INetURLObject &rURL)
std::unique_ptr< GalleryBinaryEngine > createGalleryStorageEngine(GalleryObjectCollection &mrGalleryObjectCollection)
bool bThemeNameFromResource
void SetModified(bool bSet)
std::unique_ptr< GalleryTheme > getCachedTheme(Gallery *pGallery)
void SetId(sal_uInt32 nNewId, bool bResetThemeName)
void SetName(const OUString &rNewName)
std::vector< GalleryThemeCacheEntry * > GalleryCacheThemeList
SAL_DLLPRIVATE const INetURLObject & GetUserURL() const
const GalleryThemeEntry * GetThemeInfo(std::u16string_view rThemeName)
Gallery(Gallery const &)=delete
size_t GetThemeCount() const
SAL_DLLPRIVATE const GalleryThemeEntry * GetThemeInfo(size_t nPos)
std::vector< std::unique_ptr< GalleryThemeEntry > > aThemeList
GalleryCacheThemeList aThemeCache
SAL_DLLPRIVATE const INetURLObject & GetRelativeURL() const
Gallery & operator=(Gallery const &)=delete
#define SVXCORE_DLLPUBLIC