summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-04-04 16:47:00 +0900
committerJan Holesovsky <kendy@collabora.com>2018-06-01 08:59:08 +0200
commit22adcad267653c8996b733119dfcb35c6391bdf9 (patch)
treecced309a0e805b315a4e06958475f8784e558243 /include
parent06aec2cbd3570386e04274dab11c8cbc9219676e (diff)
replace originURL with GraphicExternalLink class (internally)
For now just introduce the GraphicExternalLink internally in ImpGraphic, and use it for the origin URL. In a future patch this will store additional data about the link. Reviewed-on: https://gerrit.libreoffice.org/52393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit a50897107bca839af5665ee0f9621e9cce54900b) Change-Id: I7b4edac80d0e71603d37243ff28bcac1b18fdc01
Diffstat (limited to 'include')
-rw-r--r--include/vcl/GraphicExternalLink.hxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/vcl/GraphicExternalLink.hxx b/include/vcl/GraphicExternalLink.hxx
new file mode 100644
index 000000000000..7a9cac258d30
--- /dev/null
+++ b/include/vcl/GraphicExternalLink.hxx
@@ -0,0 +1,31 @@
+/* -*- 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/.
+ */
+
+#ifndef INCLUDED_VCL_GRAPHIC_EXTERNAL_LINK_HXX
+#define INCLUDED_VCL_GRAPHIC_EXTERNAL_LINK_HXX
+
+#include <memory>
+#include <vcl/dllapi.h>
+
+class VCL_DLLPUBLIC GraphicExternalLink
+{
+public:
+ OUString msURL;
+
+ GraphicExternalLink() {}
+
+ GraphicExternalLink(OUString const& rURL)
+ : msURL(rURL)
+ {
+ }
+};
+
+#endif // INCLUDED_VCL_GRAPHIC_EXTERNAL_LINK_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */