Commit graph

482871 commits

Author SHA1 Message Date
Stephan Bergmann
b09c70ec15 Fix SwFmDrawPage queryAggregation
The base SvxDrawPage uses WeakAggImplHelper7, so (for better or worse) derives
from XAggregation, but SwFmDrawPage failed to properly implement the
XAggregation protocol.

Change-Id: Idf2c2d27cd5fb443e574cfd770091600a23c6e8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145771
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19 16:57:16 +00:00
Szymon Kłos
280e55bf44 Remove not necessary container in Animation Panel in Impress Sidebar
It was causing layouting issues in LOK.

Change-Id: Ic7520f46efa764d2d6b50b021b44e0a5dd07d837
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136343
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145791
Tested-by: Jenkins
2023-01-19 16:13:25 +00:00
Stephan Bergmann
41f659b492 Base SfxLibrary on WeakComponentImplHelper
...rather than on the deprecated OComponentHelper.

The two classes SfxDialogLibrary and SfxScriptLibrary, both deriving from
SfxLibrary, had been found to implement their respective queryInterface in a way
that is incompatible with the XAggregation protocol inherited via
OComponentHelper.  It looks like no code actually made use of the XAggregation
offered by these Sfx*Library classes, so the easiest fix for those
queryInterface implementations appears to switch from OComponentHelper to
WeakComponentImplHelper (thereby dropping XAggregation, and thus rendering the
existing queryInterface implementations OK).

Ideally, SfxLibrary would derive from WeakComponentImplHelper<XInitialization,
XStorageBasedLibraryContainer, XLibraryContainerPassword, ...> covering all the
UNO interface classes from which it currently derives manually.  But changing
that manual implementation across SfxLibrary and its SfxDialogLibrary and
SfxScriptLibrary derived classes looks tricky, so merely introduce an "empty"
WeakComponentImplHelper<> for now and keep all the manual stuff, and leave
proper clean up for later.

Change-Id: I12dc5bad2c017b8d76ce28ac189e95cf2e3810e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145792
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19 16:07:12 +00:00
Andrea Gelmini
52b465e271 Fix typo
Change-Id: Iba92ac9d7093b7fd8d6d61be2496333ad1d8b59d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145815
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-01-19 16:05:38 +00:00
Miklos Vajna
6ce374140f sw XHTML export: use CSS instead of <center> for tables
<center> is not valid XHTML, have to use CSS styling instead.

HTML export uses <center> by default around tables where the alignment
is center.

Fix the problem by avoiding <center> in the XHTML case and set the left
and right margin to auto, which means:

	If the values of margin-left and margin-right are both auto, the
	calculated space is evenly distributed.

according to
<https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left>.

The import will be adjusted to recognize the new markup in a follow-up
change.

Change-Id: I51e3507e9cde713f961b783378d66db59194a6ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145814
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-01-19 15:54:08 +00:00
Michael Stahl
261b123753 tdf#153039 ucb: webdav-curl: fix POST, which was actually doing PUT
The problem is that first CURLOPT_POST was set and later CURLOPT_UPLOAD,
which overrides the HTTP method to PUT.  Move this out to the 4
functions that need it.

Change-Id: Ibd555dcc00a03baa1bb300a9ab9905f383179c67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145786
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-01-19 15:05:57 +00:00
Stephan Bergmann
925dfcb507 Base OPropertyBag on WeakImplHelper
...rather than on the deprecated WeakAggImplHellper5

Change-Id: Id9e61341cba10c4a497500d41479629ff3af30ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145790
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19 15:00:56 +00:00
Stephan Bergmann
1786cd0687 Base IdlReflectionServiceImpl on WeakComponentImplHelper
...rather than on the deprecated OComponentHelper

Change-Id: Icb83d3cc0a0588a703a9041c00730b2a8d8bb90b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145789
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19 15:00:41 +00:00
Xisco Fauli
8e4740e7a9 tdf#153096: sc: Add UItest
Also add a test for checking the right behaviour when
changing the content of a cell

