fdo#74787, rhbz#1072553: Fix deselection problems of template view

deselectItems() were added to make recent docs
view work, but it is unneccessary to
affect template view too.

(regression from 0314034d8b23d5b69399cfcdf6b2f2add73f9f47)

Conflicts:
	sfx2/source/control/recentdocsview.cxx

Change-Id: I0c805774321939991e308e9c8c669604e81dbad5
Reviewed-on: https://gerrit.libreoffice.org/8490
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
CVE-2014-0160 heartbeat

Change-Id: I00ee89f69d85010be5d3a537092349fa9eeb71c8
(cherry picked from commit 9af4ecd2b485ae4bba443eb0ec6f958fcc2e3619)
coverity#708388 Uninitialized scalar field

Change-Id: Idaa2ec4863beb6be790022c3c66bc4a72e9bf626
(cherry picked from commit 409ebeb20d1ee4552ac21bd739ae4e25eaeb68d9)
Reviewed-on: https://gerrit.libreoffice.org/8891
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
fdo#77059, hidpi: Increase the threshold of what DPI we consider hi-dpi.

Conflicts:
	vcl/source/window/window.cxx

Change-Id: I79802df4c11b3543140672419d78b697848b7c36
Reviewed-on: https://gerrit.libreoffice.org/8892
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
fdo#75741: Re-implement CompileNameFormula for formula groups.

(cherry picked from commit 355baf573425165cbc1c789a6271eb29940e1f76)
(cherry picked from commit 615f6aa293a6da90da94e6e78828198ffbc0ca5e)

Conflicts:
	sc/inc/document.hxx
	sc/source/core/data/column4.cxx
	sc/source/core/data/document10.cxx
	sc/source/core/data/table7.cxx
	sc/source/ui/docshell/docfunc.cxx
	sc/source/ui/undo/undocell.cxx
	sc/source/ui/unoobj/nameuno.cxx

Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7
Reviewed-on: https://gerrit.libreoffice.org/8889
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
hidpi: Forgotten rounding.

Change-Id: Ie790b40ac86708768f52084538aa08f99df7def6
Reviewed-on: https://gerrit.libreoffice.org/8895
Reviewed-by: Keith Curtis <keithcu@gmail.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
liblo: We need to provide LibreOffice with fake command line args too.

Change-Id: I34f364e63f814921bfe88af7cdf4ff4cdf6745fa
Reviewed-on: https://gerrit.libreoffice.org/8894
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fdo#77140 embeddedobj: avoid unneeded conversion in ConvertBufferToFormat()

The primary reason is not performance: on export currently we loose some
EMF+ properties. While it would be good to fix all those problems one by
one, this is a small fix to avoid all kind of roundtrip problems in this
situation.

Change-Id: If5e1c1eabd8290f36b538e374c9707ae17097786
(cherry picked from commit 2a7fdf2a7bb7345c49c988dfd1fcdb41cebb8a1e)
Reviewed-on: https://gerrit.libreoffice.org/8903
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fdo#77229 EMF+ rendering: improve EmfPlusSetClipPath's CombineModeExclude case

This is still not perfect, but at least we now don't do the opposite of
what was asked.

Change-Id: I5e144c5ec2987902e65b2eb472259d9c39bbbd11
(cherry picked from commit c2af50eb6df396c957890a6b912b8f3185893551)
Reviewed-on: https://gerrit.libreoffice.org/8904
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Resolves: fdo#77174 crash with "New style from selection" with List

was coverity#1130423 Dereference null return value

(cherry picked from commit a434a8bfdd8b9323c8262edcd591641fe9ea8b19)

Change-Id: If6981a9654a114e34dad931381ea071d5169adc2
Reviewed-on: https://gerrit.libreoffice.org/8905
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
fdo#69157 Apply object-in front selection on mouseUp

Before, all selection was recklessly replaced when you clicked something
else than a scaling handle (or the like).
It caused bug 69157.

