#i124191# fix horizontal scroll events on Mac

A problem with horizontal scrolling was reported on Mac. Reviewing the relevant
code identified some problems. The patch to fix them was confirmed to also fix
the reported problem.

Found-by: erben.fr@gmail.com
Tested-by: cemonadresse@orange.fr
Tested-by: TrolliusX@t-online.de
Tested-by: thorsten.wagner.4@gmail.com
Tested-by: jsc@apache.org

Merged from AOO trunk revision 1596491


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1602354 13f79535-47bb-0310-9956-ffa450edef68
#i124191# small cleanup for salframeview.mm

clean up some minor warts while the behaviour remains unchanged.

Merged from AOO trunk revision 1596494


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1602355 13f79535-47bb-0310-9956-ffa450edef68
#i124800# switch avmedia's QuickTime component to QTKit for now

because the QuickTime API is not available to 64bit clients. The switch to QTKit
is temporary only because it has already been deprecated in OSX 10.9. We'll have
to switch to OSX's AVFoundation framework instead soon.

Suggested by: Ariel Constenla-Haile <arielch@apache.org>

Merged from AOO's trunk revisions 1592716 and 1594206


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1602357 13f79535-47bb-0310-9956-ffa450edef68
#i124823# fix the calculation of leading metrics for CoreText

Merged from AOO's trunk revision 1592692


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1602358 13f79535-47bb-0310-9956-ffa450edef68
#i124922# allow late setting of the font color for CoreText-layouted text

Merged from AOO's trunk revision 1595858


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1602365 13f79535-47bb-0310-9956-ffa450edef68
#i124935# fix expanded/condensed text breaking in the CoreText engine

the concept of an extra-width per code-unit was obsolete at least since apps
supported unicode with its different normalization forms, diacritical marks,
surrogate-pairs, non-printing characters such as ZWJ/ZWNJ/RLM, etc. so of
course modern engines like CoreText don't aid this typographical crime. Text
expansion/compression to a specified width percentage of a plain text layout
would be a much better alternative to the per-code-unit expansion which should
be removed if was not backward compatibility of text layouts.

The fix here extends the CTLayout::GetTextBreak() method to handle the obsolete
semantic of per code-unit extra-widths by successively approximating the number
of involved code-units.

Merged from AOO's trunk revision 1596218


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1602369 13f79535-47bb-0310-9956-ffa450edef68
#i125020# fix the repainting problem for update rectangles with CoreText

by doing the calculation before CTLineDraw() updates the text position.
Requesting the update early is possible because that update region is
not used until AquaSalInstance::Yield().

The fix also accounts for worst-case rounding effects when the processing
the repaint rectangles.

Merged from AOO's trunk revisions 1599169, 1599173 and 1599174


git-svn-id: https://svn.apache.org/repos/asf/openoffice/branches/AOO410@1602370 13f79535-47bb-0310-9956-ffa450edef68