df-libreoffice:private/thb/libreoffice-5-2+backports

Last commit made on 2018-09-05
Get this branch:
git clone -b private/thb/libreoffice-5-2+backports https://git.launchpad.net/df-libreoffice
Members of The Document Foundation can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
private/thb/libreoffice-5-2+backports
Repository:
lp:df-libreoffice

Recent commits

a8f1f42... by Armin Le Grand <email address hidden>

Support buffering SystemDependent GraphicData

Note: This is the backport to LO52bp version

This is a first step to allow buffering of system
dependent data, especially (but not only) for the
system-dependent implementations of graphic output.
For example, for B2DPolygon and Win output, it allows
buffering the Gdiplus::GraphicsPath instead of re-
creating it all the time.
To support that, the change includes forwarding the
current transformation to the renderers in SalGraphics.
The current state in VCL is to transform all and
everything to device coordinates at every single
paint.
I have currently started to do this for ::drawPolyLine
implementations. The fallbacks for all systems will
at the start of that method just transform the data
to device coordinates, so all works as before.
This may also be done for FilledPolygon paint in a later
step, but most urgent is FatLine painting.
An arrangement of shared_ptr/weak_ptr is used so that
either the instance buffering (in the example B2DPolygon)
or the instance managing it can delete it. The instance
managing it currently uses a 1s Timer and a cycle-lifetime
management, but that can be extended in the future
to e.g. include size hints, too.
The mechanism it designed to support multiple Data per
buffering element, e.g. for B2DPolygon at the same time
system-dependent instances of Gdiplus and Cairo can be
buffered, but also PDF-data.
This is achieved semi-automatic by using
typeid(class).hash_code() as key for organization.
The mechanism will be used for now at B2DPolygon, but
is not limited to. There is already a similar but less
general buffer (see GdiPlusBuffer) that can and will
be converted to use this new mechanism.

Added vcl/headless Cairo renderer to support given
ObjectToDevice transformation (not to transform given
B2DPolygon)
Added support for CairoPath buffered at B2DPolygon,
seems to work well. Need to do more tests

Moved usage to templates suggested by Noel Grandin
(Noel Grandin <email address hidden>), thanks for
these suggestions. Adapted Win usage to that, too.

Converted Win-specific GdiPlus BitmapBuffer to new
mechanism, works well. Checked, the manager holds
now a mix of bitmap and path data under Win

Added a cleanup mechanism to flush all buffered data
at DeInitVCL() using flushAll() at
SystemDependentDataBuffer

Adapted Linux-versions of ::drawPolyLine to support
PixelSnapHairline, for now in a simplified version
that still allows buffering. This will also be used
(and use buffering) for the Cairo-fallback in
X11SalGraphics

Change-Id: I88d7e438a20b96ddab7707050893bdd590c098c7
Reviewed-on: https://gerrit.libreoffice.org/59555
Tested-by: Armin Le Grand <email address hidden>
Reviewed-by: Armin Le Grand <email address hidden>

38e5947... by Samuel Mehrbrodt <email address hidden>

tdf#109188 Always load documents read-only in SwOneExampleFrame

Should be no problem since 38a3743e0c5d52f9386f74097fd512d3133fbbe3

Reviewed-on: https://gerrit.libreoffice.org/40140
Tested-by: Jenkins <email address hidden>
Reviewed-by: Michael Stahl <email address hidden>
(cherry picked from commit bde72cdae1e7e001d5089c5284672c976b8e43df)

Conflicts:
 sw/source/uibase/utlui/unotools.cxx

Change-Id: I0ce47bc2bdaa900559a16baf25305066977caa6d

c044520... by Ilhan Yesil <email address hidden>

tdf#118994 JAWS has no access to accessibility objects

According to the MSDN, lParam must be cast to DWORD when examining
WM_GETOBJECT messages on 64-bit Windows. The MSDN example also
casts wParam, so in this solution, lParam and wParam are cast to
the appropriate types sal_Int32 and sal_uInt32.

Change-Id: I1edc00778c7da91d2baf5784e4c3f8c441e42eab
Reviewed-on: https://gerrit.libreoffice.org/58312
Tested-by: Jenkins
Reviewed-by: Michael Meeks <email address hidden>
Reviewed-by: Andras Timar <email address hidden>
Tested-by: Andras Timar <email address hidden>
(cherry picked from commit 200fafc341c9ac5cedb0e3e8a38fcc4e88fce77c)
Reviewed-on: https://gerrit.libreoffice.org/59935
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

ab76e2b... by Vasily Melenchuk <email address hidden>

presentation minimizer: report possible errors

In process bunch of different problems can occur, but they are
not reported to user. IO errors are now shown with message dialog,
other exceptions (if any) are passed to upper level.

Reviewed-on: https://gerrit.libreoffice.org/58765
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <email address hidden>

 Conflicts:
 sdext/source/minimizer/informationdialog.cxx
 sdext/source/minimizer/optimizerdialog.cxx

Change-Id: I8ae141cf07d5da4c077be78463068cc9f020eba0
Reviewed-on: https://gerrit.libreoffice.org/59899
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

