Commit Graph

411965 Commits

Author SHA1 Message Date
Noel Grandin
3eb5ab6efe loplugin:constparam in sc part3
Change-Id: I8abc44b9f0bcd5e39fd8a94abafaf80aadcd26ca
Reviewed-on: https://gerrit.libreoffice.org/41496
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 10:54:06 +02:00
Noel Grandin
4fb9d7b69c loplugin:useuniqueptr in filter
Change-Id: I127b570bb1563dc75b21633019b3640f93715d77
Reviewed-on: https://gerrit.libreoffice.org/41495
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 10:14:54 +02:00
Stephan Bergmann
66604baf08 Consistently use OUString in test::Directories
Change-Id: Ia5fd8af34ee9d2f37e4450ab241f6bb9a06445b2
Reviewed-on: https://gerrit.libreoffice.org/41466
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-08-24 09:28:32 +02:00
Noel Grandin
844b3c067c remove unused error code in vcl
ever since

    commit 920d4463f6
    Date:   Thu Jun 23 13:13:28 2016 +0200
    loplugin:singlevalfields in vcl(part1)

Change-Id: I3691d03dadff10585a119ca8db8aa193b5a01702
Reviewed-on: https://gerrit.libreoffice.org/41492
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 08:57:51 +02:00
Noel Grandin
95b04f52b5 loplugin:useuniqueptr in cppcanvas
Change-Id: I8e995128a7a1c5911efc82a762dbe7be015b2050
Reviewed-on: https://gerrit.libreoffice.org/41493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 08:43:48 +02:00
Julien Nabet
a4231a1e3f Replace some lists by vectors in xstorage (package module)
Change-Id: I0093b87ff70d9ea31ca08f8df161899d5ff4bb9f
Reviewed-on: https://gerrit.libreoffice.org/41478
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 08:04:41 +02:00
Thorsten Behrens
d34f669fc4 oox: kill redundant breaks
Change-Id: I18aadb7b6b2fa50159624df1b4a7de9270473785
Reviewed-on: https://gerrit.libreoffice.org/41480
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 08:01:58 +02:00
ccsheller
290d7a4e5a unnecessary condition:rGraphic.IsDummyContext()
when bDummyContext is true at pre code,and call the rGraphic.SetDummyContext( false ).
so this is unnecessary condition at follow code.

Change-Id: I69da58485fd7b81c9111e188d47b98fe8065fc47
Reviewed-on: https://gerrit.libreoffice.org/41489
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 08:00:36 +02:00
Noel Grandin
02c53f744e remove unused error codes in svtools
which seem to be unused since initial import

Change-Id: Id5216bac53fafc1020003de10d8dde381b1121cf
Reviewed-on: https://gerrit.libreoffice.org/41491
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-24 07:53:30 +02:00
Eike Rathke
311be7d701 Related: tdf#108795 never use an unresolved LANGUAGE_SYSTEM in SvxAutoCorrect
Substitute with the current work locale, using MsLangId::getSystemLanguage()
instead was also wrong.

Change-Id: I55db3bc1f76329320afc1f366d7426a8c2f66fb2
Reviewed-on: https://gerrit.libreoffice.org/41476
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-08-24 00:30:55 +02:00
Eike Rathke
06d14411a4 Related: tdf#108795 a shared SvxAutoCorrect instance can not be stateful
An SvxAutoCorrect instance is shared via SvxAutoCorrCfg::Get().GetAutoCorrect().
Since commit 284eb10676 and following the
SvxAutoCorrect::bRunNext/HasRunNext() introduced a state whether a previously
inserted NO-BREAK SPACE should be removed again, depending on the next
character input. That does not work, for example, if
SvxAutoCorrect::DoAutoCorrect() is called from two different EditEngine
instances, like it is the case in the Calc input line and cell which are
synchronized; or any other two or more instances for that matter. The caller
has to pass and remember a flag that is maintained by SvxAutoCorrect.

Change-Id: I79a26d2ba44cc40771979a78b686c89f0c80b412
Reviewed-on: https://gerrit.libreoffice.org/41475
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
2017-08-24 00:30:37 +02:00
Andrea Gelmini
5a9b20c8bd Fix typo
Change-Id: I04ca767a317af6afa8f3ef82fee137c86211e34a
Reviewed-on: https://gerrit.libreoffice.org/41479
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-08-23 23:55:30 +02:00
Akshay Deep
890e1fb5c9 tdf#111795 - Special character preview control should have border
Change-Id: Ic26888829c24f65b3d8039e74a632c14be338d44
Reviewed-on: https://gerrit.libreoffice.org/41356
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-08-23 23:42:53 +02:00
Jens Carl
4818ee6017 tdf#45904 Move Java _XUniqueCellFormatRangesSupplier test to C++
Change-Id: I66c62f1676515437197d1875600407408040ca74
Reviewed-on: https://gerrit.libreoffice.org/41445
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23 23:41:40 +02:00
Jens Carl
40fdfea0ae tdf#45904 Remove/disable obsolete _XSpreadsheetDocument Java test
The _XSpreadsheetDocument test is already written in C++ since commit
b9337e22ce.

