LibreOffice.git
6 years agosc lok: Invalidate the new extended areacp-5.0-35
Pranav Kant [Thu, 12 May 2016 11:10:04 +0000 (12 16:40 +0530)]
sc lok: Invalidate the new extended area

Change-Id: I1fa58ca935860ed3c5983f4e6b15c9f7c8feda9b
Reviewed-on: https://gerrit.libreoffice.org/24930
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
6 years agosc: Add new param, DontTerminateEdit, to .uno:Save
Pranav Kant [Wed, 11 May 2016 13:02:52 +0000 (11 18:32 +0530)]
sc: Add new param, DontTerminateEdit, to .uno:Save

... which determines if current editing mode before save should
be terminated with save or not.

Change-Id: I49318013f1244eb8681a19ed3da50fbecd336a3d
(cherry picked from commit a5a71cea62ac3041006c5e9815ae2317999639ac)
Reviewed-on: https://gerrit.libreoffice.org/24895
Reviewed-by: pranavk <pranavk@collabora.com>
Tested-by: pranavk <pranavk@collabora.com>
6 years agoBump version to 5.0-35
Andras Timar [Wed, 11 May 2016 08:36:27 +0000 (11 10:36 +0200)]
Bump version to 5.0-35

Change-Id: I0d56da9b5c6695b79796e5e6764edbead7490d29

6 years agosc lok: Extend the spreadsheet area when we are "close enough" to the end.
Jan Holesovsky [Tue, 10 May 2016 09:49:41 +0000 (10 11:49 +0200)]
sc lok: Extend the spreadsheet area when we are "close enough" to the end.

We can tweak later what the "close enough" means - for the moment it is 10
columns and 25 rows.

Change-Id: I92127a71aa6683c03692e96b9e0da7827942c94b

6 years agosc lok: Move the handling of the area back to GetTiledRenderingArea().
Jan Holesovsky [Tue, 10 May 2016 08:50:13 +0000 (10 10:50 +0200)]
sc lok: Move the handling of the area back to GetTiledRenderingArea().

Change-Id: I4dbfc090ab43065c719f83b5355cd9832ee4d1e3

6 years agosc lok: set a limit for tiled column and row
Henry Castro [Mon, 9 May 2016 01:11:13 +0000 (8 21:11 -0400)]
sc lok: set a limit for tiled column and row

In the tiled rendering case, not all column and row are rendered,
so it was set a limit for tiled column and row.
However, when a client request to move the cursor beyond the limit,
the tiled column and row is updated and they are rendered later.

Change-Id: Id0de533ebf7b3c6e0343f9dc15336150729299fa

6 years agotdf#84323: Make osl::Condition::wait more readable
Stephan Bergmann [Tue, 18 Aug 2015 06:22:16 +0000 (18 08:22 +0200)]
tdf#84323: Make osl::Condition::wait more readable

[Stripped down version of the commit from master.]

Change-Id: Icd66ae1d390100549f903d45b2896cdcdca449be

6 years agoLOK: fire SET_PART event when Calc page is changed
Ashod Nakashian [Tue, 10 May 2016 03:38:59 +0000 (9 23:38 -0400)]
LOK: fire SET_PART event when Calc page is changed

Change-Id: I9a2ed653bcb6afe803b781fc686c02f817d84e75
Reviewed-on: https://gerrit.libreoffice.org/24818
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoLOK: fire SET_PART event when Impress page is changed
Ashod Nakashian [Tue, 10 May 2016 03:23:00 +0000 (9 23:23 -0400)]
LOK: fire SET_PART event when Impress page is changed

Change-Id: Iebddffbdc66397b1f2937ed7320f7800c8bab4cc
Reviewed-on: https://gerrit.libreoffice.org/24817
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoLOK: simplify notification compression to minimize error
Ashod Nakashian [Tue, 10 May 2016 03:21:56 +0000 (9 23:21 -0400)]
LOK: simplify notification compression to minimize error

Change-Id: I4de2d652e08586b38294ebf903fedc9935711a13
Reviewed-on: https://gerrit.libreoffice.org/24816
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoLOK: drop identical invalidation notifications
Ashod Nakashian [Sun, 8 May 2016 16:02:54 +0000 (8 12:02 -0400)]
LOK: drop identical invalidation notifications

And drop duplicate GRAPHIC_SELECTION notifications.

Change-Id: I0c372efa9a58620e24cea219d82479cdc9dff359
Reviewed-on: https://gerrit.libreoffice.org/24771
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years ago-Werror=missing-field-initializers.
Tor Lillqvist [Sun, 8 May 2016 05:25:31 +0000 (8 08:25 +0300)]
-Werror=missing-field-initializers.

Add missing initializer for member
‘comphelper::PropertyInfo::mnMemberId’.

Change-Id: Id8c1adb24c68432ddbf6b491c419f359d228286a

6 years agolok context menu: unit test
Pranav Kant [Fri, 8 Apr 2016 14:38:38 +0000 (8 20:08 +0530)]
lok context menu: unit test

Reviewed-on: https://gerrit.libreoffice.org/23985
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.com>
(cherry picked from commit d76b1b5b06c064938986c0b921b8d537fdf8bf4c)

Change-Id: I244fbf4b98368c7c0d66cdd865e1243639727026
Reviewed-on: https://gerrit.libreoffice.org/24732
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoLOK: process idle events when testing event processing
Ashod Nakashian [Sat, 7 May 2016 20:32:57 +0000 (7 16:32 -0400)]
LOK: process idle events when testing event processing

Change-Id: Id340f69ab6b9d539d92163acc7a1468b98e02779
Reviewed-on: https://gerrit.libreoffice.org/24731
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoLOK: SAL_WARN for each removed event is unnecessary
Ashod Nakashian [Sat, 7 May 2016 20:31:38 +0000 (7 16:31 -0400)]
LOK: SAL_WARN for each removed event is unnecessary

Change-Id: If5e4c7b8751ae4eeb278475fb00118e32c6bb565
Reviewed-on: https://gerrit.libreoffice.org/24730
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoflushTimers() -> Scheduler::ProcessEventsToIdle()
Ashod Nakashian [Sat, 7 May 2016 20:02:27 +0000 (7 16:02 -0400)]
flushTimers() -> Scheduler::ProcessEventsToIdle()

Change-Id: If8f67e61338d78852bc153805ad874095457a365
Reviewed-on: https://gerrit.libreoffice.org/24729
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoCppunitTest_desktop_lib: avoid #include "../..." style include
Miklos Vajna [Thu, 7 Apr 2016 06:43:14 +0000 (7 08:43 +0200)]
CppunitTest_desktop_lib: avoid #include "../..." style include

