434442 Commits

Author SHA1 Message Date
Julien Nabet
e578e2b785 Typo: unexpectend->unexpected
Change-Id: Id7aface81f907afdb046a22f1a64641718391000
Reviewed-on: https://gerrit.libreoffice.org/68776
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-03-06 07:04:22 +01:00
Stephan Bergmann
d8f5b8e622 Remove debugging dump()s
Change-Id: I1f5479adefbf7c77a5584d698c6a6c35ff4716d0
Reviewed-on: https://gerrit.libreoffice.org/68778
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-03-06 06:48:05 +01:00
Noel Grandin
83db9afa20 remove some unnecessary typedef struct... sugar
Change-Id: I1576282b0a0a3af8ae14c04725d9c4900073f2c4
Reviewed-on: https://gerrit.libreoffice.org/68758
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-03-06 06:47:21 +01:00
Noel Grandin
a2e3705d8b loplugin:unnecessaryparen improve member expression
Change-Id: I304621018cb1e2a47e478e86df4229bcf2176741
Reviewed-on: https://gerrit.libreoffice.org/68757
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-03-06 06:47:06 +01:00
Noel Grandin
f423ac2d3b remove sal_IntPtr in OfaMSFilterTabPage2
and just use a scoped enum

Change-Id: Ie229d61866be4a03ccd93b73787b8813b9bd932d
Reviewed-on: https://gerrit.libreoffice.org/68744
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-03-06 06:46:55 +01:00
Jens Carl
da474e2985 tdf#45904 Move XPropertySet Java tests to C++
Move XPropertySet Java tests to C++ for ScDataPilotFieldObj.

Change-Id: I9fa5d153cced1aae8892d2422025dfcdcda73c69
Reviewed-on: https://gerrit.libreoffice.org/68782
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-06 03:04:51 +01:00
Jens Carl
04f4cbd0b3 tdf#45904 Move XNamed Java tests to C++
Move XNamed Java tests to C++ for ScDataPilotFieldObj.