Change-Id: Icc0fc266f6e375ceb94edd5a95d396540972a908
Reviewed-on: https://gerrit.libreoffice.org/41409
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23 23:38:58 +02:00
Jens Carl
494b7089b7 tdf#45904 Remove/disable obsolete _XSheetOutline Java tests
The _XSheetOutline tests are already written in C++ since commit
b9337e22ce.

Change-Id: I0803df8dec6fd2f18e89c7bd8b8d15d0e4ee4aa2
Reviewed-on: https://gerrit.libreoffice.org/41408
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23 23:38:50 +02:00
Jens Carl
da25c627f7 tdf#45905 Remove/disable obsolete _XNamedRanges Java tests
The _XNamedRanges test are already written in C++ since commit
b9337e22ce.

Change-Id: I8610cc50ce23de7183efb5d9b6b436f1b9dceae1
Reviewed-on: https://gerrit.libreoffice.org/41349
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23 23:38:32 +02:00
Jens Carl
fcbabad4e7 tdf#45904 Remove/disable obsolete _XDataPilotTable Java tests
The _XDataPilotTable tests are already written in C++ since commit
95780ec739.

Change-Id: I5785a2b8edbe3166c8f81348cb36c117a4b9b736
Reviewed-on: https://gerrit.libreoffice.org/41079
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23 23:38:10 +02:00
Jens Carl
aeb525c0f9 tdf#45904 Move Java _XAreaLink tests to C++
Change-Id: I95112555de3a5dd5a75c478edb5856cf79919db9
Reviewed-on: https://gerrit.libreoffice.org/40859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-08-23 23:36:47 +02:00
Tamás Zolnai
b129421764 DOCX: Fix an other test case of ActiveX control export
When LO control is anchored to the end of the run, it
is exported into a new run.

Change-Id: I9269fd1b34924780aad61c452d1e2094dc8e4aad
Reviewed-on: https://gerrit.libreoffice.org/41472
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-08-23 22:16:02 +02:00
Noel Grandin
c66568d6b0 loplugin:useuniqueptr, look for containers..
that can use std::unique_ptr, and apply it in i18npool

Change-Id: Ib410abaf73d5f392c7a7a9a322872b08c948f9e9
Reviewed-on: https://gerrit.libreoffice.org/41438
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-23 18:35:00 +02:00
Szymon Kłos
87f1f7fdb3 VML, Watermark: detect shapetype from other subdocuments
In some documents Watermark wasn't visible
because shapetype wasn't detected.
It was impossible to use shapetype defined in header1.xml
in shape placed in the header2.xml.

Change-Id: Ib406c8fc702968684ad46efd0857b768af2820f5
Reviewed-on: https://gerrit.libreoffice.org/41395
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-08-23 17:53:40 +02:00
Gautam Prajapati
511ae02c64 Android: Enable HAVE_FEATURE_NSS and package the NSS libraries with apk
This commit enables HAVE_FEATURE_NSS for Android and fixes the svl/ vcl/
and xmlsecurity/ module to use NSS.

xmlsecurity/ wasn't built for Android previously, this commit enables
building xmlsecurity/ for Android and disables the support of gpgme
in the same module(Only for Android).

It also enables the linking of NSS shared libraries with
liblo-native-code.so and adds a rule to package them along with the apk.

Change-Id: I7d0341688ac979ae92e9145c37dd107670417fe1
Reviewed-on: https://gerrit.libreoffice.org/41308
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-23 17:50:55 +02:00
Stephan Bergmann
f8fa4631f3 Clean up string construction
Change-Id: I41ca0c7c9ac1892cc87eb4dbba858527aa340c75
2017-08-23 17:15:38 +02:00
Stephan Bergmann
9a19e96d0d ScFiltersTest::testUnicodeFileNameGnumeric only works with UTF-8
Change-Id: If31062abf50125c65a90566f1276f37d6725f73c
2017-08-23 17:00:36 +02:00
Michael Stahl
486d3b214c libxml2: bunch of CVE fixes
Change-Id: Ic786fef17cbdb574c342925a4c57875123ef3151
2017-08-23 16:42:20 +02:00
Stephan Bergmann
7aedcf09c9 osl::Directory::createPath with excess slashes fails with E_INVAL on Windows
Change-Id: Ic7d8a2e9bdad9a255f984116c4fdecd0e1c0d265
2017-08-23 16:17:36 +02:00
Stephan Bergmann
63e1596ae6 Report osl::Directory::createPath failure
Change-Id: I75ede7f03edf80c00d33281afdebc3b620fb33eb
2017-08-23 16:15:37 +02:00
Stephan Bergmann
7aaa3fe571 Make ScBootstrapFixture::createFileURL generate properly encoded URLs
Requires the rsBaseString arg to the ScBootstrapFixture ctor to consitently be
passed as a relative path without a leading slash.