But now, you can still drag the frame by gripping the interior one.
Btw, that the timer did not correctly start was because of the return
statement in the prior state.

Change-Id: I5e02cfb2d5fe9cdb9fd7f50d0c961dcc418fadd6
Signed-off-by: Lennard Wasserthal <Wasserthal@nefkom.net>
Signed-off-by: Michael Stahl <mstahl@redhat.com>
Resolves: fdo#76930 explictly list common lang-independant template dir

(cherry picked from commit 6f48d0bb2d3f3b4e4d3e46d3a5cdeaa552df1933)

Change-Id: I50d8efe46fc2eb3dfe615ad1f6eb7ee03cdcd29a
Reviewed-on: https://gerrit.libreoffice.org/8909
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
fdo#70666 fix Graphite ligature replacement at line breaks

Change-Id: I5b7c149f7f419ba18bd2cc59f4e77a0b61280caa
fdo#70666 avoid only bad Graphite ligature replacement

Change-Id: Ibd42c70edbd8a5ca5eba34bcb92e801c8dc97ba0
WaE: -Werror=sign-compare

Change-Id: I160a760a13c8e5140d6df295a9dffd05cf5e7b81
fdo#71729: Fill the range edit boxes after the table is fully initialized.

Otherwise the range formula expression would not be available yet.

(cherry picked from commit ffaaf35206b8f049bb9e9ffd7a85c8ebd758a21c)

Conflicts:
	sc/source/ui/namedlg/namedlg.cxx

Change-Id: If9c5040366f9038e8094fd5448ca5e4ee2e73edd
Reviewed-on: https://gerrit.libreoffice.org/8896
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Resolves: fdo#73544 rename acor_ca to acor-ca-ES

some more investigation into why bare language
autocorrect files are accepted needed but this
is a reasonably safe backportable to 4-2 fix

Change-Id: Ia294219e3c9d98710c6727238cedc15b040b408d
(cherry picked from commit d80d7e52d25dde05c834c9e87dd6a253bf6fcfed)
Reviewed-on: https://gerrit.libreoffice.org/8910
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Related: fdo#73544 change double quotation characters

Change-Id: I1603dfad68261c917532f88397305eef57356da6
(cherry picked from commit 20fb1bfc72e626251b435bcff2339e1e425c7130)
Reviewed-on: https://gerrit.libreoffice.org/8911
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
fdo#75376: configure: disable LTO by default for MSVC too

MSVC 2010 LTO triggers some bug in painting Writer documents;
unfortunately it's not possible to put a VCVER check in there to enable
LTO by default only for MSVC2012 because the compiler detection actually
uses the ENABLE_LTO value.

Change-Id: I29ecdd552d8a8bbd673a844e6bf0c938a98825c2
(cherry picked from commit 0d8e3a145901ab0124d40d33a50e2de28dc0c8ab)
Reviewed-on: https://gerrit.libreoffice.org/8918
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
re-enabled user-defined numeric fields for dBase export

Since commit f59e350d1733125055f1144f8b3b1b0a46f6d1ca it was impossible
to define a numeric field with a precision of less than 2 decimals, even
if all values were integers. It was also impossible to define a field
width larger than needed for any values in that column. Furthermore, the
integer part was shortened if the overall column's values resulted in
more precision than defined, but the overall length did not reach the
predefined length.

This does not change the behavior of the original intention of
f59e350d1733125055f1144f8b3b1b0a46f6d1ca to give the precision of number
formats precedence over precision defined in the column header, which is
debatable though because conflicts may silently change the field
definition.

(cherry picked from commit e65141e93a540fc9fb4343ee65a5a7da7e3b1769)

Plus comment translation.

Conflicts:
	sc/source/ui/docshell/docsh8.cxx

Change-Id: I234c4bceaa1a6aadbd259cb8d9b6cb6f16bf91c2
Reviewed-on: https://gerrit.libreoffice.org/8806
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>