fdo#77056: Treat empty cells as if they have a value of 0.0.

Change-Id: Ibe64cf7177a5298c1878e0014c049dc9c82b1344
(cherry picked from commit 83a88b942134314e86ac612d0ef70a8e4919e4af)
Reviewed-on: https://gerrit.libreoffice.org/9298
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
n#862510: anchorCtr controls the anchoring as well.

(cherry picked from commit c17eb67460293fbe72ffa8e80cd10743df493afa)
Signed-off-by: Andras Timar <andras.timar@collabora.com>

Conflicts:
	oox/source/drawingml/textbodypropertiescontext.cxx

Change-Id: Ib244d89a9f7d400b3891d477314cd5f0193552e0
fdo#78535: Don't process borders of 0 width.

Or they would get drawn for real.

Change-Id: Iec24e70a80ff8aa1ef7512e71249a99243297c4e
(cherry picked from commit 224b235971a01971de626d38ccc8506d0a55771b)
Reviewed-on: https://gerrit.libreoffice.org/9323
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Resolves: rhbz#1096486 avoid access to nonexisting parent dialog

was Related: rhbz#1047174

(cherry picked from commit 794f5af121906668870a58700aed25b660381240)

Change-Id: I0bf9116d088adde838993ac5e909a6f3481f883e
Reviewed-on: https://gerrit.libreoffice.org/9326
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
OLE: Turn an OSL_ENSURE() into a real condition (related: fdo#65631)

This is part of some STAMPIT workaround; no idea what it is, but for sure it
causes problems with PowerPoint OLE in Writer - so let's avoid updating if it
is not "STAMPIT".

This appears to help for the problem in fdo#65631 comment #9 on master,
let's see if the same is true if it's backported to 4.2...

(cherry picked from commit a94e973bf5b5d0755a53881867961691633a4cbd)
Signed-off-by: Michael Stahl <mstahl@redhat.com>

Change-Id: I266b419ba3461c547f7ee8e447ef64a47a8511e8
fdo#78119 find the longest match for month name

(cherry picked from commit 624e5c34ce815af6f65ce6699ad6b3f2aa1bf0da)

Change-Id: Idad7b083ce5528f5c735f3a8bd091819bf043fc8
Reviewed-on: https://gerrit.libreoffice.org/#/c/9329
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
i#64348 basic: fix CDec() crash if string is empty

Change-Id: I92e9472e14c00a6550081f0d58a352faa5b78b98
Reviewed-on: https://gerrit.libreoffice.org/9336
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
fdo#78159 Restore EXPORT to ODF 1.0 for Math

Partially revert commit aeeaccf59abbc485d7786486f1accc1cb4d4dbf7
It is a quick fix for 4-2 since AutoText "FN" (Formula Numbering) is broken

Change-Id: I22daf58bf31f61a05a981ed1db9a81f2d8dc3859
Reviewed-on: https://gerrit.libreoffice.org/9319
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
fdo#78384: Fix for corruption if file contains symbols.

* In case of symbol, symbol character get imported first and then font of symbols.
* So we are storing symbol character and when we parse symbol font then create UNO object for text.

Reviewed-on: https://gerrit.libreoffice.org/9281
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit f51640c5f40d5132b396a9fb6589420383df1610)
Signed-off-by: Andras Timar <andras.timar@collabora.com>

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
	writerfilter/source/dmapper/DomainMapper_Impl.cxx

Change-Id: If5b79521c6a59aec02b165e8120dafdd472cdaeb
writerfilter: DomainMapper_Impl::SetSymbolData() should take an int

One wonders how did this work so far.

Change-Id: I6aee6a2f7e15c1c4931ca5d65b6ad39d025ff9ed
(cherry picked from commit 671eb12dee290607ed66f3b325f28e7bd4695cba)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
fdo#78313 RTF import: retain font colors

This is a cherry-pick of two master commits:

RTFValue::equals: consider the number of attributes/sprms as well

(cherry picked from commit 4452fa9a2e741834a19c9b322fc8d9c8b06450de)

Related: fdo#77600 RTF import: RTFValue::equals: compare attribute content