Change-Id: Ieecd8799f56dcfa9279d4d523d470a62d9aed203
Reviewed-on: https://gerrit.libreoffice.org/68781
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-06 03:04:36 +01:00
Jens Carl
849856596c Remove unnecessary calls to Reference::is() after an UNO_QUERY_THROW
Change-Id: Icb5ab21168e91951a81c09752e7b53e11813aa1b
Reviewed-on: https://gerrit.libreoffice.org/68780
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
2019-03-06 02:29:34 +01:00
Luboš Luňák
9432bab9f8 do not access uninitialized values when printing (tdf#121439)
The assert in the bugreport is triggered by ScPrintFunc::CalcPages() passing
uninitialized values of nEndRow (and others). These variables apparently
get initialized only by constructors that take ScPrintState. These ctors
also set (the somewhat poorly named) bState and the call to CalcPages()
is guarded by this. However, GetPrintState() will simply create ScPrintState
filled with these uninitialized values and later on this will be used
with these ctors, so bState will be set, but nEndRow will be bogus.

Although 5217a2a0bf27e496cc429ee45dff7c239b466ae6 introduced tdf#121439,
this strange bState logic and unitialized variables has been these since
the initial commit, and the code doesn't take any precautions to check
whether the values are valid or not, so I assume this always was just lucky
enough to work and 5217a2a0bf finally triggered a problem.

Given that it's rather unclear to me how this is supposed to work properly,
just add an extra flag to both ScPrintFunc and ScPrintState marking whether
the values are set or not and make CalcPages() depends on this flag instead.

Change-Id: I0620de6562865c24f5a0edca2566b01546bf2e2b
Reviewed-on: https://gerrit.libreoffice.org/68739
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2019-03-06 00:14:42 +01:00
Tor Lillqvist
525bc99af3 Make mysqlc conditional on MARIADBC, too
Change-Id: I7e8541b8918ea5011fe9669d11b51c941544f794
Reviewed-on: https://gerrit.libreoffice.org/68764
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2019-03-05 22:55:05 +01:00
Matteo Casalin
78404432ed Group some more common code
Change-Id: I2bf3e8afd9f330e8d7377300163a3224ed4db05c
Reviewed-on: https://gerrit.libreoffice.org/68179
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:37:14 +01:00
Matteo Casalin
070ea7faa8 Use optimized OString concatenation
Change-Id: Iaefacf4a57398d0e88b4de7552af11832db3e881
Reviewed-on: https://gerrit.libreoffice.org/68178
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:36:20 +01:00
Matteo Casalin
1e1559256b Use index only where getToken() needs it
Change-Id: I28da64c9ef9b36288f380300f6622d48483e6c0d
Reviewed-on: https://gerrit.libreoffice.org/68125
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:35:21 +01:00
Matteo Casalin
bb843223c2 Use already available index in following getToken call
Change-Id: I1617af942d59c59039e97400a8c39bbc36c3bceb
Reviewed-on: https://gerrit.libreoffice.org/68124
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:33:58 +01:00
Matteo Casalin
a03c8081b5 Use indexed getToken()
Change-Id: I3f34ccb4253c587088f621f914b315e56f96008f
Reviewed-on: https://gerrit.libreoffice.org/68123
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:32:48 +01:00
Matteo Casalin
fe1322f8d0 Simplify ShapeAnchor::importVmlAnchor
Change-Id: Ibee7914a0c5027b4679163e6a5108f646ad66546
Reviewed-on: https://gerrit.libreoffice.org/68122
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:32:15 +01:00
Matteo Casalin
e79377df46 Use indexed getToken and improve tokenization
Third token (i.e. day) would span to the end of the string
and conversion to int works just because it stops at first
non-numeric character.

Change-Id: I4f608aafadd634c312f7cfd986966f453bfca872
Reviewed-on: https://gerrit.libreoffice.org/68121
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:31:04 +01:00
Matteo Casalin
c7ab0bff8d Use optimized OString concatenation
Change-Id: I7c74e007cb382701c3d9c41f9a6fb76ff0cb19fe
Reviewed-on: https://gerrit.libreoffice.org/68120
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:30:09 +01:00
Matteo Casalin
730df730a9 Avoid unneeded OUString copy
Change-Id: I43d66f1bf4fc4a17f7dbea62e3fb13675dbbfb8a
Reviewed-on: https://gerrit.libreoffice.org/68119
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:29:03 +01:00
Matteo Casalin
3cf1467379 Index returned by getToken is always lower than string length
Change-Id: I7de7a3eaf7b4ae6ef97b0c23fb755ad108db19e6
Reviewed-on: https://gerrit.libreoffice.org/68118
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:28:13 +01:00
Matteo Casalin
9e1dfe405c Index returned by getToken is always lower than string length
Also take care of handling possibly empty strings, for which
the initial 0 index would fail the comparison.

Change-Id: I280fac697554f2a4513a641ac258b1d2baf803f4
Reviewed-on: https://gerrit.libreoffice.org/68117
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:27:39 +01:00
Matteo Casalin
234f4ef41b Index is not needed for single getToken call
Change-Id: I46d466c0526797e5c246dea3c68a6b2f865964e0
Reviewed-on: https://gerrit.libreoffice.org/68116
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:27:00 +01:00
Matteo Casalin
2e70e02b8e Use indexed getToken()
Change-Id: I76b565d24a27eda62383df757f97d197c3b276a8
Reviewed-on: https://gerrit.libreoffice.org/67646
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 22:26:33 +01:00
Stephan Bergmann
b612cf0e06 Introduce o3tl::underlyingEnumValue
Change-Id: I6554eb86326159b0da707539f45c411f61c0f3de
Reviewed-on: https://gerrit.libreoffice.org/68761
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-03-05 22:11:48 +01:00
Caolán McNamara
efbd217afc Resolves: tdf#123815 null terminator included in string
regression from...

commit 18d636063fd7be165e7888af49372a6e2b851776
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Mon Jun 19 09:46:31 2017 +0100

    ofz: use OString instead of bare char*

this is no use to the reporter though, as the document format is
10 and 11 is the oldest the filter will open

Change-Id: I4cdfe92e37f047493a6eab95f0e8e9f5dced1a35
Reviewed-on: https://gerrit.libreoffice.org/68745
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-03-05 22:09:26 +01:00
Stephan Bergmann
64d287805d Use o3tl::is_typed_flags for ControlState
Change-Id: If54f385e8c7e19106f03f4a52f99bc50b4878f37
Reviewed-on: https://gerrit.libreoffice.org/68760
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-03-05 21:29:13 +01:00
Matteo Casalin
7cefe392e3 OptimizerDialog: use local method to reduce OUString operations
Change-Id: I356693ba9992c691c9079b3eaa2f26e57b005e1c
Reviewed-on: https://gerrit.libreoffice.org/67640
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
2019-03-05 20:47:37 +01:00
Tomaž Vajngerl
45511b361a deal with code duplication at drawing from a definition file
Change-Id: Ie2f6ace37562a251d639c5049c91a4ba09576c0b
Reviewed-on: https://gerrit.libreoffice.org/68754
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 20:25:29 +01:00
Tomaž Vajngerl
07cb5f46a1 Add spinbox SVG buttons, but use a definition draw for now
Change-Id: Iff40c7c315ed2473e7a5bd84a6449aedcf646e2f
Reviewed-on: https://gerrit.libreoffice.org/68753
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 20:25:12 +01:00
Tomaž Vajngerl
67b6b526dd Draw basic tabbar widgets from the theme definition
Change-Id: I51f8868abff3f3e38bd70ea1fc99a9cf5aca92a6
Reviewed-on: https://gerrit.libreoffice.org/68752
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 20:24:51 +01:00
Tomaž Vajngerl
5c124597d0 Draw basic progress from the theme definition
Change-Id: If2c6f434dd64cf1b3bab340dc6c4d73f439bcfdf
Reviewed-on: https://gerrit.libreoffice.org/68751
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 20:24:32 +01:00
Tomaž Vajngerl
16d9cfe92a Draw basic fixedline from the theme definition
Change-Id: I791d33e4cea14f49609434e39f681cf47864fc67
Reviewed-on: https://gerrit.libreoffice.org/68750
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 20:24:14 +01:00
Tomaž Vajngerl
ae9eab1cf6 Draw basic scrollbar from the theme definition
Change-Id: I2a017746f02c547413c949a1728ebbfa781a7f66
Reviewed-on: https://gerrit.libreoffice.org/68749
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 20:23:55 +01:00
Michael Stahl
d55e75d917 sw_redlinehide: fix RSID related asserts regression
Due to sw_redlinehide the SwTextNode::MakeFrame() is skipped on
SwTextNodes that are merged due to redlining. But then the
IgnoreStart/IgnoreEnd flags on the hints are not initialised and some
assert like assert(pHt->IsFormatIgnoreStart()) fails.

tdf90056-1.odt is an example document.

There doesn't appear to be a convenient place to initialise it per-node
as it is finished; the ODF import inserts APPEND_PARAGRAPH before
inserting the hints themselves.

So remove the initialisation from MakeFrame() and just do it in
SwReader::Read().

Change-Id: Ib33fe3033fc05bd2f5ef2ac8d059d587642ccf48
Reviewed-on: https://gerrit.libreoffice.org/68748
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2019-03-05 18:35:14 +01:00
Caolán McNamara
d9bd131b11 rename CuiConfigGroupBoxResource_Impl back to SvxConfigGroupBoxResource_Impl
Change-Id: I21e9258f5f57acd5e27cee5c1cca37b8b56f3040
Reviewed-on: https://gerrit.libreoffice.org/68702
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-03-05 17:35:16 +01:00
Caolán McNamara
4986b503eb unused SfxConfigGroupListBox
Change-Id: Ia31f70b0d22b4bca13e46f3fbce440288bafd26f
Reviewed-on: https://gerrit.libreoffice.org/68700
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-03-05 17:34:52 +01:00
Caolán McNamara
8ee19e3b6d weld SfxAcceleratorConfigPage
fixes a leak in the KeyList too

Change-Id: I603218ff99481bc006df329c770ea6fe6f147483
Reviewed-on: https://gerrit.libreoffice.org/68694
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-03-05 17:34:34 +01:00
Caolán McNamara
db8b4d8c58 sync get_selected_id with get_active_id
Change-Id: I983cc45d13e02a020f608b8e9abfd2f12f7b10f5
Reviewed-on: https://gerrit.libreoffice.org/68741
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-03-05 17:33:40 +01:00
Michael Stahl
9d152d29e2 improve documentation of soffice --accept parameter
Change-Id: I8058bad949c973981013d099dba78b3e64cee0aa
Reviewed-on: https://gerrit.libreoffice.org/68735
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-03-05 17:05:43 +01:00
Caolán McNamara
b1df6d21bf sync get_active_id impls
Change-Id: I6b0595f6386657afa28b2cb249ea69aa51e5fb4a
Reviewed-on: https://gerrit.libreoffice.org/68740
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-03-05 16:43:16 +01:00
Stephan Bergmann
b7ddc514bf Upgrade to latest HarfBuzz 2.3.1
As a side-effect, this gets rid of some Clang
-fsanitize=implicit-signed-integer-truncation warnings.

The various external/harfbuzz/*.patch no longer applied and appear not to be
necessary any more.  (But a new external/harfbuzz/msvc.patch became necessary.)

<https://dev-www.libreoffice.org/src/harfbuzz-2.3.1.tar.bz2> was downloaded from
<https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-2.3.1.tar.bz2>,
and HARFBUZZ_SHA256SUM in download.lst matches <https://www.freedesktop.org/
software/harfbuzz/release/harfbuzz-2.3.1.tar.bz2.sha256>.

Change-Id: Ic85acd14b4f488b3d88ce1bafc93be271928006e
Reviewed-on: https://gerrit.libreoffice.org/68731
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-03-05 15:31:25 +01:00
Tomáš Chvátal
6d47157611 Use pkgconfig to detect PostgreSQL if there is no pg_config
pg_config is meant for linking server extensions,
clients should use pkg-config instead to build against libpq.

This fixes build with PostgreSQL 11.

Change-Id: Ic0b5fc9cb7169f44c00a1edf7218212c360ec235
Reviewed-on: https://gerrit.libreoffice.org/68734
Tested-by: Jenkins
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
2019-03-05 15:08:34 +01:00
Tomaž Vajngerl
5a226c9776 Draw basic slider from the theme definition
Change-Id: I5ccd6c2e743324cee2a030e55425df4791e12e2f
Reviewed-on: https://gerrit.libreoffice.org/68719
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 14:50:35 +01:00
Tomaž Vajngerl
4b6e00f08a Use a unordered_map for mapping of xml element to control type
Change-Id: Id0409f35a21307ed41a0da27c625c4b7784811d6
Reviewed-on: https://gerrit.libreoffice.org/68718
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 14:50:15 +01:00
Tomaž Vajngerl
6cd3cb41d9 Update checkbox and radiobutton SVG images
Change-Id: I5e9d5c9fb71340b55145bd2db09cd43982fbb275
Reviewed-on: https://gerrit.libreoffice.org/68717
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 14:49:56 +01:00
Tomaž Vajngerl
d7dcaec4e2 Draw basic spinbox from the theme definition
Change-Id: I9b8379846a82f51365da7e7e2fd63cc21eb575a2
Reviewed-on: https://gerrit.libreoffice.org/68714
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 14:49:35 +01:00
Tomaž Vajngerl
25709fb43d Use SVG image to draw the checkbox widget
Change-Id: I559ac167970581477bf9f9a02904b11050e31766
Reviewed-on: https://gerrit.libreoffice.org/68713
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-03-05 14:48:52 +01:00
Noel Grandin
f7ac78f908 fix ScDetOpList::operator==
should be comparing the values of the elements, not the pointers.

Regression from
    commit 927447356fb7025d2b61073f525adc24643c7925
    Date:   Sat Sep 12 16:49:29 2015 -0600
    replace boost::ptr_container with std::container<std::unique_ptr>

noticed while doing some other plugin work

Change-Id: I96230e52571e9a96e1c96f53f61bbc5afe902b31
Reviewed-on: https://gerrit.libreoffice.org/68738
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-03-05 14:47:40 +01:00
Aurimas Fišeras
a8886a6224 Add missing DoClose
Change-Id: I7c6f055a93ece2c80eb0f9c4974829d479d1edca
Signed-off-by: Aurimas Fišeras <aurimas@members.fsf.org>
Reviewed-on: https://gerrit.libreoffice.org/68617
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2019-03-05 13:26:00 +01:00
Aurimas Fišeras
cd815d75fd Add missing DoClose
Change-Id: Ie315d490da6d8c1f62edc54d662e169fa827f610
Signed-off-by: Aurimas Fišeras <aurimas@members.fsf.org>
Reviewed-on: https://gerrit.libreoffice.org/68618
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2019-03-05 13:23:35 +01:00