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 /svx/source/gallery2/galtheme.cxx | |
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 'svx/source/gallery2/galtheme.cxx')
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index 8486d6d4ad14..fd395eeb0601 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -654,14 +654,7 @@ void GalleryTheme::CopyToClipboard(sal_uInt32 nPos) DateTime GalleryTheme::getModificationDate() const { - ::ucbhelper::Content aCnt(mpGalleryStorageEngine->GetThmURL().GetMainURL(INetURLObject::DecodeMechanism::NONE), uno::Reference< ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext()); - util::DateTime aDateTimeModified; - DateTime aDateTime(DateTime::EMPTY); - - aCnt.getPropertyValue("DateModified") >>= aDateTimeModified; - ::utl::typeConvert(aDateTimeModified, aDateTime); - - return aDateTime; + return mpGalleryStorageEngine->getModificationDate(); } SvStream& GalleryTheme::ReadData( SvStream& rIStm ) |