Commit Graph

446656 Commits

Author SHA1 Message Date
Muhammet Kara
f99e765cb3 clang-format c*,d*,e* with under 5-percent lines of change
Files which could become clang-format conformant with
under 5-percent lines of change relative to the total
count of lines in the file are found by using bin/find-clang-format.py,
and fixed with /opt/lo/bin/clang-format -i <path-of-the-file>

There will be follow-up patches to fix all 'under-5-percent' files.

Change-Id: I06087a1385ca9da6a28d36ea4c0d2e40bdbf8f03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88774
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-02-16 14:10:11 +01:00
Seth Chaiklin
28b56c52f2 Update git submodules
* Update helpcontent2 from branch 'master'
  to e57ef3624253ee7108914532d5e06d61b42c254c
  - tdf#130619 add help about quickstarter
    
        - made sys-conditional (only for WIN)
    
    Change-Id: I1c19727b98eb07bd3300de51775adf11f1bb7c07
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88704
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-16 14:00:07 +01:00
Olivier Hallot
ebaca9fead Update git submodules
* Update helpcontent2 from branch 'master'
  to 2896f2eba4561b0d9e9c7dfc88cb00e22fb38807
  - Content fixes after translation round
    
    Change-Id: Icdb80c6e659e81492e3b9c43afd0f49cbea0ed86
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88772
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-02-16 11:26:59 +01:00
Stephan Bergmann
d06cce83f3 MAC_OS_X_VERSION_MIN_REQUIRED_DOTS is the same as MACOSX_DEPLOYMENT_TARGET
Change-Id: I3a725e4681c11f503dae57436b05b5a80ff2979c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88764
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-16 11:13:50 +01:00
Muhammet Kara
1ec5204eb5 clang-format chart2 with under 5-percent lines of change
Change-Id: Ia60d23c7a75086c2a68e0e295b99a3df3dfd164f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88771
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-02-16 11:05:14 +01:00
Muhammet Kara
a8487acabd clang-format accessibility & basctl with under 5-percent lines of change
Files which could become clang-format conformant with
under 5-percent lines of change relative to the total
count of lines in the file are found by using bin/find-clang-format.py,
and fixed with /opt/lo/bin/clang-format -i <path-of-the-file>

There will be follow-up patches to fix all 'under-5-percent' files.

Change-Id: Idc890cac4bb6aed4e36c3556a2abc0744fd086df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88770
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
2020-02-16 11:04:43 +01:00
Andrea Gelmini
4c0c333388 Fix typo
Thanks to Valter:
https://listarchives.libreoffice.org/global/l10n/msg12412.html

Change-Id: I2b79bc19de31b014cbf2519ae01e5214252f24a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86505
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-16 10:23:08 +01:00
Seth Chaiklin
c94bb859e7 Update git submodules
* Update helpcontent2 from branch 'master'
  to 247ecc7553759608d08f7fa82db49d972b7cd60d
  - tdf#45589 update "Formatting Aids" and "View" help pages in Options
    
    although these pages are in the "shared" directory, they are only
    shown for Writer.  The other modules have their own pages for "View"
    and no "Formatting Aids"
    
    For "Formatting Aids"
    
      - add new "visible" bookmark function under "Display Formatting"
      - add "Spaces" option under "Insert" in Direct Cursor
      - remove "Fields: Hidden text" and "Fields: Hidden paragraphs"
           and add them to the "View" help page
      - update headers and commands "Display Formatting", "Hidden characters"
      - arrange controls in order that appears on help page
      - arrange "Insert" options in order that appears in dropbox
      - change to <h2> and <h3>
    
    For "View"
      - add "Display fields" heading
      - add "Hidden text" and "Hidden paragraphs" from "Formatting Aids"
      - arrange controls in order that appears on help page
      - change to <h2> and <h3>
    
    
    Change-Id: Idf6c1afff077c5c5b1bc280dea33f0ddb12d281e
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88686
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-16 10:20:53 +01:00
Mohamed Sameh
9414882dc2 tdf#129878: replace error string for number format errors in Calc
Change-Id: I9a7c98b656c1f9270de5b13f7022d5930a665a4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88760
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-02-16 08:41:26 +01:00
rizmut
c3fe53bd45 Colibre: Update print related icons & mail merge toolbar icons
Change-Id: I4f7e058029e53895dce71db829721c9e4cd224d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88769
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-02-16 07:19:11 +01:00
Noel Grandin
37f227344f move some headers inside sfx2/
Change-Id: I806735926661ae4a666725f970ee86f0cb816a49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88562
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-16 07:00:15 +01:00
Stephan Bergmann
15c0f22c31 Do not silently ignore an explicit --enable-sdremote-bluetooth
Change-Id: I362d9402f3123f852a4342ce5f8b604913e11ece
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88762
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-15 19:49:23 +01:00
Mark Hung
5f90c8bc02 tdf#130483 prevent pasting cell exceeds the border.
When pasting a table onto another selected table,
cells are cloned from source to target including their
column span and row span. In the test case the
target table can accomodate the first cell of the
merged cells, while the rest go over the table boundary,
hence causing some exception later.

