From 8484e52675052848d2d3ffe07378ce2ad29fd288 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 11 May 2018 00:22:06 +0900 Subject: tdf#117427 missing API for determining and loading linked graphic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds 2 properties to GraphicDescriptor: "Linked" - to indicate if the graphic is a linked one "OriginURL" - the URL of the location from where the graphic was or will be loaded (and is linked to) Additionally GraphicProvider was extended with a "LoadAsLink" (media)property, which can be passed using queryGraphic method. If "LoadAsLink" is set to true, then the Graphic will be created as a linked one. In addition the tests for this API was added to VCL (home of this API implementors). Change-Id: Ibdabe5e7780d1b372d1e66c3e19b18779fee2c9a Reviewed-on: https://gerrit.libreoffice.org/54090 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/CppunitTest_vcl_apitests.mk | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 vcl/CppunitTest_vcl_apitests.mk (limited to 'vcl/CppunitTest_vcl_apitests.mk') diff --git a/vcl/CppunitTest_vcl_apitests.mk b/vcl/CppunitTest_vcl_apitests.mk new file mode 100644 index 000000000000..83c618b06184 --- /dev/null +++ b/vcl/CppunitTest_vcl_apitests.mk @@ -0,0 +1,64 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# 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/. +# + +$(eval $(call gb_CppunitTest_CppunitTest,vcl_apitests)) + +$(eval $(call gb_CppunitTest_set_include,vcl_apitests,\ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_add_exception_objects,vcl_apitests, \ + vcl/qa/api/XGraphicTest \ +)) + +$(eval $(call gb_CppunitTest_use_externals,vcl_apitests,boost_headers)) + +$(eval $(call gb_CppunitTest_use_libraries,vcl_apitests, \ + comphelper \ + cppu \ + cppuhelper \ + sal \ + svt \ + test \ + tl \ + unotest \ + vcl \ +)) + +$(eval $(call gb_CppunitTest_use_api,vcl_apitests,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,vcl_apitests)) +$(eval $(call gb_CppunitTest_use_vcl,vcl_apitests)) +$(eval $(call gb_CppunitTest_use_configuration,vcl_apitests)) + +$(eval $(call gb_CppunitTest_use_components,vcl_apitests,\ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + filter/source/config/cache/filterconfig1 \ + filter/source/storagefilterdetect/storagefd \ + i18npool/util/i18npool \ + package/source/xstor/xstor \ + package/util/package2 \ + sfx2/util/sfx \ + sot/util/sot \ + svl/source/fsstor/fsstorage \ + svtools/util/svt \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + uui/util/uui \ + vcl/vcl.common \ +)) + + +# vim: set noet sw=4 ts=4: -- cgit