diff options
author | Aditya <adityasahu1511@gmail.com> | 2020-08-03 22:50:53 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-09-01 09:22:56 +0200 |
commit | 5694dc279e5f0f78b1bb669b22070881ab012f1a (patch) | |
tree | 610e83b56a8b920bc15b3f5dd6190c28df9c27de | |
parent | 13c1d05570854219bc94149bff646cba831d4cbd (diff) |
svx: Introduce GalleryFileStorage
Abstract class for GalleryBinaryEngine and upcoming GalleryXMLEngine. This
interface will be used by GalleryTheme.
Change-Id: I2193e3ea9860c41a1580d5ca59da68bf41b70a3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100025
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | include/svx/gallerybinaryengine.hxx | 3 | ||||
-rw-r--r-- | include/svx/galleryfilestorage.hxx | 28 | ||||
-rw-r--r-- | svx/Library_svxcore.mk | 1 | ||||
-rw-r--r-- | svx/source/gallery2/galleryfilestorage.cxx | 24 |
4 files changed, 55 insertions, 1 deletions
diff --git a/include/svx/gallerybinaryengine.hxx b/include/svx/gallerybinaryengine.hxx index eb9e0b291de1..e8353d11af5a 100644 --- a/include/svx/gallerybinaryengine.hxx +++ b/include/svx/gallerybinaryengine.hxx @@ -24,6 +24,7 @@ #include <svx/svxdllapi.h> #include <svx/fmmodel.hxx> #include <svx/gallerystoragelocations.hxx> +#include <svx/galleryfilestorage.hxx> #include <tools/urlobj.hxx> #include <sot/storage.hxx> @@ -40,7 +41,7 @@ class FmFormModel; class GalleryTheme; class GalleryThemeEntry; -class SVXCORE_DLLPUBLIC GalleryBinaryEngine +class SVXCORE_DLLPUBLIC GalleryBinaryEngine : public GalleryFileStorage { private: tools::SvRef<SotStorage> m_aSvDrawStorageRef; diff --git a/include/svx/galleryfilestorage.hxx b/include/svx/galleryfilestorage.hxx new file mode 100644 index 000000000000..fee632e9b397 --- /dev/null +++ b/include/svx/galleryfilestorage.hxx @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#pragma once + +class GalleryFileStorage +{ +public: + virtual ~GalleryFileStorage() = 0; +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/Library_svxcore.mk b/svx/Library_svxcore.mk index 4898c073764d..208effe3bef2 100644 --- a/svx/Library_svxcore.mk +++ b/svx/Library_svxcore.mk @@ -156,6 +156,7 @@ $(eval $(call gb_Library_add_exception_objects,svxcore,\ svx/source/gallery2/gallerybinaryengineentry \ svx/source/gallery2/gallerystoragelocations \ svx/source/gallery2/galleryobjectcollection \ + svx/source/gallery2/galleryfilestorage \ svx/source/items/chrtitem \ svx/source/items/clipfmtitem \ svx/source/items/customshapeitem \ diff --git a/svx/source/gallery2/galleryfilestorage.cxx b/svx/source/gallery2/galleryfilestorage.cxx new file mode 100644 index 000000000000..dd8e74cd3af4 --- /dev/null +++ b/svx/source/gallery2/galleryfilestorage.cxx @@ -0,0 +1,24 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#include <svx/galleryfilestorage.hxx> + +GalleryFileStorage::~GalleryFileStorage(){}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |