Commit Graph

446145 Commits

Author SHA1 Message Date
Luboš Luňák
69e0d871ec make update_pch also consider files in <module>/src/**/inc
With --enable-pch=full there's not much difference between a "public"
header in <module>/inc and a private one in <module>/src/somewhere/inc .
And since the script searches recursively, this apparently helps to
find even more headers for lower pch levels.

Change-Id: I8483d0aa5b4fea5a59107c20a8aa5f1ef694af0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87799
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-01 20:12:21 +01:00
Luboš Luňák
961f7e8ec8 move internal inline function from .hxx to .cxx
This normally wouldn't make a difference, but it does when building
with Clang's -fmodules-codegen to collect duplicated templates,
inlines, etc. into extra .o file. The inline calling the template
is emitted in that .o, but the template is defined only in the .cxx
and not referenced from it, so it's never emitted.

Change-Id: I8b49030f2be6146ca1e2cd5e35734c0db6cca394
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87798
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-01 20:12:07 +01:00
Caolán McNamara
0754e581b0 ofz#20456 Null-dereference READ
this is the first honggfuzz (honggfuzz_asan_libreoffice) report I've seen to date

Change-Id: Iac733aa63c7c94d9454b9c8596340dc2286393c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87803
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-01 18:04:35 +01:00
Caolán McNamara
2d2e5d8719 ofz#20422 reversed condition
Change-Id: I5f880e24aee029e3560da986969d46500b5ed044
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87804
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-01 17:20:42 +01:00
Caolán McNamara
6886f2d66c no direct users of slider.hxx outside vcl anymore
Change-Id: I6bf80bb125512a483aba3aed3c5a6a16d14e31d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87755
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-01 16:49:42 +01:00
Caolán McNamara
ad30e7df14 weld MediaPlaybackPanel
Change-Id: I84c9e6f37de3b22b896f8109e49a5a0391630ac2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87754
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-01 16:47:25 +01:00
Caolán McNamara
fec7e3422f ofz#20447 Null-dereference READ
Change-Id: I76c1c815ab5aaf4548c886a69989fcabe3de5248
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87802
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-01 16:26:52 +01:00
Muhammet Kara
08edc74a6b sal_uLong to size_t for sizeof related types
Change-Id: I00055ffd7b79d2e5637b69390ca516f11b0cffd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87801
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-02-01 14:13:49 +01:00
Seth Chaiklin
ce9924bf47 Update git submodules
* Update helpcontent2 from branch 'master'
  to a7c86802627ba84c6990354e020aa34b2738ec57
  - tdf#130064 adjustments in help page about legacy list style positioning
    
      - add "access to"
      - remove "heading" / change position of note
      - add help on "Apply" control
      - add "Load/Save" control
      - corrections in description of controls (see bug report for details)
    
    Change-Id: I8a822c44cfd0e80e5b850378a76f70f1727abe14
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87541
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2020-02-01 12:44:09 +01:00
Seth Chaiklin
2aca1384c8 Update git submodules
* Update helpcontent2 from branch 'master'
  to 2c57fe6cecd214f27806487e863cce14a235773e
  - update access commands in Writer Tools-Update help pages
    
    Change-Id: I3ef58f3c1e608165befaa620271f3238c6991310
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87743
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2020-02-01 12:34:11 +01:00
Seth Chaiklin
c4ad09e5ce Update git submodules
* Update helpcontent2 from branch 'master'
  to 34b4782c437a2831d16c3e9d9f43f14b312d9784
  - updating help page for Edit Fields dialog in Writer
    
     - add labels and explanations for "Select", "Format",
       "Name", "Value", "Invisible" and "Apply"
    
    Change-Id: If9628cefb15d41fa6d1ed9ce42b970dc56324268
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87781
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2020-02-01 12:30:12 +01:00
Seth Chaiklin
83945cfe64 Update git submodules
* Update helpcontent2 from branch 'master'
  to f460f2970c3f11ffc9b7246e0bde1d1f6a10347f
  - make new help page with keyboard shortcuts to embed in help pages
    
          - provides sys-specific variations for
              - (styles window) F11
              - (toggle "show field shading") Ctrl+F8
              - (toggle "show fields") Ctrl+F9
              - (manual page break) Crtl+Enter
              - (paste unformatted text) Ctrl+Alt+Shift+V
    
    Change-Id: Ibee225d7654bf1898af7e6cb3009057a9e334efc
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/87457
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2020-02-01 12:17:59 +01:00
Caolán McNamara
9b43115151 support arbitrary widgets in toolbars via children of GtkToolItem
Change-Id: I6dcc146ba3a55f263f71e29a17b5e75de2bbe130
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87784
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-01 12:12:56 +01:00
Luboš Luňák
fa1b12c4ce remove outdated TODO from skia external
Change-Id: Ibe17072dd0c1f4b7f76d05a2dac0e2cbf1eb151d
2020-02-01 12:02:31 +01:00
Caolán McNamara
fb27784fcb opengl slide transitions not working with glm >= GLM 0.9.9.0
tracked it down to...