Change-Id: Ieff38d465b0053fdae42acc4babfb34d1a4827bd
2017-08-23 16:12:19 +02:00
Jochen Nitschke
11f81f2ba9 drop SwBackgroundDestinationItem wrapper
other call sites just use SfxUInt16Item and overridden Clone does
same as base class.

Change-Id: I50acb4fbb08b3c2fdc4c7605d0ccecac0e9cc209
Reviewed-on: https://gerrit.libreoffice.org/41449
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-08-23 15:38:45 +02:00
Noel Grandin
53d0a6deff loplugin:constparam in sc part2
Change-Id: I4fd18096d7d22d8c146a2437906187d5df1cb268
Reviewed-on: https://gerrit.libreoffice.org/41447
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-23 14:59:04 +02:00
Mike Kaganski
5b518ab051 tdf#111964: only trim XML whitespace
OUString::trim() uses rtl_uString_newTrim, which relies upon
rtl_ImplIsWhitespace. The latter treats as whitespaces not only
characters with values less than or equal to 32, but also Unicode
General Punctuation area Space and some Control characters. Thus,
using OUString::trim() is incorrect when the goal is to trim XML
whitespace, which is defined as one of 0x09, 0x0A, 0x0D, 0x20.

The comments for OUString::trim() and rtl_uString_newTrim are
corrected to describe which characters are considered whitespace.

A unit test included.

Change-Id: I45a132be923a52dcd5a4c35aeecb53d423b49fec
Reviewed-on: https://gerrit.libreoffice.org/41444
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-08-23 13:20:32 +02:00
Szymon Kłos
d239bf6d79 tdf#109184 auto cell color should be transparent
Don't add color to the property map if is set to auto.
In this case white color was assumed and tables were
white instead of transparent.

Change-Id: I7f203b8f3831b86ba8de33dc57de227b3029c6d9
Reviewed-on: https://gerrit.libreoffice.org/41255
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2017-08-23 12:15:14 +02:00
Michael Stahl
9390491304 configure: attempt to fix Android build
Can't find CONF-FOR-BUILD/donwload.lst

Change-Id: Ie6bb993a2d6fcd7723b9f4437284b862eb194316
2017-08-23 12:11:36 +02:00
Tor Lillqvist
4505047040 Don't crash if aProfileId is null
Change-Id: I1505469200c4bcc82f07eae325882fd6454ebcc5
2017-08-23 12:58:50 +03:00
Noel Grandin
4feccde597 fix bug in ScTable::LastHiddenColRow
found by inspection, noticed that the for loop is not actually using
it's index variable

introduced in

    commit b3579d71c6
    koheirowlimitperf: #i109369# #i109373# #i109384# #i109385# #i109386#
million, and integrated lots of speed optimization and bug fixes to
ensure Calc remains usable after the row limit increase.

Change-Id: Icfee19ddb051e8d4333ed4c91d384379bf494444
Reviewed-on: https://gerrit.libreoffice.org/41439
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-23 11:07:07 +02:00
Miklos Vajna
57d5353025 tdf#108943 RTF import: handle \tx inside a list level definition
\tx in the list level definition has a different meaning (we should map
it to the ListtabStopPosition UNO property), compared to when it's used
as a plain text property.

