405577 Commits

Author SHA1 Message Date
Noel Grandin
7916487cf4 convert ViewShellId to o3tl::strong_int
Change-Id: I45553d11d56aa8c4432aec126ca51f24bd3ead09
Reviewed-on: https://gerrit.libreoffice.org/35421
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-24 06:14:17 +00:00
andreas kainz
9ee2d69c61 fix annotation icon
Change-Id: Ie65c6698b0f5478bfb6c9d58bfec1bc814e9cadf
Reviewed-on: https://gerrit.libreoffice.org/35601
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-03-24 06:00:11 +00:00
Marco A.G.Pinto
dbd0877e12 [pt_PT] Added 11 new words to autocorrect.
Change-Id: Id14a6da3959006a541e26e6e84d6a4eb0b070651
Reviewed-on: https://gerrit.libreoffice.org/35187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-03-24 05:54:16 +00:00
Kohei Yoshida
a7ad759726 Remove near-duplicated code.
Change-Id: I46e743ae47c76c4e9c22d092f501636ebab92878
Reviewed-on: https://gerrit.libreoffice.org/35606
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2017-03-24 02:12:16 +00:00
Bjoern Michaelsen
522e9c65fa UNO objects should never hold a VclPtr they dont own on heap ...
... so admit that the VclPtr that ChartController used to have is really
owned by m_xViewWindow, and get fetch that (stack-scoped only) from
there.

Change-Id: Ib9e2cd20201ebe5019c3607a8c65cb1a9856812f
Reviewed-on: https://gerrit.libreoffice.org/35603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2017-03-24 00:09:56 +00:00
Bjoern Michaelsen
e8c723ac7f Lets not call 1/2 of everyone we know friend...
...esp. when they dont even need it.

Change-Id: If9d00da3110328d88e832f12b8717a93f91393aa
Reviewed-on: https://gerrit.libreoffice.org/35602
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2017-03-23 21:34:36 +00:00
Stephan Bergmann
a12b484be3 loplugin:redundantcast
Change-Id: Icc700698711174246c5fc800105ac5b7c6102296
2017-03-23 20:00:15 +01:00
Stephan Bergmann
d2d6e7dc90 Change SvxMSDffManager::ImportOLE nOLEId parameter from long to sal_uInt32
The only place this function is called (SvxMSDffManager::ImportGraphic,
filter/source/msfilter/msdffimp.cxx) it is passed the sal_uInt32 return value
from a call to DffPropSet::GetPropertyValue, so that seems a better type.
(SvxMSDffManager::ImportOLE used long at least since
d2000efb31f864e912c6cf52760eea0e602b6893 "#i106421#: move msfilter to filter";
DffPropSet::GetPropertyValue used UINT32 back then, changed to sal_uInt32 with
e8c2c1daae9008d383288f94600b1d34d2059fb1 "removetooltypes01: #i112600# remove
tooltypes from filter".  Unclear if those had ever had more compatible types in
the distant past.)

Change-Id: Ia486d169cd2cc0e73042e72fd4476cc2ae0e8cc5
2017-03-23 19:57:22 +01:00
Bjoern Michaelsen
f0a6f3549e Lets not call 1/2 of everyone we know friend...
...esp. when they tend try to own our private parts.
Lets be honest here. Also remove pointless repeated private:s.

Change-Id: Idaa7621fbe812ef25f13bba1882a16cca4de9d61
Reviewed-on: https://gerrit.libreoffice.org/35600
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2017-03-23 18:53:24 +00:00
Stephan Bergmann
3d53ec9b2d loplugin:redundantcast
Change-Id: I1bc2fbe98f24b173cfda4661f812575a2008c792
2017-03-23 19:29:04 +01:00
Bjoern Michaelsen
eb0218315a Lets not call 1/2 of everyone we know friend...
...esp. when they tend try to own our private parts.
Lets be honest here. Also remove pointless dynamic_casts.