Change-Id: I33dda97a467355273d49ddbcab56886a9b1950d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145776
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-01-19 14:42:57 +00:00
Mike Kaganski
a93cb8acdb tdf#153104: fix the "dummy" levels when overriding lower numbering levels
The problem was that Word treats empty w:num/w:lvlOverride elements
for higher levels as defining corresponding w:startOverride equal
to 0. This only shows when the first list element has a lower level
and resets numbering; in this case, implicit higher levels get zero
value, and the following higher level items start from 1.

This writes the correct w:startOverride values (from the respective
rule) to the gap-filling levels.

Change-Id: I18db1c6011bf09826ba586aaec16e7939ecb0c6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145770
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-19 14:36:10 +00:00
Caolán McNamara
2f901e483b save last mouse press location even if no handlers set
Change-Id: I24ce412fd3b62843ee3fabc7a3fca36ae91c0222
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145784
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-19 14:03:30 +00:00
Caolán McNamara
a7a842f4a4 use cairo_surface_destroy after gtk_drag_set_icon_surface
Change-Id: Iac543121a809eeabae630d4a426e72d5f9d47057
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145783
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-19 14:03:23 +00:00
Szymon Kłos
24c9373409 jsdialog: add TreeView to TestWidgetDialog
Change-Id: I5c4f70d98dd8ea03c137cd368a2c097cd866609d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144222
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145067
Tested-by: Jenkins
2023-01-19 13:03:59 +00:00
NickWingate
7ebe5e19fb Make PDFExport Password Subdialog Async
Dialog in File>Export As PDF>Security>Set Password
Close subdialog when parent dialog is closed

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I9db8459309f2806ed47f9f932e0bde246400b2dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144854
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145759
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2023-01-19 12:48:06 +00:00
Stephan Bergmann
ee8aa3dbaf Fix SvxFmDrawPage et al getTypes
The implementation of SxvFmDrawPage::getTypes was presumably forgotten when
e97beb270f "NTEGRATION: CWS xmlperf02" changed
SvxFmDrawPage from supporting XFormsSupplier to supporting XFormsSupplier2
(which derives from XFormsSupplier).

And SwFmDrawPage uses ImplInheritanceHelper to derivefrom SvxFmDrawPage, so
there should be no need to implement SwFmDrawPage::getTypes manually (and
wrongly, at that, in that it included the types of SvxFmDrawPage twice, once
directly via SvxFmDrawPage::getTypes(), and once indirectly via
SwFmDrawPage_Base::getTypes()).

Change-Id: I8c467f5a20e1f44396378abe9199851e646f6947
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145772
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19 12:09:34 +00:00
Michael Stahl
9b9bc7461e tdf#153039 unoxml: replace root element of CDocument throws
XForms replace doesn't work because:

CDocument::IsChildTypeAllowed() tests that the document node does not
already have an element child, because only one is allowed - but when
called from CNode::replaceChild(), the existing child will be removed,
so that needs to be allowed to proceed (check that removed child is
also element).

(regression from commit c5db3b93ee)

Change-Id: I167de3462f4d1934dbf8404ad395349897cfd981
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145757
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-19 11:28:50 +00:00
Szymon Kłos
451ed0f277 lok: adjust paint rect for in-place editing
This allows to send correct cursor position (at the very end
of the cell) when typing numbers in LOK mode.

This fixes regression from:
commit	9257486636
lok: sc: render expanded EditEngine when editing in-place

Change-Id: I1f6c7ce3de7a2ba7ccbd4f9f9becd49e352cf05e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145260
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145769
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2023-01-19 11:18:01 +00:00
Noel Grandin
4dac12efdc XUnoTunnel->dynamic_cast for SwXFrame
Change-Id: I48fd10781e7f09b37b6b0000f68456e8194e6d7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145761
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-19 10:44:06 +00:00
Caolán McNamara
c6668bf7f8 cid#1520418 Unchecked dynamic_cast
and