Change-Id: I7b98ae3d82bbd2c4ad41d0d7f4ad50525c4d0f9a
Reviewed-on: https://gerrit.libreoffice.org/41442
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-08-23 10:51:20 +02:00
Michael Stahl
ac3a4fe35e configure: try to keep PYTHON_VERSION from going stale
Since it was set to 3.5.0, the bundled python was upgraded twice, but
the directory is still named python-core-3.5.0 :(

Change-Id: I15eec4148c2436e1f289d9851ce5bd212d4a368a
Reviewed-on: https://gerrit.libreoffice.org/41433
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-08-23 10:25:53 +02:00
Stephan Bergmann
9277cbcd69 Fix WID ranges
Change-Id: I50e7f6b16d835ec86e8a98e6d94ee812391a37d4
2017-08-23 09:52:52 +02:00
Gautam Prajapati
4644364318 Fix and enable libxmlsec build for Android
This commit removes the OpenSSL dependency unconditionally from
external/libxmlsec/ExternalProject_xmlsec.mk.
xmlsec wasn't built for Android previously but it seems like
Android was the only user of xmlsec OpenSSL backend.
Now we have NSS built for Android as well, so it's safe to remove
the OpenSSL dependency.

Change-Id: I8652487be146c3ac643c4f6dc7a6a2845093c93f
Reviewed-on: https://gerrit.libreoffice.org/41288
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-08-23 09:49:28 +02:00
Noel Grandin
dcc667ac5e convert message box style bits to scoped enum
and fix harmless bug in ImpSVGDialog::ImpSVGDialog, which there since

    commit 6456f1d810
    Date:   Fri Feb 4 14:52:54 2011 +0100
    ka102: added/removed files for SVG import and module cleanup

Change-Id: I66b2ec2b029431ab453e54e962863e4ed7d78962
Reviewed-on: https://gerrit.libreoffice.org/41412
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-23 08:47:52 +02:00
Andrea Gelmini
e725111f82 ctypeitm no more exists
File deleted on commit 08566ea519

Change-Id: Iccf35edc92c99779be519a4c722fa5d9bcef4b34
Reviewed-on: https://gerrit.libreoffice.org/41434
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-23 08:47:15 +02:00
Andrea Gelmini
1ba1bb9665 Fix typos
Change-Id: Ic78d3e15c5e58f1306f8448c0806db275b3ae616
Reviewed-on: https://gerrit.libreoffice.org/41435
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-08-23 01:17:58 +02:00
Grzegorz Araminowicz
cf53f243d4 SmartArt: shape rotation support
Change-Id: I13bfbd3fafff5335ce8bc23b2579182aa5a94a80
Reviewed-on: https://gerrit.libreoffice.org/41393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-08-23 01:15:08 +02:00
Grzegorz Araminowicz
7d42e4b4c4 SmartArt: basic support for layout constraints
Change-Id: Ie234bfd9760cdacb6a25c04d73a260e7e59ef7d6
Reviewed-on: https://gerrit.libreoffice.org/41273
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-08-23 01:11:18 +02:00
Heiko Tietze
4d60d96a22 tdf#111844 infobar icons/text on high dpi
scaling factor added to text position

Change-Id: Iaeb48fd4ac0439680fa3b6ca43f23a617efe1457
Reviewed-on: https://gerrit.libreoffice.org/41417
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-08-23 00:20:08 +02:00
Tamás Zolnai
b45446fcb4 tdf#111975: Inline checkbox control's label is not saved to DOC format
This MiserableFormFieldExportHack lives from the beginning
of the git history:
7155b11b7e

So it might be a workaround of an old issue. By now when
the checkbox is not inline, but a floating one, it is exported
as ActiveX control, which works nicely. So just remove this
workaround and let the code export also inline checkboxes
as ActiveX controls.

Change-Id: I350b7a7595bb46334c63d9dfcf40abf9e10943bc
Reviewed-on: https://gerrit.libreoffice.org/41436
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2017-08-23 00:18:46 +02:00
Michael Stahl
f53c9922c6 editeng: warning C4701 potentially uninitialized local var
Change-Id: I611f0b5652722f0de38dfb82440823b832a6029c
2017-08-22 22:52:58 +02:00
Michael Stahl
d8bd81fff8 unotest: really run every CppunitTest with its own user profile
Apparently a sw unit test randomly read a partially written autotbl.fmt
that was written by another unit test, in particular the file
workdir/unittest/user/config/autotbl.fmt.

The tests are actually started with
-env:UserInstallation=$(call gb_Helper_make_url,$(call gb_CppunitTest_get_target,$*).user)
to prevent exactly this problem, but unfortunately it's then
overridden by a call to rtl::Bootstrap::set(), which overrides
even command line arguments, from test::BootstrapFixtureBase::setUp().

Change-Id: I618574e94755ea38caf9583f3dcf7715396bca48
Reviewed-on: https://gerrit.libreoffice.org/41432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-08-22 22:42:11 +02:00
Michael Stahl
2f2a56f91e editeng: avoid infinite loop in SvxBoxItem::Create
Apparently a sw unit test randomly read a partially written autotbl.fmt
and the stream has m_isEof = true.

Change-Id: Iacfbc42e83be6320d4aa695a5df4264f1db0b021
2017-08-22 21:54:19 +02:00