Change-Id: Ie6ef8a0c07a72aaa15e374e5ec6841520c0fafb1
Reviewed-on: https://gerrit.libreoffice.org/35599
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2017-03-23 17:29:27 +00:00
Stephan Bergmann
6291574d94 Remove unused #include <ctype.h>
Change-Id: I8bf3e30687e20151a9e1936e69362abfe9b3a99d
2017-03-23 17:55:31 +01:00
Caolán McNamara
361c616a1b ofz: when skipping actions, only skip forwards
Change-Id: I1a80de4bf5c6c44ed10c1b720f85895ad8f4f8e5
2017-03-23 16:42:12 +00:00
Caolán McNamara
d57f707bbd add svm cppunit test
and rely on new safe multiple check of

commit 4f0b226600fdad4e5aef9313fe8754c765cfee42
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Tue Mar 21 11:23:09 2017 +0000

    check for overflow in multiply

rather than trying to detect them here in advance

Change-Id: I7fb9a9960e428cf00f745b6156a588e2c990c03f
Reviewed-on: https://gerrit.libreoffice.org/35595
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-23 16:38:36 +00:00
Caolán McNamara
13de958fc3 loplugin:redundantcast toNumericWithoutDecimalPlace returns sal_Int64 already
Change-Id: Iccb11bb5067d6de06ff8786c0acd1af27ffaf8fd
2017-03-23 16:37:33 +00:00
Caolán McNamara
5013abeb19 Resolves: tdf#106461 use a row height of max of edit and listbox height
not just take the listbox because edits can be taller and result in
overlaps

Change-Id: I6067b384484d933727220febda723bc9e8c5e90b
2017-03-23 16:07:30 +00:00
Stephan Bergmann
692424b805 No need for a temporary OString here
Change-Id: I94115baf51dcb52999d97ad1dc3302b109990b04
2017-03-23 17:04:54 +01:00
Miklos Vajna
d0c24cbb02 tdf#106693 vcl PDF export, norefxobj: handle compressed page stream
Since we want to avoid re-compressing the page stream create two form
XObjects: one that resets the graphic state to the default (e.g. line
width) and an other one that contains the original page stream as-is.

With this PDF images where the page stream is compressed are handled
correctly.

Change-Id: Ib44dae2e167e4d5604a0a3a3cf91e09795137343
2017-03-23 16:59:10 +01:00
Stephan Bergmann
11b684d3f5 loplugin:loopvartoosmall
Change-Id: I21e54bf70108991b7ca7f96232e6d9411af23ff9
2017-03-23 16:08:19 +01:00
Caolán McNamara
502dde2118 ofz: readjust LLVMFuzzerInitialize to get ppt SdDLL::Init outside leak detect
Change-Id: I01a6d19ef27c4678929e8e7554569c9219ea83f6
2017-03-23 15:01:42 +00:00
Michael Stahl
5113441728 configure: remove hack to add quotes to $DEVENV again
This was added because CPPUNITTRACE='"$(DEVENV)" /debugexe' is less
convenient to write than CPPUNITTRACE='$(DEVENV) /debugexe'.

However DavidO points out that CPPUNITTRACE=TRUE is even more
convenient and sort of optimal already, and it turns out it's broken by
the extra quotes, so remove the hack.

Change-Id: Ic5d94f9a0774cd41821b68728404c205552d674e
Reviewed-on: https://gerrit.libreoffice.org/35589
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-23 14:48:03 +00:00
Stephan Bergmann
6d7ed03dd3 Use rtl::toAsciiLowerCase
Change-Id: I44e9f9382de2a7235b02ad94ff51b7f21295f2ae
2017-03-23 15:28:11 +01:00
Stephan Bergmann
0f49fdd70e Remove unused #include <cctype>
Change-Id: I9c61e1b558104fa55d887a6c32e1ef2b03f1d1a0
2017-03-23 15:22:46 +01:00
Szymon Kłos
51efa8fb3f Notebookbar: move shortcuts if multiple rows of tabs
Change-Id: I8b164a34eeff13d70712a84d5621d169b6528962
Reviewed-on: https://gerrit.libreoffice.org/35588
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
2017-03-23 14:18:20 +00:00
Caolán McNamara
6903066822 Related: rhbz#1334915 tdf#100158 hack using startcenter icon under wayland
cause I can get no traction with gnome#779143 to allow changing wayland
app_ids for windows, so might as well bodge something to make us look
less pathetic than the broken app icon