Change-Id: Iae78a9e1689571d4ea2f1ac4853f68c1f7dccb9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88737
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-15 17:53:02 +01:00
Stephan Bergmann
d0ca3064b0 IOBluetoothAddServiceDict is removed completely from MacOSX10.15.sdk
... (see Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
MacOSX10.15.sdk/System/Library/Frameworks/IOBluetooth.framework/Headers/
IOBluetoothUserLib.h), so e.g. --with-macosx-sdk=10.15
--with-macosx-version-max-allowed=10.13 would have failed with

> In file included from sd/source/ui/remotecontrol/BluetoothServer.mm:1:
> sd/source/ui/remotecontrol/BluetoothServer.cxx:1477:19: error: use of undeclared identifier 'IOBluetoothAddServiceDict'
>     IOReturn rc = IOBluetoothAddServiceDict(reinterpret_cast<CFDictionaryRef>(dict), &serviceRecordRef);
>                   ^

Change-Id: I520976c70ac0146953eb4d074e6e3d37a7cbffa1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88759
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-15 17:26:45 +01:00
Olivier Hallot
54334d00f0 Update git submodules
* Update helpcontent2 from branch 'master'
  to 402cc1434b1a860b68ad8bc8d5d8b2d54b3742c2
  - tdf#130572 - Correct Trace Precedents keyboard shortcut
    
    Change-Id: I6f4ee1c97954a99fd72ad0c14eac72791a8d20f7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88565
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-15 15:56:22 +01:00
Olivier Hallot
69587ff92c Update git submodules
* Update helpcontent2 from branch 'master'
  to eba03835b6353c77d00ffa36f70304d9594ba4e4
  - Fix ref in tree for signature lines
    
    Change-Id: I86f87cad5485c70caa3866ed00af89dd237fa273
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88564
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-15 15:55:57 +01:00
Olivier Hallot
fce86cd1b7 Update git submodules
* Update helpcontent2 from branch 'master'
  to 2ee9059e7249781773056a733e845ca4275aa415
  - Fixes in Help pages after translation cycle.
    
    Change-Id: I6f9e763333b8cf022e95e565d06118a1340fa1fa
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88558
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-15 15:55:28 +01:00
Olivier Hallot
877d52c779 Update git submodules
* Update helpcontent2 from branch 'master'
  to f4347c1bf7eea964b4d8a46b02b4571e137374b1
  - Mute L10N of a NatNum format
    
    Change-Id: I0878582816489cc62ac6cb72a1be015b53de1dc5
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88497
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-02-15 15:55:00 +01:00
rizmut
7415a70e33 tdf#130648:+ icons for new .uno:ProtectBookmarks & .uno:ProtectFields
Change-Id: Ie9bee00bec79f2bc1d85e5e17556676e71842ef7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88757
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-02-15 15:46:45 +01:00
Caolán McNamara
c9f4fd18a4 allow workben tests to use these
Change-Id: I01c69617c828dd50d00af35f38da465d9d4dd261
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88748
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-15 13:44:48 +01:00
Caolán McNamara
027ccdb03b weld NumEditAction Item Window
Change-Id: Idd528666aa2daad336d8cbaab51d073bb982c474
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88722
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-15 13:44:29 +01:00
Caolán McNamara
25507f1dc5 weld NavElementBox_Impl Item Window
Change-Id: I72a7cc6d60cb4149838933c3c57982ebefea458d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88677
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-15 13:43:52 +01:00
Rizal Muttaqin
3b778323cb Karasa Jaga: Update locale direct formatting icons
- Add more complete Bulgarian locale icons

Change-Id: I85a87e78914bec617b9a8484df3b8417236731c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88750
Tested-by: Jenkins
Tested-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-02-15 13:09:34 +01:00
Noel Grandin
aa58c38089 convert XML_STYLE_FAMILY to scoped enum
Change-Id: I5335b0190a2f5a8111993c0c9c224c8a6a8f0cfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88723
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-15 07:02:36 +01:00
andreas kainz
0cb4f304ab chart sidebar chart type alignment update
Change-Id: I22a72ec8354ea3832ab27f362b1487894283305e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88749
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-02-15 00:25:34 +01:00
Andrea Gelmini
f164ceaed1 Fix typo
Change-Id: I314345471928d61b11cc88858f84146534c74d9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88746
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-02-14 23:29:54 +01:00
ayhanyalcinsoy
8705ca0c8a tdf#124443: show arguments' tooltip above if in Formula Bar's Input Line
Change-Id: I33d52af9c2b1ac3f5cfe279ff17d487c70b8cf32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86226
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2020-02-14 22:58:36 +01:00
Caolán McNamara
e917918dfb remove recently unused functions
Change-Id: Ie7645d7f9b8350d3a993c40541747dc8ac817ab9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88730
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 21:44:16 +01:00
andreas kainz
f05aa5bc92 calc alignment sidebar sync width
Change-Id: Ib15b57e03d7a9fc83639b685ee872ee54ba8bb18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88733
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-02-14 21:32:14 +01:00
andreas kainz
dda88aca31 clac cell appearance sidebar alignment update
Change-Id: If9e2069ef514474fa748af9bec185c2437c33035
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88734
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2020-02-14 21:31:43 +01:00
Caolán McNamara
90fbc16b56 remove MetricField use from sw
Change-Id: Ib59efd309521db5dd568ae4f3353034839cb7e1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88729
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 21:25:00 +01:00
Caolán McNamara
14cb677a43 remove MetricField use from cui
Change-Id: I10729db9ae465a714657b58cbfa67bed47a6c7f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88726
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 21:24:14 +01:00
Caolán McNamara
1b2fcca411 rework SwNavigationPI to listen to two properties
SID_DOCFULLNAME as before, and FN_STAT_PAGE to keep track
of the current number of pages to always keep the page spinbutton
up to date instead of waiting until its focusin signal to change it.

a true gtk spinbutton will have its + disabled unless it can be increased
so it will need to have the current max uptodate before focusing in

Change-Id: I29a5d93ae38c6a3d0e74994a466102af234bfd48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88707
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 21:21:47 +01:00
Caolán McNamara
e30caebf76 don't use gtk_window_group_remove_window if widgets are not GtkWindows
Change-Id: I80d01f29091d7cc06e82295e781ef7a53fb7776b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88739
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 20:57:46 +01:00
Caolán McNamara
ce16f1f329 Resolves: tdf#130414 don't crash attempting gtk_fixed_move if parent changed
Change-Id: I5b51f1fb0eccbdb1b3ad14ff7b36077a0016a838
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88738
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 20:57:06 +01:00
Caolán McNamara
85e52d79de drop unneeded include
Change-Id: Iad7851542b9bb68eb0a5672c797a5b8ffb7deea8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88727
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 20:55:12 +01:00
Caolán McNamara
2936c3ce0e use fwd decl of SpinField
Change-Id: Ifea23e791ec53448a8591583f283b87430ef38c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88678
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 20:54:50 +01:00
Stephan Bergmann
bce14e97a6 Prevent -Werror,-Wunknown-warning-option when building compilerplugins
...with --enable-werror (seen it fail with a local build against a locally
built Clang 5.0.2).