Change-Id: Ib5ce0dee00c9306f89ad4b43af4b34e604147a1c
(cherry picked from commit 04216006ee038232067bcf74d67b14e8918063f2)
Reviewed-on: https://gerrit.libreoffice.org/24728
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agosw: add AnchorType parameter to .uno:Paste
Miklos Vajna [Thu, 28 Jan 2016 12:31:52 +0000 (28 13:31 +0100)]
sw: add AnchorType parameter to .uno:Paste

Which allows not hardcoding as-char for LOK.

(cherry picked from commit 552361aaad740e55fcfa7993b4111aba354f863f)

Change-Id: I3b2987abbaf1f259c614b7b2a8709f15048d362d
Reviewed-on: https://gerrit.libreoffice.org/24727
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agolok: Extend the StatusModified unit test with Save As.
Jan Holesovsky [Thu, 11 Feb 2016 13:34:07 +0000 (11 14:34 +0100)]
lok: Extend the StatusModified unit test with Save As.

(cherry picked from commit cfa9404319ac5310dc772b3b4a9a3d05721e6940)
(cherry picked from commit c0dfafab6459ef06ada37ea7ed5c7ebd59388057)

Change-Id: Ie9bbce6892fe1dcf55e23028e68037f996d7c71f
ad6bb5ba62d114ca760c4215aa8eec872c5d181b
Reviewed-on: https://gerrit.libreoffice.org/24726
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoCppunitTest_desktop_lib: add ModifiedStatus callback testcase
Miklos Vajna [Tue, 19 Jan 2016 15:30:59 +0000 (19 16:30 +0100)]
CppunitTest_desktop_lib: add ModifiedStatus callback testcase

(cherry picked from commit cdf08b3aa74bb32ea18b583a9c0c41b91d7819ac)

Change-Id: Ieb7e808ebc7619c3a4a013cad776eeefd6163e22
Reviewed-on: https://gerrit.libreoffice.org/24725
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agosc lok: Add initial test for .uno:CellCursor
Andrzej Hunt [Fri, 6 Nov 2015 17:09:34 +0000 (6 18:09 +0100)]
sc lok: Add initial test for .uno:CellCursor

This should be extended with checking that we receive "EMPTY"
when there is no cursor shown - that would require e.g. simulating
keyboard input to hide the cell cursor.

Reviewed-on: https://gerrit.libreoffice.org/19828
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andrzej Hunt <andrzej@ahunt.org>
Tested-by: Andrzej Hunt <andrzej@ahunt.org>
(cherry picked from commit 2f13f051c3c39f77d5f65ff0e3f4a476ccb95f1a)

Change-Id: Ia7be5ec3e158f21967b4c307ac10abb2b5e2a56a
Reviewed-on: https://gerrit.libreoffice.org/24724
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agovcl: fix event processing to idle - for JUnit tests.
Michael Meeks [Thu, 26 Nov 2015 10:42:10 +0000 (26 10:42 +0000)]
vcl: fix event processing to idle - for JUnit tests.

Reviewed-on: https://gerrit.libreoffice.org/20197
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit fbdeef6b7f74a3602792d178b1e750020b2cac89)

Change-Id: Ibeb1f6627815fc34c6e166357c88e076b75f6abb
Reviewed-on: https://gerrit.libreoffice.org/24723
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoLet LIBO_INTERNAL_ONLY imply LOK_USE_UNSTABLE_API
Miklos Vajna [Mon, 7 Dec 2015 08:25:42 +0000 (7 09:25 +0100)]
Let LIBO_INTERNAL_ONLY imply LOK_USE_UNSTABLE_API

(cherry picked from commit 958b9a7fbdd58fdce762021917155c58fbb90d18)

Change-Id: Ifbed5e534ba79d32b7188bb7fb7108338b6e124d
Reviewed-on: https://gerrit.libreoffice.org/24722
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoDon't change part on text documents to paint tiles
Ashod Nakashian [Fri, 6 May 2016 15:01:42 +0000 (6 11:01 -0400)]
Don't change part on text documents to paint tiles

Change-Id: Icb5fb46cbc9d2f72c814cf9f1f166382493d403f
Reviewed-on: https://gerrit.libreoffice.org/24702
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoAllow painting for arbitrary part
Ashod Nakashian [Fri, 6 May 2016 12:16:00 +0000 (6 08:16 -0400)]
Allow painting for arbitrary part

Painting should not cause any state changes, but
to paint a tile on a different part than the current
has to change the document, which sends notifications
to all clients.

A new API, paintPartTile, allows for painting tiles
on any part without sending change of part notifications.

Furthermore, because we block notifications during this
operation, no tile invalidation is issued due to
changing of the part.

One issue remains in the cases when the LO Core
resets the cursor position internally and we resume
editing after painting, the cursor might be at the top
of the page. This needs fixing separately.

Change-Id: If19bd1c90ecad4d5ed5e8d09513741b7994fa6e5
Reviewed-on: https://gerrit.libreoffice.org/24698
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agofilter: svg: avoid undefined variables
Henry Castro [Tue, 3 May 2016 23:21:26 +0000 (3 19:21 -0400)]
filter: svg: avoid undefined variables

Change-Id: Ibc3b678decfb36f5ac5779edb43aef1657507df2
Reviewed-on: https://gerrit.libreoffice.org/24627
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit c950792fd97894ae08304a7ded83b3d405f9a7d0)

6 years agoupdate creditscp-5.0-34
Christian Lohmaier [Tue, 3 May 2016 22:31:52 +0000 (4 00:31 +0200)]
update credits

Change-Id: Icb4a443dba8eb22e49fe622ed5ef7c84fabc901b
(cherry picked from commit fe81d707b5b4e832b249ae879a75f336cd06a81f)

6 years agoBump version to 5.0-34
Andras Timar [Wed, 4 May 2016 12:06:43 +0000 (4 14:06 +0200)]
Bump version to 5.0-34

Change-Id: I3cb58f7bae793dbd30700a31889919695290f3cd

6 years agobump openssl to 1.0.2h
Christian Lohmaier [Tue, 3 May 2016 18:49:06 +0000 (3 20:49 +0200)]
bump openssl to 1.0.2h

Reviewed-on: https://gerrit.libreoffice.org/24617
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit 7ecaf61287606001eac9b3d76df95a0a900e11c0)

Change-Id: I1e7c090ff58dc296641a1ce00a2ca4189e9e4156

6 years agothis unit test fails on MACOSX, reason unknown, disable
Andras Timar [Wed, 4 May 2016 09:56:44 +0000 (4 11:56 +0200)]
this unit test fails on MACOSX, reason unknown, disable

Change-Id: I938c71f1cbbb4d062be8ed423c3386e65d75e7e6

6 years agoBump version to 5.0-33cp-5.0-33
Andras Timar [Tue, 3 May 2016 07:17:02 +0000 (3 09:17 +0200)]
Bump version to 5.0-33

