20#ifndef INCLUDED_SVX_GALLERY1_HXX
21#define INCLUDED_SVX_GALLERY1_HXX
23#include <rtl/ustring.hxx>
53 const OUString& rName,
55 sal_uInt32 nId,
bool bThemeNameFromResource );
62 std::unique_ptr<GalleryFileStorage> createGalleryStorageEngine(
GalleryObjectCollection& mrGalleryObjectCollection);
67 bool IsDefault()
const;
69 bool IsHidden()
const {
return aName.match(
"private://gallery/hidden/"); }
74 void SetName(
const OUString& rNewName );
78 void SetId( sal_uInt32 nNewId,
bool bResetThemeName );
83 std::unique_ptr<GalleryTheme> getCachedTheme(
Gallery* pGallery);
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 OUString & GetThemeName() const
bool IsNameFromResource() const
std::unique_ptr< GalleryFileStorageEntry > mpGalleryStorageEngineEntry
bool bThemeNameFromResource
void SetModified(bool bSet)
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
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
#define SVXCORE_DLLPUBLIC