Removed default initialization, use GLM_FORCE_CTOR_INIT to restore the old behavior
so adding in GLM_FORCE_CTOR_INIT to get them working again

Change-Id: I1c6e7d8eb748fce40f0c518ff708708e5fb1e3d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87789
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-01 11:06:13 +01:00
Pelin Kuran
9465bc10db tdf#114441: Convert use of sal_uLong to better integer types
Change-Id: I74a81434438c89538ece8438983dd639831ac4b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87584
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-02-01 10:50:18 +01:00
Canberk TURAN
a2c9b44624 tdf#54938: Adapt supportsService implementations to cppu::supportsService
Change-Id: I82fa5528c879f288822fe9795d7d7da19f0abbee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87485
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-02-01 10:20:28 +01:00
Jan Holesovsky
322f31dcf5 android: Set the correct path for the liblangtag data.
Change-Id: I8b8bf76f086812c5f995c6ef513f0b7f773475ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87787
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-01 09:26:59 +01:00
Jan Holesovsky
74e46a9f2e android lok: Correct the hint in the slides from click to double-tap.
Change-Id: I71744dc48f50115c9b4245ac2c81a6431ecbdce6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87678
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins
2020-02-01 09:25:40 +01:00
Noel Grandin
1a12861e01 std::unordered_set<T*> -> o3tl::sorted_vector
which is much better for CPU cache, since the representation is more
compact, and since we almost always do insert() in pointer order,
there is surprisingly little sorting

Also add a count() method for compatibility with std::set and the
proposed std::flat_set

Change-Id: I2a3211dc59919cfec5cac1497530a4c3600d50ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87793
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-01 08:19:54 +01:00
Mike Kaganski
07b84ff631 Skia: fix #define MemoryBarrier coming from winnt.h from pch
... resulting in error message

C:/lo/src/build/workdir/UnpackedTarball/skia/src/gpu/gl/GrGLGpu.cpp(3771):
error C2039: 'f__faststorefence': is not a member of 'GrGLInterface::Functions'

Change-Id: If69c0067abe287dd276c685cde6be3b31a1ce950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87780
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-02-01 07:53:21 +01:00
Noel Grandin
3bcef77383 std:set->o3tl::sorted_vector
which is always a better choice when dealing with pointers, for
2 reasons: way more cache dense, and we very often iterate pointers
roughly in-order, which means very little sorting needs to be done

Change-Id: Ib38f56018b2fc16414c9af910421cc45f069e1f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87782
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-01 07:07:48 +01:00
Jan-Marek Glogowski
c5eb63edde git hooks: update commit-msg to Gerrit 2.16.15
This mainly replaces the whole AWK code with the git helper
"interpret-trailers", which was added in git v2.2 end of 2014.

It also moves the argument checks from the original Gerrit hook
to the front of our tests to verify the script arguments.

Change-Id: I38c831bf7c9d399419a598d6966e48166d31ea6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87369
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-02-01 04:14:09 +01:00
Andrea Gelmini
d8ec41e32e Fix typo
Change-Id: I7341d932b4d88cfd540056ff292b8ad003af6830
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87779
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-01-31 22:39:25 +01:00
Kelemen Gábor
16d4d1b8ec tdf#129240 More date acceptance patterns for Hungarian language
Now cell values matching these patterns are accepted as date:
2019-12-24
2019.12.24
2019.12.24.
2019. 12. 24.
12-24
12.24
12.24.
12. 24.

Change-Id: Ida08deb054fd29aef5d941626c8225732e447662
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85385
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-01-31 19:51:53 +01:00
Noel Grandin
de06f883e2 loplugin:unusedfields improve checking for fields guarded by existence check
which resulted in only a couple of real finds, mostly false+

Change-Id: I26058a29c27bff50e9526bedd54fb04589c2934d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87765
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 19:37:48 +01:00
Noel Grandin
c599e23a92 loplugin:singlevalfields
Change-Id: I77ccf3f36363e182a644b98cdf720f1381a5cceb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87766
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 19:37:29 +01:00
Noel Grandin
c82efb610b clang-tidy modernize-concat-nested-namespace
Change-Id: Iab35a8b85b3ba1df791c774f40b037f9420a071a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86708
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 18:36:09 +01:00
Michael Stahl
04405edc3f tdf#45589 offapi,officecfg,sw: add option to toggle bookmark display
Create specific option to toggle display of the bookmark positions
instead of relying on generic IsViewMetaChars().