Change-Id: I9810ba4908dd06a2fdbb2e58e7ad6ff4978ddd43
2017-03-23 14:15:48 +00:00
Takeshi Abe
42870930e2 starmath: Fix memory leak at double sub/superscripts
and avoid skipping following tokens too much. This also saves
unnecessary stack operations.

Change-Id: I4f30be73a615341b2b3de70f2c8f3dd5c2f85910
Reviewed-on: https://gerrit.libreoffice.org/35583
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-03-23 13:42:53 +00:00
Caolán McNamara
b755c56c50 TODO: move to ScrollBar when binary incompatibility is no longer problematic
since...

commit 72ebade6ba9e88a5a24db57266a53e8f52049214
Author: Ivo Hinkelmann <ihi@openoffice.org>
Date:   Thu Sep 13 15:33:31 2007 +0000

    INTEGRATION: CWS aquavclcarbonfixes (1.20.70); FILE MERGED
    2007/08/29 12:59:47 hdu 1.20.70.1: #i77549# extend native scrollbar NWF by adding PART_TRACK_*_AREA controls

Change-Id: I124c4014556f3a10b986a2886202210ebfc9eb10
Reviewed-on: https://gerrit.libreoffice.org/35586
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-03-23 13:29:37 +00:00
Miklos Vajna
d27818c1f3 tdf#106693 vcl PDF export, norefxobj: copy page stream
This gives correct result in very simple cases when the page stream is
not compressed and it references no other objects from the original
file.

Change-Id: I11ed50180a256bdb5c587fd8927d21c925100a4d
Reviewed-on: https://gerrit.libreoffice.org/35580
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-03-23 13:06:27 +00:00
Noel Grandin
c80fe3937b convert ScMatrixMode to scoped enum
and fix a bug in ScChangeActionContent::SetValueString where it was
passing the grammar as the ScMatrixMode to the ScFormulaCell
constructor.

Change-Id: I7c1a174cdd8365dedc30cff0b26e3079bb8b84f3
Reviewed-on: https://gerrit.libreoffice.org/35552
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-23 12:00:27 +00:00
Noel Grandin
8ab1fe71f5 remove unused helpid in SfxShell
Unused since commit 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae
"update unusedmethods plugin to deal with constructors"
where I removed a unused SfxDockingWindow constructor.
And in that case, the helpid was only being used to assign
the window a UniqueId.

Change-Id: I148e424424fcf08449440b83a8600071b39d7a07
Reviewed-on: https://gerrit.libreoffice.org/35554
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-23 10:51:13 +00:00
Stephan Bergmann
61ecebe0d0 Revert "Handle "POSIX" in parse_locale"
This reverts commit 646cbbfbc67b07d5f58166228bca1ac710175cd0 for now.  Appears
that it made CppunitTest_sal_osl fail at least on some macOS builds, for reasons
not yet clear to me
2017-03-23 11:38:01 +01:00
Miklos Vajna
59b091bd81 xmlsecurity: ImplXMLSignatureListener is only used with XMLSignatureHelper
So no need to go via Link, can call those member functions directly.

Change-Id: I36a5193965d23230ecc1ddca8675b3745933469d
2017-03-23 11:34:38 +01:00
Noel Grandin
53bfd644d2 convert UpdateFlags to scoped enum
Change-Id: I73121e85a927bae3f042a2bbc0283a28067b891f
Reviewed-on: https://gerrit.libreoffice.org/35553
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-23 10:29:17 +00:00
Stephan Bergmann
646cbbfbc6 Handle "POSIX" in parse_locale
Change-Id: Ib3ce9efd2933170777689db152d35f586f5afe2d
2017-03-23 11:09:39 +01:00
Stephan Bergmann
4a3f2cb747 Fix some usage of std::istream unformatted input in hwpfilter/source/hwpeq.cxx
(Though some deficiencies remain, e.g. when values are assumed to be valid
characters and not eof().)

Change-Id: Ia5ec681a68086e9843206a6b44a44f8ec3800b88
2017-03-23 11:02:10 +01:00
Stephan Bergmann
77c2b0a33e In Unix ImplGetLocale, read env vars instead of calling setlocale
...to avoid the general problems with the latter (MT issues; changing global
state)

