Commit Graph

425099 Commits

Author SHA1 Message Date
Mike Kaganski
942f1056b5 tdf#117923: handle direct formatting for numbering in .doc
Since commit df07d6cb9f, we do for DOCX.
DOC also has this problem, so set the relevant compatibility flag on
import for this format, too.

Change-Id: I3aef593341edffa878a06566da815cb72aa38004
Reviewed-on: https://gerrit.libreoffice.org/56812
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-07-02 17:14:22 +02:00
Eike Rathke
c807e7ea7a Resolves: tdf#56910 detect a Space (blank) separator if not selected
On populating the CSV import dialog for the first time attempt to
detect a possible space (blank) separator if field separators
don't include it already. This can be necessary because of the
"accept broken misquoted CSV fields" feature that tries to ignore
trailing blanks after a quoted field and if no separator follows
continues to add content to the field assuming the single double
quote was in error. If this blank separator is detected it is
added to field separators and the line and subsequent lines are
reread with the new separators.

Change-Id: I3c6d74ce8883f1d279a810e800e54b349d85ac71
Reviewed-on: https://gerrit.libreoffice.org/56810
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2018-07-02 16:23:24 +02:00
László Németh
77f81dabfd libnumbertext: update to 1.0-1
New languages: Albanian, Galician (by Adrián Chaves),
Norwegian Bokmål and Nynorsk, Ukrainian (based on Russian).

Change-Id: I6b40dfdafe3023edc661b0a9e9f2dedbc94364f8
Reviewed-on: https://gerrit.libreoffice.org/56785
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2018-07-02 14:09:59 +02:00
Jacek Fraczek
10b34eb9f3 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Ib06c8ed707bdfd87b294b2597614249fac2c1f18
Reviewed-on: https://gerrit.libreoffice.org/56342
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-07-02 14:06:40 +02:00
Miklos Vajna
74b33394c4 sw: prefix members of SwAccSingleTableSelHander_Impl
Also use the 's_' prefix in sw::ClientIteratorBase, like it's done
almost everywhere else.

Change-Id: Id2c28037eb4f69ce1f27e0365e2b078ffc300935
Reviewed-on: https://gerrit.libreoffice.org/56798
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-07-02 11:32:47 +02:00
Rizal Muttaqin
9d2979a880 Karasa Jaga: Update many icons
Change-Id: Iead405770be4ba3bc9c957f8cef656b0b462d6b0
Reviewed-on: https://gerrit.libreoffice.org/56744
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-07-02 11:28:45 +02:00
andreas kainz
2fbcfc8ab6 Colibre icons: add icons for Common Align actions
Change-Id: Ia234b76039759d6f71ec6578e7ffa4ff4236dae2
Reviewed-on: https://gerrit.libreoffice.org/56797
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2018-07-02 11:27:12 +02:00
Noel Grandin
7c610a2a74 loplugin:constantparam
Change-Id: I9fbfa6163c1d4650c52b00dc911972f07fe7c0e5
Reviewed-on: https://gerrit.libreoffice.org/56778
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-02 10:30:49 +02:00
Stephan Bergmann
7de6667006 -Werror,-Wunused-private-field
Change-Id: I1c32a6e7e517acc2e8bb3e7898329cb38ed4accb
2018-07-02 10:17:52 +02:00
Stephan Bergmann
c9d316ecdb -Werror,-Wunused-private-field
Change-Id: I27512b518bada81c607c5dd73c6e5155ec1b19d8
2018-07-02 10:11:33 +02:00
Justin Luth
6fffd09833 tdf#109190 sd: only MakeVisible on mouseclick-up
Since MakeVisible is called on both
mousebuttom-down and mousebuttom-up,
this also eliminates useless double-processing.

In the problematic use case, the user pressed Ctrl-A to select
a tall table. When clicking to de-select the cells, the contents
moved around in unexpected ways because the rectangle is at the
end of the selection during down-click, not at the cursor location.
The re-arrangment of the screen invalidates the mouse-up,
so the intended cursor position shifted.