Change-Id: Ibe8b84379f048548def6a700aebd686b8f936bce

6 years agotdf#93868: PPTX import: Incorrect inheritance of shape fill properties
Matus Uzak [Tue, 8 Mar 2016 20:44:21 +0000 (8 21:44 +0100)]
tdf#93868: PPTX import: Incorrect inheritance of shape fill properties

DrawingML: The useBgFill attribute specifies that the shape fill
should be set to that of the slide background.

Reviewed-on: https://gerrit.libreoffice.org/23039
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
(cherry picked from commit f3d1ac75c4b7fa63022e54a9cbff46ba99535076)

Change-Id: I8b568e730f00326d51e7b604579f4ff990b26f8a

6 years agotdf#94760 Better default values for graphics cache
Akshay Deep [Mon, 7 Mar 2016 04:45:54 +0000 (7 08:45 +0400)]
tdf#94760 Better default values for graphics cache

Changed Total Graphic Cache Size to 64 Mb.
Changed Object Cache Size to 12 Mb.

Change-Id: I772b92f9412ccbf40c1df4e4182dcff6d634b7de
Reviewed-on: https://gerrit.libreoffice.org/22967
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit 75c272c146045235783e1dfe26a162a8f4dee493)

6 years agodon't allocate and destroy a LocaleDataItem for each cell, tdf#97989
Markus Mohrhard [Wed, 23 Mar 2016 23:27:51 +0000 (24 00:27 +0100)]
don't allocate and destroy a LocaleDataItem for each cell, tdf#97989

Reviewed-on: https://gerrit.libreoffice.org/23480
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 7da3a53958695bfb1405fa513f71beddc6c0ecb7)

Change-Id: I8bcdc7a42c87d17fde1dc9c79bc361bb625f992b

6 years agodon't sanitize value to an insane value, tdf#97863
Markus Mohrhard [Thu, 24 Mar 2016 11:42:52 +0000 (24 12:42 +0100)]
don't sanitize value to an insane value, tdf#97863

Change-Id: I0e4de6b676fb61536dadefc96a719cf50be128ed
(cherry picked from commit 6aa836329d17bf0aca4aead6bb9c35a6783ec215)

6 years agotdf#99074 DOCX import: handle <w:view w:val="web"/>
Miklos Vajna [Mon, 4 Apr 2016 10:26:11 +0000 (4 12:26 +0200)]
tdf#99074 DOCX import: handle <w:view w:val="web"/>

Instead of always using the Normal view, use the Web view when the DOCX
file contains Web Layout.

For this to work, expose sw's DocumentSettingId::BROWSE_MODE via
css.document.Settings.

Reviewed-on: https://gerrit.libreoffice.org/23806
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit e0f9bb795251d950b5dd960fcd030170c8eb67aa)

Change-Id: I7787ca058d8cb8a346b2001a2bd70c3df86d8673

6 years agowe need the position in the formula converter, tdf#99093
Markus Mohrhard [Thu, 7 Apr 2016 06:20:12 +0000 (7 08:20 +0200)]
we need the position in the formula converter, tdf#99093

Reviewed-on: https://gerrit.libreoffice.org/23884
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit e214df32fb3637bd7810a299fb8b38810b1a3874)

Change-Id: Ic3dd13aa4d4b8190b78f3e6f1cdda844e39cc719

6 years agoimport all formatting properties for column style, tdf#96549
Markus Mohrhard [Sat, 9 Apr 2016 07:36:45 +0000 (9 09:36 +0200)]
import all formatting properties for column style, tdf#96549

Reviewed-on: https://gerrit.libreoffice.org/23932
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit e8322dffb4dfc7015ee0842f133b79080eb2b0d8)

Change-Id: I782f3ea7cfa9af335bd117b9f4ad6ac9c719115b

6 years agotdf#99135 VML import: handle image crop
Miklos Vajna [Tue, 12 Apr 2016 07:18:47 +0000 (12 09:18 +0200)]
tdf#99135 VML import: handle image crop

The spec says in theory a % suffix could be also supported, but let's
wait till that is seen in a real-world document.

Change-Id: Ie026915e38dcb03c99085a1740075364b00e1c8d
(cherry picked from commit bb646c1472d3b77066b01128baf1c9cafdb40233)

6 years agouse the ScRefCellValue already available, tdf#97989
Markus Mohrhard [Fri, 25 Mar 2016 19:26:52 +0000 (25 20:26 +0100)]
use the ScRefCellValue already available, tdf#97989

Change-Id: Iccfff23f72d33ee012f91a230f2598b8fe3131cf
Reviewed-on: https://gerrit.libreoffice.org/23514
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 007b317fef91aa809deff8380a9e62c350eaf511)

6 years agoRelated: tdf#65642 RTF filter: import \pgnucrm
Miklos Vajna [Thu, 14 Apr 2016 06:08:04 +0000 (14 08:08 +0200)]
Related: tdf#65642 RTF filter: import \pgnucrm

This as a side effect also implements support for DOCX <w:pgNumType
w:fmt="upperRoman" .../>.

Reviewed-on: https://gerrit.libreoffice.org/24073
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 235dcc11e7e5291188e134f37a03849d741c4f6e)

Change-Id: Ibf3bedca03c6c2a2b96eecb36ff6c4cf6e2281b4

6 years agoRelated: tdf#65642 RTF filter: import \pgnlcrm
Miklos Vajna [Thu, 21 Apr 2016 06:36:20 +0000 (21 08:36 +0200)]
Related: tdf#65642 RTF filter: import \pgnlcrm

This as a side effect also implements support for DOCX <w:pgNumType
w:fmt="lowerRoman" .../>.

Reviewed-on: https://gerrit.libreoffice.org/24273
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 91b18cee97b110fe60391faa945a6fd166f1d8aa)

Change-Id: Ifb524b25236a8bc774690266a4fa205154204109

6 years agotdf#90097 RTF import: handle fRelFlipV property for line shapes
Miklos Vajna [Tue, 26 Apr 2016 07:33:56 +0000 (26 09:33 +0200)]
tdf#90097 RTF import: handle fRelFlipV property for line shapes

Can be extended later in every direction: fFlipV, fRelFlipH, non-line
shapes.  See oox::drawingml::Shape::createAndInsert() on why the
convertMm100ToTwip() conversion is necessary.

Change-Id: Ifee401dd8dd392c2c9ff85cc871ca0169fcf930b
Reviewed-on: https://gerrit.libreoffice.org/24385
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 6046062719f30849cd97161c6a89d27a0b0d2a20)

6 years agoRelated: tdf#65642 RTF filter: import \pgndec
Miklos Vajna [Sat, 23 Apr 2016 18:34:57 +0000 (23 20:34 +0200)]
Related: tdf#65642 RTF filter: import \pgndec

