Commit Graph

371026 Commits

Author SHA1 Message Date
Stephan Bergmann
c75a5746c6 Clean up C-style casts from pointers to void
Change-Id: I0605d23708895b9e374f141887759266beb542e7
2015-03-28 19:09:20 +01:00
Stephan Bergmann
73e2c6ae27 Clean up C-style casts from pointers to void
Change-Id: I9564d76c9b6fb808ca92b53f1bca07ec0850c6f8
2015-03-28 19:09:20 +01:00
Stephan Bergmann
c7ea19cc0c Clean up C-style casts from pointers to void
Change-Id: I0f3ad94d6a0449ebecb1eb239a7c4e63b94a9720
2015-03-28 19:09:20 +01:00
Stephan Bergmann
5bd4b3fc59 Clean up C-style casts from pointers to void
Change-Id: Ifd2e057ec440a072a342b307175d34cc6885b2e3
2015-03-28 19:09:19 +01:00
Stephan Bergmann
f99a73ab22 Clean up C-style casts from pointers to void
Change-Id: I4d4ae12d372b16a0b77298e8a31e12a05a28410d
2015-03-28 19:09:19 +01:00
Stephan Bergmann
c30ad3771e Clean up C-style casts from pointers to void
Change-Id: Idb32372009faf2bc2e223f1f8977cb3fc6b182a3
2015-03-28 19:09:19 +01:00
Stephan Bergmann
02cad1c905 Clean up C-style casts from pointers to void
Change-Id: I58022cd4dfa96d37c8e1d98a8a3f4642201eb4f7
2015-03-28 19:09:19 +01:00
Stephan Bergmann
170012948c Clean up C-style casts from pointers to void
Change-Id: I544fc582d375d1e49f84309e722f669d734cf029
2015-03-28 19:09:19 +01:00
Stephan Bergmann
e97b327266 Clean up C-style casts from pointers to void
Change-Id: I92c0a6c602e473b796df43b88c98b823de8d9399
2015-03-28 19:09:19 +01:00
Stephan Bergmann
1777f6fedb Clean up C-style casts from pointers to void
Change-Id: I834eb4ecd0fa71caf6fa746901367fac8b538305
2015-03-28 19:09:18 +01:00
Stephan Bergmann
d18aa94868 Clean up C-style casts from pointers to void
Change-Id: I680f6d79c27c83cf41edb8ba3acfcfc8dab26a76
2015-03-28 19:09:18 +01:00
Stephan Bergmann
1b42acc95e Clean up C-style casts from pointers to void
Change-Id: I6c7c31befd61cbf0800a62c08e7395ddf78e4b30
2015-03-28 19:09:18 +01:00
Stephan Bergmann
962b77340f Clean up C-style casts from pointers to void
Change-Id: Icdb619101a992a740c71545e669e138cb5dc63a6
2015-03-28 19:09:18 +01:00
Stephan Bergmann
fb09b1f3c6 Clean up C-style casts from pointers to void
Change-Id: Ic903d2429672159691fef58d0d7a15433c884250
2015-03-28 19:09:18 +01:00
Stephan Bergmann
6a6991ed2e Clean up C-style casts from pointers to void
Change-Id: I5c0372bce2564e58c78daf544cfcb106387c6894
2015-03-28 19:09:17 +01:00
Stephan Bergmann
c3fb36ed26 Clean up C-style casts from pointers to void
Change-Id: I6dd7c7fbaf0d4b22abba0a7b1f5e37f0a46d0747
2015-03-28 19:09:17 +01:00
Stephan Bergmann
989f0ec573 Clean up C-style casts from pointers to void
Change-Id: I0db5c02e9fbc09fe7d85e46f1434c86b5b5b4853
2015-03-28 19:09:17 +01:00
Stephan Bergmann
03621417bf Clean up C-style casts from pointers to void
Change-Id: I61b960eecaeadaf12121596e181604318f951094
2015-03-28 19:09:17 +01:00
Stephan Bergmann
9e13404a5b Clean up C-style casts from pointers to void
Change-Id: Ifab61517e0b2e721b85a3e2cc7d927198f1690c4
2015-03-28 19:09:17 +01:00
Stephan Bergmann
13e45d6fde loplugin:redundantcast: Don't warn about certain casts in macros
...that might depend on macro arguments and not really be redundant

Change-Id: If19de3835a4972add58965ea7c0936fad7ef6957
2015-03-28 19:09:17 +01:00
Markus Mohrhard
7937984a6a test for tdf#90001
Change-Id: If0cb056d5a5e82bec1f4b863e40ec05b405280ac
2015-03-28 16:38:51 +01:00
Markus Mohrhard
be1b3daeeb 3D refs with more than one sheet should not set sheets deleted, tdf#90001
Change-Id: I501ad421c283ec6a1f2629aa424f4d4c32228516
2015-03-28 16:38:51 +01:00
Michael Stahl
1efe5fe380 tdf#89666: vcl: speed up HbLayoutEngine with cache in SwTxtFormatInfo
When a SwTxtFormatInfo is created to format a paragraph, pre-compute the
result of vcl::ScriptRun::next() and cache it for future calls to
OutputDevice::GetTextBreak() and GetTextWidth().

