resolved fdo#38592 do not insert extraneous parameter in import

Importing already a Calc-only number of parameters do not insert
extraneous parameters.

(cherry picked from commit 4b9304ecdd067307e24e4388fe1addcab9e85bd0)

Change-Id: I011e3df24573fce9f2788c9311089af984650220
Reviewed-on: https://gerrit.libreoffice.org/6764
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Make TTC fonts work again

osl::File::getFileURLFromSystemPath() does not return a boolean. I
wonder how this worked before, if it worked at all.

Change-Id: Iadc0e06236f43c24cbcd42e4fd79ac9116a58c13
Reviewed-on: https://gerrit.libreoffice.org/6769
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Correctly check getFileURLFromSystemPath() success

Change-Id: Iadc34171235fec2d6aafd601f62a0bff8ed5b3ee
Reviewed-on: https://gerrit.libreoffice.org/6770
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fdo#67802: Fix PS printing of non-CTL text with ligatures

The GlyphSet::AddGlyphID() was messing with glyphs of characters that
can be converted to Windows-1252 encoding, discarding whatever glyph it
was asked to use and using a random glyph that is supposed to belong to
the converted character. For ligatures this means the ligature glyphs
was discarded and the glyphs for its component was used, but this broken
for just any glyph substitution.

The code makes no sense at all, apart from the fact that it is verbatim
copy of GlyphSet::AddCharID() since 9754ad8d979557ea03cbfe04708b62b698d1276c
and just happened to work because we did not enable ligatures and other
typographic features for non-CTL text before.

Change-Id: I764f0b40f8acf61eae38a9038b0666d711c04a9d
Reviewed-on: https://gerrit.libreoffice.org/6762
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fdo#67742 Avoid autocorr of "--" before "-"

LibO 4.1 now uses '-' as word separator for AutoCorrection
Then the sequence "---" is detected as word "--" and autocorrect
as "–". This avoids autocorrection of "---", as word or as border
This commit detects the sequence "---" and report autocorrection.
Modified for LibO 4.1 (OUString => String)

Change-Id: I1342c2ff83dd42683e683b3bb27280d61179b9a2
Reviewed-on: https://gerrit.libreoffice.org/6747
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>