cid#1520419 Unchecked dynamic_cast
cid#1520420 Unchecked dynamic_cast

Change-Id: Ia5ef238677bd5eadcdb7fc3fcf982d8a1507133c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145768
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-19 10:33:16 +00:00
Stephan Bergmann
579d144290 Fix some toolkit UnoControlBase derivates' queryAggregation
The base UnoControl uses WeakAggImplHelper9, so (for better or worse) derives
from XAggregation, but UnoGridControl, UnoRoadmapControl, and UnoTreeControl all
failed to properly implement the XAggregation protocol.

Change-Id: Ia1676782e616216f645dc86ba978c2f5887dc508
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145767
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19 09:53:24 +00:00
Stephan Bergmann
ede696562a Fix SdGenericDrawPage et al queryAggregation
The base SvxDrawPage uses WeakAggImplHelper7, so (for better or worse) derives
from XAggregation, but SdGenericDrawPage and its derived classes (SdDrawPage,
SdMasterPage) failed to properly implement the XAggregation protocol.

When fixing this, it became apparent that SdGenericDrawPage::queryInterface had
erroneously delegated to SvxDrawPage::queryInterface rather than to the
intermediary SvxFmDrawPage::queryInterface, so that querying for e.g.
XFormsSupplier had only worked by accident:  SdGenericDrawPage::queryInterface
didn't support it, so delegated to SvxDrawPage::queryInterface, which didn't
support it, so delegated to WeakAggImplHelper7::queryInterface, which didn't
support it, so delegated to OWeakAggObject::queryInterface, which (as there was
no delegator set) delegated to the most derived SvxFmDrawPage::queryAggregation,
which supports it.

Change-Id: Ia7154d62e493238738e6d15dea2f01a437a70bff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145763
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-19 09:38:57 +00:00
Miklos Vajna
04d988d3c3 sw, .uno:InsertField: handle Endnote as a value for the Wrapper parameter
This is similar to commit 43d80906c8 (sw:
.uno:TextFormField: handle Endnote as a value for the Wrapper parameter,
2023-01-17), but that was for fieldmarks & endnotes, this is for
refmarks & endnotes.

Change-Id: I46512dd973508f51f7093521c40ad4100dd39ae6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145762
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-01-19 08:56:55 +00:00
Attila Szűcs
17c68fad2a tdf#153036 PPTX import resized connector broken
Fixed the EdgeLine1Delta calculation in case of bentConnector2.
(when L shape imported as a special Z shape)

Co-authored-by: Tibor Nagy (NISZ)
Change-Id: I08c92e63adc744322061e4e433bfdc512745eda1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145548
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2023-01-19 08:27:39 +00:00
Miklos Vajna
6819b7eb6c tdf#153045 sw: fix incorrect height of row in table
The bugdoc DOCX had a shape anchored in a table cell, and the cell had
large enough height so the shape could fit into the cell, while the
expected cell height was independent (smaller) from the shape.

The problem is around the follow-text-flow feature, which is called
"keep inside cell boundaries" in Word. This setting would normally
increase the size of the cell, so the shape remains inside the cell. An
exception from this increase request is the wrap-through wrap mode,
which leaves the cell size unchanged.

Fix the problem by considering two previous use-cases:
1d9221ebc8 (tdf#145688 sw: fix misplaced
images in table cells, 2022-11-29) and
489eef894e (tdf#124601 sw FollowTextFlow:
fix vert pos of objects outside the current cell, 2019-10-01):

- tdf#145688 is a legacy ODF document: do require the the "in
  background" wrapping, otherwise make the cells big

- tdf#124601 & tdf#153045 are Word documents: here don't require the "in
  background" wrapping and go with small cells when the wrap type is
  through

This requires adjusting the tdf#145688 testcase that minimized the
original bugdoc incorrectly.

