Commit graph

475886 commits

Author SHA1 Message Date
Seth Chaiklin
c7e190f62c Update git submodules
* Update helpcontent2 from branch 'master'
  to 2df65a1ff7072dc0ec866f5dfe11846c15208199
  - tdf#149010,tdf#148941,tdf#149012,tdf#149130 update to reflect changes
    
       New labels were given to some controls on the Options tab for
       Image, Frame, and OLE Object in tdf#149010 and tdf#148941.
       This patch updates the relevant help page (the Options tab)
       in the Properties dialog to reflect those changes.
    
       Because some of the controls in the Options tab also appear
       in the Descriptions dialog, and UI changes were made in that
       dialog (tdf#148941), then the help page for that dialog is
       updated as part of this patch.
    
       Have also updated some access commands to OLE Object, which
       were changed in tdf#149018
    
     swriter/01/05060900.xhp (Options tab)
       * "Names"-> "Accessibility" (tdf#149010)
                and corrections to description
       + added an <embed> from the Description dialog page to provide
         the new control label
             "Alternate (Text Only)" -> "Text Alternative" (tdf#148941)
             and the "Description" control, as well as the  corrections
             to the control descriptions.
       + add "Sequences" section heading, in anticipation of tdf#149010
              (comment 7)
       * corrections made to descriptions of "Previous Link" and "Next Link"
    
     shared/01/05190100.xhp (Description dialog)
       * Corrections made to Description dialog page, and control
         descriptions embedded in the Options tab page. These corrections
         were promised in 61b4b76000bd5adca504df0966ecef3410765ab3.
       * "Title" -> "Text Alternative" (tdf#148941)
              and corrections to description
       + added separate <section>s for "Text Alternative" and "Description"
         so that they can be embedded in Options tab. By keeping them
         separate, it is possible to move their position in the embedded
         file or use separately, if necessary.
       + add <relatedtopics> and link to Options tab, so show an alternative
         way to access the Text Alternative and Description fields.
    
     simpress/guide/table_insert.xhp
       * move two bookmarks out of <ol>, because it disturbed formatting.
       * "Insert - Object" -> "Insert - OLE Object"
       * refactor changed items to <menuitem>
       * refactor to <h1>,<h2>,<note>
    
     shared/01/04150000.xhp (OLE Object menu)
       * "Object" -> "OLE Object"
       * corrections to menu contents
       * rename German id
    
     swriter/00/00000405.xhp  (access for Options)
       + added "right-click" instructions to howtoget
    
     shared/00/00040502.xhp  (access for Description)
       + added menu instructions for howtoget
       * make corrections in what objects can be accessed by context menu
    
     shared/00/00000404.xhp
       * "Object" -> "OLE Object" for menu access
       * "Formula" -> "Formula Object" for menu access
       * "Insert - Object - Chart" -> "Insert - Chart" for menu access
       * refactor changed items to <menuitem>
       * rename German id
    
    Change-Id: I1ddeb8d532b81f22eba2b1e480759775ff96969f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/134191
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-05-29 09:22:38 +02:00
Jan-Marek Glogowski
6959a18d1a tdf#144601 Qt fix creating QImage with alpha mask
Rechecking the QImage documentation, this actually can be easily
done; no more bit twiddling, which I got wrong to begin with.

LO's alpha mask is inverted to Qt's expectations, but we have
invertPixels() and then apply it with setAlphaChannel(). And we
can even set the fAlpha using setOpacity()!

Change-Id: If2030d3f87d3a4698d1cd9af005d307c2ee63061
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135044
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Tested-by: Jenkins
2022-05-29 00:16:21 +02:00
Caolán McNamara
8c4ca609c5 ofz#47673 skip oversized tiff images
Change-Id: I78727819b7c440855f89240f396dad845a295d61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135041
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-28 21:01:00 +02:00
Noel Grandin
9ae3863f2a add ClearItem to the SfxItemSet iterators
to speed up operations when iterating over SfxItemSets

Change-Id: Ie40327ffaf7faa801ccc12d2b05c546a7fe49802
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135079
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-28 20:50:40 +02:00
Noel Grandin
8f3e12b7a9 split SfxItem::ClearItem into two methods
in preparation for passing a hint into it

Change-Id: Id9e5516619a314406d8250bb2145996593dafbaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135078
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-28 20:50:25 +02:00
Noel Grandin
1cfa3f8694 simplify SfxItemSet::Differentiate and SfxItemSet::Intersect
using SfxWhichIter instead of SfxItemIter

Change-Id: I046ae2cec9246b1dea9c484f94b88d64825f952c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135077
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-28 19:31:20 +02:00
Jan-Marek Glogowski
caf862fc84 tdf#149329 Qt change cursor via QWidget
... instead of its QWindow

No idea, why my initial implementation used the QWindow. Neither
do I know, why it's now somehow broken. The code is called, but
the cursor doesn't change. But it seems to work via QWidget, so
just do that. IMHO less QWindow is preferable generally; let Qt
handle more of the low-level stuff.

Change-Id: Id23fba719c9a4d7e760991c51e6021c6f89be345
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135051
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Tested-by: Jenkins
2022-05-28 18:41:21 +02:00
Noel Grandin
51f46ddacc add GetItemState to SfxItemIter, the same way I did to SfxWhichIter
to speed up GetItemState while iterating

Change-Id: Ibe092e7581a5be0160eed52472122afe7e0ef377
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135076
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-28 17:37:07 +02:00
Noel Grandin
bcd27039ee use the new SfxWhichIter::GetItemState feature
to speed up other places that are iterating over
SfxItemSets

Change-Id: I646bae12420d15e67effdd279e071cdf8a8afffd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135075
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-28 17:36:49 +02:00
Michael Stahl
9896f330cd tdf#145178 xmloff: ODF import: fix another bad attribute
...in XMLSectionFootnoteConfigImport.

(regression from commit 9814c1f2ed)

Change-Id: I79ab3b74853bd3ec9058fea72c341768e916bbd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135048
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-05-28 16:47:09 +02:00
Michael Weghorn
217ca9c79d tdf#149255 qt: Implement deletion/"swallowing" for IM replacement
This implements deletion of the text specified by the
`replacementStart()` and `replacementLength()` of the
`QInputMethodEvent*` received in `QtWidget::inputMethodEvent`.

Quoting from the `QInputMethodEvent` doc [1]:

> When receiving an input method event, the text widget has to performs
> the following steps:
>
> 1. If the widget has selected text, the selected text should
>    get removed.
> 2. Remove the text starting at replacementStart() with length
>    replacementLength() and replace it by the commitString().
> [...]

This implementation is sufficient for the scenario described in tdf#149255,
but I didn't test any more complex scenarios, like one where text is selected.
(My current knowledge of input methods is too limited to be able to do
more extensive testing without first spending time to get deeper into
the topic.)

The gtk3 implementation in
`GtkSalFrame::IMHandler::signalIMDeleteSurrounding`
was very helpful to get an impression of what needs to be done.

Since the documentation for `QInputMethodEvent::replacementLength()`
talks about "number of characters", I suspect that conversion
to UTF-16 code units is needed just the same way as it is for the
gtk3 case and this therefore calls
`SalFrame::CalcDeleteSurroundingSelection` the same way.
However, this part is untested, since it is not relevant
for the tested scenario (where each of the characters is represented
in a single UTF-16 code unit).

[1] https://doc.qt.io/qt-5/qinputmethodevent.html

Change-Id: I2a34e58067e253c39dbd87905943134bdfa4ea27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134855
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-05-28 16:09:00 +02:00
Michael Weghorn
54f6599a4d Move GtkSalFrame::CalcDeleteSurroundingSelection to SalFrame
It will be used for qt5/qt6 in a follow-up commit
as well.

Change-Id: Ic6a9351b0506519010b92e11d30962d5b105ec2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135052
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-05-28 16:08:45 +02:00
Noel Grandin
87a932120d ofz#24932-1 speed up GetItemState when iterating
by having SfxWhichIter track the current position in
the m_ppItems table, which means GetItemState does
not need to traverse the ranges table to find the
item position.

shaves 75% off the time of
./instdir/program/soffice.bin --calc --convert-to pdf
    ~/Downloads/ofz24932-1.rtf

Change-Id: Ib5fe61c75ca05bc2f1932e84b57ccfa55f8b7f74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135023
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-28 16:00:09 +02:00
Jan-Marek Glogowski
9ea767cb56 tdf#132350 Qt implement SalMenu button interface
This turned out much more complicated then expected:

1. The QMenuBar needs explicit adjustSize() calls to position a
   changed corner widget (or a resize...).
2. The adjustSize() results in a temporary, minimal QMenuBar
   layout, so GetMenuBarButtonRectPixel needs to account for the
   extra space itself, instead of just a mapTo call.
3. I didn't know, that you can't add shown widgets to a layout,
   but must call show() after add / insert, otherwise they are
   ignored in the layout (but show up as the layout items) and
   are painted in strange positions.

This also includes the transparency flags for our QtWidget, so the
updater "bubble window" is properly alpha-masked / shaped.

And this maybe has too many asserts...

Change-Id: I86a708175e9f9be786f5dc1810ae0197a0d3fc39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135021
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2022-05-28 15:37:31 +02:00
Michael Weghorn
553750d576 android: Update Android Gradle Plugin to 7.2.1
Release notes [1]:

> 7.2.1 (May 2022)
>
>     This minor update corresponds to the release of Android Studio
>     Chipmunk Patch 1 and includes the following bug fixes:
>
>     bundletool does not package baseline profiles correctly [2]
>
>     To see the other bug fixes included in this release, see the Android
>     Studio Chipmunk Patch 1 release notes. [3]

[1] https://developer.android.com/studio/releases/gradle-plugin?buildsystem=ndk-build#7-2-0
[2] https://issuetracker.google.com/issues/230361284
[3] https://developer.android.com/studio/releases#patch-releases

Change-Id: I57f37ea3786003dba4d95b291ddf6b0b44dccaa4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135053
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-05-28 13:28:10 +02:00
Luboš Luňák
7674399aac try to range-reduce even COUNTIFS if not matching empty cells
It's possible to do reduce range of COUNTIFS to non-empty data too,
since empty cells cannot contribute to the result, as long as
the criteria do not require matching empty cells. Without this
queries like =COUNTIFS($A:$A,...) can spend most of their time
clearing and searching the vConditions vector that's big and
not useful for the trailing empty cells in that column.

Change-Id: I8d1e7977f172ac9b2cf84af3f982e945be3cb46c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135049
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-28 05:44:27 +02:00
Luboš Luňák
e3d3adbcde fix COUNTIFS when matching empty cells
Change-Id: I8577324c0194d594a6df0b51431729b30ac8165c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135047
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-05-28 05:44:15 +02:00
Louis Possoz
bbec710bd2 tdf#145178 Formats in section Foot/Endnotes not read from saved files
Imported, 'num-suffix' & 'num-format' properties generate debug warnings:

warn:xmloff:10220:10220:xmloff/source/text/
   XMLSectionFootnoteConfigImport.cxx:123: unknown attribute urn:oasis
   :names:tc:opendocument:xmlns:style:1.0 style:num-suffix value=]]
warn:xmloff:10220:10220:xmloff/source/text/
   XMLSectionFootnoteConfigImport.cxx:123: unknown attribute urn:oasis
   :names:tc:opendocument:xmlns:style:1.0 style:num-format value=One

The faulty code is within XMLSectionFootnoteConfigImport::startFastElement()

The namespace for these two properties must be set to 'STYLE'
   (it is wrongly set to 'TEXT')

Change-Id: I923f12e19ed15779c67b2159d88d80a2ccb04e17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133605
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
2022-05-27 21:11:27 +02:00
Szymon Kłos
0599a73c3c tdf#145875 don't open Insert section dialog when pasting image
This happens when we "copy image" in Firefox of the resource which
cannot be accessed without logging in on some website.

In that case we used HTML format and that resulted in pasting
login webpage as a section.

This patch detects simple HTML containing only an image while it also
contains BITMAP format in the clipboard which we can use directly.
That way we paste image data from the clipboard.

Change-Id: Ia2ee7e246f8c71e1d0958c6c955ec056a0a96f8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135011
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2022-05-27 20:32:34 +02:00
Michael Stahl
34eea317c5 tdf#149170 framework,sfx2: don't add ReadOnly=false
There is a non-obvious difference in error handling when opening the
file read/write for type-detection fails in
utl::MediaDescriptor::impl_openStreamWithURL() - if ReadOnly=false is
given, it will abort the file loading, whereas without any ReadOnly it
will fall-back to a read-only opening of the file for type detection.

At this point a StillReadWriteInteraction is used, so the user is never
notified of the failure.

(regression from commit 404c51f366)

Change-Id: I8c06fe23cc0bc0767df83f680a1a59e3700bbbbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135045
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-05-27 20:26:52 +02:00
Tibor Nagy
855a56fea4 tdf#148965 PPTX import: fix internal hyperlinks on shapes
Locale dependent code path resulted broken hyperlinks
on shapes in a non-English build.

Change-Id: I045bbe4246ab5336e2b967bf252b5fbca5b17706
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134266
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-05-27 18:32:38 +02:00
Noel Grandin
b3c965ccaa clang-tidy modernize-pass-by-value in basegfx
Change-Id: I1ec34b2f0e9869a82894795f1d6351189ae92d9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135043
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-27 18:20:07 +02:00
Mike Kaganski
0779a1a185 Drop useless text width calculation
It came from SvTreeListBox::GetHeightOffset dropped in commit
7da765dde1
  Author Noel Grandin <noel.grandin@collabora.co.uk>
  Date   Thu Oct 27 10:21:42 2016 +0200
    loplugin:expandablemethods in svtools

Possibly the calculation was used for something else GetHeightOffset
used before.

Change-Id: I2a13035e0852637529c40a0ffe1bd0e2b8b3d077
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135010
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-05-27 16:14:42 +02:00
Seth Chaiklin
74de217a52 tdf#127294 (related: tdf#147524) add ToD about Customize toolbars
Inspired by tdf#147524
    Includes link to relevant help page

Change-Id: Idb2b3da4839a61a5f713400b378babb0c765fb4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134904
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
2022-05-27 13:55:00 +02:00
Miklos Vajna
0f70f4d76b sw content controls, date: preserve more properties
While working on the DOCX import for dates, it turns out there is a need
to store more properties for DOCX export purposes. Given that these are
potentially useful for full support, add dedicated UNO API and DOCX
export for these (i.e. not just grab-bag), but omit UI or ODT filter for
now. This includes:

- <w:docPart w:val="...">

- <w:dataBinding w:prefixMappings="..." w:xpath="..." w:storeItemID="...">

- <w15:color w:val="...">

And tests for all these.

Change-Id: I18ddec50d40c1c4abd87f7ea947a24dd8a92a755
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135039
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-05-27 13:42:59 +02:00
Noel Grandin
d203d3aeb2 clang-tidy modernize-pass-by-value in sax
Change-Id: I0357c7e3f5ae1d0a560057ac756b1118917a5e11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135038
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-27 12:55:23 +02:00
Noel Grandin
ba8502545f clang-tidy modernize-pass-by-value in tools
Change-Id: Ib6ff202f5556f3342fb4e60de7e16b5107669319
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135037
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-27 12:55:06 +02:00
Miklos Vajna
79baafccf3 sw content controls, date: add current date handling
While working on the DOCX import for dates, it turns out there is a need
to store the selected date in machine-readable format as well. This is
useful, because once the timestamp is formatted, the user is allowed to
hand-edit the result, so otherwise the selected date would be lost.

This commit adds:

- doc model & UNO API

- click handler (store the selected date, default to the current date in
  the date picker if possible)

- ODT filter

- DOCX export

And tests for all these.

Change-Id: I00f4e87ebfe0e8a19486367c32d472ccd2ff16a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135035
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-05-27 12:11:46 +02:00
tagezi
bd6cb0d821 tdf#132293: Removing unused imports from uitests files.
This is the final cleanup of imports in the sc module.
'pyflakes sc' is now empty.
It seems, the most imports were copy-pasted from a file to a new one.
Additionally, the import block and surrounding area made more readable.

Change-Id: I8c4dff1007b9954c35795a7c8a940e8fcf8d7f93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135036
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-05-27 11:59:12 +02:00
Xisco Fauli
7a8a25456b tdf#149268: sw: Add UItest
Change-Id: I5a7af83d1d97e009c9bd313b936c6b6d4ee48116
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135016
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-05-27 11:56:40 +02:00
Seth Chaiklin
c716f35412 Update git submodules
* Update helpcontent2 from branch 'master'
  to a6112298c946828a9d93b52384972f5e5f6c0538
  - tdf#148486  clarify "Vertical" and "by" controls in Position and Size
    
       also, adjustment to "Character" in "to", to indicate when it is
       available and to correct the description of its referent.
    
    Change-Id: Ic8ff382342503091dc9334aa72d05ea322d3e420
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/134361
    Tested-by: Jenkins
    Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
    Reviewed-by: Ming Hua <plateauwolf@qq.com>
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-05-27 11:32:25 +02:00
Michael Stahl
5c7f4b83c2 sw: language fallback in MSWordExportBase::GetNumberFormat()
There is this number format:

    <number:date-style style:name="N36" number:automatic-order="true">
      <number:day number:style="long"/>
      <number:text>.</number:text>
      <number:month number:style="long"/>
      <number:text>.</number:text>
      <number:year number:style="long"/>
    </number:date-style>

in a paragraph which has fo:language="zxx", so the field has
LANGUAGE_NONE.

MSWordExportBase::GetNumberFormat() exports as: DATE \@"dd/MM/yyyy"

But should be: DATE \@"dd.MM.yyyy"

Follow Eike's suggestion to use the number format's language in case the
field doesn't have one.

Change-Id: I596bea5daa75c717931b3c5d5506103b87b8ee08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134638
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-05-27 10:59:52 +02:00
Seth Chaiklin
a8df5c815c Update git submodules
* Update helpcontent2 from branch 'master'
  to 60d9df79df1071d5ad299464a4705abb237810ca
  - tdf#89131 add explanation about adding Heading rows to Insert - Table
    
    Change-Id: Ic3f9f82fad1693b60e31c331e2805a7748ce9cfe
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135004
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-05-27 10:08:26 +02:00
Tibor Nagy
25e747ed39 tdf#149124 PPTX import: fix broken connectors in grouped shapes
Previously connector lines of grouped shapes were detached
after the import losing the original layout (without
ungrouping and moving the shapes).

Change-Id: I660629d9d1c2cb0ab68de275ca5406f4c48e9145
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134943
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-05-27 09:59:59 +02:00
Attila Bakos (NISZ)
182d2a47a2 tdf#148365 sw: fix freezing with FrameIsAutomaticHeight
Lock layout update temporarily during setting horizontal
and after that, vertical orientations of textboxes
with FrameIsAutomaticHeight to avoid freezing
SwObjectFormatter, and depending on the platform,
freezing Writer completely.

Regression from commit 3b0a0e70cb
"Related tdf#66039 DOCX import: fix Z-order of group shapes".

Change-Id: Ib106182b9f0d3d74ebdc3e746345380c8b685fdf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134480
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-05-27 09:38:03 +02:00
Thorsten Behrens
c9d018df61 make_installer: convert Win to Unix path for cygwin
Usual cygwin auto-conversion magic doesn't work for PATH variable,
which requires proper /cygdrive/foo/bar entries.

Change-Id: Ic07ffcdf7cb28c5e5702964c331f337ee811c063
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135032
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-05-27 09:33:45 +02:00
Jim Raykowski
ba0a713fe7 tdf#149268 avoid null pointer dereference
Change-Id: Iff3aece9eaed40c31764616504f1a4229db57e01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134978
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-05-27 09:06:47 +02:00
Seth Chaiklin
4b5de4684f Update git submodules
* Update helpcontent2 from branch 'master'
  to bdaeee88ae63c1107b6c7db0dbcabb5347554397
  - (related) tdf#149018  add to OLE explanation in Glossary
    
        Can link to this explanation when discussing OLE objects in
        other help pages.
    
        Technical note: Needed to add a variable to the relevant heading
        in shared/optionen/01010200.xhp to be able to get a
        useful id to link to from the Glossary.  Also embedded that
        heading (which is the name of the control) into the Glossary so
        that if the control name is changed in the future, then the
        Glossary should remain up-to-date.
    
    Change-Id: I3318bc6b96a422dd40e792bf2230f7cefc9e85a0
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/134793
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-05-27 09:01:22 +02:00
Miklos Vajna
10b1a9eb85 sw content controls, date: add DOCX export
Map the Date, DateFormat and DateLanguage UNO properties to:

          <w:date>
            <w:dateFormat w:val="..."/>
            <w:lid w:val="..."/>
          </w:date>

Change-Id: I4695ac30be26968b2c2ea14b044c1e2a10638ea8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135033
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-05-27 08:44:10 +02:00
Xisco Fauli
b7efccde76 tdf#147844: Use sanity check only if LibreOfficeKit is active
Regression from 2b58a0979f
"Add sanity check to avoid potential crash in the Collabora Online
server"

Change-Id: I2fcfb634b47f9d76f8efbbd64a8e69ea236894c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135024
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-05-27 08:04:51 +02:00
Miklos Vajna
fe2c9ca1bc CppunitTest_sw_layoutwriter: use more SwParaPortion::dumpAsXml()
See commit feeed3e762
(CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing,
2022-04-07) for motivation.

Change-Id: Icbf2c3b4c1dfcdf551ea8c1f1f9520449b55289a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135029
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-05-27 08:03:15 +02:00
Michael Weghorn
be3f29bd10 android: Update compileSdkVersion/targetSdkVersion to 32
API version 32 refers to the Android 12L feature drop
(Android 12.1).

According to [1], "12L is a special feature drop that makes Android 12
even better on tablets and foldable devices."

When getting over the list of behavior changes for apps targeting
Android 12, I didn't realize anyting relevant specific to API level 32
not yet in API level 31 as well, so there seems to be no need
for any special adjustments for this update on top of

    commit 2ab389b251
    Date:   Tue Apr 19 10:33:27 2022 +0200

        android: Update compileSdkVersion/targetSdkVersion to 31

[1] https://developer.android.com/about/versions/12/12L

Change-Id: Ic99c4ee5b81b6584648fa4717e23cc7f3c78bdab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134988
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-05-26 22:06:04 +02:00
Michael Weghorn
97b1a21f9b android: Update androidx.constraintlayout to 2.1.4
Change-Id: If2edff8006c3aa904d40dabf679d5ed0b0fd0127
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134987
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-05-26 22:05:20 +02:00
Michael Weghorn
b6258ff75d android: Update com.google.android.material to 1.6.0
Change-Id: Iac3831d400d29b45be82d2585ca1454ed22676be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134986
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-05-26 22:04:58 +02:00
László Németh
73696a0122 tdf#146955 DOCX import: fix SAX exception with footnotes
(Likely broken) DOCX documents exported by Writer raised a SAX
exception, when PopFootOrEndnote() tried to access to a
not-existent footnote, because PushFootOrEndnote() failed to
create that.

Note: the original ODT contains hundreds of frames, and
these and the text content of the document have been put
into the TOC section during Writer's DOCX export, resulting a
broken document.

Regression from commit 9b39ce0e66
"tdf#76260 DOCX import: fix slow footnote import".

Change-Id: I9e32feb0cae778a87f034a8b5c41989fec90899d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134934
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-05-26 20:26:13 +02:00
László Németh
29359fc15c tdf#149324 sw offapi xmloff: add option to not hyphenate short words
Add paragraph property to disable automatic hyphenation of short
words based on a minimum character count.

Note: there is a (broken) global option for Minimum Word Length
at hyphenation, see "Minimal number of characters for hyphenation"
in Tools->Options->Language Settings->Writing Aids), but
for better/comfortable paragraph-level adjustment of typesetting,
add a paragraph property for it. The same option is available e.g.
in Adobe InDesign and in CSS Text Module Level 4 (hyphenate-limit-chars).

* Add checkbox to Text Flow in paragraph dialog
* Store property in paragraph model (com::sun::style::ParagraphProperties::ParaHyphenationMinWordLength)
* Add ODF import/export
* Add ODF unit test
* Add layout test

Follow-up to commit 8c018910ae
"tdf#149248 sw offapi xmloff: add option to not hyphenate last word".

Change-Id: I68715f47d17b5c022430bd0e74c88a97bc7f81f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135028
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-05-26 20:25:35 +02:00
Noel Grandin
3cde734519 clang-tidy modernize-pass-by-value in i18npool
Change-Id: I96d99fbdce2b0432676acec8b327cece7c39bcb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134983
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-05-26 18:30:04 +02:00
Caolán McNamara
b566a5f5ce cid#1504573 Dereference before null check
since...

commit 8b4b852a35
Date:   Mon May 23 15:48:41 2022 +0200

    Advanced Diagram support: Isolated IDiagramHelper, selection visualization

we've already derefed pObj so can drop that check

Change-Id: I9bdab5c069405c0015f74e4621e7b37fbbed2dd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135017
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-05-26 18:27:31 +02:00
Andrea Gelmini
8148896dc8 Fix typo
Change-Id: Id418d65ce165d93e84463ae321ca2db869e857cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134670
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-05-26 17:47:06 +02:00
Andrea Gelmini
b9070eedb3 WIP: dunno about "Hodler"
Change-Id: I9fbee006237ccb70e31109023cf46b21aec325d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134668
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-05-26 17:45:07 +02:00