This as a side effect also implements support for DOCX <w:pgNumType
w:fmt="decimal" .../>.

Reviewed-on: https://gerrit.libreoffice.org/24457
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit b94d753ac9e3894da055d31bbb7bb20e11b97b5a)

Change-Id: I747c3f610dc13f614b6f962c2a498c987765ebb6

6 years agoUpdated core
Christian Lohmaier [Tue, 26 Apr 2016 22:00:26 +0000 (27 00:00 +0200)]
Updated core
Project: translations  c954c6b1bb84863119addd93e31780bfb9fbc8c0

update translations for 5.0.6 rc2

and force-fix errors using pocheck

Change-Id: I02d4482ea918a8986b6e04983a7c7e629145d791

6 years agoupdate credits
Christian Lohmaier [Tue, 26 Apr 2016 23:12:54 +0000 (27 01:12 +0200)]
update credits

Change-Id: I63a025efc0208b93887bc02acb360311b56688e9
(cherry picked from commit 72f89e0f0e2e766eb9739b6833a91139b4ae5e29)
(cherry picked from commit 5e66a347a340a940467ef27fd541125bbf9cbf49)

6 years agotdf#79679 vcl: dashed lines show as solid lines when importing EMF files
Chris Sherlock [Sun, 6 Mar 2016 01:24:09 +0000 (6 12:24 +1100)]
tdf#79679 vcl: dashed lines show as solid lines when importing EMF files

Backported fix to 5.0.

Issue is a regression in commit 09c722873b2d378d2d155f5f1dd7d8f3fb2012e9.
(EMF/WMF: fix rendering of pen styles (dash, dot, dashdot, dashdotdot).

I've looked at how the latest version of Word on the Mac works, and it
turns out that the spacings for the PenStyle enumerations in the LogPen
objects for all the create pen EMF records are as follows:

* PS_DOT           - ■ □ ■ □ ■ □ ■ □ ■ □ ■
* PS_DASHDOT       - ■ ■ ■ □ ■ □ ■ ■ ■ □ ■
* PS_DASHDOTDOT    - ■ ■ ■ □ ■ □ ■ □ ■ ■ ■

(where ■ is the actual filled in area, and □ is the space between the
filled in areas)

In other words, each dash fills in the space of three dots, and there
is the one dot worth of empty space between the dashes and dots. Each
"dot" has a width and height equal to the width specified in the pen.

So basically, we seem to be arbitrarily setting the dot, dash and
distance lengths arbitrarily, which were reasonable guesses but tended
to produce very odd lines at different zoom levels.

Change-Id: Ie8b5fa396e4fb0f480cb3594c8129a59f472c1b8
Reviewed-on: https://gerrit.libreoffice.org/22886
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/22928
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit e21606f3cce557e5eb84b2e7747c173edf526a55)

6 years agotdf#99172 support for vertical align import/export property for text boxes
Vasily Melenchuk [Fri, 8 Apr 2016 17:54:35 +0000 (8 18:54 +0100)]
tdf#99172 support for vertical align import/export property for text boxes

Change-Id: I1cf8d8d57a7245800e2b28b674301ebcb5470348
Reviewed-on: https://gerrit.libreoffice.org/23927
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
(cherry picked from commit bef802a7bf7acb8331a1d776db9bbcc3bf16220b)
Reviewed-on: https://gerrit.libreoffice.org/23935
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit f2528ce7eebfd0b9e873c6350e40f1cb7cb1d0a9)

6 years agotdf#99450/tdf#99462: fix insert twice the same object in Photo album
Julien Nabet [Sat, 23 Apr 2016 22:50:53 +0000 (24 00:50 +0200)]
tdf#99450/tdf#99462: fix insert twice the same object in Photo album

For tdf#99450, see https://bugs.documentfoundation.org/show_bug.cgi?id=99450#c6 for full details

tdf#99462 is also a consequence of this double insert.
See https://bugs.documentfoundation.org/show_bug.cgi?id=99462#c2

Change-Id: I474495457088b93e0e86ea2e504f61c383ba059d
Reviewed-on: https://gerrit.libreoffice.org/24327
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
(cherry picked from commit 618e7622d08b20f6ea5f38144b61a187aced86af)
Reviewed-on: https://gerrit.libreoffice.org/24330
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 2aa8be5936cab3fa2a0d895b414cd0dc9dc3f319)

6 years agotdf#94449: special text attributes are not removed with paragraph style
Oliver Specht [Tue, 29 Mar 2016 08:59:30 +0000 (29 10:59 +0200)]
tdf#94449: special text attributes are not removed with paragraph style

commit 3c0805e1f4f4d14e92c7e655d59c87de5c207e48 introduced removal of
all character attributes applied to the complete paragraph if a paragraph
style was applied. This should not remove special attributes like index
entries, reference marks etc.

Change-Id: I6fe92066269da2cf10c871ca319faf6fda91f4be
Reviewed-on: https://gerrit.libreoffice.org/23591
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Reviewed-on: https://gerrit.libreoffice.org/24367
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit ba86e97a55e2d6f8716681fb626a8dc3d691aa84)

6 years agoResolves: tdf#98366 paste document has 10x10 sized SdPages...
Caolán McNamara [Mon, 11 Apr 2016 12:27:39 +0000 (11 13:27 +0100)]
Resolves: tdf#98366 paste document has 10x10 sized SdPages...

so long lines in them are clipped out in the preview.

Change-Id: I355986ff4a9c9e53f8e8f5d41b63f74c633f41ee
(cherry picked from commit 93efd7ebbad293d3729b8ea4b9726aff498f607f)
Reviewed-on: https://gerrit.libreoffice.org/23994
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 17c61cc64278c006b06f8b152d79073c0ef16993)

6 years agodo not localize Collabora Office URL
Andras Timar [Mon, 2 May 2016 09:14:00 +0000 (2 11:14 +0200)]
do not localize Collabora Office URL

Change-Id: I1eb33d3ce649ff8ca1158e96fe6c6bc1a3ab75ea

6 years agoSome LOK notifications are dropped if they are superseeded by later ones
Ashod Nakashian [Sat, 30 Apr 2016 18:29:37 +0000 (30 14:29 -0400)]
Some LOK notifications are dropped if they are superseeded by later ones

Change-Id: I323e46a2a6c60b200b182b89199945f99a7f384a
Reviewed-on: https://gerrit.libreoffice.org/24567
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agostd::tuple -> std::pair
Ashod Nakashian [Sat, 30 Apr 2016 16:48:52 +0000 (30 12:48 -0400)]
std::tuple -> std::pair