In the bug's calendar example, position the screen so that items
20-31 are hidden, select the whole month, and then click
on 5. Before, it would move the screen down to show 31, and
the cursor would be placed at the screen position where 5
had originally been. Solved by only repositioning on
mouse-click up.

However, mouseButtonDown must still be honoured while
selecting, otherwise you can't select off-screen content
with the mouse.

Change-Id: I41c90a7b113dc59a3c8c385139a5bb41993646fa
Reviewed-on: https://gerrit.libreoffice.org/56262
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2018-07-02 09:53:24 +02:00
Nickson Thanda
391134e4cc tdf#51223 can now undo auto-capitalise with enter
Change-Id: I1ff1bd0137415349d1eb89bef0947453f72a8ef5
Reviewed-on: https://gerrit.libreoffice.org/56267
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-07-02 09:32:29 +02:00
Noel Grandin
f54143088a loplugin:unusedmethods
Change-Id: I92665f577bfe39497905063da517a05b8008c3cc
Reviewed-on: https://gerrit.libreoffice.org/56743
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-02 08:48:10 +02:00
Noel Grandin
50c63e5c2f pass OutlinerParaObject around by std::unique_ptr
SdrText::SetOutlinerParaObject was modified to not check for
self-assign, and instead assert because
the existing check was no longer possible.

Fix bug in SdrUndoObjSetText::Undo(), where it was calling
SdrText::SetOutlinerParaObject unnecessarily,
because NbcSetOutlinerParaObjectForText already does that.

Optimise Outliner::GetEmptyParaObject by creating a new constructor for
OutlinerParaObject,
so we don't need to copy the new object we get back from
GetEmptyTextObject, unnecessarily.

Change-Id: I57c475583d6c31658c154e24992b3d587bad9841
Reviewed-on: https://gerrit.libreoffice.org/56730
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-02 08:47:58 +02:00
Noel Grandin
d98f1e4e03 loplugin:unusedfields improve checking for write-only fields
we trade off a little accuracy for finding more possible write-only
fields.

Change-Id: I9f7edba99481fe4ded0a9d8e45e911b0ee99d269
Reviewed-on: https://gerrit.libreoffice.org/56715
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-02 08:47:48 +02:00
andreas kainz
683fa7b686 Colibre icons: update mediaplayer icons
Change-Id: I97cf021a65e6daedc742cf76089622a7ba6b309e
Reviewed-on: https://gerrit.libreoffice.org/56794
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
Tested-by: andreas_kainz <kainz.a@gmail.com>
2018-07-02 08:15:02 +02:00
andreas kainz
cb5a5653b5 Colibre icons: update avmedia icons
Change-Id: I6212e22935676bc2d5107c91f2af29e0b9e9e076
Reviewed-on: https://gerrit.libreoffice.org/56793
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
Tested-by: andreas_kainz <kainz.a@gmail.com>
2018-07-02 08:14:51 +02:00
andreas kainz
5931fc1515 Colibre icons: fix sc_*columns* icons
Change-Id: Ie98683c6631b05bd831620a60ebac55b940211e1
Reviewed-on: https://gerrit.libreoffice.org/56792
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
Tested-by: andreas_kainz <kainz.a@gmail.com>
2018-07-02 07:53:36 +02:00
Takeshi Abe
123a4808dc scaddins: Drop unused stuff
Change-Id: Icdbb297df55ed5984b4008e304a41df89a996334
Reviewed-on: https://gerrit.libreoffice.org/56523
Tested-by: Jenkins
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2018-07-02 07:43:19 +02:00
Saurav Chirania
ad511ce89c uitest interpreter: add support for starting apps
Change-Id: Iaab98515d2046aaff1e3da4f80de192ebc01a9eb
Reviewed-on: https://gerrit.libreoffice.org/56789
Tested-by: Jenkins
Reviewed-by: Saurav Chirania <saurav.chir@gmail.com>
2018-07-02 06:44:43 +02:00
Mike Kaganski
59d53910de Small cleanup and simplification
Change-Id: I1e8a750832f365f080f6f60c81560dc942003049
Reviewed-on: https://gerrit.libreoffice.org/56788
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-07-02 06:34:43 +02:00
Justin Luth
fc90f7ea80 tdf#108000 sw layout: ignore emulated keep on large tables
There is no point in a very large (multipage) table keeping with
the following content and it just makes the layout more complex.
This is especially true when we are emulating this using
MSWord's convention, and not LO's native table-keep option.

