[Libreoffice-commits] core.git: include/svx svx/Library_svxcore.mk svx/source

Aditya (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 4 09:26:47 UTC 2020


 include/svx/gallerybinaryengineentry.hxx        |    3 +-
 include/svx/galleryfilestorageentry.hxx         |   28 ++++++++++++++++++++++++
 svx/Library_svxcore.mk                          |    1 
 svx/source/gallery2/galleryfilestorageentry.cxx |   24 ++++++++++++++++++++
 4 files changed, 55 insertions(+), 1 deletion(-)

New commits:
commit b2d3cb906aa49ca2d83393712b9ed01d93826168
Author:     Aditya <adityasahu1511 at gmail.com>
AuthorDate: Wed Aug 26 22:35:34 2020 +0530
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Sep 4 11:26:03 2020 +0200

    svx: Introduce GalleryFileStorageEntry
    
    Abstract class for GalleryBinaryEngineEntry and upcoming GalleryXMLEngineEntry. This
     interface will be used by GalleryThemeEntry class.
    
    Change-Id: Ifa81fe7f17479a9583fd526e5173658aa33efd30
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101420
    Tested-by: Tomaž Vajngerl <quikee at gmail.com>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/include/svx/gallerybinaryengineentry.hxx b/include/svx/gallerybinaryengineentry.hxx
index 965cc19bdcb2..cd3023f71150 100644
--- a/include/svx/gallerybinaryengineentry.hxx
+++ b/include/svx/gallerybinaryengineentry.hxx
@@ -24,10 +24,11 @@
 #include <svx/galtheme.hxx>
 #include <svx/gallerybinaryengine.hxx>
 #include <svx/gallerystoragelocations.hxx>
+#include <svx/galleryfilestorageentry.hxx>
 
 class GalleryStorageLocations;
 
-class GalleryBinaryEngineEntry
+class GalleryBinaryEngineEntry : public GalleryFileStorageEntry
 {
 private:
     GalleryStorageLocations& m_rGalleryStorageLocations;
diff --git a/include/svx/galleryfilestorageentry.hxx b/include/svx/galleryfilestorageentry.hxx
new file mode 100644
index 000000000000..0f00cfb5a6ee
--- /dev/null
+++ b/include/svx/galleryfilestorageentry.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 GalleryFileStorageEntry
+{
+public:
+    virtual ~GalleryFileStorageEntry() = 0;
+};
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/Library_svxcore.mk b/svx/Library_svxcore.mk
index 367aeea7dcb8..c5a54708a70a 100644
--- a/svx/Library_svxcore.mk
+++ b/svx/Library_svxcore.mk
@@ -157,6 +157,7 @@ $(eval $(call gb_Library_add_exception_objects,svxcore,\
     svx/source/gallery2/gallerystoragelocations \
     svx/source/gallery2/galleryobjectcollection \
     svx/source/gallery2/galleryfilestorage \
+    svx/source/gallery2/galleryfilestorageentry \
     svx/source/gallery2/galleryobjectstorage \
     svx/source/gallery2/galleryobjectbinarystorage \
     svx/source/gallery2/galleryobjectxmlstorage \
diff --git a/svx/source/gallery2/galleryfilestorageentry.cxx b/svx/source/gallery2/galleryfilestorageentry.cxx
new file mode 100644
index 000000000000..d04f49bf805f
--- /dev/null
+++ b/svx/source/gallery2/galleryfilestorageentry.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/galleryfilestorageentry.hxx>
+
+GalleryFileStorageEntry::~GalleryFileStorageEntry(){};
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list