Change-Id: Ieaf3d9c1c4477e5e57e5e1e825775648840ab32b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145756
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-19 07:15:30 +00:00
Noel Grandin
7c55f9e327 XUnoTunnel->dynamic_cast in OTextCursorHelper
Change-Id: I9b0101b4f0b96c59ddbde01c7cf7f286aac2a8e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145703
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-19 06:37:52 +00:00
Caolán McNamara
cf73442755 tdf#153088 format cells example text black on dark background
with application colors, scheme: LibreOffice Dark enabled

Change-Id: I465c97bf21b66c0122b59296d0c114bf115910ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145758
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 23:24:31 +00:00
Xisco Fauli
6bf8ffbf90 tdf#152710: sw_odfexport: Add unittest
Change-Id: Ib5ca4aa64f9cfd7e221620ab1d571f7f1e012033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145747
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-01-18 21:05:51 +00:00
Justin Luth
c2bcaaeab0 tdf#114537 doc/rtf export: move DOCX impl so all formats use it
The DOC import keeps duplicating the content part,
so I haven't added a separate unit test to this patch,
but manual testing shows this works for DOC and RTF.
The unit test for DOCX already handles the correctness
of the code, so no real need for another test anyway.

Change-Id: Iceb41a647b8408150ae8558b10b581d3a6c49e45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145755
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
2023-01-18 20:53:58 +00:00
Eike Rathke
fc441f3886 Resolves: tdf#153096 Split change track content action into columns again
Old SvTreeList did split a string on embedded \t Tab characters,
the new weld::TreeView does not but needs column text set
explicitly.

Regression from

    commit 56dd851cfc
    CommitDate: Sat Apr 27 12:41:14 2019 +0200

        weld cluster of change tracking dialogs

that did the necessary changes for
ScAcceptChgDlg::AppendFilteredAction() but not for
ScAcceptChgDlg::AppendChangeAction() and
ScAcceptChgDlg::InsertChangeActionContent().

Odd that no one reported this in all the time..

Additionally, the "Changed contents" label being used instead of
"Row inserted"/"Column inserted"/"Row deleted"/"Column deleted" as
soon as cell content change is present depending on such action,
was a copypasta fallout from

    commit e7c76b30bd
    CommitDate: Mon Aug 29 17:21:12 2011 -0400

        String to rtl::OUString.

Change-Id: I855c527da61723c104c743e3b3f159fb026917df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145749
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2023-01-18 20:37:30 +00:00
Caolán McNamara
25c16d2609 don't crash with --disable-pdfium
Change-Id: Ibc88d9f32ae86f7137c24e2fe1d581ff1cd64497
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145746
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 20:36:01 +00:00
Caolán McNamara
f93d4062c9 tdf#152770 move warning about ppd with no resolution to use of resolution
so bizarro ppds with no resolutions don't trigger a warning unless it
gets queried about the resolution

Change-Id: I4828ddf80d011265aefb271d964f6362842b3014
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145734
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 20:35:49 +00:00
Caolán McNamara
aff603e10b thaw before set_active
Change-Id: Ib588bb9df147b5db4e0cb526e5a20ef1a3636686
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145748
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 20:35:36 +00:00
Michael Stahl
90e666baa1 sw: remove questionable assert that fires on tdf119224-1.docx
Change-Id: Ib928838523270a3e2d5a89eed60315919be2861d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145752
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-01-18 20:18:46 +00:00
Michael Stahl
7b62d09090 tdf#153082 writerfilter,sw: import/export locale-dependent TOC ...
... \t style name separators.

OOXML says in 17.16.5.68 TOC:

  \t field-argument
  Uses paragraphs formatted with styles other than the built-in
  heading styles. text in this switch's field-argument specifies those
  styles as a set of comma-separated doublets, with each doublet
  being a comma-separated set of style name and table of content
  level.

