svx: GalleryObjectCollection shared class and related refactoring work

Desktop / LibreOffice - Aditya [gmail.com] - 30 July 2020 05:30 UTC

Add GalleryObjectCollection, a shared class primarily owned by GalleryTheme which contains object list to be used by GalleryTheme and GalleryBinaryEngine. Refactor ImplCreateUniqueURL, InsertGraphic() Implement comphelper::GraphicMimeTypeHelper::GetExtensionForConvertDataFormat() Refactor Actualize(), implement updateSvDrawObject(), updateTheme() Move ImplCreateSvDrawStorage into constructor instead of calling in directly.

Change-Id: I6a8c552268628b4e192f45112ac9e8789c6e1609 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99035

104f7027ea3b svx: GalleryObjectCollection shared class and related refactoring work
comphelper/source/misc/graphicmimetype.cxx | 48 ++++
include/comphelper/graphicmimetype.hxx | 1 +
include/svx/gallerybinaryengine.hxx | 35 ++-
include/svx/gallerybinaryengineentry.hxx | 10 +-
include/svx/galleryobjectcollection.hxx | 41 +++
include/svx/galtheme.hxx | 23 +-
svx/Library_svxcore.mk | 1 +
svx/source/gallery2/gallerybinaryengine.cxx | 290 +++++++++++++++++++--
svx/source/gallery2/gallerybinaryengineentry.cxx | 2 +-
svx/source/gallery2/galleryobjectcollection.cxx | 25 ++
svx/source/gallery2/galtheme.cxx | 313 ++++-------------------
11 files changed, 469 insertions(+), 320 deletions(-)

Upstream: cgit.freedesktop.org


  • Share