Add a Bookmarks checkbox to Writer->Formatting Aids page in Options.

Add property ShowBookmarks to com::sun::text::ViewSettings.

Add config setting:
org/openoffice/Office/Writer/Content/NonprintingCharacter/Bookmarks

Change-Id: I998ecdc16d8e4a5baeeb1bbcff0bf5f1f5636692
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87774
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-01-31 17:23:19 +01:00
Luboš Luňák
0a6ec034dc update Skia to chrome/m81
Change-Id: I62ac293ac5fde3716b2db1421301f3a4aed0bcc9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87763
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-01-31 13:21:30 +01:00
Luboš Luňák
62640556cc fix uninitialized memory in Skia
SkRect is actually a struct without a ctor, so it's not initialized.

Change-Id: Icd8fe46230502a1f7aaf7c766a251b3d27070f66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87764
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-01-31 13:21:14 +01:00
Arnaud Versini
56eb50de01 tdf#83248 Print using the right color for other components too.
PDF and printed documents should be the same.

Change-Id: I34f43688f4ec8945c65a414bc0d955dea45dc9b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87761
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 11:34:10 +01:00
Balazs Varga
dff7a46fb4 tdf#130032 Chart OOXML Import: fix data label custom position
in case of all chart types except pie chart.

Clean up commit 4223ff2be6
(tdf#48436 Chart: add CustomLabelPosition UNO API property).

Note: use the correct default OOXML label placement in case of
radar charts.

Change-Id: I9a8f509304b3c70d879c8c6a95bc91d15ac28521
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87759
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2020-01-31 10:43:22 +01:00
Noel Grandin
84b396a235 new loplugin:namespaceindentation
check indentation of braces in namespace decls,
and the comments that often appear with them.

This is my penance for messing up the indentation with
clang-tidy-modernize-namespaces.

As such I have limited it to new-style namespaces for now,
and the check is off by default.

Change-Id: I4db7f10a81c79bc0eece8f8e3ee564da8bc7f168
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87723
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-31 09:34:46 +01:00
László Németh
c81d766dd4 tdf#130287 disable orphan/widow control in Table Contents
paragraph style to avoid missing text lines later
in vertically merged table cells at page break.

From commit 49f453755b
("tdf#89714 - enable Widow/Orphan in default style"),
Table Contents got unnecessary orphan/window
control. Unfortunately, recent table layout code
cannot ignore these settings completely, causing known
problems, see for example tdf#128959 (FILEOPEN DOCX
Table row content disappears when broken between pages).

Change-Id: Idd570f17b0a11af85072a65f3422535b993db306
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87730
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2020-01-31 07:46:19 +01:00
Jim Raykowski
e8ac78d3af Related tdf#105225 Remove unused backgroundpage.ui
Change-Id: I8ddf92d9b349ed8884c971e08c124dba1efc4142
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85792
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2020-01-31 00:04:02 +01:00
Miklos Vajna
ae5f469d38 DOCX export: write document variables
This means that in case a user field is exported to DOCX and the user
updates the field, the result will be still correct, not empty.

Change-Id: I2b52292c70aa6f597f92af95e16c773839247efa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87748
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-01-30 22:20:43 +01:00
Caolán McNamara
2774079336 cid#1458033 Dereference after null check
pEntry isn't goint to be null, drop the null check

Change-Id: I41447afe17fc69d6ca30387f1b74f23f86f6d109
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87753
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-01-30 21:26:21 +01:00
Noel Grandin
a91855165d loplugin:unusedmethods
Change-Id: Icab9a4789b0bb9187ad5393a2b8578fc4c5e401f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87736
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-30 20:40:08 +01:00
Seth Chaiklin
4aa1d8a2d5 tdf#130219 change labels in Case dropdown box in Font Effects tab
- change "Title" to "Capitalize Every Word"
 - change "Lowercase" to "lowercase"
 - change "Capitals" to "UPPERCASE"

Change-Id: I67145a384b0220924184b8bc279fb702d8c9f379
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87684
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2020-01-30 19:09:58 +01:00
Eike Rathke
f4f30276ea Update ICU RegexMatcher::setTimeLimit() documentation link to new location
Stumbled upon in a side step of grepping for icu4c.

