diff options
author | Aditya <adityasahu1511@gmail.com> | 2020-08-27 16:29:09 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-09-04 15:04:01 +0200 |
commit | 7429369678fdcf17c286b8c7238747b4a6b12866 (patch) | |
tree | b09bfd5c218a2046a692558161597b4397238106 /include | |
parent | fa3f514f33d4beadabf8526278939ed51417918b (diff) |
svx: Introduce GalleryBinaryEngine::getModificationDate()
Also make GalleryBinaryEngine's functions GetSdgURL(), GetThmURL(), GetStrURL(),
GetSdvURL() private to the class.
Introduce getModificationDate() to GalleryBinaryEngine because that it where it
belongs - it deals with URL
Change-Id: Idd3c42e779652df030ae104e40581d9de1a07863
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101505
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/gallerybinaryengine.hxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/svx/gallerybinaryengine.hxx b/include/svx/gallerybinaryengine.hxx index 7423b7b29c95..46322f5b99bf 100644 --- a/include/svx/gallerybinaryengine.hxx +++ b/include/svx/gallerybinaryengine.hxx @@ -27,6 +27,9 @@ #include <tools/urlobj.hxx> #include <sot/storage.hxx> +#include <tools/datetime.hxx> +#include <unotools/datetime.hxx> + #include <memory> class GalleryStorageLocations; @@ -50,6 +53,11 @@ private: OUString m_aDestDir; bool m_bDestDirRelative; + const INetURLObject& GetSdgURL() const { return maGalleryStorageLocations.GetSdgURL(); } + const INetURLObject& GetSdvURL() const { return maGalleryStorageLocations.GetSdvURL(); } + const INetURLObject& GetStrURL() const { return maGalleryStorageLocations.GetStrURL(); } + const INetURLObject& GetThmURL() const { return maGalleryStorageLocations.GetThmURL(); } + public: GalleryBinaryEngine(const GalleryStorageLocations& rGalleryStorageLocations, GalleryObjectCollection& rGalleryObjectCollection, bool bReadOnly); @@ -62,10 +70,6 @@ public: SAL_DLLPRIVATE void ImplCreateSvDrawStorage(); SAL_DLLPRIVATE const tools::SvRef<SotStorage>& GetSvDrawStorage() const; - const INetURLObject& GetThmURL() const { return maGalleryStorageLocations.GetThmURL(); } - const INetURLObject& GetSdgURL() const { return maGalleryStorageLocations.GetSdgURL(); } - const INetURLObject& GetSdvURL() const { return maGalleryStorageLocations.GetSdvURL(); } - const INetURLObject& GetStrURL() const { return maGalleryStorageLocations.GetStrURL(); } const INetURLObject& getThemeURL() const { return maGalleryStorageLocations.getThemeURL(); } SAL_DLLPRIVATE bool implWrite(const GalleryTheme& rTheme, const GalleryThemeEntry* pThm); @@ -98,6 +102,8 @@ public: SvStream& writeGalleryTheme(SvStream& rOStm, const GalleryTheme& rTheme, const GalleryThemeEntry* pThm); + + DateTime getModificationDate() const; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |