diff options
Diffstat (limited to 'include/svx/gallerybinaryengineentry.hxx')
-rw-r--r-- | include/svx/gallerybinaryengineentry.hxx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/include/svx/gallerybinaryengineentry.hxx b/include/svx/gallerybinaryengineentry.hxx index 8039661e4dec..b0f8d7a447b3 100644 --- a/include/svx/gallerybinaryengineentry.hxx +++ b/include/svx/gallerybinaryengineentry.hxx @@ -32,24 +32,32 @@ class GalleryBinaryStorageLocations; class GalleryBinaryEngineEntry : public GalleryFileStorageEntry { private: - GalleryBinaryStorageLocations& m_rGalleryStorageLocations; + std::unique_ptr<GalleryBinaryStorageLocations> mpGalleryStorageLocations; public: - GalleryBinaryEngineEntry(GalleryBinaryStorageLocations& rGalleryStorageLocations); + GalleryBinaryEngineEntry(); static void CreateUniqueURL(const INetURLObject& rBaseURL, INetURLObject& aURL); OUString ReadStrFromIni(const OUString& aKeyName); - const INetURLObject& GetThmURL() const { return m_rGalleryStorageLocations.GetThmURL(); } - const INetURLObject& GetSdgURL() const { return m_rGalleryStorageLocations.GetSdgURL(); } - const INetURLObject& GetSdvURL() const { return m_rGalleryStorageLocations.GetSdvURL(); } - const INetURLObject& GetStrURL() const { return m_rGalleryStorageLocations.GetStrURL(); } + const INetURLObject& GetThmURL() const { return mpGalleryStorageLocations->GetThmURL(); } + const INetURLObject& GetSdgURL() const { return mpGalleryStorageLocations->GetSdgURL(); } + const INetURLObject& GetSdvURL() const { return mpGalleryStorageLocations->GetSdvURL(); } + const INetURLObject& GetStrURL() const { return mpGalleryStorageLocations->GetStrURL(); } + + static std::unique_ptr<GalleryBinaryStorageLocations> createGalleryStorageLocations(); + const std::unique_ptr<GalleryBinaryStorageLocations>& getGalleryStorageLocations() const + { + return mpGalleryStorageLocations; + } static GalleryThemeEntry* CreateThemeEntry(const INetURLObject& rURL, bool bReadOnly); void removeTheme(); std::unique_ptr<GalleryTheme>& getCachedTheme(std::unique_ptr<GalleryTheme>& pNewTheme); + + void setStorageLocations(INetURLObject& rURL); }; SvStream& ReadGalleryTheme(SvStream& rIn, GalleryTheme& rTheme); |