(bin/gen-boost-headers faces a similar dilemma with Clang needing to silence
-Wunknown-warning-option and GCC failing upon the silencing incantation.  There,
we were able to hack around that with a preceding

  #pragma GCC diagnostic ignored "-Wpragmas"

Here, the easiest approach appears to be a new COMPILER_PLUGINS_COM_IS_CLANG
analoguous to the existing COM_IS_CLANG.)

Change-Id: I9036261fdd238c8a020a1d88b4e75fd444f9e030
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88725
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-14 19:24:32 +01:00
Armin Le Grand
62ac833399 tdf#130655 callback interface for 3D and secure dash
Added same interface for 3D but just for lines, it uses no
gaps. Added the security mechanism mentioned in the task
in comment (2) to 2D and 3D

Change-Id: I5da303c01562088682d95ee4f294c99e1f17bf6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88728
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2020-02-14 19:19:49 +01:00
Miklos Vajna
fd7749fddc sw: fix handling of table vs fly overlaps in the AddVerticalFlyOffsets case
When a table overlaps with a fly frame, Writer creates a fly portion
inside the relevant cell frame (increasing its height), and Word shifts
the table down. Both are valid approaches, but the rendering result is
different in case the table has a border.

So keep the default unchanged, but in case the AddVerticalFlyOffsets
compat flag (set by the Word importers) is set, avoid the overlap the
Word way.

Note that the table frame uses the full width (available in the body)
even for e.g. 50% width tables, so check for the overlap using the print
area, which does not always overlap.

Finally, don't always require a valid frame area definition from the fly
frame:

- the mentioned i#46807 bugdoc currently doesn't need that check

- the fly frame area definition becomes valid only after already
  positioning the table, leading to an overlap

Keep that check for the non-compat case, though.

Change-Id: I9202050befebf2efdbb5395ded6fcb52b378d8e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88724
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-02-14 18:37:34 +01:00
Noel Grandin
10e08b1d39 convert XMLEventsImportContext to fastparser
for now, it supports both fast and non-fast methods, since it is
constructed by both contexts

Change-Id: I925c50be161b95ecebd951cb7038a938c848a15d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88715
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-02-14 17:53:22 +01:00
Caolán McNamara
2339b36033 Resolves: tdf#130658 there isn't a second column in non-exception mode
Change-Id: I35edf263251c087976aa9a2506bb23c083e1f7c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88718
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 17:50:51 +01:00
Stephan Bergmann
b7fd89100d tdf#122218: Baseline Xcode 9.3 ld presumably doesn't support -platform_version
...according to <https://github.com/llvm/llvm-project/commit/
25ce33a6e4f3b13732c0f851e68390dc2acb9123> "[driver][darwin] Pass
-platform_version flag to the linker instead of the -<platform>_version_min
flag":  "In Xcode 11, ld added a new flag called -platform_version [...] This
patch adopts the new -platform_version flag in Clang, and starts using it by
default, unless a linker version < 520 is passed to the driver."

So detect new HAVE_MACOS_LD_PLATFORMVERSION and adapt
645fe53be0 "tdf#122218: Hack to avoid blurry text
with macOS SDK 10.15" accordingly.

(This also changes the passed -platform_verion sdk value from 0.0 to 0.0.0, for
cosmetic consistency with the default Clang behavior cited above.  Also, after
f67e5ef9a5 "Drop broken filter-out of
-bind_at_load for Executable_soffice_bin on macOS" got included in the meantime,
the surrounding ifeq in desktop/Executable_soffice_bin.mk can be combined now.)

Change-Id: Ie1ddf2d618e2f1232c6b4e17ce17665851f3bd38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88717
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-14 17:29:45 +01:00
Michael Stahl
391613785a sw: fix splitting text frames wrt. footnotes in follow
When the simplified (thanks Vasily) bugdoc is loaded, it has 2 pages and
the last text frame 6 on page 1 has N lines, but after hiding tracked
changes and showing them again, page 1 has N-1 lines, the last line
starting at offset 1064 moved to the follow frame 7 on page 2, and this
is the only difference from the state after loading.