The reality is documented in Word online help:
https://support.microsoft.com/en-us/office/field-codes-toc-table-of-contents-field-1f538bc4-60e6-4854-9f64-67754d78d05c?ui=en-US&rs=en-US&ad=US

  Note: Syntax shown here uses a comma (,) between the Style and Level
  parameters. A semicolon (;) is also valid, depending on which
  character is specified as the list separator in your operating
  system's regional and language settings. Because of language-specific
  dependencies, we recommend not using the \t switch in templates or
  documents that are intended for users across multiple language
  configurations.

It's easy enough to recognize both ',' and ';' as separators on import,
and unlikely that anybody would use these characters inside a style
name; for export, both can't be written and a decision must be made.

So do the same thing on export as Word does, assuming most document
exchange is between users in the same locale; currently only for "de"
locales but more can be added.

Interestingly WW8 used to write ';' before 2009 when CWS hb32bugs01
changed it to ','.

Change-Id: I2dcfdd009f448f6fae37cbd28929d0bbe504acf9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145744
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-01-18 18:41:52 +00:00
Michael Stahl
ecbad22fdf tdf#153082 writerfilter: import locale-dependent TOC \t style names
The bugdoc contains this style:

  <w:style w:type="paragraph" w:styleId="IntensivesZitat">
    <w:name w:val="Intense Quote"/>
    <w:basedOn w:val="Standard"/>
    <w:next w:val="Standard"/>
    <w:link w:val="IntensivesZitatZchn"/>
    ...

which is referred to by:

  TOC \o "1-3" \h \z \t "Intensives Zitat;3;Custom1;3;_MyStyle0;3"

Word in an "en" locale is unable to match the "Intensives Zitat" in the
TOC field with the style "Intense Quote", which is a built-in style
in Word (no equivalent in Writer).

At first glance nothing in styles.xml matches the localised built-in
style name in the TOC field.

But it looks like the w:styleId value is somehow generated from the
localised style name by omitting certain characters like SPACE and
non-ASCII letters.

Change-Id: I2050f7cf7f8d80bee1f667ee53b7f9981bbf7b49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145745
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-01-18 18:41:25 +00:00
Seth Chaiklin
9f9921af3a missing colons in Character - Position dialog
Change-Id: I78634677fff9b1a2f4955e7a1483662fc6b231c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145717
Tested-by: Jenkins
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-18 18:30:15 +00:00
Seth Chaiklin
9a7af8b1d2 missing colons in Edit Fields interface
Change-Id: I7c364fb042661fb133fad460778c27896a714e80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145716
Tested-by: Jenkins
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-18 18:29:09 +00:00
Noel Grandin
827f4af430 remove XUnoTunnel in SwChartDataSequence
we can just use the concrete type, instead of casting

Change-Id: I947b45eb454328390e077654bbf677f6a0fe8a89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145740
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-18 17:21:13 +00:00
Michael Stahl
dc79c5086b sw: DOCX export: remove extraneous comma in lcl_guessQFormat()
Added like this in commit be515af4d9.

Change-Id: I4a9190b18c80930c2c7ba31c9e657280527c3ea9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145743
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-01-18 17:06:00 +00:00
Xisco Fauli
888ab228d8 tdf#151886: sc_uicalc: Add unittest
Jenkins fails on mac and windows with

sc/qa/unit/uicalc/uicalc.cxx:297: Assertion
Test name: testTdf151886::TestBody
equality assertion failed
- Expected: 1,1
- Actual  : Err:509

Change-Id: Iaa51174ef246bc4ac9096b345e2a33370a5ab967
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145403
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-01-18 16:13:36 +00:00
László Németh
4e72e64625 tdf#152964 sw: fix crash of Undo of tracked deletion of empty table rows
In Hide Changes mode, Undo of insertion of CH_TXT_TRACKED_DUMMY_CHAR
(workaround of the deletion of empty table rows), resulted a crash
because of inconsistency of table and redline nodes. As a workaround,
skip that insertion from the Undo.

Regression from commit a74c51025f
"tdf#146962 sw: hide deleted row at deletion in Hide Changes".

