Commit Graph

428909 Commits

Author SHA1 Message Date
Jan-Marek Glogowski
c8481c8a43 Drop duplicate WINVER and _WIN32_WINNT defines
Just keep the definition of _WIN32_WINNT in windows.mk, which
claims it automatically derivates WINVER in some sdk header.

Change-Id: I0a83e91ffdc9e0fc847433a92a45424fbfcb189c
Reviewed-on: https://gerrit.libreoffice.org/61631
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2018-10-11 00:55:03 +02:00
Julien Nabet
40e22f1e1b tdf#120158: fix ImplGetParameterString for typename
since type name might also contain unacceptable characters,
encode all of them

See comments 8/9/10 and 11 (bt here) of bugtracker

+ add SAL_WARN in catch (which would have avoided me to waste a lot of
time chasing the root cause)

Change-Id: If8555bba8cda011218206621216e0405615229eb
Reviewed-on: https://gerrit.libreoffice.org/61601
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-10-10 22:57:23 +02:00
Caolán McNamara
ddc44ac177 weld FmShowColsDialog
Change-Id: I31f3a787e6f835f576c02b5831508fa78340bf22
Reviewed-on: https://gerrit.libreoffice.org/61629
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 21:23:48 +02:00
Caolán McNamara
1440777eec forcepoint#74 crash in layout
Change-Id: Iad5770b512d7c49483ac823aa4f51212f281bbca
Reviewed-on: https://gerrit.libreoffice.org/61628
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 21:23:04 +02:00
Caolán McNamara
b67d9a5db6 can use remainingSize instead of Seek(STREAM_SEEK_TO_END)
Change-Id: I6bbd9300fd3ec468267af2cf5d7f87d96d1817bc
Reviewed-on: https://gerrit.libreoffice.org/61627
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 21:22:39 +02:00
Armin Le Grand
ad1b8880c2 tdf#119067 DefaultLabel only for interactively created OBJs
Both have to work - the Wizard-created report which this report
defines and the interactively created ones (see tdf#118730). The
second was moved to OUnoObject::CreateMediator and by error
sets the default text (e.g. 'Label') now all the time. This
was wrong.
To solve, remember if the Object was created interactively
(which is the case when ::EndCreate was called which is needed
again) and set the default only when that is the case.

Change-Id: Id26e701d863b098a77db5f6419bcabf1f2ec5017
Reviewed-on: https://gerrit.libreoffice.org/61620
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2018-10-10 20:43:37 +02:00
Mike Kaganski
9eb489da46 Properly check HRESULT
Although the IEnumFORMATETC::Next documentation only mentions S_OK and
S_FALSE, there are error codes that also may be returned: e.g.,
0x800706BA RPC server unavailable (encountered locally in a unit test).
In that case, this used to loop infinitely.

We are only interested in S_OK result, so check for it.

Change-Id: I062e409e84efb68353321f7c48d922ec83191f73
Reviewed-on: https://gerrit.libreoffice.org/61621
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-10-10 20:13:56 +02:00
Adolfo Jayme Barrientos
fb0c1cf19a Update git submodules
* Update helpcontent2 from branch 'master'
  - Typos
    
    Change-Id: I06250d85bc5944fa918161d9655204d37b57017b
2018-10-10 18:51:41 +02:00
Caolán McNamara
3177bcaa10 Resolves: tdf#120407 support popover getting replaced
Change-Id: I56f51a5effccd8854361790c68fa11a2cc067aa9
Reviewed-on: https://gerrit.libreoffice.org/61623
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 18:32:53 +02:00
Jim Raykowski
69c8269573 Unhardcode sidebar used customizable key bindings
Change-Id: Ia3bc171e2c9805955394fac274de382c3f87d35f
Reviewed-on: https://gerrit.libreoffice.org/61564
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-10-10 17:32:37 +02:00
Xisco Fauli
f7982d4dfa tdf#120410: Disable insert/delete row/page break in read-only mode
Change-Id: Idbc81467c57c8e597e5065ef316bc4c5773b695b
Reviewed-on: https://gerrit.libreoffice.org/61602
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2018-10-10 17:30:44 +02:00
Stephan Bergmann
07721a4dea HTML tt -> code in JavaDoc comments
...to avoid "error: tag not supported in the generated HTML version: tt" with
JDK 11

Change-Id: I761c987257f42d01f24c88440495698cac6226d2
Reviewed-on: https://gerrit.libreoffice.org/61614
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-10-10 17:26:26 +02:00
Caolán McNamara
3b21fed4b1 optimize adding a block of entries at one time
Change-Id: I9a59154fa445cf3c44ede3ceb1d09f408d906530
Reviewed-on: https://gerrit.libreoffice.org/61618
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 16:57:12 +02:00
Caolán McNamara
ee68b450b7 font lists come presorted
Change-Id: I0559ed99971bd83d9d09321a12ce64e7bbd1f339
Reviewed-on: https://gerrit.libreoffice.org/61608
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 16:56:41 +02:00
Mike Kaganski
095caf5c75 Restore using shlwapi by VCL code on Windows
This was lost in commit 1698debed2.
Windows 10 SDK doesn't depend on it, but Windows 8.1 SDK does,
because InitPropVariantFromString is implemented in it as call
to SHStrDupW.

Change-Id: I20b596bba21664bed93d2b194f6cc9f23673586a
Reviewed-on: https://gerrit.libreoffice.org/61612
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-10-10 16:45:48 +02:00
Stephan Bergmann
a17ed50b6e Missing include (Windows --disable-pch)
Change-Id: I28632c47b397705ea03592321b8b7c3cc3c0e838
Reviewed-on: https://gerrit.libreoffice.org/61613
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-10-10 16:44:39 +02:00
Caolán McNamara
853b84c307 tdf#120420 only show as much column widgets as don't distort the page width
Change-Id: Ibde6f2bcb4fed1261ebd7efa45904600855a20ef
Reviewed-on: https://gerrit.libreoffice.org/61596
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 15:37:09 +02:00
Tor Lillqvist
cde5ea63cd Sure it is a square
Change-Id: I2a48c31bfcfa0c1fee213a70f3c25bcdcc1de56d
2018-10-10 16:36:34 +03:00
Tor Lillqvist
1d279e9c91 Move the iOS CGBitmapContextCreate() call do doc_paintTile()
Thus it now actually takes a buffer pointer also on iOS, like on Linux
and Android. Less confusing, more uniform. Add a separate iOS-specific
paintTileToCGContext() method to LibreOfficeKitDocumentClass that
takes a CGContextRef. Adapt callers correspondingly. (The
LibreOfficeLight code in particular needs the paintTileToCGContext().)

Change-Id: I81084806d37b9aac9f2b2bc03d0c262e991eec81
2018-10-10 16:25:20 +03:00
Lionel Elie Mamane
d143e211b1 clean up column pos vs column id
everywhere GetColumnAtXPosPixel is used;
see also tdf#119564 fix

Change-Id: Ibab57c7305bf4dce9ea9f3df66e6214b0d1585b2
Reviewed-on: https://gerrit.libreoffice.org/61390
Tested-by: Jenkins
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2018-10-10 14:51:12 +02:00
Lionel Elie Mamane
2f792ac91f tdf#119564 column id is not always the same as position
GetColumnAtXPosPixel returns the column position
(index in mvCols vector), _not_ the column id!
These differ in particular when some columns are hidden.

Change-Id: Ifc068bd3cc090969278f10e48d9d7d3f8a682e13
Reviewed-on: https://gerrit.libreoffice.org/60975
Tested-by: Jenkins
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2018-10-10 14:49:26 +02:00
László Németh
3a81c0d402 tdf#120422 LibreLogo: fix page and line formatting of "magic wand"
Format program lines as paragraphs, instead of a single paragraph
with line breaks:

- basic debug feature "jump to the bad line" works after formatting

- fix 2-page editing area: page break before the LibreLogo program

Now formatting of program lines doesn't depend on the actual regular
expression setting of Search & Replace functionality of Writer,
so this is the intended fix for tdf#100941 "LibreLogo: 'magic wand'
icon inserts incorrect '\n' characters instead of paragraph breaks".

NOTE: setting also AlgorithmType, not only AlgorithmType2 prevents
crashing of LibreOffice at opening Search & Replace dialog after
usage of the "magic wand" icon.

partial revert of the commit b1a6d15768
   Resolves: tdf#100941 LibreLogo: replace literal '\n' with newline

Change-Id: I34f581278fdae8d41967800d05662e37b731b59d
Reviewed-on: https://gerrit.libreoffice.org/61610
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2018-10-10 14:46:29 +02:00
Muhammet Kara
0d4abd0a5a tdf#99776: Preload a persona category initially
Change-Id: Ib47470fed9251611cce043790cb2c1255495524a
Reviewed-on: https://gerrit.libreoffice.org/61609
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
2018-10-10 14:33:39 +02:00
Stephan Bergmann
0bf6185516 Fix failure of loplugin:useuniqueptr with older compilers
...where CompilerTest_compilerplugins_clang failed in
compilerplugins/clang/test/useuniqueptr.cxx due to Foo24's

  HTMLAttrs::const_iterator it = m_aSetAttrTab.begin();

and either the old compiler lacked Clang's recent
<https://reviews.llvm.org/D50666> "Fix Stmt::ignoreImplicit" (and the above
initialization expression happens to include a CXXBindTemporaryExpr, at least
with libstdc++), or an even older compiler was used in pre-C++17 mode, so the
above initialization expression happens to include an elidable CXXConstructExpr
copy constructor call.

