bnc#885548: Initial work on importing revisions from xlsx.

Change-Id: Ie0528490d024093cbabf38541fe70be96a9caa2e
(cherry picked from commit b92fdaa1a40bd54d279b4ac2faf19bf15468cc2f)
(cherry picked from commit 6c24bf4cab7e2a9514cf99160a31728835198741)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
bnc#885548: Adjust xlsx export of revisions to get it to work in Excel.

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

Conflicts:
	sc/source/filter/inc/XclExpChangeTrack.hxx
	sc/source/filter/xcl97/XclExpChangeTrack.cxx
	sc/inc/cellvalue.hxx
	sc/source/core/data/cellvalue.cxx

Change-Id: I0058d9ddfea545390e615a3030171a366e333c85
(cherry picked from commit ca20a53315eaea218c693e0de2026eb6f957331f)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Preserve the "end of list" flag for xls round-tripping.

This "end of list" flag determines whether the row insertion was an
automatic insertion at the bottom.  Calc doesn't use this at the moment
but Excel uses it to differentiate a normal row insertion from an
automatic one.

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

Conflicts:
	sc/inc/chgtrack.hxx
	sc/source/filter/xcl97/XclExpChangeTrack.cxx

Change-Id: I6b28669d816c54d1dc1e4c106918ba688415788d
(cherry picked from commit 8fd0951429bfa00a054ebbc195a480f89af9f912)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
bnc#883684: Better fix for this.

Instead of making all chart objects exempt from unloading, check each OLE
object on whether or not it already has its persistent storage created.
If not, don't unload it else it would have nothing to load back from once
unloaded.

(cherry picked from commit a0bd5587a5ac62974bdb10731d3fd21584521a72)

Conflicts:
	svx/source/svdraw/svdetc.cxx
	embeddedobj/source/commonembedding/miscobj.cxx
	embeddedobj/source/commonembedding/persistence.cxx
	include/svx/svdoole2.hxx
	svx/source/svdraw/svdoole2.cxx

Change-Id: I2312e86c9376d3699ef4aa1e0cf2f4c04f706c1e
fdo#81309: Adjust references during sort.

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

Conflicts:
	sc/inc/sortparam.hxx
	sc/source/ui/docshell/dbdocfun.cxx
	sc/source/ui/undo/undodat.cxx
	sc/inc/formulacell.hxx
	sc/qa/unit/filters-test.cxx
	sc/qa/unit/ucalc.cxx
	sc/source/core/data/documen3.cxx
	sc/source/ui/docshell/dbdocfun.cxx

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