Change-Id: I21eb129b7e1422089b3449763f64f461371ffff1
2017-03-23 10:48:54 +01:00
Noel Grandin
ed76d1d350 loplugins:redundantcast teach it about c-style typedef casts
Change-Id: I1ac11a2481c0f4d8be1e1fd7c7637ac0ece3d65c
Reviewed-on: https://gerrit.libreoffice.org/35558
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-23 09:48:10 +00:00
Noel Grandin
a61c4ae9ce convert SC_CELL_SHIFT_DISABLE to o3tl::typed_flags enum
Change-Id: Iae4358828edc6bad26ef5c769a8ff42fe63ade7b
Reviewed-on: https://gerrit.libreoffice.org/35556
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-23 09:39:59 +00:00
Noel Grandin
88ec24a23a convert NAME constants to CreateNameFlags o3tl::typed_flags enum
Change-Id: I6265c76067402808454184f1318feeb78a140617
Reviewed-on: https://gerrit.libreoffice.org/35555
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-23 09:39:06 +00:00
Noel Grandin
275f777e82 convert INS_CONT constants to o3tl::typed_flags enum
Change-Id: Ic59dad906c58ee765f36fac685c038c79bca9f3b
Reviewed-on: https://gerrit.libreoffice.org/35557
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-23 09:38:00 +00:00
Stephan Bergmann
0acd074861 std::istream::get() returns std::istream::traits_type::eof()
Change-Id: I0461e8184e4ad2a9d2dff89879e141bd66555bf5
2017-03-23 09:29:48 +01:00
andreas kainz
782c88326f add icon for tab notebook toolbar .uno:actions
Change-Id: I77b50bf6961d53df8d5a333d10f2b3ccf41b5434
Reviewed-on: https://gerrit.libreoffice.org/35548
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-03-23 07:08:48 +00:00
Adolfo Jayme Barrientos
b66b3050c4 “Hyperlink” is NOT a dated word, it’s just a precise one
We should always be clear and precise, given that LibreOffice handles various
kinds of links.

Nobody at L10n wanted this change, but they were ignored.

This should fix tdf#103093, which was a consequence of the introduced ambiguity.

This reverts commit a1297fc2df243d765ffb14f18bbdde158459b9f4.

Change-Id: I29232c7a8384c3fa501c61aab26e061ebcb1a0d8
2017-03-23 00:40:28 -06:00
Stephan Bergmann
254c13265f Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: I94b4cd3860b1b8740965373ee0b254a0415c8b4c
2017-03-23 07:35:01 +01:00
Stephan Bergmann
0ab2f39e45 Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: Ie37f15379b0e10912ef2e0ac94249da11040eede
2017-03-23 07:32:58 +01:00
Stephan Bergmann
0a92c29e47 This code trades in 'char' entities disguised as 'int'
(with EOF represented as 0), so better actually use 'char'.

Change-Id: Id9c684c833b0d46f8a51a34aa2c4b78a75e2d3a5
2017-03-23 07:29:17 +01:00
Stephan Bergmann
a2201cba9f Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: Ic0e1c7f4e0899fd976a00b5ea8ba8b130657bac9
2017-03-23 07:20:44 +01:00
Julien Nabet
9f5b1c4f2a Typo: boder->border
Change-Id: I46940c5b584f93b478b1dfca9aa66e036fe951c2
Reviewed-on: https://gerrit.libreoffice.org/35547
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-03-23 06:13:13 +00:00
Adolfo Jayme Barrientos
cba153ca03 Updated core
Project: help  b67d9744ba73792377b249fd008848125696a769

Partially revert e40264511 for unwanted terminology change

Change-Id: I820d8a200d881bf900b03b922eabf49c416dd83d
2017-03-23 05:54:15 +00:00
Takeshi Abe
faeda4e29e starmath: Make DoProduct()/DoSum()/DoRelation() return SmNode
to reduce an excessive number of stack operations.

Change-Id: Ia4ef08dce76d318c56bf7d112f686e13d1b2660e
Reviewed-on: https://gerrit.libreoffice.org/35551
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-03-23 04:20:59 +00:00