This requires adapting a bunch of methods to pass the additional
parameter, and some classes to backup and restore the cache when they
replace the text of the SwTxtFormatInfo.

There is some code in vcl OutputDevice::ImplPrepareLayoutArgs()
to modify the passed string and replace digits depending on
"meTextLanguage" member; try to set it to the correct value when
creating the layout cache (unfortunately it's not possible if the user
sets the CTL Numerals config to the non-default "Context" value).

Another issue is the check in OutputDevice::ImplLayout() if there is
a mpConversion member on the font; apparently this is used to translate
between different Symbol fonts, so not very important; just ignore the
cache in this case.

This reduces vcl::ScriptRun::next() from 11 to 0.36 billion callgrind
cycles when built with GCC 4.9.2 -m32 -Os (which is still 16% of the
formatting).

Change-Id: I61fb8530333f2e7a9199f767c00cf2181ba49951
Reviewed-on: https://gerrit.libreoffice.org/14732
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-28 15:34:34 +00:00
Tor Lillqvist
7fe192da23 Bin a few SAL_INFOs that basically just say "we are here"
Such are fairly pointless to keep permanently in the code. Use a temporary
SAL_DEBUG if you need tracing output when you reach a certain lines while
hacking.

Change-Id: I13a898486731c6d2995e92e2c5dcd0d1429e47cc
2015-03-28 16:24:18 +02:00
Tor Lillqvist
f42272cab6 Make console-only mode a proper subset of headless mode
Let's not make the mode space too complex. Do we really want to have to ponder
what it means to be console-only but not headless?

Make it so that turning on console-only mode also turns on headless mode (with
dialogsAreFatal turned on, too).

Change-Id: I630cb1bc605c1fb1787ace58180125509ef8789b
2015-03-28 15:41:00 +02:00
Tor Lillqvist
ba819f90eb Using LO code through LOKit should imply "console only", too, I think
The "console only" mode, which apparently is intended to mean something
stronger than merely "headless" mode (?), is not checked much currently. But I
plan to start checking it to avoid doing things that make no sense when
running LO code through LibreOfficeKit.

(If overloading "console only" mode turns out to be a bad thing, we will have
to introduce a third degree of headlessness then, "LOKit mode".)

Change-Id: Id4cd16c4d68e2f1aba8a6b8fba83325b7262563a
2015-03-28 15:13:27 +02:00
Tor Lillqvist
8fb68a54e5 We already log successful UNO initialisation in initialize_uno()
Change-Id: Id1315a35f84fee2a7c7a42df489237c2e641a189
2015-03-28 15:00:31 +02:00
Tor Lillqvist
c6282e9bc4 Exclamation marks are unprofessional
Change-Id: Ic75e73cf390872f4095d23a4388739330aeb1286
2015-03-28 15:00:31 +02:00
Matthew Francis
2caa097682 tdf#89630 Remove extra space added when assigning styles for TOC
This crept in with commit 367d3c9b53

Change-Id: Ia59d89b6d08b45478ce1c217c7e4004aa52aca06
Reviewed-on: https://gerrit.libreoffice.org/15042
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
2015-03-28 12:42:13 +00:00
Matúš Kukan
39c4b2787e forms: Replace these macros
Change-Id: I656905cf6f0e3647824ff3836fcea93920251264
2015-03-28 11:52:41 +01:00
Matúš Kukan
a9535fe984 forms: More unused services related stuff
Change-Id: I3be9b1a57971286441d78e03130d0467ea2cc838
2015-03-28 11:52:40 +01:00
Miklos Vajna
687551526d Use std::make_shared<>
Change-Id: I6ff31e406d79361c07779f650de8d46cc78302ff
Reviewed-on: https://gerrit.libreoffice.org/15041
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2015-03-28 10:23:59 +00:00
andreas_k
27fb88fc19 Breeze: svtools/res icons for for database
Change-Id: Id33b72ef29e55a3446a3c628a33c21eabd01e662
Reviewed-on: https://gerrit.libreoffice.org/15039
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-03-28 07:08:28 +00:00
andreas_k
e1d6bbb967 Breeze: sc/imglst missing icons
Change-Id: I3e218f947c863e03148934191e8859d449cc20de
Reviewed-on: https://gerrit.libreoffice.org/15038
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-03-28 07:07:53 +00:00
Eike Rathke
02bea75dd6 only handle formula group if useful, tdf#90042 related
Same as in ScDocument::SetString() as changed with
c79bdd062f, do it similar in
ScDocument::SetValue()