This patch only affects my earlier code for emulated tables.
Otherwise, something about the general logic could loop
forever in certain huge tables. This seemed like a very
reasonable compromise.

Change-Id: Ic1bde12b266e71fc9f608ec4d1223277108750fa
Reviewed-on: https://gerrit.libreoffice.org/56314
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2018-07-02 06:03:07 +02:00
Saurav Chirania
5560a23cbc uitest interpreter: let's use argparse to parse arguments
Reasons to do this-
1) We will add more arguments in future,
handling them manually will be time consuming.
2) Argparse generates a useful help message automatically.

Change-Id: I7ce8cc2746f7774c4fa7cd5b173da637e10a770b
Reviewed-on: https://gerrit.libreoffice.org/56777
Tested-by: Jenkins
Reviewed-by: Saurav Chirania <saurav.chir@gmail.com>
2018-07-02 04:39:55 +02:00
Takeshi Abe
d6aa070267 sc: Replace DblMin() with std::min()
Change-Id: Ic9ca0e9c1a63519026152f9aa1a038f183de1e4d
Reviewed-on: https://gerrit.libreoffice.org/56581
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-07-02 03:28:45 +02:00
Vikas
b30b4e9c7c Move writesort() method from WriteDatabaseRange to free function
Change-Id: I732a0693aae92c5e654d1f8f414b7d6bd38b0562
Reviewed-on: https://gerrit.libreoffice.org/56662
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-07-02 01:39:30 +02:00
Saurav Chirania
a4be3ebd4d uitest interpreter: add more features
1) Support UNO commands
2) Support closing dialog using buttons
3) Correct keyword for modless dialog
4) Introduce "Redundant Couple" for couples
from which only 1 statement can generate the log.

Change-Id: I3541fea6a0b72de2c03626476b8abb43a7324dab
Reviewed-on: https://gerrit.libreoffice.org/56776
Tested-by: Jenkins
Reviewed-by: Saurav Chirania <saurav.chir@gmail.com>
2018-07-01 15:23:18 +02:00
Jochen Nitschke
d2a9fdda9a cppcheck: variableScope
Change-Id: Ic175a141cc6b6e98e66da7bc34ee77090236c9b6
Reviewed-on: https://gerrit.libreoffice.org/56767
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2018-07-01 13:43:09 +02:00
Jochen Nitschke
caa9e875a3 cppcheck: variableScope
Change-Id: Ic6491da10fe4fdf46a7f6fac8e2ca6f32701a25f
Reviewed-on: https://gerrit.libreoffice.org/56770
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2018-07-01 13:42:49 +02:00
Jochen Nitschke
ab176ed3ad cppcheck: variableScope
Change-Id: I7c90978dba2e751303244785a38fe251bd955224
Reviewed-on: https://gerrit.libreoffice.org/56766
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2018-07-01 13:42:32 +02:00
Jochen Nitschke
b0e291a7ef cppcheck: variableScope
Change-Id: I06fc0e6cba1e5754f9b801e55e27fcde4457eb72
Reviewed-on: https://gerrit.libreoffice.org/56768
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2018-07-01 00:34:54 +02:00
Jochen Nitschke
efd08467b4 cppcheck: variableScope
and use unique_ptr for vector elements