Change-Id: I0666d7bcbbf08d84386cea64c1807f69f751479d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145737
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2023-01-18 15:42:52 +00:00
Paris Oplopoios
0c2ed51a77 tdf#119229 docx: Preserve w15:paraIdParent attribute in commentsExtended
w15:paraIdParent attribute indicates that the comment is a reply to the
value id

Change-Id: I9e6eca6a656594c956629c1434b8e5c3aa573c60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145314
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-18 15:28:37 +00:00
Armin Le Grand (Allotropia)
53d927cd67 SDPR: Add support for InvertPrimitive2D
We urgently should get rid of XOR paint, modern
graphic systems allow no read access to the pixel
targets, but that's naturally a precondition for
XOR.
While we can do that for the office's
visualization, we can in principle *not* fully
avoid getting stuff that needs/defines XOR paint,
e.g. EMF/WMF imports, so we *have* to support
it (for now - sigh)...

This makes this renderer complete from the minimal
to-be-supported primitives, too.

Change-Id: Ie8fa98b777de764af0babe969296a671ca5cc7ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145739
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2023-01-18 15:03:57 +00:00
Mike Kaganski
ce805e052a Simplify a bit
Change-Id: I3e3d13f468192967056af5c5c21709352a7acf8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145741
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-18 14:28:46 +00:00
Jean-Pierre Ledure
40bc1b2753 ScriptForge - (SF_Calc) sort ranges on more than 3 keys
The Calc.SortRange() method sorts
the given range on any number of columns/rows.
The sorting order may vary by column/row.

The sorting algorithm allows for maximum 3 keys.

When the number of sort keys is > 3 then the range
is sorted several times, by groups of 3 keys,
starting from the last key.

In this context the algorithm used by Calc
to sort ranges is presumed STABLE,
i.e. it maintains the relative order of records
with equal keys.

Change-Id: If7f4920f7ab8f8ffb71edf648ed9accc8eb62dce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145681
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
2023-01-18 14:18:40 +00:00
Justin Luth
ec6d1156b7 document svx.sdi with link to SDI slot config details
UI stuff is a total black box,
so most of the config is just copy/pasted from a similar function,
with nothing to indicate what any of it means or does.

Miklos pointed me to this documentation,
so I've dumped it here so that there are a few breadcrumbs
pointing to the specs for what this stuff means.

Change-Id: Iccbc0ff5b400328af8ae683fdcf42203e4029d48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145624
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-18 14:13:52 +00:00
Justin Luth
f610082534 tdf#114537 doc import: trim switches before evaluating FIELD_IF
Although this function is only used for ww8 import (and qa tests),
it is documented as being more generic. So I decided to just trim
at the source and not try to introduce any MS-isms into the parse function.
Something similar will be needed for DOCX,
but DOCX import for FIELD_IF is completely missing.

Change-Id: I822b400e3e53abd953f4c382947f0e80ae62b234
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145691
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-01-18 13:44:59 +00:00
Mike Kaganski
eb760387ef Use std::clamp
Change-Id: I754ec67601b45542553e1070c0eb5489ed23a722
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145714
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-18 13:15:45 +00:00
Mike Kaganski
81d3339904 Use dynamic_cast result instead of following static_cast
And make the dynamic_cast more specific, matching the now-removed
unconditional static_cast.

Change-Id: I322312eb8675b28af79b7cca552d6347f74c5faa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145593
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-18 13:15:39 +00:00
Michael Weghorn
f5e4a54f8c android: Hide UI to creat new files for SDK version < 19
Just like for the the case where editing is disabled
(s. Change-Id I2f8c86f5db96a5135ff8a66a7a7078b664d05a5e,
"android: Only offer creating docs when editing enabled"),
just hide the UI to create new files when running on devices
that don't support `Intent.ACTION_CREATE_DOCUMENT`, rather
than showing the button, but then showing a message that
creating files is not supported once the button is clicked.

Change-Id: Ifedf40e22dc8906557d5364ecf9ec3a9db2315e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145736
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-01-18 13:03:54 +00:00