Change-Id: I2f11436a5c9691c2a0aac3655bc2c543d1c3d684
Reviewed-on: https://gerrit.libreoffice.org/24566
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoMore LOK callback notification compression
Ashod Nakashian [Sat, 30 Apr 2016 14:55:23 +0000 (30 10:55 -0400)]
More LOK callback notification compression

SET_PART, CELL_CURSOR, CELL_FORMULA, and CURSOR_VISIBLE are now deduplicated.

Change-Id: I4c17307c6f8b7c68bdfe55b4e90da4d34c55d085
Reviewed-on: https://gerrit.libreoffice.org/24565
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoBump version to 5.0-32cp-5.0-32
Andras Timar [Sun, 24 Apr 2016 20:38:28 +0000 (24 22:38 +0200)]
Bump version to 5.0-32

Change-Id: I52a282a66b4c428032462831348855d1493daf2b

6 years agoDesktop compresses text selection start/end notifications
Ashod Nakashian [Sat, 23 Apr 2016 18:06:22 +0000 (23 14:06 -0400)]
Desktop compresses text selection start/end notifications

Change-Id: Ia85ded04d0eaf9d9b846fab6d86a44a758fccb69
Reviewed-on: https://gerrit.libreoffice.org/24320
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoDesktop compresses mouse pointer notifications
Ashod Nakashian [Sat, 23 Apr 2016 14:23:48 +0000 (23 10:23 -0400)]
Desktop compresses mouse pointer notifications

Change-Id: Id76f4e2952c4c551b626d094c11eb3339d76e50c
Reviewed-on: https://gerrit.libreoffice.org/24319
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agolok: getPartHash should be at the end, it is a new API call.
Jan Holesovsky [Thu, 21 Apr 2016 17:04:58 +0000 (21 19:04 +0200)]
lok: getPartHash should be at the end, it is a new API call.

Also add it to the init.cxx so that it is actually used.

Change-Id: I255411158d0822718116ac05aad1ee925a9a7a9a

6 years agolokit: add getPartHash
Henry Castro [Wed, 20 Apr 2016 17:52:31 +0000 (20 13:52 -0400)]
lokit: add getPartHash

In the tiled rendering case, the slides, no matter
if it is inserted or deleted, the part names always return
sequential names i.e. Slide 1, Slide 2, ..., Slide N.

However the client side needs to know what slides had been
deleted or inserted, so it is necessary to send the hash codes.

Change-Id: I0e9caeec660c3e42dd9f751bdce7690f9ad365a1
Reviewed-on: https://gerrit.libreoffice.org/24267
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
6 years agoTest desktop notification compression
Ashod Nakashian [Sat, 23 Apr 2016 13:21:00 +0000 (23 09:21 -0400)]
Test desktop notification compression

Change-Id: Ibb9a62bb5e1500a068c24346d6d433012a1bc7dd
Reviewed-on: https://gerrit.libreoffice.org/24314
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoFixed desktop unit-tests
Ashod Nakashian [Sat, 23 Apr 2016 12:42:30 +0000 (23 08:42 -0400)]
Fixed desktop unit-tests

Since desktop now queues up callback notifications
and flushes them to the client on idle, the
unit-tests must yield and process all tasks
before they validate post-conditions.

Change-Id: I78307db29a9ce647ffaed3539f953227c605968e
Reviewed-on: https://gerrit.libreoffice.org/24313
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoReverting desktop callbacks back on idle
Ashod Nakashian [Sat, 23 Apr 2016 12:49:49 +0000 (23 08:49 -0400)]
Reverting desktop callbacks back on idle

Change-Id: I7008748ae5877dfe5e6fc2e419b3eb5dd628314a
Reviewed-on: https://gerrit.libreoffice.org/24312
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoTimer based LOKit callbacks and smart status tracking
Ashod Nakashian [Fri, 22 Apr 2016 04:32:31 +0000 (22 00:32 -0400)]
Timer based LOKit callbacks and smart status tracking

The timer-based callback groups notifications together
and minimizes roundtrip overheads with clients.

A new status tracking for select notification types
eliminates duplicates and superfluous messages.

Change-Id: I5d27096d51e71afda22ecd71edf6b5735dee7852
Reviewed-on: https://gerrit.libreoffice.org/24290
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agoBump version to 5.0-31cp-5.0-31
Andras Timar [Thu, 21 Apr 2016 09:02:24 +0000 (21 11:02 +0200)]
Bump version to 5.0-31

Change-Id: I6b417668bd5dc7efd17d40d086bced664b22fea4

6 years agoupdate credits
Christian Lohmaier [Tue, 19 Apr 2016 18:44:04 +0000 (19 20:44 +0200)]
update credits

Change-Id: I52af3ba76cb6dbd8572eb524ce9d0c0bfb2c0596
(cherry picked from commit f4827e1bba5d6951cfc995531342395f8bc9a630)
(cherry picked from commit 575427348a76c3e6a0cc0c351f7dd8eba0db28dc)

6 years agoResolves: tdf#99322 re-establish group area listeners after update reference
Eike Rathke [Mon, 18 Apr 2016 20:03:07 +0000 (18 22:03 +0200)]
Resolves: tdf#99322 re-establish group area listeners after update reference

Change-Id: If2ec5f938c7278ce817de3d89dc84cc0584507ac
(cherry picked from commit 44e2da58226448c5617eac08ca2ae3d9a9ad2afa)
Reviewed-on: https://gerrit.libreoffice.org/24226
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 6c80a566d21ffc0f471f0b282929f964ab10e445)

6 years agoResolves: tdf#96172 crashtesting: avoid crash in layout
Caolán McNamara [Mon, 7 Mar 2016 12:16:28 +0000 (7 12:16 +0000)]
Resolves: tdf#96172 crashtesting: avoid crash in layout

sectfrm is riddled with workarounds for "half dead"
section frames. This is yet another one.

Change-Id: Ic03ad8971002d7dce308475f1497d1dda8045d15
Cherry-picked from 727ebae15e623660b9cc6f8db0e7558830bf920d
Reviewed-on: https://gerrit.libreoffice.org/24155
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 43685487f24bc2a1244922ebc04af467f0eabef6)

6 years agotdf#40863 only use polygons with area for WinClipRegions
Armin Le Grand [Wed, 13 Apr 2016 14:39:42 +0000 (13 16:39 +0200)]
tdf#40863 only use polygons with area for WinClipRegions

Due to a former fix CustomShapes have extra polygons with a single
point in the top-left and bottom-right corner of their BoundRect,
a workaround to allow getting their correct BoundRect in slideshow.
Unfortunately this makes the win command CreatePolyPolygonRgn fail
to create the needed ClipRegions so that the geometry is processed
without clipping. Changed to only use polygons as input that have an
area.

