424602 Commits

Author SHA1 Message Date
Eike Rathke
c8835f2f03 Related: tdf#118073 SbiScanner::NextSym: no symbol is no symbol
Whatever may or may not advance or put back nLineIdx, if there's
no progress at the end return false so we don't end up in an
endless loop with the next NextSym() starting at the same
position.

Change-Id: I7084fea073490c15b8ff5abb3781ac82cdccd6d6
Reviewed-on: https://gerrit.libreoffice.org/56029
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2018-06-18 17:12:35 +02:00
Eike Rathke
5c0783cecb Resolves: tdf#118073 one leading 0 is significant for 0.
Regression from

    commit 9a6527a98fb968b3fe6bc293ff7520a9480d43d0
    CommitDate: Mon Jun 27 21:57:52 2016 +0200

        stringToDouble() do not parse separator without digit as 0.0

Change-Id: I9d90aedc324ef0938297224297d89817e3fd1e90
Reviewed-on: https://gerrit.libreoffice.org/56028
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2018-06-18 16:52:09 +02:00
Caolán McNamara
2a99f33118 weld SfxSecurityPage
and drop the sole use of WB_EARLYTOGGLE

Change-Id: I01e7d085eb3f9daf5a62a048178ab90defb4c5b1
Reviewed-on: https://gerrit.libreoffice.org/55983
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 16:20:50 +02:00
Caolán McNamara
9b19f99430 weld ImpPDFTabOpnFtrPage
Change-Id: Icafd88d41f2f0757fcf788882196e7ac07d7c745
Reviewed-on: https://gerrit.libreoffice.org/56024
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 15:54:54 +02:00
Caolán McNamara
62106963a0 weld ImpPDFTabLinksPage
Change-Id: I6e10b135d102f56d42a9f456557150cb557dd788
Reviewed-on: https://gerrit.libreoffice.org/55990
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 15:54:15 +02:00
Caolán McNamara
ace8342c76 weld ImpPDFTabSigningPage
Change-Id: Ia81f3f2ac3644e496ab679dc8e274b2d50f64edd
Reviewed-on: https://gerrit.libreoffice.org/56020
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 15:51:33 +02:00
Marco Cecchetti
37210da00a tdf#105720: lok: sc: currency symbol is displayed in the preceding cell
Change-Id: I6175cfeab3d8bc3a757c8522aa9c7a7e49c4bf2b
Reviewed-on: https://gerrit.libreoffice.org/55790
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
2018-06-18 15:29:16 +02:00
Katarina Behrens
4bd93b662f VCLKDE5Application is now unused as well
Change-Id: Ib11274b6039596246aa232b83fa4d85095a93e08
2018-06-18 15:28:02 +02:00
Katarina Behrens
a39e55c359 Drop cargo-cult FPServiceInfo
FILE_PICKER_SERVICE_NAME wasn't even used anywhere

Change-Id: Ie99de85175b8321948612c680c4e4d956a4c7efc
2018-06-18 15:28:02 +02:00
Katarina Behrens
f103d482eb Fold all the rest into KDE5FilePicker2
Change-Id: Icbaa56057776ffcb981207ec30e5d94d6901e43c
2018-06-18 15:28:01 +02:00
Katarina Behrens
47b0285d7b Drop winId and KWindowSystem::setMainWindow
as fpicker isn't a separate binary anymore

Change-Id: I9c9c57a21f5dc79714f37f8bc65b998887c29e78
2018-06-18 15:28:01 +02:00
Katarina Behrens
2d92d754ae Fold enableFolderMode into ctor
Change-Id: I8674395271b83d9c50477bdf0242cd9f46af7a30
2018-06-18 15:28:01 +02:00
Katarina Behrens
d7fc00e1f7 Fix suggesting file name (for new documents)
Change-Id: I39eb672f7dd097e12ddb323ce702c6c28235b5d9
2018-06-18 15:28:01 +02:00
Katarina Behrens
0527d831a5 Fix copy&pasta
Change-Id: I493fa7a14557a919fab6bc6cf9f955507488af6d
2018-06-18 15:28:01 +02:00
Katarina Behrens
c9e002799b Implement get|setLabel, signal+slot
Change-Id: I0188f7609b7a934949ffdf0a6e64547b08ff03a8
2018-06-18 15:28:00 +02:00
Katarina Behrens
6b052ccff8 Implement enableControl, signal+slot
Change-Id: I84f81f689167ec332772c706b0d0c6d7562b5ac8
2018-06-18 15:28:00 +02:00
Katarina Behrens
4add71a161 Implement getValue, signal+slot
Change-Id: Ic009ea5dc3ca3bf791d3348fce8d007022598c49
2018-06-18 15:28:00 +02:00
Katarina Behrens
29e5096f99 Add 2 more file/dir methods, signal+slot
Change-Id: I0152e4e0fa72e27a144ca96f83fe6a282b272cbe
2018-06-18 15:28:00 +02:00
Katarina Behrens
024f054e2d Implement setMultiSelectionMode, signal+slot
Change-Id: Idc411dc87a84b60a22fe7b6e7bba50b2c5302128
2018-06-18 15:28:00 +02:00
Katarina Behrens
feffef6079 Implement getSelectedFiles, signal+slot
this finally makes fpicker usable