Change-Id: I7c666b176062c81a8a74cb49f345408c1060d973
2015-03-28 00:43:33 +01:00
Laurent Godard
c79bdd062f tdf#90042 only handle formula group if useful
Change-Id: I497a5bae4b08b46357415501ddbafc70585adfb0
Reviewed-on: https://gerrit.libreoffice.org/14920
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2015-03-27 23:33:51 +00:00
andreas_k
dd4021a692 Breeze: Language support updates
Change-Id: Ifbab13cde089206a8d21aaca45c7aba2b182aa2d
Reviewed-on: https://gerrit.libreoffice.org/15035
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-03-27 22:42:10 +00:00
andreas_k
6bc015c02f Breeze: spain icons
Change-Id: Ia2ce5a27a938997e39ce7603fdb836337a4c8589
Reviewed-on: https://gerrit.libreoffice.org/15034
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-03-27 22:40:06 +00:00
andreas_k
ca7017bd1c Breeze: update German icons
Change-Id: Ic9e42f2bbf29b87f901f995b6bd5e74e8bf13b16
Reviewed-on: https://gerrit.libreoffice.org/15033
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-03-27 22:21:07 +00:00
Chr. Rossmanith
f1a1327435 fixed typos in comments
Change-Id: I6f0b90f7a76ddc69e158502af760466ab7ce2f91
2015-03-27 23:13:59 +01:00
Chr. Rossmanith
0a4e913828 tdf#56467: improve export of formulas to SVG
tspan element only valid as child of text element
if exporting a selection use top left corner of bounding rect as top left corner of viewbox
export x coordinate of text position for text portions

Change-Id: I8b739085473aa4a48ff3bbbbe8c413c3cddbaebd
Reviewed-on: https://gerrit.libreoffice.org/14992
Reviewed-by: Thorsten Behrens <thb@documentfoundation.org>
Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2015-03-27 21:15:48 +00:00
Miklos Vajna
36275b61fe loplugin:literaltoboolconversion
Change-Id: Iea5209473632891b2015ac2df493e307972867e8
2015-03-27 21:37:06 +01:00
Markus Mohrhard
5b7d51af07 add test for tdf#89170
Change-Id: Ia3458ae91ea20aa3f5090f9b85a5030ddde81c3c
2015-03-27 19:58:28 +01:00
Markus Mohrhard
8dd2888ac7 we need to use the edit engine attibute id for rich text, tdf#89170
Change-Id: I8489b0341709d44bc62e5ddef49fe232998f3c80
2015-03-27 19:58:28 +01:00
Markus Mohrhard
d63c5326b1 a boolean variable is enough
Change-Id: I0594de8cc79626720f2f72062c39a6f2590dd64f
2015-03-27 19:58:28 +01:00
Pedro Giffuni
09f83e1f40 Small fix for BSD.
Part of Code Review:
https://reviews.freebsd.org/D2055

Author:		Don Lewis (truckman at FreeBSD)
(cherry picked from commit ecebe457c968bfd30a99a435210b0bdbb117faef)
2015-03-27 15:42:01 +00:00
Caolán McNamara
27e0fee7da gnome#745909 grab/ungrab keyboard for menus
Change-Id: Id0593e1c9af79084ae798f26a0be37c57d254227
2015-03-27 15:30:58 +00:00
Caolán McNamara
8c3cf9dd48 ambiguous symbol
Change-Id: I90798a036ba630456939d383e7e4288eb630cd86
2015-03-27 13:53:04 +00:00
Caolán McNamara
757f461ef1 avoid activating chart objects just to get their mapunit or set visual size
the motivation is SwWrtShell::CalcAndSetScale

and the assert/crash triggered by

ooo58458-1.odt ooo84729-2.odt ooo75058-1.odt ooo123605-1.odt ooo102990-1.odt
fdo57249-1.odt fdo50880-1.odt fdo70223-5.odt ooo30052-2.odt ooo119280-1.odt
ooo79009-1.odt ooo58182-2.odt ooo59992-1.odt ooo123607-1.odt ooo89304-1.odt
ooo91578-5.odt ooo89303-1.odt ooo30052-1.odt fdo65664-3.odt ooo119941-1.odt
ooo55761-1.odt fdo57249-2.odt ooo83229-3.odt ooo84729-1.odt ooo102990-2.odt
ooo37749-1.sxw ooo38798-1.sxw ooo27909-1.sxw

getMapUnit activates the object which can cause chart object to load data from
the current document and appears to attempt to stop and resume pending layout
actions which can't be done if layout is underway, hence the assert from the
inner SwLayAction::SwLayAction triggered by the runstate while an SwLayAction::SwLayAction
is already active for counting the number of pdf output pages.

getMapUnit always returns the same result regardless of anything else and the
assumption is that we don't need to be in run state to setVisualSize on it

Change-Id: Ie75b159b140de223a56324b39699d703c3b40bb9
2015-03-27 10:45:38 +00:00
Noel Grandin
1a08ce7078 loplugin:staticfunction
Change-Id: I10c30ef28e7321882a720d1e7869a75a89febfc5
2015-03-27 10:51:08 +02:00