Change-Id: I0eeda5776402777ed00de92f42a55f206575f58b
Reviewed-on: https://gerrit.libreoffice.org/24059
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Reviewed-on: https://gerrit.libreoffice.org/24112
(cherry picked from commit a223d0b5006dade7043444ad7db6663d65366748)

6 years agoResolves: tdf#73973 it's [crk-Latn-CA] and [crk-Cans-CA]
Eike Rathke [Thu, 14 Apr 2016 12:10:42 +0000 (14 14:10 +0200)]
Resolves: tdf#73973 it's [crk-Latn-CA] and [crk-Cans-CA]

(cherry picked from commit a2b289c403b7759032a2a50ae23b27f7bd74409f)

 Conflicts:
i18nlangtag/qa/cppunit/test_languagetag.cxx

Change-Id: I0da8562fc378f873e208919999bfc85f30d26778
Reviewed-on: https://gerrit.libreoffice.org/24083
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 70341edfa41b3d06fef45c5c24cbf5478830894d)

6 years agotdf#99224 PPTX export: implement support for images with text
Miklos Vajna [Tue, 12 Apr 2016 08:30:11 +0000 (12 10:30 +0200)]
tdf#99224 PPTX export: implement support for images with text

In case an image had text, then ShapeExport::WriteGraphicObjectShapePart()
wanted to write "only the text", but PowerPointShapeExport::WriteTextShape()
had no idea how to write an image, so at the end nothing was exported.

(cherry picked from commit fc70e4c4e192372f77511bc6ce2bc77b9c9539be)

Conflicts:
sd/qa/unit/export-tests.cxx

Change-Id: I6c1ad0b41d4c5dc260b952322fb8a59e7f175603
Reviewed-on: https://gerrit.libreoffice.org/24017
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit e8e761ed003f5e509fea8eebd47111b1ed6aa672)

6 years agoupdate emoji autocorrect entries from po-files
Christian Lohmaier [Wed, 13 Apr 2016 11:53:06 +0000 (13 13:53 +0200)]
update emoji autocorrect entries from po-files

Change-Id: Id84fb8cf436d946272d2850bc151529b28c5e920
(cherry picked from commit 7e2814020fc121c189b6b291843b76467d707310)

6 years agoupdate credits
Christian Lohmaier [Tue, 12 Apr 2016 23:49:53 +0000 (13 01:49 +0200)]
update credits

Change-Id: I5525fcf891f5dae6d6972e045f4d3d7c6084b955
(cherry picked from commit 28ac7d0f0cea9067d7faba3b72a164729df26e5d)
(cherry picked from commit 1329065b56ccae004d6d9c158f2b16d89780d3e8)

6 years agotdf#99140 DOCX import: fix table at the bottom of the page to span over ...
Miklos Vajna [Thu, 7 Apr 2016 14:47:23 +0000 (7 16:47 +0200)]
tdf#99140 DOCX import: fix table at the bottom of the page to span over ...

... multiple pages.

In short, one more blacklist entry when conversion should not be
performed.

Conflicts:
sw/qa/extras/ooxmlimport/ooxmlimport.cxx

Also (because otherwise the first commit would introduce a regression):

tdf#99140 DOCX import: fix table horizontal aligment to be 'from left' ...

... when it was 'manual'.

Regression from commit c1e563f6efd09cd3463f1b92a3022ae288c92087
(fdo#76741 [DOCX] Table Alignment and width type, 2014-04-04), DOCX
import code had to deal with two kinds of horizontal alignment when it
came to floating tables: the alignment of the table itself, and the
alignment of the float parameters. The problem is, in general it's
wanted that the table is aligned according to the floating parameters,
but in Writer the "from left" UI setting is described differently for
tables and fly frames: tables use LEFT_AND_WIDTH for that, while fly
frames use NONE.

Fix the problem by touching the default only in case the floating
parameters have something that's different from NONE.

With this, the width of tables is no longer lost when they are described
to be floating ones in the DOCX markup, but FloatingTableConversion()
decides to ignore that.

(cherry picked from commits d56deaeb2a1e8007e50fc2334f416fddd4e3cde3,
c07f04ab422eadba0f2c3c128a0e3ff78e90cdf2, and
fd61dee6457a44687f1142dd55bfee6b64fda2ef)

Change-Id: I764f02cc58ae1b7af802b81e570e4feaf73ee2c1
Reviewed-on: https://gerrit.libreoffice.org/23987
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 52f6fb0f4e91ebcd5115e29d25407eeed82992d5)

6 years agoResolves: tdf#97897 (re)broadcast if formula groups were split
Eike Rathke [Thu, 7 Apr 2016 09:51:51 +0000 (7 10:51 +0100)]
Resolves: tdf#97897 (re)broadcast if formula groups were split

DeleteSelection() and DeleteSelectionTab() remove listeners for split
formula groups, broadcast change after listeners of new groups have been
established.

Change-Id: I017e92b5cbc5f866768f3732e9997028c0c065fa
(cherry picked from commit 94a95dce43e07b40350ed849db148b2946e3fd5e)
Reviewed-on: https://gerrit.libreoffice.org/23895
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 7f4e1a22ed288ff9b257298f36d471b54a20bd72)

6 years ago(re)broadcast if value replaces cell of grouped formulas, tdf#97897 related
Eike Rathke [Wed, 6 Apr 2016 11:43:16 +0000 (6 12:43 +0100)]
(re)broadcast if value replaces cell of grouped formulas, tdf#97897 related

Replacing a grouped formula cell with a different content may lead to
the remaining cells of the group not being recalculated if they listen
to a range that contains the current position. For example

A1: 1
A2: =SUM($A$1:$A1)  => 1
A3: =SUM($A$1:$A2)  => 2

Enter 2 in A2 => A3 should be 3 but is not recalculated.
Loading http://bugs.documentfoundation.org/attachment.cgi?id=122714 of
tdf#97897 exhibits that behavior.

Change-Id: I10b91e77549a7534143be3d6e3cc03026cdaa764
(cherry picked from commit ce28d83912d14bc81c455af64893842de78a8c8d)
Reviewed-on: https://gerrit.libreoffice.org/23856
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 066db95acf6e6259ca954254fff4836a7d9d220c)

6 years ago(re)broadcast, same as in ScDocument::SetString(), tdf#97897 related
Eike Rathke [Wed, 6 Apr 2016 13:38:54 +0000 (6 14:38 +0100)]
(re)broadcast, same as in ScDocument::SetString(), tdf#97897 related

As with ce28d83912d14bc81c455af64893842de78a8c8d

Change-Id: I7cd30509138368d73b43c82d71d520d55417d416
(cherry picked from commit b6ba851c02570c17e0484c94065a2e72c5675e58)
Reviewed-on: https://gerrit.libreoffice.org/23870
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 62258ffd66ecc23de267512fb49369384469630b)