Previously only the number of nested sprms / attributes was compared.
With this, the font of the bugdoc is correctly Arial, not Times.

(cherry picked from commit 8e8f9388c323ad3c32cef3f91609ad19386b7d56)

Conflicts:
	writerfilter/source/rtftok/rtfsprm.hxx

Change-Id: I351de414b6734336b31c1334dbd2349072f16002
Reviewed-on: https://gerrit.libreoffice.org/9316
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Related: rhbz#1071604 don't paint anim. effect icon

... unless the slide does have custom animations. This drops dep of Draw
on libanimcore, which is in module impress, so it might not be present.
If it is not present, the Pages panel is not drawn.

Change-Id: I9d7377a4fb3289e230887752bc4a105ca1c9f812
(cherry picked from commit 90af0348216a5a3c2eecd660e012500d2917b279)
Reviewed-on: https://gerrit.libreoffice.org/9300
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fix for doxygen 1.8.7

Earlier versions apparently used HTML as default if no output format was
specified. 1.8.7 no longer does that.

Change-Id: Ia8f908f54b344530e1b50e8800c032f782fb36e9
(cherry picked from commit 2e9a77aa2d8e83f6296cd9204759d18b0ec5f0b5)
Reviewed-on: https://gerrit.libreoffice.org/9362
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Revert "fdo#45260: Objects having line thickness misplaced while pasting."

This reverts commit c35c4769d8cabe0f01ef9911056d7a9d1d2f4b04.
Fixes fdo#78413

Change-Id: If0865cced045410d4e8f9603b55568ade6781b39
(cherry picked from commit de8f5f2af78877bc63b462195ce63341f6ba7817)
Reviewed-on: https://gerrit.libreoffice.org/9297
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fdo#78391: When numbers are auto-fit, reset clipping parameters.

Else it would get processed further to a surprising result.

Change-Id: I3d6f0d680e0c4c3ffe1d28dcbaf51a156f569359
(cherry picked from commit 162029e55af8f681966497ab7f20277888eac478)
Reviewed-on: https://gerrit.libreoffice.org/9335
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
fdo#78159: fix import of OOoXML embedded objects

MimeConfigurationHelper::GetDefaultFilterFromServiceName() checks that
there is both an import and an export filter, and for OOoXML the export
has been removed; tweak the check to require only import for OOoXML.

Currently it still works invoke the OOoXML filter, but it is clearly
better to store the embedded documents only in ODF, so tweak
OCommonEmbeddedObject::store* methods to do that.

(regression from aeeaccf59abbc485d7786486f1accc1cb4d4dbf7)

Change-Id: Ib71f23fd110cbd4b570517f2dde2c53e3aa6301d
(cherry picked from commit 0b3d0fb2d9256dc6bae6af69ed494487004def75)
Reviewed-on: https://gerrit.libreoffice.org/9365
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
fdo#78471: Don't forget to record the ID of the last record for BIFF5.

Shared formula import code depends on this.

Change-Id: Iecb009252c56673df33e0d681de825911154903a
(cherry picked from commit 286760359bae7e21a772dd104ab17a1df69a57b0)
Reviewed-on: https://gerrit.libreoffice.org/9347
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
fdo#78402: Adjust references of validity entries as appropriate.

Change-Id: I7fd62153c7267a3d606b86d74bebecf6b8d75250
(cherry picked from commit a93bb27aa46c84410c8848a6118d5d63d47be92c)
Reviewed-on: https://gerrit.libreoffice.org/9345
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
std::strlen requires cstring include to build

Or, even simpler, don't bother with the needless namespacing.

Change-Id: I4bbb115c1c2c89881a0bf88ccd54b0f5cb8b3518
(cherry picked from commit da9bd301c6f62e829daadb2af6a6b9633d4f1cb9)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
fdo#76710: Adjust sheet position of conditional format entries.

When inserting or deleting sheets.

Change-Id: Ibf898350e22f092ec38b75ad98957832a5580e6a
(cherry picked from commit 146f6e7e68ea56f79b72047b97bd9fba66db499d)
Reviewed-on: https://gerrit.libreoffice.org/9350
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>