Change-Id: I3f9cda5239e265258c7dc7a6a0689b3bc5f052ac
2020-01-30 17:22:51 +01:00
Xisco Fauli
029d1e9294 tdf#129237: Add unittest
Change-Id: Ica8942e6f165afad1ed40457ec86bd20713a1a59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87744
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-01-30 17:02:48 +01:00
bugrakurt
1a07ce2112 tdf#124176: Use pragma once instead of include guards
Change-Id: Ia353a95df0e78e9da2b6fb95c2bc3a6e83c72fcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87738
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-01-30 16:53:03 +01:00
Noel Grandin
facc94bb0a loplugin:unusedfields
Change-Id: Ifb9c91b3e8d6c2dd3a639a239fa41e7d5c7a4ee6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87735
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-30 16:17:45 +01:00
Jan-Marek Glogowski
b87af97751 tdf#129659 DOCX check global footnote context
Since tdf#121441 we parse custom footnotes to get at least the
DOCX footnote text, even if we can't represent the formating. This
might push additional contexts to the parser stack. Therefore it's
now not sufficient to check the current context for a footnote,
but one has to check the global parser for a footnote context.

The actual bug is the unsupported footnote page break, which was
not correctly ignored and added a paragraph context to the stack,
resulting in the async substream input and output stack size.

Change-Id: I143254e7df37a619cb4efb542b58d3eff3afffa7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87114
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2020-01-30 15:35:03 +01:00
Luboš Luňák
7f56bbe3a0 again finally(?) fix Skia Windows widget drawing (tdf#130051)
I was correct to see in 202146901b that the black bitmap was
in premultiplied alpha, but what I missed what that some controls
keep the alpha set at zero (and only some work properly). So go back
to the algorithm of synthetizing alpha from the red channel, compute
it properly (before it was using alpha channel by mistake), and
treat the data properly as premultiplied.
This hopefully finally makes all Windows control widgets work.

Change-Id: If2716eb8ecf623fcc57ee1db5904edfaee679aa9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87734
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-01-30 15:14:01 +01:00
Michael Stahl
4ce8120f1e tdf#45589 sw: create and paint text portions for bookmarks
Add a new SwBookmarkPortion, derived from SwControlCharPortion.

There is no character for the bookmark in the text so the portion has
length of 0, which makes things quite a bit more tricky.

Formatting:

* SwBookmarkPortion is created last in WhichFirstPortion().

* In an empty paragraph the SwTextFrame::FormatEmpty() must be disabled.

* If there's a bookmark at the end of a paragraph,
  SwTextFormatter::CalcAscent() must use the font of the previous
  character, not the paragraph font, because that could grow the line
  if it's higher.

* The SwMultiPortion complicates matters, because it uses a nested
  SwTextFormatInfo and thus we need some extra steps to prevent
  duplicate SwBookmarkPortions; this is particluarly a problem for
  rotated text portions.
  - SwTextFormatter::BuildPortions() must advance the outer
    SwTextFormatInfo's bookmark position because BuildMultiPortion() has
    already created the SwBookmarkPortion.
  - If a SwBookmarkPortion is at the start of a SwMultiPortion, it will
    be created before the SwMultiPortion but must be painted inside the
    SwMultiPortion because its font is going to be initialised as inside
    the SwMultiPortion (e.g. it will be rotated) so its position must
    also be adapted to be inside, and only
    SwTextPainter::PaintMultiPortion() does the setup for that; add a
    hack to move it in SwTextFormatter::BuildMultiPortion().

Painting:

* Using the original font seems rather difficult, hard to predict what
  some character is going to look like, and how it scales if the size is
  increased; use OpenSymbol instead.  Unfortunately OpenSymbol doesn't
  have a good glyph that could be used for both the end of a bookmark
  and start of another bookmark at the same position.

* SwLinePortion::PrePaint() wants to avoid moving the portion
  half-outside the frame but often it looks better that way (previously
  it was misaligned, now it's half-outside).

* Not sure if it makes sense to draw a field shading in
  SwTextPaintInfo::DrawViewOpt() too; let's try it out, but dependent on
  the same IsViewMetaChars() setting as the bookmark character itself,
  not on the field shading setting.

Change-Id: I1ab94afb417221e278dbb3afd6c978a05fc78497
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87364
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Tested-by: Michael Stahl <michael.stahl@cib.de>
2020-01-30 14:36:32 +01:00
Michael Stahl
8029179e35 sw: fix rotation bugs in SwLinePortion::PrePaint()
The sign was flipped for the 90° case, resulting in painting too far
up the page, ever since this was added in
293ed704cf.

In SwControlCharPortion::Paint() rotation wasn't handled at all.

Change-Id: I83a7eef8b2f6126e070d8c48f75378b6cf6d50e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87707
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-01-30 14:20:45 +01:00
Michael Stahl
ac443862c6 sw: reformat bit of SwLinePortion::PrePaint()
Change-Id: Id088e3f73e6bda3c6b11d421a52c59c67446f8a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87706
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-01-30 14:20:06 +01:00
Michael Stahl
47f9cb2930 sw: these SAL_WARN_IF should be assert()
Change-Id: Ifddea3cd34f419d9b8b87a3f913be590ad4d5ce7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87705
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-01-30 14:19:55 +01:00