20 #ifndef INCLUDED_SVX_GALLERY1_HXX
21 #define INCLUDED_SVX_GALLERY1_HXX
23 #include <rtl/ustring.hxx>
52 const OUString& rName,
53 bool bReadOnly,
bool bNewFile,
54 sal_uInt32 nId,
bool bThemeNameFromResource );
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(
const OUString& rMultiPath );
106 SAL_DLLPRIVATE
void ImplLoadSubDirs(
const INetURLObject& rBaseURL,
bool& rbIsReadOnly );
111 SAL_DLLPRIVATE
void ImplDeleteCachedTheme(
GalleryTheme const * pTheme );
118 Gallery(
const OUString& 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 );
144 #endif // INCLUDED_SVX_GALLERY1_HXX
const GalleryThemeEntry * GetThemeInfo(std::u16string_view rThemeName)
SAL_DLLPRIVATE const INetURLObject & GetRelativeURL() const
GalleryTheme * createGalleryTheme(Gallery *pGallery)
const SfxBroadcaster & operator=(const SfxBroadcaster &)=delete
std::unique_ptr< GalleryBinaryEngineEntry > mpGalleryStorageEngineEntry
std::vector< GalleryThemeCacheEntry * > GalleryCacheThemeList
size_t GetThemeCount() const
std::unique_ptr< GalleryTheme > getCachedTheme(Gallery *pGallery)
const std::unique_ptr< GalleryBinaryEngineEntry > & getGalleryStorageEngineEntry() const
bool bThemeNameFromResource
SAL_DLLPRIVATE const INetURLObject & GetUserURL() const
void SetModified(bool bSet)
bool IsNameFromResource() const
void SetName(const OUString &rNewName)
std::unique_ptr< GalleryBinaryEngine > createGalleryStorageEngine(GalleryObjectCollection &mrGalleryObjectCollection)
SAL_DLLPRIVATE const GalleryThemeEntry * GetThemeInfo(size_t nPos)
void SetId(sal_uInt32 nNewId, bool bResetThemeName)
#define SVXCORE_DLLPUBLIC
GalleryCacheThemeList aThemeCache
GalleryThemeEntry(bool bCreateUniqueURL, const INetURLObject &rBaseURL, const OUString &rName, bool bReadOnly, bool bNewFile, sal_uInt32 nId, bool bThemeNameFromResource)
GalleryStorageLocations & getGalleryStorageLocations() const
void setStorageLocations(INetURLObject &rURL)
const OUString & GetThemeName() const
std::vector< std::unique_ptr< GalleryThemeEntry > > aThemeList