Change-Id: Iedf7ed8de04947ffbc0e88348c95f2a937a8e69e
2018-06-18 15:28:00 +02:00
Katarina Behrens
db62a779d7 Implement get|setCurrentFilter, signal+slot
Change-Id: I1fb29b673e5cb474de7230407b7924844b1460e0
2018-06-18 15:27:59 +02:00
Katarina Behrens
a9d1eb4724 Implement appendFilter[Group], signal+slot
Change-Id: I0a195de54a8631c2218f6704ca564c0c9f06becf
2018-06-18 15:27:59 +02:00
Katarina Behrens
113b340f27 Distinguish between open vs. save file dialog
Change-Id: I1b9dee1a8cd4034f64c2c1b843cee1863a5dc1d9
2018-06-18 15:27:59 +02:00
Katarina Behrens
c38e49e869 Implement setValue of fpicker checkboxes, signal+slot
Change-Id: I0d75ef9f5584935d05a0526a626145e00761efd9
2018-06-18 15:27:59 +02:00
Katarina Behrens
d61f5db212 Show LibO's custom checkboxes in native fpicker
Change-Id: I9cd6b0b393024957c3dec1bd7e381db62f711a24
2018-06-18 15:27:58 +02:00
Katarina Behrens
611346f3e2 Basic native folder picker
Change-Id: I1b77d7a1c8a4a3581554fb5c481b7d9039497ced
2018-06-18 15:27:58 +02:00
Katarina Behrens
14b7477f59 Implement setDisplayDirectory, signal+slot
Change-Id: Ieb3fb6bb9afa8cddbfd7f14ddfb36faebd524701
2018-06-18 15:27:58 +02:00
Katarina Behrens
e8a1115567 Add setTitle functionality, signal+slot
Change-Id: Ib79837ff08cabf8a27b6d154529399a5965ab148
2018-06-18 15:27:58 +02:00
Katarina Behrens
8c7984a3f9 We don't need to link X11 libs either
Change-Id: I01b9f897abda67b12ed6f05844dca05dabb185a2
2018-06-18 15:27:58 +02:00
Katarina Behrens
3b3c700fab [Try to] get rid of dependency on X11
also kill KDE5SalDisplay with fire, it is not used anywhere
anymore

Change-Id: I4fe439b01322a6e3a809cf518e32d844c303daca
2018-06-18 15:27:58 +02:00
Katarina Behrens
9199f5d4e9 Basic KDE5 native file picker opens now
Change-Id: I3bb5d45f3337fbe26d80acb1fac7a433de904546
2018-06-18 15:27:57 +02:00
Katarina Behrens
6b8c90a370 Start folding KDE5FilePicker2 into KDE5FilePicker
Change-Id: I1004ccba52fb23549dd85c20068da5c62d7bc964
2018-06-18 15:27:57 +02:00
Katarina Behrens
a2318dcff6 Basic structures of KDE5 native filepicker build now
Change-Id: I174a4a01f2191d935ea069a0e04b5c88f4bf8193
2018-06-18 15:27:57 +02:00
Katarina Behrens
6196b7292f Copy filepicker classes from gtk3_kde5, don't build yet
Change-Id: Ic18add9e1e0a6a7e4480df17885670a0796f074a
2018-06-18 15:27:57 +02:00
Caolán McNamara
ea1e05817c weld ImpPDFTabViewerPage
Change-Id: I5eab308a89d9803c244699138cb601c49345ee3b
Reviewed-on: https://gerrit.libreoffice.org/56022
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 15:23:38 +02:00
Gabor Kelemen
cb9414f59e tdf#42949 Fix IWYU warnings in sc/inc/[Tt]*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here
and a bit of fallout management.

Change-Id: I347377d7bb2a0cf8acda1ad28b5cc79bb954ab7d
Reviewed-on: https://gerrit.libreoffice.org/55726
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-06-18 15:11:50 +02:00
Khaled Hosny
80e9f9f8d8 Skip required features from the features dialog
Many OpenType features are required features that are applied to certain
context determined by the layout engine, or should always be on. There
is no value in presenting these features to the user and they just
clutter the dialog for fonts that usually have many of such features
(e.g. Arabic or Indic fonts).

