e788317bb5
The method PDFIProcessor::mirrorString() was removed, and ::comphelper::string::reverseString was used, by Kevin Suo in commit69e9925ded
. The old PDFIProcessor::mirrorString() did two things: 1) Reverse the code points in the string. However, due to its use of iterateCodePoints(&i) rather than iterateCodePoints(&i, -1) (i.e. iterating in forward rather than reversed order), the reverse was not functioning at all. 2) Use GetMirroredChar (i.e. the icu unicode u_charMirror() which was dropped in commit720a093461
) to get the mirrored-image of characters with the Bidi_Mirrored properties. Stephan Bergmann restored the #1 in commit50d73574b6
(by introducing comphelper::string::reverseCodePoints). However, the #2 was not restored. I do not see a clear reason to drop #2 (at least this is an area I don't quite familiar with), so it's better to restore it as well, in *this* commit, named as SubstituteBidiMirrored. Change-Id: Ic263097938310e6e04f3b95bb12e4f4e834198f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143041 Tested-by: Jenkins Reviewed-by: Kevin Suo <suokunlong@126.com>
61 lines
1.6 KiB
Makefile
61 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,sdext_pdfimport))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,sdext_pdfimport))
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,sdext_pdfimport,\
|
|
-I$(SRCDIR)/sdext/source/pdfimport/inc \
|
|
-I$(SRCDIR)/sdext/source/pdfimport/test \
|
|
$$(INCLUDE) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_externals,sdext_pdfimport,\
|
|
boost_headers \
|
|
zlib \
|
|
libxml2 \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,sdext_pdfimport,\
|
|
basegfx \
|
|
vcl \
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
sal \
|
|
test \
|
|
unotest \
|
|
tl \
|
|
xo \
|
|
i18nutil \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_library_objects,sdext_pdfimport,pdfimport))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,sdext_pdfimport,\
|
|
sdext/qa/unit/pdfimport \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_executable,sdext_pdfimport,xpdfimport))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,sdext_pdfimport))
|
|
$(eval $(call gb_CppunitTest_use_vcl,sdext_pdfimport))
|
|
|
|
$(eval $(call gb_CppunitTest_use_components,sdext_pdfimport,\
|
|
comphelper/util/comphelp \
|
|
configmgr/source/configmgr \
|
|
i18npool/util/i18npool \
|
|
ucb/source/core/ucb1 \
|
|
ucb/source/ucp/file/ucpfile1 \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,sdext_pdfimport))
|
|
|
|
# vim:set noet sw=4 ts=4:
|