Frame 6 is formatted exactly 3 times; the difference between the 1st and
the 3rd time is that footnote number 8 (footnote frame 34) doesn't exist
yet the 1st time, but is on page 1 at the 3rd time.

This reduces the space available in the body frame from 14040 to 13817,
and SwTextFrameBreak::IsInside() finds there's not enough space for the
last line.

Interestingly the sw_redlinehide didn't change anything here; this
reproduces in the same way back to OOo 3.3.

There's a few obvious ways to try and fix this:

a) The footnotes that are anchored beyond the end of the current text
  frame are moved by RemoveFootnote() called later:

 4 in SwTextFrame::RemoveFootnote() at sw/source/core/text/txtftn.cxx:508
 5 in SwTextIter::TruncLines(bool) at sw/source/core/text/itrtxt.cxx:375
 6 in WidowsAndOrphans::FindBreak(SwTextFrame*, SwTextMargin&, bool) at sw/source/core/text/widorp.cxx:338

  This could be done earlier, in IsInside(), which already tries to do 2
  other things to get more space, so it seems plausible that footnotes
  which are known not to be in the frame (including the line that
  doesn't fit) could be moved off the page.

b) An approach similar to commit e37ffdd118
  "tdf#125685 sw: disregard footnotes in follow table on table split"
  would be to temporarily add the footnotes anchored beyond the current
  frame to the available space, and leave them to actually be moved
  later.

c) When RemoveFootote() is called and it does move a footnote,
  invalidate its anchor text frame so that it gets formatted again.
  This seems to have the highest risk of introducing loops though.

Let's try out a) for now and see how it works.

Change-Id: I54b59637b79d67f5eca61f11bd575145f244381f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88714
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-02-14 17:19:21 +01:00
Armin Le Grand (Collabora)
0dc4fddb9c tdf#130655 added callback interface to ::applyLineDashing
This version of the tooling method allows to avoid collecting line
snippets in a return value PolyPolygon. Instead, offer lambda
functions to get callbacks for created snippets. The original
method using a B2DPolyPolygon return value is adapted to already
use this, so serves as example of usage and ensures that only
one identical algorithm is used.

Change-Id: Ie306968a895ad280fc2425fb40b3244769216ba0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88684
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2020-02-14 16:44:26 +01:00
Muhammet Kara
75500a4161 lok: Center shape on insert also for Desktop view
Change-Id: I85c3fe3d0166eb42f46f2aa65d0319e582b851af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88489
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
2020-02-14 16:12:13 +01:00
Xisco Fauli
2f9b7f4d7d tdf#121963: Add unittest (part 2)
Forgot to add the .cxx file. Thansk to Miklos for noticing

Change-Id: I922680fde98f51f4339fb0e188310b0d7cc635a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88708
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2020-02-14 15:58:00 +01:00
Seth Chaiklin
252e8476bb Update git submodules
* Update helpcontent2 from branch 'master'
  to 0b1d0df74b7b9dc98c18fccd375272f2dbe77256
  - tdf#130620  add help about File associations
    
      - add entry for new "File Associations" button
    
    Change-Id: I598664d50fb9ad75cb3a48c8325c1616df43da75
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88501
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2020-02-14 15:53:03 +01:00
Caolán McNamara
17231d0b94 split StringToMetric and TextToValue into fieldvalue.hxx
Change-Id: I5d1102f7a50a7a246df9f6de8b7a6df6557eb54d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88682
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-02-14 15:36:23 +01:00
Juergen Funk
54acab919e Optionally generate PDBs also for nss
Enables pdb generation for symbol builds, for:
- freebl3.dll
- libeay32.dll
- nspr4.dll
- nss3.dll
- nssckbi.dll
- nssdbm3.dll
- nssutil3.dll
- plc4.dll
- plds4.dll
- smime3.dll
- softokn3.dll
- sqlite3.dll
- ssl3.dll
- ssleay32.dll

Change-Id: I231fdc8e8ade7b7a8b85fc76536291e0546f2eac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88673
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-02-14 15:25:24 +01:00