Change-Id: I757a9ad76829e399b4fe2da1c82863909b8c9657
Reviewed-on: https://gerrit.libreoffice.org/61531
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-10-10 13:46:22 +02:00
Caolán McNamara
d4938dfcaf ofz#10879 stay inside sSecStr bounds
Change-Id: I0ca70cdb9b80305c5339668d65d2c4c9977e7160
Reviewed-on: https://gerrit.libreoffice.org/61604
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 13:23:01 +02:00
Luboš Luňák
79449d7390 make VLOOKUP in Calc thread-safe
There is mutex protection needed for accessing the same SvtBroadcaster
when calling StartListeningArea(). Also some of the memory management
and caching needed fixing.

Change-Id: Ia57ed85286cf195521719cfd3b320f73a6342bb1
Reviewed-on: https://gerrit.libreoffice.org/61187
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-10-10 13:01:59 +02:00
Luboš Luňák
b1721b04d8 fix detection of self-references
If the reference points to another sheet, it obviously cannot be
a self-reference.

Change-Id: I3290660e6ed679c84036ab4e65a55bdb369a64e9
Reviewed-on: https://gerrit.libreoffice.org/61188
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-10-10 13:01:05 +02:00
Luboš Luňák
18ff25ff59 ColumnSpanSet variant optimized for just one ScRange
Since ScInterpreter::IterateParameters() iterates over just one range,
there's no point to to set flags for that range and then generically
walk over that range, just directly use the range.