6 years agoResolves: tdf#98990 accept R1C1 notation entire column/row references
Eike Rathke [Tue, 5 Apr 2016 17:03:00 +0000 (5 18:03 +0100)]
Resolves: tdf#98990 accept R1C1 notation entire column/row references

... which consist of only C4 or C[3] without a range operator.

Change-Id: I1865f0ec4c4fec1101b93b6b40d6f26871a65f07
(cherry picked from commit 3c36ba50f65d663f35264f2a11c99c0ff98674a2)
Reviewed-on: https://gerrit.libreoffice.org/23843
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 7ba918f014f177718664cbd379c6386a7a258c59)

6 years agotdf#98771 Update DocumentList.xml and SentenceExceptionList.xml for Croatian
Andras Timar [Thu, 7 Apr 2016 11:54:16 +0000 (7 13:54 +0200)]
tdf#98771 Update DocumentList.xml and SentenceExceptionList.xml for Croatian

Change-Id: Id450285a845c08115cbd66f74f2d4c22f7bede4e
Reviewed-on: https://gerrit.libreoffice.org/23898
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 3030da902bf62d2952c638c7db2cbf83b69214d8)

6 years agotdf#65642 RTF filter: import \pgnrestart and \pgnucltr
Miklos Vajna [Tue, 22 Mar 2016 07:09:01 +0000 (22 08:09 +0100)]
tdf#65642 RTF filter: import \pgnrestart and \pgnucltr

This implicitly adds support for DOCX import of <w:pgNumType
w:fmt="upperLetter"> as well.

(cherry picked from commits abaf6bde4ee91c628bd55a7ec2e876a5d0ecff6e and
d29b75c402ea635b3865501e43c9f349885913af)

Conflicts:
sw/qa/extras/rtfimport/rtfimport.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx

Change-Id: Ib19ecb8f7ca0c867ae3be2b41e49ac4cacfd5bb6
Reviewed-on: https://gerrit.libreoffice.org/23916
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 03b3c54039c7459922919af2c227583769677490)

6 years agoUpdated core
Christian Lohmaier [Wed, 13 Apr 2016 11:55:56 +0000 (13 13:55 +0200)]
Updated core
Project: dictionaries  d8f3f414b94b7dc1e9289d2a462b016c1e416bf9

Branch libreoffice-5-0-6

This is 'libreoffice-5-0-6' - the stable branch for the 5.0.6 release.
Only very safe changes, reviewed by three people are allowed.

If you want to commit more complicated fix for the next 5.0.x release,
please use the 'libreoffice-5-0' branch.

If you want to build something cool, unstable, and risky, use master.

Change-Id: I7ca3b5860c45c4c1fba328d7b45ef9771d6ec919

6 years agoUpdated core
Christian Lohmaier [Wed, 13 Apr 2016 11:14:46 +0000 (13 13:14 +0200)]
Updated core
Project: translations  1b0eee8a87c721f24deb8fb7bb12721b317fd58d

update translations for 5.0.6 rc1

and force-fix errors using pocheck

Change-Id: Id008a6a730afb16bb9dafd099698e1cc1d27eec2

6 years agoDon't share the wakeup pipe with child processes
Tor Lillqvist [Wed, 20 Apr 2016 10:13:16 +0000 (20 13:13 +0300)]
Don't share the wakeup pipe with child processes

Create a new pipe in the child process.

In a normal desktop LibreOffice each fork() will be followed quickly
by an exec(), so the FD_CLOEXEC would be enough for that. In
LibreOfficeKit-based software that uses the preinit mechanism, though,
the intent is that one can fork child processes without exec().

This solution uses pthread_atfork(). Another way would be to add
suitable public API callable from the LibreOfficeKit client
initialisation code in desktop/source/lib/init.cxx to explicitly close
and reopen the wakeup pipe in the default SvpSalInstance.

Change-Id: I03fad4ce4adf14c16cb0f537b3baab58fba38922
Reviewed-on: https://gerrit.libreoffice.org/24256
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
6 years agoNew LOKDocument callback queue to flush certain events lazily on idle
Ashod Nakashian [Wed, 20 Apr 2016 01:26:42 +0000 (19 21:26 -0400)]
New LOKDocument callback queue to flush certain events lazily on idle

Change-Id: I36834d6139b5feb0bab2a40c55b379b6f281d45d
Reviewed-on: https://gerrit.libreoffice.org/24252
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agotdf#97075 - don't render sdr overlays before we paint.
Michael Meeks [Tue, 12 Jan 2016 16:36:49 +0000 (12 16:36 +0000)]
tdf#97075 - don't render sdr overlays before we paint.

Change-Id: I0b22af14c7dd684c25cfee26e8c12b95b40479ee
Reviewed-on: https://gerrit.libreoffice.org/21400
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit 16c7f8916661df24f4681ec82f6bd4d7ad85d141)
Reviewed-on: https://gerrit.libreoffice.org/24251
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
6 years agotdf#99387 - protect LOK document size API from corner-cases.
Michael Meeks [Tue, 19 Apr 2016 08:23:30 +0000 (19 09:23 +0100)]
tdf#99387 - protect LOK document size API from corner-cases.

Change-Id: I5dd1d37ea783a65f0c8f3ad9c3c9cabf72ae036d

6 years agoUnit test hook for online / fonts.
Michael Meeks [Wed, 13 Apr 2016 16:19:57 +0000 (13 17:19 +0100)]
Unit test hook for online / fonts.

Change-Id: I2ae50c826f7fc66367a379447ab3b99cd1f29b4d

6 years agoJava debugging agro.
Michael Meeks [Fri, 1 Apr 2016 14:27:52 +0000 (1 15:27 +0100)]
Java debugging agro.

6 years agoguard boost/property_tree/json_parser.hpp on WNT
Andras Timar [Mon, 11 Apr 2016 06:35:52 +0000 (10 23:35 -0700)]
guard boost/property_tree/json_parser.hpp on WNT

Change-Id: Ib808fff9e2c3ec718a81874e328465379e9b33d8

6 years agoBump version to 5.0-30cp-5.0-30
Andras Timar [Sun, 10 Apr 2016 19:24:41 +0000 (10 21:24 +0200)]
Bump version to 5.0-30

Change-Id: Ie5a64debd6e8aad9073d3399d0e542a368f8b451

6 years agopCont can be null
Caolán McNamara [Sat, 9 Apr 2016 14:35:43 +0000 (9 15:35 +0100)]
pCont can be null

Change-Id: I7af6c5f4a14e330924a1ea12ebb6328884b8a565
(cherry picked from commit 617bbc9da95f7e4b13e3a999fd3085a4fee23ae4)
Reviewed-on: https://gerrit.libreoffice.org/23937
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 23e3075976024da2b94dc432b38568f2cf7c402f)