Change-Id: I5421a53e96928699fd451d4ff3e2eef0bf847f42
Reviewed-on: https://gerrit.libreoffice.org/56772
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2018-06-30 23:07:54 +02:00
Jochen Nitschke
a272704cb0 cppcheck: variableScope
Change-Id: Icd99a9e6791840f7701745b93a0f414bf61e2955
Reviewed-on: https://gerrit.libreoffice.org/56773
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2018-06-30 23:07:40 +02:00
Matteo Casalin
6050f9cf7b Reduce number of operations on OUString
Change-Id: I5d65dd36981e6d75f0e3c0e3f00e1964d1249887
2018-06-30 23:00:21 +02:00
Matteo Casalin
fbd787dc9b Use indexed getToken() and avoid getTokenCount()
Change-Id: I8807f8e7fd0fb76723bc4d46fa35cc346777051e
2018-06-30 23:00:20 +02:00
Matteo Casalin
d253ee7c8b Avoid using getTokenCount() to get last token in a string
Change-Id: I8e26d07c67fe10a55717a238563dd036b94fd381
2018-06-30 23:00:20 +02:00
Matteo Casalin
7f232e3319 Constify, fix whitespaces
Change-Id: Ief4c2e01fb855ce294ecf000dfb9b9e12982e441
2018-06-30 23:00:19 +02:00
Matteo Casalin
f4b1a45488 Avoid using getTokenCount() to get last token in a string
Change-Id: I6c36394f391850baf641268912e71ebaa3504b5d
2018-06-30 23:00:18 +02:00
Matteo Casalin
ba437fd59d Avoid using getTokenCount() to get last token in a string
Change-Id: I1a2d181fdf03926452cb00f49490c9c4151dd8f9
2018-06-30 23:00:18 +02:00
Matteo Casalin
e07a80e23b Initialize local variable
Change-Id: I07583fe1fb70ffb7ec5cbeaacfdba207dac7eb0d
2018-06-30 23:00:17 +02:00
Matteo Casalin
6a53c4f5d9 Avoid getTokenCount() + not empty OUString has at least 1 token
Change-Id: Ib8771f9621e050c100f2a319e354106bf316b24c
2018-06-30 23:00:17 +02:00
Matteo Casalin
3199a740ac Copy INetURLObject object instead of constructing it twice
Change-Id: Ib20f96fe63218aed4055bd0175ddc9e9c71e3fb3
2018-06-30 23:00:16 +02:00
Matteo Casalin
f897da3f2d Avoid getTokenCount()
Change-Id: Ia3c7657a89187ff21fca6d07c27ba260a0be36d8
2018-06-30 23:00:15 +02:00
Matteo Casalin
ab1e5f514c Bail out early and reduce temporaries
Change-Id: I78e3d50f0bcbbb482ce79bbb1f14885e1e412569
2018-06-30 23:00:14 +02:00
Matteo Casalin
842bb20958 Avoid getTokenCount()
Change-Id: If884a9eb09b55836995d04cd82832d3f79d6531c
2018-06-30 23:00:14 +02:00
Matteo Casalin
5fa9aa1c8f Avoid getTokenCount()
Change-Id: Ia56f125151aa96d014e348b6d022b45138f732c9
2018-06-30 23:00:13 +02:00
Matteo Casalin
5b07f513cb Avoid getTokenCount()
Change-Id: Ia878affbdcb9674675619f34a423ac6c9a90b16d
2018-06-30 23:00:13 +02:00
Matteo Casalin
4db69a8343 Avoid getTokenCount()
Change-Id: I2a1b034ba6b587664ce94560e88af5acb860788d
2018-06-30 23:00:12 +02:00
Matteo Casalin
21c839d6f6 Not empty OUString has at least one token
Change-Id: I02dd1c045af1367ae56eeb60dad23912111dcd6f
2018-06-30 23:00:11 +02:00
Matteo Casalin
051d4fdaea Avoid getTokenCount
Change-Id: I9bbfa1280857e3aaaac78402432001d4b48cd73a
2018-06-30 23:00:10 +02:00
Takeshi Abe
658ff424b8 sc: Spare an OUStringBuffer by replacing removeChars()
... with OUString::replace().

Change-Id: I8d6ae6ff1674dafaafb276cb0efc72e01579f9bb
Reviewed-on: https://gerrit.libreoffice.org/56759
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-06-30 19:28:34 +02:00