Change-Id: I13003eb09bd98f145e9ead5e485596168d9399cb
Reviewed-on: https://gerrit.libreoffice.org/60866
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-10-10 13:00:37 +02:00
Luboš Luňák
caf0595f05 do not needlessly create ScTokenArray copies in Calc input filters
It doesn't make much sense to keep around one ScTokenArray, pass
it around, use a copy of it and then Clear() the original.

Change-Id: I8636b32dc9b547b4b649c8d811c8425530896100
Reviewed-on: https://gerrit.libreoffice.org/60863
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-10-10 13:00:07 +02:00
Luboš Luňák
16e417b8c2 add ScTokenArray::Finalize() to explicitly reduce memory usage
Since ScTokenArray::Add() overallocates memory, make sure we do not
keep such possibly large arrays. Since any copying of ScTokenArray
implicitly finalizes as well, this is not a big problem right now,
but then why needlessly do the copies? (next commit)

Change-Id: I55398bcd8fb31f1be5a4b8e3f5a71b26649a7594
Reviewed-on: https://gerrit.libreoffice.org/60862
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-10-10 12:59:39 +02:00
Luboš Luňák
7600c63424 avoid usually needless large allocation for formula token array
Change-Id: I855af060e1aeb91bccfc923ca567ad34d64be757
Reviewed-on: https://gerrit.libreoffice.org/60861
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-10-10 12:58:30 +02:00
Gabor Kelemen
b5680189c9 tdf#42949 Fix IWYU warnings in include/jvmaccess/*
Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: I404b1ff3c312e5168a6dfec0133092dda640e155
Reviewed-on: https://gerrit.libreoffice.org/61508
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-10 11:56:20 +02:00
Tor Lillqvist
6b77a740e5 Make LibreOfficeLight build again
(And it actually works now again, as far as I see, after the recent
fix to LibreOfficeKit's iOS code.)

Adapt to earlier changes: The generated files are now in workdir, not
in the ios source directory.

Use org.libreoffice.ios.LibreOfficeLight for the
PRODUCT_BUNDLE_IDENTIFIER instead of janI's own.

(Additionally the DEVELOPMENT_TEAM was reset to the one I use;
apparently there is no way to make sure that developer-specific
setting is in a file not in version control?)

Change-Id: I575561583f584b5ac3c759d115b1c9c6dc97ef94
2018-10-10 12:29:18 +03:00
Damjan Jovanovic
99c59c594f Set up our own libxslt security context in xmlhelp, as per #i117643.
Patch by: me

(cherry picked from commit ae1f34be5c9a49fae1eacdb3c1e5267acea53441)

Change-Id: I0e5277b17243f6b8f5f4303206cf446b10dd0aef
Reviewed-on: https://gerrit.libreoffice.org/61597
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Michael Stahl <Michael.Stahl@cib.de>
2018-10-10 10:30:57 +02:00
Andrea Gelmini
de29c77c0e Removed executable permission on odt file
Change-Id: I142c86e8add935bf8e0cc384921332d4aed3e591
Reviewed-on: https://gerrit.libreoffice.org/61578
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-10-10 10:26:19 +02:00
Caolán McNamara
b0e8d9107f checkbox missing its indicator
Change-Id: I09ec02e8148479edf45fb10d8b9261a435bedc64
Reviewed-on: https://gerrit.libreoffice.org/61600
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-10 09:52:32 +02:00
Miklos Vajna
87e3539d69 pdfium: remove not needed FPDFImageObj_GetBitmapBgra() patch
Last usage was removed in commit
45c753aff6 (svx: pdfium's
FPDFImageObj_GetBitmapBgra() is not needed after all, 2018-09-28).

Change-Id: I2412fa24859ad5bcd3ced634d3c4f41d2f35aebe
Reviewed-on: https://gerrit.libreoffice.org/61599
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-10-10 09:00:29 +02:00
Rizal Muttaqin
425af6845e elementary:^/+ bezier, glue point, star shape, symbol shape, etc
Change-Id: Ie6545844546dc78d14e1fabdf28f4e1938cf2dd7
Reviewed-on: https://gerrit.libreoffice.org/61458
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-10-09 23:29:24 +02:00
Caolán McNamara
359940c4b4 filling the language list just to replace it entirely
Change-Id: I1f79038f2a5cc455a50a532870c4042588c3e446
Reviewed-on: https://gerrit.libreoffice.org/61595
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-09 21:16:43 +02:00
Caolán McNamara
4e819ba343 bruteforce typeahead into combobox menus
Change-Id: I2cf75773f380c3a53d3e091e7e72beb62a4ff119
Reviewed-on: https://gerrit.libreoffice.org/61593
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-09 20:43:48 +02:00
Caolán McNamara
9009881c46 use freeze/thaw
Change-Id: I7ffe52cd96f147956da30d551a30b9170c632383
Reviewed-on: https://gerrit.libreoffice.org/61588
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-09 20:43:32 +02:00
Tor Lillqvist
496f3a23db We want the function pointer here, not call it (yet)
Change-Id: I20c7c1e82b12a2d20baa673e8b7aeb3d0e1fa58c
2018-10-09 21:25:43 +03:00
Muhammet Kara
e59ea346d3 tdf#101629: Handle invalid urls and search strings for Personas
Change-Id: I9666aa9f323e53ef394121acdef146866d2cc696
Reviewed-on: https://gerrit.libreoffice.org/61529
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
2018-10-09 19:41:09 +02:00
Eike Rathke
1b8886ad77 Resolves: tdf#66545 display URL fields non-shaded in Calc
This disables shading of URL and email address fields when
displaying cell content and still preserves shading in the Input
Line and when editing cell content to indicate that it is actually
a field content value.

Change-Id: I8737045168646b6cd446bd357713ec9ac4631b31
Reviewed-on: https://gerrit.libreoffice.org/61594
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2018-10-09 18:37:27 +02:00
Tor Lillqvist
828d91ecde Bin some no longer needed dbgutil code
It was used to initialize a virtual device pixel buffer to an
"interesting" pattern, in case actual rendering to it failed.

Change-Id: Iacdd86382dfa8c9ed1ea9d213fa489515b2b217d
2018-10-09 19:33:13 +03:00
Tor Lillqvist
1ab835e0fa Bin horribly verbose image saving on iOS for debug purposes
Not really that useful any longer.

Change-Id: Idf29b9c3eeafd1b1cc7a2baa87205f7064681a23
2018-10-09 19:33:13 +03:00
Rene Engelhard
0450456ffd make --enable-kde5 imply --enable-qt5
And explicitly fail if --enable-kde5 and --disable-qt5.

Change-Id: Ifa0cef6b065ca0825b1cb42922f6fcf676e457f1
Reviewed-on: https://gerrit.libreoffice.org/61571
Tested-by: Jenkins
Reviewed-by: Rene Engelhard <rene@debian.org>
Tested-by: Rene Engelhard <rene@debian.org>
2018-10-09 18:24:37 +02:00
Caolán McNamara
0cde3c332d tdf#120371 follow GNOME HIG on tab placement on mega tab notebooks
tradionally we do double/triple decker tab dialogs when there are a lot of tabs,
that option isn't available with native gtk3 notebooks.

Instead follow
https://developer.gnome.org/hig-book/unstable/controls-notebooks.html.en#controls-too-many-tabs
and when there are > 6 tabs position them at-left

Change-Id: I8e6ca78abeec3c1fa9f616c21f21fd7367be2ec9
Reviewed-on: https://gerrit.libreoffice.org/61487
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-09 18:18:46 +02:00
Caolán McNamara
5c9fe8c42f use freeze/thaw
Change-Id: Ia5e24c6eab1f33d8a9ef8232095cd95c68386a43
Reviewed-on: https://gerrit.libreoffice.org/61592
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-09 17:57:44 +02:00
Caolán McNamara
13a5f2693f use freeze/thaw
Change-Id: I14f808864ec99258731e12879acffdd130ab0613
Reviewed-on: https://gerrit.libreoffice.org/61586
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-10-09 17:57:15 +02:00