6 years agoadd a recursion guard to lcl_FindRangeNamesInUse()
Eike Rathke [Wed, 23 Mar 2016 13:26:55 +0000 (23 14:26 +0100)]
add a recursion guard to lcl_FindRangeNamesInUse()

Change-Id: Ifbc02304f5a2e080db2d6645e2c7f825a2c56cb5
Reviewed-on: https://gerrit.libreoffice.org/23473
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit fecbcf523ee1e8a13b18ba1cfde36a2368da6949)

6 years agofoundry may be null
Caolán McNamara [Fri, 8 Apr 2016 08:25:46 +0000 (8 09:25 +0100)]
foundry may be null

Change-Id: I39359389a42e35e0131db1d0451fbd5531843f75
(cherry picked from commit b7bf06d5d6f640df1304b605a2eaa5276f998dcb)
Reviewed-on: https://gerrit.libreoffice.org/23911
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 88bd2f2037870b2c11688b22160d5d1d6df46172)

6 years agotdf#99100 DOC import: handle subset of STYLEREF natively
Miklos Vajna [Wed, 6 Apr 2016 06:34:28 +0000 (6 08:34 +0200)]
tdf#99100 DOC import: handle subset of STYLEREF natively

Commit 4215bca95511af8e4ee96e3c8f521b35f638aef3 (export 'Chapter' field
type as 'StyleRef' into .doc, 2015-08-21) mapped SwChapterField to
STYLEREF in the DOC export. This field type was handled as a field mark
on import. Instead of always handling it as a field mark, recognize the
case when it's the subset we write and we can handle natively, and in
that case create an SwChapterField again on import.

Leave the complex case unchanged as before and keep using field marks
for that.

Also (because the header where STYLEREF is used is completely empty
otherwise):

tdf#99120 DOC import: fix lack of first share after odd section break

Commit 848b1a05c5c41b5e7ff19c984f60c297a8143990 (fix for bnc#659631,
2011-02-04) made wwSectionManager::InsertSegments() use
SwPageDesc::WriteUseOn() directly, instead of going via
SwPageDesc::SetUseOn() that takes care of not throwing away the higher
share bits of the bitfield. This way the "is first shared" flag of the
bitfield got cleared, even when the input document had no title page
declared, so first header/footer must be shared.

Fix the problem by using SetUseOn() in the DOC import as well when it
comes to handling odd/even page section breaks.

(cherry picked from commits d635b351849b8b576c907abf22500d0fa89ab54f and
44a3eb37cd982c59f8350d53db3798b675230b35)

Conflicts:
sw/source/filter/ww8/ww8par5.cxx

Change-Id: Icfa8c4be6538da5e02e2d5071af30a46ccfa712b
Reviewed-on: https://gerrit.libreoffice.org/23889
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit f47143222ab5bacc48bc9a61b9d247e4a062fe9e)

6 years agotdf#98989: vcl: fix handling of non-scalable fonts like "Courier"
Michael Stahl [Tue, 5 Apr 2016 22:20:28 +0000 (6 00:20 +0200)]
tdf#98989: vcl: fix handling of non-scalable fonts like "Courier"

For a VirtualDevice only scalable fonts are cloned, but for non-scalable
bitmap fonts still an empty PhysicalFontFamily with no PhysicalFontFace
is created, which causes text to disappear (height 0).

Suppress creation of such families like it was done in LO 4.3, so that
the fall-back can handle it and map "Courier" to "Courier New".

(regression from 8d6697587776136f3121733e1c29d4200720dbd9)

(cherry picked from commit 2f89245fb7e1c94bed49dde10b08ab1cf41b597b)

Change-Id: I6542a3f7a01bdf46ae2bcf328fa04064f7f86332
Reviewed-on: https://gerrit.libreoffice.org/23851
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 69e5f9528b453da1cdb08109ca5359ac518e1c4e)

6 years agotdf#97601 sw: don't mark an already modified chart as modified
Miklos Vajna [Tue, 8 Mar 2016 08:03:39 +0000 (8 09:03 +0100)]
tdf#97601 sw: don't mark an already modified chart as modified

Regression from commit e2b260fc98e833d4e64426b90992094f2da0498c (sw: let
layout not mark embedded object as modified, 2014-06-03), an infinite
loop was caused by:

1) SwDoc::SetOLEObjModified() triggering the maOLEModifiedIdle Idle
2) which at the end called SwWrtShell::CalcAndSetScale()
3) which at the end called chart::ChartModel::setModified()
4) where chart code called back into SwDoc::SetOLEObjModified() via the
modification listener, and this happened again and again.

The original fix wanted to avoid marking the document as modified
without a user interaction, so fix the bug by only calling setModified()
if it prevents a not-modified -> modified transition. This keeps the
original bug fixed, but prevents the infinite loop, that is always a
modified -> modified transition.

(cherry picked from commit 078c00e3a3c971ac83154948d5f08462532b9dc6)

Conflicts:
sw/qa/extras/uiwriter/uiwriter.cxx

Change-Id: I3b56a91afaacd3e0b7cb646a492fd15f1b5168ee
Reviewed-on: https://gerrit.libreoffice.org/23731
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit 707c8cc24ddb8df805947472f5438f8f9c866d2a)

6 years agocurrentlayout may be null
Caolán McNamara [Mon, 4 Apr 2016 09:36:26 +0000 (4 10:36 +0100)]
currentlayout may be null

Change-Id: I1e53482e722b82f052434f45e37a2fbdb2ea6ffc
(cherry picked from commit a4bc9a43198074b529693f1852093d8d72eaae98)
Reviewed-on: https://gerrit.libreoffice.org/23804
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit 51b4af045d670c67f107922b2137fea49e042606)

6 years agohold bullet para by reference
Caolán McNamara [Mon, 4 Apr 2016 08:34:36 +0000 (4 09:34 +0100)]
hold bullet para by reference

(cherry picked from commit c9a04aed449c3cf992224cfedcee7f330357b01a)

Change-Id: I58025ea906426a7db4079042fa38954f1a3d076b
Reviewed-on: https://gerrit.libreoffice.org/23799
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit c64235f4928754120a6a0817a1368b7abc924f8d)

6 years agoUpdated core
Andras Timar [Mon, 21 Mar 2016 19:21:52 +0000 (21 20:21 +0100)]
Updated core
Project: translations  877afd16029733ee0776eec4546c608a4f4c3ba5

Updated Italian translation

Change-Id: Ia0c6303abe1456a5464466b395a25dee94af7606

6 years agoenable MSP patching
Andras Timar [Tue, 5 Apr 2016 06:33:26 +0000 (4 23:33 -0700)]
enable MSP patching

Change-Id: I6dc6435fa48d8feec261da800a5101c259d70571