EMF+: Stroke size is always supposed to be absolute.

Conflicts:
	cppcanvas/source/mtfrenderer/emfplus.cxx

Change-Id: I7221311e5dee6384dc2d1c071bf6f1c61811895a
fdo#61272: Do the mapping correctly both for WMF and EMF.

Turns out that for the WMF, we already had everything set up correctly, we
were just overwriting the right settings with default data again :-) - fix
that.

Includes the following commits:

* Revert "wmf-mm-text-1.diff: Fix WMF rendering, n#417818"
* Revert "wmf-mm-text.diff: Fix WMF rendering, n#417818"
* fdo#56886 EMF: Fixes some scaling problems of clipped regions, Twips

Change-Id: I14b0c12b10f58eb7031f9da712dee76344c75159
EMF+: Implement line dashing.

Conflicts:
	cppcanvas/source/mtfrenderer/emfplus.cxx

Change-Id: I9eb21c0a8b5baa5b0080845f61b12fc65034d959
EMF+: Parse and render custom line cap data.

Contains the following commits:

* EMF+: Small cleanup & more logging in preparation for line starts & ends.
* EMF+: Parse custom line cap data for start and end line caps.
* EMF+: Render custom line cap data.
* EMF+: Set the stroke attributes on the custom line caps.

Change-Id: If35ef1c44f34f5d5e6c50789c907105d03e96fca
EMF+: Line thickness has to be considered when drawing the caps.

Change-Id: I6043ee3c214f453afaef06125993c73be624c07e
Fix bnc#795857 Use correct sizes for EMF+ bitmap rendering

Fix pdf export wrong size issues for embedded EMF+ images.

(cherry picked from commit 4c676625d4016d428e9becd5512b7cfc8b0c4b24)

Conflicts:
	vcl/inc/vcl/gdimtf.hxx
	vcl/source/gdi/gdimtf.cxx

Signed-off-by: Michael Meeks <michael.meeks@suse.com>

Conflicts:
	vcl/source/gdi/gdimtf.cxx

Change-Id: I998c9535bde32fc9f452d61d7cb7609c95f5528d
EMF+: Do not ignore source rectangle of the image to be rendered.

Conflicts:
	cppcanvas/source/mtfrenderer/emfplus.cxx

Change-Id: I4f861c7653c89d8f1ca73696e885f33f7bfc3b06
EMF+: force canvas if EMF+ comments are used.

Without this the drawinglayer renderer is used, whereas
only the canvas renderer supports EMF+.

Change-Id: Id8a10e400e08c1913e7d6864a51f7b73fc9be437
(cherry picked from commit be7d87bea2611eb316b9b379aebc031179d4f794)
EMF+: Fill line cap object if EmfPlusCustomLineCapDataFillPath is set.

Change-Id: I7b53a8f18e1fb24b1ae0322bdf0980e431a0725f
(cherry picked from commit 131f3230d98f24faf57d9404e333cb1fb183345b)
Resolves: fdo#72961 Crash when you open ODFver.1.0/1.1 created by LibO-3.5/3.6

It seems pAction may be NULL so let's keep on to check it.

Change-Id: Ie1a48c96bfa930364053c7c3ad0c940559544e33
(cherry picked from commit ebe616de53b98e419c39782c6615877a12f0edc7)
EMF+: Integer coordinate values are signed.

Change-Id: I5babcec50d48dc2a6288a01685db61fbb7058680
(cherry picked from commit d8dedc775cedf0e9daf9284bc7e3a0331ccd2963)
EMF+: actually use lineJoin attribute for polygons.

Change-Id: I5b369703333332598353d9817f0253bbe5fc3601
(cherry picked from commit 9b1ceabd5f696500d4fe2acb89170bd987966a9b)
EMF+: mapping can rotate the width vector, so use resulting length.

Otherwise (i.e. with non-vertical lines) the width will be incorrect,
and can result in lines disappearing as the resulting X component
can be tiny/approaching zero.

(cherry picked from commit 83f2b3c590120a60b5e94fb1a15054ebe0745dbb)

Conflicts:
	cppcanvas/source/mtfrenderer/emfplus.cxx

Change-Id: Icf3b7c10c627594600b517b8ff445f8df87c56f8
cairo canvas: Zero font's width means "the same as height".

Change-Id: I1d24b2039fb3c615e672189d12c77e960cc858ee
EMF+: Only draw endcap outline if not filled, fix endcap scaling.

Change-Id: I4520eea08e43ccd657c1db03b258ef84612da971
Reviewed-on: https://gerrit.libreoffice.org/7726
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 8d1ca883b119857daa3b8d0ece9da90917589040)
add parameter to supress dialog

With the new parameter you can now supress the dialog for document
compare in writer.

Change-Id: I984ee75552e5c006332331510df5d437b687903f
fdo#58040: sw: fine tune async word count

- count characters instead of paragraphs to better account for large or
  small paragraphs
- start out with a relatively small value (5k chars) on the first run to
  quickly show something to the user

(cherry picked from commit 91c8008051c0bb7905a6acd822d022e144f2941f)

Conflicts:
	sw/inc/doc.hxx
	sw/source/core/doc/doc.cxx

Change-Id: Ic4013545692f267aab39e084415d5d794bb5a4ca
Reviewed-on: https://gerrit.libreoffice.org/5392
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
fdo#63273 sw: let word count not update stat. fields

Updating fields would generate loads of selection change events and it's
not what we asked for.

Regression from ce14342c4292628a641a72d4f63d9c048e030c6a.

(cherry picked from commit e2484e3998f2c5036fb8e3584d4b1c72db19bfd3)

Change-Id: If237df1f31436357022ca8d77b924681e403abd8
Reviewed-on: https://gerrit.libreoffice.org/4943
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
(cherry picked from commit 699b7626222ea8be1c9713a7f5e274dbfbc029ff)

This also fixes fdo#67223.

Signed-off-by: Michael Stahl <mstahl@redhat.com>

Conflicts:
	sw/inc/doc.hxx
	sw/source/core/doc/doc.cxx
Re-introduce code to try to get GDI metafile replacement image

The code was commented out in 2009 (with any rationale lost from
version history) and then cleaned away in 2011. Re-introduce the bit
that tries FORMAT_GDIMETAFILE.

The other part was commented out in 2009 in CWS metropatch01_DEV300,
with any reasoning behind it lost in history, and then cleaned away in
2010. Re-introduce the bit that tries FORMAT_GDIMETAFILE. Seems to
work for data that produces a reasonably sized metafile.

Also limit the GDI metafile size to 100000 actions. Excel can copy huge
metafiles to the clipboard, with over 3 million of actions, which are
1) unusable, and 2) crash LibreOffice because of their size.

Change-Id: I80a4ed1681c3833ef1a4b595623387e9d136a774
OLE: Turn an OSL_ENSURE() into a real condition.

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".

Change-Id: I266b419ba3461c547f7ee8e447ef64a47a8511e8