Change-Id: Idc3d7d3a9eb1c4f693ea6fdf9f26f0264b910f91
Reviewed-on: https://gerrit.libreoffice.org/55951
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-06-18 14:53:45 +02:00
Caolán McNamara
ba161dd0c1 weld ImpPDFTabSecurityPage
Change-Id: I71c3c49682483801d79aa53de76c83973084aa54
Reviewed-on: https://gerrit.libreoffice.org/56019
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 14:27:11 +02:00
Luboš Luňák
3689c9c670 do not make calc's threading depend on opencl
This should have been part of e0e21f2747c19dae13332f4e59949c717aa114f3.

Change-Id: I5942b9a907f876ff7173971b27f72b8a6c97f8dc
2018-06-18 14:16:36 +02:00
Caolán McNamara
4b57652007 set explicit parent for signing warning messages
Change-Id: Ifbd1aaec13e2f3a51963c4942face64847eefc07
Reviewed-on: https://gerrit.libreoffice.org/55989
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 13:59:06 +02:00
Caolán McNamara
294e66018d weld SfxDocumentDescPage
Change-Id: I52abfe33e39fbb2e96fe0634b9ac3d8d50068ee7
Reviewed-on: https://gerrit.libreoffice.org/55988
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 13:43:05 +02:00
Caolán McNamara
4b6d171592 weld SwDocStatPage
Change-Id: I6ea55b01179f72ca54f86c90788b297a4dd79b9c
Reviewed-on: https://gerrit.libreoffice.org/55987
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 13:02:34 +02:00
Mike Kaganski
0dc71c7caf Register SwTableFormatCmp as its old format's writer listener
Using SwTableFormatCmp in loops with SwTableLine::ChgFrameFormat, where
the latter may delete the old format of a frame, may invalidate the pOld
of a SwTableFormatCmp, and lead to use-after-free. To avoid this, let's
register SwTableFormatCmp as the old format writer listener.

Also use unique_ptr in vectors to simplify memory management.

Change-Id: I5ac93f4c3ae549b79a41220bda880386dd529c36
Reviewed-on: https://gerrit.libreoffice.org/55653
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-06-18 12:30:17 +02:00
Miklos Vajna
28653d4add sw: prefix members of SwTOXMarkDescription
Change-Id: I251c80c4faad7b1b42b3ef33a77b3a93efbf8b95
Reviewed-on: https://gerrit.libreoffice.org/55981
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
2018-06-18 11:30:23 +02:00
Abhyudaya Sharma
bc5cdc0f12 tdf#108523 Remove @author annotations
Change-Id: I85e364da59ce70ddd97fdae9bc03a4ea76b007fc
Reviewed-on: https://gerrit.libreoffice.org/55263
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-06-18 11:29:46 +02:00
Luboš Luňák
f6bd95704e use std::atomic rather than OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER
Sources such as
http://preshing.com/20130930/double-checked-locking-is-fixed-in-cpp11/
or https://en.wikipedia.org/wiki/Double-checked_locking suggest that
it wasn't possible to reliably do a portable double-checked initialization
before C++11. It may be true that for all platforms we support those
memory barriers are in fact not needed (which seems to be the assumption
behind OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER being empty), and
looking at the generated assembly here on x86-64 seems to confirm that, but
in the worst case then this is a more chatty and standard way of writing
a no-op.

I don't want to use threadsafe statics or std::call_once() because
ScGlobal::Clear() does cleanup, which would be non-trivial to do with these,
and also some functions may not necessarily always force
creation of the singleton when touching the pointer, so it can't be easily
hidden behind a single function call.

The need to explicitly use load() with delete (thus preventing DELETEZ)
looks like a Clang bug to me.

Change-Id: Id3b0ef4b273ed25a5c154f90cde090ea1f9674fb
Reviewed-on: https://gerrit.libreoffice.org/55851
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2018-06-18 10:56:35 +02:00
Luboš Luňák
fbe6fa330f add calc threads assert to a thread-unsafe function
Change-Id: I36fcdf88c3e037b9db60f24cef3508aa9791bb35
2018-06-18 10:43:13 +02:00
Tamas Bunth
b68805a896 Back up content.xml when migrating database
Change-Id: I4eacbf689989d20142c04dc8fe586d0054c46350
Reviewed-on: https://gerrit.libreoffice.org/55962
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
2018-06-18 10:36:45 +02:00
Caolán McNamara
276a0f01f6 weld SfxDocumentFontsPage
Change-Id: I09bb788455053c266ce18d21055157147668263e
Reviewed-on: https://gerrit.libreoffice.org/55968
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 10:01:52 +02:00
Caolán McNamara
e371a4a164 weld SfxManageStyleSheetPage
Change-Id: I3769d294e5a5458d3172c330360f7e6207c3d1b1
Reviewed-on: https://gerrit.libreoffice.org/55961
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-18 10:00:51 +02:00