n#839727: Chart missing dataset.

This was because there is no explicit category
in the chart - while libreoffice expects it.
n#839727: Crash fix.
oox: fix build

OUString::number() -> OUString::valueOf()
bnc#825891 fdo#69862 SwCrsrShell::ExtendedSelectAll: don't always select footnotes

ExtendedSelectAll() was originally invented to e.g. select the whole
document, change the language of the selection and then inmediately
(before the layout is updated) undo the selection.

When using it for "select all and doc starts with a table" purposes,
then footnotes shouldn't be selected, just like those are not selected
either, when the doc starts with a normal paragraph. Their anchor is
still selected, and that's enough to have correct delete and copy&paste.

Change-Id: I4fc49db628054a4b8a46effc2d0328eaabcaa9f8
(cherry picked from commit 959711f1276106b0aaee69ab660f1b0d3ece5bbc)

Conflicts:
	sw/source/core/crsr/crsrsh.cxx
	sw/source/core/edit/eddel.cxx
bnc#825891 fdo#69979 SwCrsrShell::ExtendedSelectAll: exclude headers, too

It turns out, normal Ctrl-A doesn't select headers, footers and fly
content, either (just like not selecting footnotes). So do the same when
in the "doc starts with table" special mode.

Change-Id: Ib9bc397944a4d07ea03bc326f1536733c57f42e6
(cherry picked from commit 232df42b8dc0b4f7a335d2931fc0f29e73b8bca0)

Conflicts:
	sw/qa/extras/odfimport/odfimport.cxx
	sw/source/core/crsr/crsrsh.cxx
bnc#825891 fdo#69893 fix SwWrtShell::SelAll() to work with empty table at doc start

In theory, it was a problem to have the table cursor around when having
the selection outside the table; but it didn't cause a problem so far.
However, when the table has one or more empty cells, we really need to
leave table mode, otherwise only the table gets selected.

Change-Id: I766903ed624b9338f0612697b4c03f44de1d2e41
(cherry picked from commit d1eb536c7e410d40fd94c76b157bbd4ed7944d4c)

Conflicts:
	sw/qa/extras/uiwriter/uiwriter.cxx
Bump for 4.0-20

Change-Id: I2ced784f302ab7011f496470cfa19e67e6f8ed3e