f9fc420dce
Glow effect is a color-blurred outline outside of the shape. In ooxml document it is specified with the <a:glow> element. The commit contains the following: - Add support for importing and exporting <a:glow> from ooxml documents. - Assign new properties to XShape which stores glow-related attributes. - A new 2D primitive is introduced in module 'drawinglayer' which is responsible for representing the glow primitive which is to be rendered. + A glow primitive is a clone of the original shape which has been scaled up slightly and a new color has been assigned to it. The radius of the glow effect and the color is defined in the <a:glow> element being imported. - A blur algorithm is introduced in module 'vcl', which is called during rendering the primitive. + The blur algorithm works on a bitmap. + Since the algorithm is CPU-intensive, the result is cached in the processor and it is recalculated only if needed. - Add support for importing and exporting glow effect to ODF format. For that, new attributes of element <style:graphic-properties> has been added: + loext:glow, which can have the values "visible" or "hidden" + loext:glow-radius: which holds the radius of the glow effect in cm. + loext:glow-color: holds the color of the glow effect - Tests have been added to assert properties after pptx import and export. Change-Id: I836aeb5e0f24e2c8d5725834c8c0f98083bc82e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89125 Tested-by: Jenkins Reviewed-by: Tamás Bunth <btomi96@gmail.com>
64 lines
1.6 KiB
Makefile
64 lines
1.6 KiB
Makefile
# -*- 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_bitmap_test))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,vcl_bitmap_test, \
|
|
vcl/qa/cppunit/BitmapTest \
|
|
vcl/qa/cppunit/BitmapExTest \
|
|
vcl/qa/cppunit/bitmapcolor \
|
|
vcl/qa/cppunit/ScanlineToolsTest \
|
|
vcl/qa/cppunit/BitmapScaleTest \
|
|
vcl/qa/cppunit/BitmapFilterTest \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_externals,vcl_bitmap_test,\
|
|
boost_headers \
|
|
glm_headers \
|
|
))
|
|
ifeq ($(DISABLE_GUI),)
|
|
$(eval $(call gb_CppunitTest_use_externals,vcl_bitmap_test,\
|
|
epoxy \
|
|
))
|
|
endif
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,vcl_bitmap_test,\
|
|
$$(INCLUDE) \
|
|
-I$(SRCDIR)/vcl/inc \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,vcl_bitmap_test, \
|
|
basegfx \
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
sal \
|
|
svt \
|
|
test \
|
|
tl \
|
|
unotest \
|
|
vcl \
|
|
utl \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,vcl_bitmap_test))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,vcl_bitmap_test))
|
|
$(eval $(call gb_CppunitTest_use_vcl,vcl_bitmap_test))
|
|
|
|
$(eval $(call gb_CppunitTest_use_components,vcl_bitmap_test,\
|
|
configmgr/source/configmgr \
|
|
i18npool/util/i18npool \
|
|
ucb/source/core/ucb1 \
|
|
unotools/util/utl \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,vcl_bitmap_test))
|
|
|
|
# vim: set noet sw=4 ts=4:
|