2255516... by Armin Le Grand <email address hidden>

tdf#115582 Correct coordinate usage for sc's ::Array

In ScOutputData::SetCellRotations() eventually existing
CellRotations are added to the svx::frame::Array data
that gets created for repaint. This used the wrong coordinate
calculation, thus in some cases the repaint of rotated
Cells failed.

Reviewed-on: https://gerrit.libreoffice.org/53171
Tested-by: Jenkins <email address hidden>
Reviewed-by: Armin Le Grand <email address hidden>
(cherry picked from commit 0185e65bcd73dbad2205a39369e1e06b33a2ca51)
Reviewed-on: https://gerrit.libreoffice.org/54922
(cherry picked from commit 08e45e11a0e74cdb4a17ec29df9d03ad03b7f7c0)

 Conflicts:
 sc/source/ui/view/output.cxx

Change-Id: Ib5df8576e8c9404d717d5dcc5662aa04b82cf959
Reviewed-on: https://gerrit.libreoffice.org/59874
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

ff536c6... by Serge Krot <email address hidden>

sw: fix inconsistent bookmark behavior around at-char/as-char anchored frames

Added fix for
 Change-Id: Ic1f173c85d3824afabb5b7ebf3a8594311eb9007
 Reviewed-on: https://gerrit.libreoffice.org/46889
 Reviewed-by: Miklos Vajna <email address hidden>
 Tested-by: Jenkins <email address hidden>

The problem was (the same condition of the bOnlyFrameStarts parameter
was used during output of Start and End bookmarks):
  if (BkmType::Start == pPtr->nBkmType && !bOnlyFrameStarts)
  ...
  if (BkmType::End == pPtr->nBkmType && !bOnlyFrameStarts)
  ...
Should be:
  if (BkmType::Start == pPtr->nBkmType && bOnlyFrameStarts)
  ...
  if (BkmType::End == pPtr->nBkmType && !bOnlyFrameStarts)
  ...

I assume this was a simple copy-paste bug.

Reviewed-on: https://gerrit.libreoffice.org/59556
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <email address hidden>

Conflicts:
 sw/source/core/unocore/unoportenum.cxx

 It looks like you may be committing a cherry-pick.
 If this is not correct, please remove the file
 .git/CHERRY_PICK_HEAD
 and try again.

sw: fix inconsistent bookmark behavior around at-char/as-char anchored frames

Added unit test for Added fix for
   Change-Id: Ic1f173c85d3824afabb5b7ebf3a8594311eb9007

Reviewed-on: https://gerrit.libreoffice.org/59828
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <email address hidden>

 Conflicts:
 sw/qa/extras/uiwriter/uiwriter.cxx

 Changes to be committed:
 new file: sw/qa/extras/uiwriter/data/testInconsistentBookmark.ott
 modified: sw/qa/extras/uiwriter/uiwriter.cxx

38444587d00b96d52ff725dc7c5852e057bc6bd9
Reviewed-on: https://gerrit.libreoffice.org/59854
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

Change-Id: I712a0dccc1638fed3b81c65628033a4dc06c1ca4

92e9103... by Serge Krot <email address hidden>

tdf#101856 Handle properties of nested bookmarks

Change-Id: I1a92d2001e58751c5bbe41f6480f4c46dcc8c9e7
Reviewed-on: https://gerrit.libreoffice.org/59704
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

d6b7418... by Michael Weghorn

tdf119556 Sync "Use only paper size from printer preferences"

Since commit ee6dad51150fd53d19f882edfefa879e18f9897d,
the "Use only paper size from printer settings" is shown
at two places in the print dialog

1) in the "Options" tab
2) in the "Properties" -> "Paper" tab

This makes the setting being correctly updated in the UI in
1) as well if changed in 2).

The other way around was already working previously.

Reviewed-on: https://gerrit.libreoffice.org/59581
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <email address hidden>
(cherry picked from commit 571df3ede6f09c945c4cdfd37f34ef760b6b1af2)

Conflicts:
 vcl/inc/printdlg.hxx
 vcl/uiconfig/ui/printdialog.ui

Change-Id: I41d29a11b4e1695a4b2f676b8d7a9c01e4abde3e
Reviewed-on: https://gerrit.libreoffice.org/59745
Reviewed-by: Thorsten Behrens <email address hidden>
Tested-by: Thorsten Behrens <email address hidden>

5d390a6... by Michael Meeks <email address hidden>

tdf#116489 - fix ucb TaskManager deadlock.

Change-Id: Ia362db52e7b078203964704569e1d54f053f2b57
Reviewed-on: https://gerrit.libreoffice.org/51544
Tested-by: Jenkins <email address hidden>
Reviewed-by: Michael Meeks <email address hidden>
(cherry picked from commit 5b1442ec1e6946ec3a3b9d8cfdd57ac1437d23ab)

84e1fc3... by Thorsten Behrens <email address hidden>

lcms2: avoid updating msbuild files, simply check-in new version

Change-Id: I54c3bf0e35b8969fe8237db64f66c3b8d12741f2