Commit graph

451780 commits

Author SHA1 Message Date
Noel Grandin
332e805dad hwpfilter: create instances with uno constructors
See tdf#74608 for motivation.

And move the code out of a header file into a .cxx file.

Change-Id: I37b88e1d5173c9064f1b733b5d38fc40a463e2a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98677
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-14 10:26:53 +02:00
Noel Grandin
02add49081 connectivity/firebird: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: Ibac6bae417b664f9132ddc7d6dd539a85da28674
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98686
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-14 10:26:23 +02:00
Caolán McNamara
e200a08f09 Resolves: tdf#134786 use std::numeric_limits::lowest
Change-Id: I5ef2a2779f2b534d68a8a15b74beb62b2eeefa5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98693
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-14 10:14:46 +02:00
Gülşah Köse
0a3e5ba4db Fix widget placement problem on mailmerge result dialog.
Change-Id: Iff7bae3f1e30d106ed54f3a67bf5c6fefe67e2d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98650
Tested-by: Jenkins
Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
2020-07-14 10:14:03 +02:00
Noel Grandin
3616a43f8d connectivity/hsqldb: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I80d9c854640073038d1a4d79997111912d924f69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98685
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-14 09:09:31 +02:00
Noel Grandin
c69a54ebb2 connectivity/jdbc: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: Id268f9780400e5d0940f378cd8ee91f86662bf55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98684
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-14 09:09:04 +02:00
Noel Grandin
d1b37f5ff3 connectivity/macab: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I418417284ede616ed36d213b378260e321913cce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98674
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-14 09:04:05 +02:00
Noel Grandin
8f7fd5145f connectivity/evoab: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I30f1fdca220e64e087a1de2f8a6ab1f2e7ba8a45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98687
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-14 09:03:43 +02:00
Noel Grandin
27ae032f79 connectivity/dbtools: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I281475b9fe5eff0d462f575e8434b9511b292e85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98688
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-14 09:03:30 +02:00
Miklos Vajna
9c8aa11ee7 tdf#134431 sw: fix crash on setting anchor of textbox while splitting a para
Regression from commit 682e0488df
(tdf#134099 sw: fix textbox anchors on copy-paste and undo, 2020-06-29),
the problem was that setting the anchor of a frame format triggers
"modify" notifications, but the handlers of those notifications expect a
consistent layout. This invariant is not held while we're still in
SwTextNode::SplitContentNode().

Fix the problem by updating the textbox's anchor the same way "normal"
fly frames are handled, i.e. add/remove the frame format to the new/old
text node manually and block notifications.

Change-Id: If1f07d4230540796a81d9ed46a932b67d5995462
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98690
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-07-14 09:02:27 +02:00
Justin Luth
c5e4c26031 tdf#131561 writerfilter: pre-emptive unit test
Someone might be tempted to just delete any
border on a merged cell, hoping/expecting that
the adjoining cell would have a corresponding
border.

Granted, this test was hand-crafted and is not
necessarily something that Word would ever
create. At least be aware that any fix
that breaks this example is not a complete
solution.

Change-Id: I438c835b54ec8b33eb48de55f09a7cf2965f6440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95533
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2020-07-14 06:02:40 +02:00
Miklos Vajna
f7eff4319b CppunitTest_desktop_lib: handle SignatureState::OK after loading
The purpose of DesktopLOKTest::testGetSignatureState_Signed() is to make
sure that in case we don't trust a cert and we add the necessary CAs,
then we trust the cert.

So just return early when we trust the cert already, it's not an
interesting failure.

Change-Id: I32f24b5464a0e14156292de2acda562025ded73f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98673
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-07-14 01:58:11 +02:00
Rizal Muttaqin
0e3035a704 Icon themes: Fix for tdf#134768
Fix Line Arrangement Presets in "Borders" tab on "Format Cells" dialog

Change-Id: If94df20905f56305f3b3d1faa63e2296cc1dad07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98675
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-07-13 22:44:42 +02:00
Mike Kaganski
bd96a6f7b7 Don't rely on Python's treatment of unrecognized escape sequences
According to [1]:

> Changed in version 3.6: Unrecognized escape sequences produce a DeprecationWarning.
> In a future Python version they will be a SyntaxWarning and eventually a SyntaxError.

[1] https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals

Change-Id: Ia4f79f17ccb121f423f35b1e1306d5ae285e8762
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98321
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-07-13 22:23:44 +02:00
Baurzhan Muftakhidinov
a3c3ab7394 tdf#134755 Update locale data for Kazakh [kk-KZ]
Change-Id: I47e920a98833f71bd5c8db0a0590a4f8cdcb83b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98465
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2020-07-13 21:45:27 +02:00
Justin Luth
19d7f9624e tdf#129452 writerfilter: use column, not cell when comparing rows
A natural mistake - especially when there are no existing
functions - is to assume that cell number defines column
number, and so it is valid to compare between rows.

This patch provides the functions, and switches this bug's
earlier patch to properly use columns instead of cells.

This commit depends on two prior patches in bug 129452:
  Change-Id: Ie305477f0e3468a4a923095d76f520d97fe99ffe
  Change-Id: Ibfdac336bbb1f7303c7e585a85c94be37ad6f916

I hope that this implementation covers all the bases.
This code is dreadful to understand,
as witnessed by comments from those much smarter than I.

P.S. I also cancelled a vertical merge if the cell
is not there (in a gridAfter situation).
If a row is shorter than the previous ones,
then a vertically merged cell should not be considered
to be able to span that gap. If the cells below are still
merged, it would be considered a new merged cell.

Change-Id: I63158ac73b1bf86d9f75dd3c1299d1b1a3f08064
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97434
Tested-by: Justin Luth <justin_luth@sil.org>
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-07-13 20:51:28 +02:00
Noel Grandin
9ad54d31c8 connectivity/mozab: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I93b5ae48ec3580b1feb20fa1cf7897a0f2ed8fb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98668
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 19:50:00 +02:00
Tomaž Vajngerl
fcd0338631 svgexport: add TEXTLANGUAGE to not supported meta actions
This adds TEXTLANGUAGE to "unsupported" actions, so that it is
not logged as a warning, when we get a metafile with such action.

Change-Id: I1afb3ce48e4526d7c9e623fe4571b8953f9a8ebb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98629
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-07-13 19:32:10 +02:00
Tomaž Vajngerl
ebb7cd91ec Prepare test for SVG export of semi-transparent text, not enabled
This prepares the test for semi-transparent text, but the assert
is not yet enabled until the bug gets fixed.

Change-Id: I31a241910fd7bdf27579f291a497b76292eac775
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98628
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-07-13 19:31:48 +02:00
Tomaž Vajngerl
4b0daa9ce7 move Primitive2dXmlDump from drawinglayer::tools to drawinglayer NS
drawinglayer::tools causes conflicts with ::tools namespace, so
better to move Primitive2dXmlDump out from this namespace as for
inspecting purposes it ccan be injected into existing code which
could break make it conflict and break compilation.

Change-Id: I5f9e594b2b8b1dd24067fa5f5ca3cfc4eefb85cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98627
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-07-13 19:31:18 +02:00
Tomaž Vajngerl
fa844c1523 write additional actions in MetafileXmlDump
- initial MapMode and size
- REFPOINT
- FLOATTRANSPARENT

Change-Id: I6d590e71a8f69042e882b8c8b4938ccbf04029da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98626
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-07-13 19:31:03 +02:00
Noel Grandin
8435bffbcf connectivity/postgresql: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I88e3706d799941fae7ed74e0f5de1cde827c0487
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98665
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 19:19:16 +02:00
Michael Stahl
af97e1053f tdf#134667 filter: EPS export: fix integer unsigned->signed SNAFU
In PSWriter::ImplWriteF(), (nCount + 1) - nLen used to be unsigned long
but now it's unsigned 32-bit int so on 64-bit platform values > 2^31
no longer init nStSize to negative values.

(regression from cf82475c78)

Change-Id: Ib17537cf67c80883f10cf2a3b7e38d6a8f8dfcb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98654
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-07-13 19:05:21 +02:00
Noel Grandin
4c8f4cf3dd connectivity/mysql: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: Ifbfe7fe0aa54cd250efe4a55e9e648a74fd4dc04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98666
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 18:33:34 +02:00
Noel Grandin
15f44cb6fb expand out an UNO macro
to make the ongoing convert-to-UNO-constructor work easier

Change-Id: I99596561832b10538505cf4dfdabaf11d6e4d7cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98664
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 18:33:07 +02:00
Noel Grandin
0544ea4ef0 ucb/tdoc: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I669e3b35dd692b974c040b5d076d18f710d5cc28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98663
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 18:32:46 +02:00
Christian Lohmaier
1fdd4a2773 Update git submodules
* Update translations from branch 'master'
  to 09580786c1190b9ac378ba3077785d046afb88af
  - update translations for master/7.0
    
    and force-fix errors using pocheck
    
    Change-Id: Ie0de173892c097e353130fb3a466849cc2fd9b15
2020-07-13 16:14:56 +02:00
Caolán McNamara
186f8724fc cid#1465274 Dereference before null check
Change-Id: I40337228b8591ac4f5367e581a0d2fa7575f0143
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98623
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-13 16:09:17 +02:00
Bakos Attila
54031e6a29 tdf#132483: DOCX import: fix OLE anchoring position
The relative orientation of OLE objects was
not copied from the replacement object to
OLE, resulting bad position.

Co-authored-by: Attila Bánhegyi (NISZ)

Change-Id: If62124e5a40218a224e047efbe86a09606b44af5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98493
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-07-13 15:47:15 +02:00
Caolán McNamara
47a02f1f34 drop m_xFormatter during dispose
Change-Id: I7e5a0259072ae644bbf187737cecdf2f7b0459d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98652
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-13 15:29:43 +02:00
Caolán McNamara
b2fd41f491 don't grab focus if focus is already in a subcontrol
Change-Id: I3bc377e9d9ee1ad7b6066b7a1c2d27ddd7bb6b7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98651
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-13 15:29:20 +02:00
Andrea Gelmini
e2acc233c4 Removed executable bit on pptx
Change-Id: I9c18dbc91b6602b59075788989cb1b5b6fb5e79d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98658
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-07-13 15:04:10 +02:00
Andrea Gelmini
e4f3132472 Fix typo
Change-Id: I0b94689af645249f4142422d6bd2ec772f3bd373
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98659
Reviewed-by: Michael Warner <michael.warner.ut+libreoffice@gmail.com>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2020-07-13 15:03:36 +02:00
Noel Grandin
eae2ac9de5 filter/config: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I4de7d1b5822422bd7f85f09114c1e6ceb98551d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98611
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 12:42:43 +02:00
Samuel Mehrbrodt
92e816e08a Fix android build
After d4ff756769

Change-Id: If0549633fbc35b2cc6a42458b7671103f2939379
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98624
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 12:41:34 +02:00
Gabor Kelemen
76a2488d0c tdf#42949 Fix IWYU warnings in include/[a-r]*/*hxx
Recheck after 7-0 branchoff

Found with bin/find-unneeded-includes
Only removal proposals are dealt with here.

Change-Id: I7f5c35474b671facbda85a9538462dd4291add91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97655
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-07-13 12:22:54 +02:00
nd101
4a4fc98e59 tdf#134221 Fix SMARTART caption text location
Caption text shall be placed off center. Apply the transform2d.

Change-Id: Iefdf207c8aadefecbe2e3154879d03ca10456d7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96956
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2020-07-13 11:36:02 +02:00
Tünde Tóth
02c4b116cc tdf#134676 Chart OOXML import: fix X axis title width
Set length of the horizontal axis title box is about
to 80% of the length of the chart area, to avoid of
collision of axis titles, like MSO does.

Change-Id: Ie01308e2ddc8c1c4d19f812231ede21ff939cb98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98484
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-07-13 11:30:24 +02:00
Michael Stahl
7b156d37cf tdf#134618 sw: DOCX export: fix order of as-char and at-char fly...
...at same position.

The problem is that in this case the as-char fly was written before the
at-char fly but the positioning of the at-char fly can be relative to
its character position, i.e. before the as-char fly.

Apparently as-char flys are written in
DocxAttributeOutput::EndRunProperties() via WritePostponedDMLDrawing(),
wheras at-char flys are written earlier, in SwWW8AttrIter::OutFlys() via
DocxAttributeOutput::OutputFlyFrame_Impl().

So this undoes the swap that these undergo via the magic of the mark
stack.

Change-Id: I83a72bb2affbf321fc4dea4e7fb37bdb43cea2e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98543
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-07-13 11:24:29 +02:00
Michael Stahl
4e0aa38afd tdf#134618 sw: WW8 import: don't insert fieldmark for SHAPE field
Follow DomainMapper_Impl::CloseFieldCommand() and just don't waste
effort creating a fieldmark that doesn't provide any benefit.

This should avoid any fieldmark related problems introduced in
e511a0ca5dde6d731bb126bbfe21768867890102..d9030ad6298e2f49ee63489d6158ea6ad23c0111

Change-Id: I6688dcda1e3b41ac648f3d69740f05d34bb46191
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98542
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-07-13 11:24:06 +02:00
Shivam Kumar Singh
00be56d9db tdf#134661 Issue in Inspector update
This patch now uses AttrChangedNotify instead
of NotifyItemUpdate to check for cursor change

Change-Id: Ibdbd1565d72097d2f78ecb8194a201585951ce9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98490
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2020-07-13 11:11:55 +02:00
Vasily Melenchuk
d7ffeae2dd desktop: separate executable shortcut for safe-mode
In situations when no command line params are available (for
example in Windows Store msix packages they are still missing)
let's try to use another executable shortcut for soffice

Change-Id: I6d083912dbed1166d2d68efa5eb0096b73cb58c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98382
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-07-13 10:53:12 +02:00
Tünde Tóth
f6fc6ab2a2 tdf#122014 Chart OOXML import: set chart title alignment to center
Regression from commit: d4190685ac
(tdf#114836, only set changed SfxItemSet properties)

Change-Id: If33fa39019bbd36632d15eb3cc0606727e58b111
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98241
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-07-13 10:48:53 +02:00
Balazs Varga
c777cb492d tdf#134255 Chart OOXML Import: set the auto text wrap
property to true, if we do not have text property attribute.

Change-Id: I1a416f74c3f034f902fd583790f9db307f5e8881
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98252
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2020-07-13 10:39:19 +02:00
Caolán McNamara
aa9bca1db3 drop unused forward declares
Change-Id: I54136a8aa6e5544b2dbad013a74ffa991e16253b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98608
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-07-13 10:26:32 +02:00
Miklos Vajna
a78ed529e2 sw: prefix members of SwUndoField, SwUndoFieldFromAPI, ...
... SwUndoFieldFromDoc and SwXFrame

See tdf#94879 for motivation.

Change-Id: Iedf3b8d71f787036b29d0ed269e4d4d614128db9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98616
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-07-13 09:48:06 +02:00
Noel Grandin
df2a7a7932 filter/graphic: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I28b6c5a532f55c88bad46573c123f92766b5af91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98610
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 08:48:38 +02:00
Noel Grandin
cea25cb5ed filter/msfilter: create instances with uno constructors
See tdf#74608 for motivation.

Change-Id: I7bc7e89699173966406272138301a4ca2422281d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98609
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-13 08:47:58 +02:00
Samuel Mehrbrodt
3cfc390ecd tdf#134646 Remove "nearest paper matching" feature
This was introduced with da62b0feb6 to find
the best paper size for user defined page sizes.

However, this leads to problems with Impress: Slides have screen sizes which
have no relation to paper sizes. For the slide site "Screen (16:9)" the
page size "Executive" is the nearest matching size.

However, this paper is (though supported by printers), very uncommon.
We do not want the nearest matching paper size the printer supports, but
rather we want to fit the slide on the printer default paper.

Note that finding a matching print paper still works (and it even has some
fuzzy matching), so some sort of "nearest paper matching" still exists,
(but with sane limits).

Change-Id: Ie60023d64b251954aa50e8bbdd36f6a290b9f278
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98396
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2020-07-13 07:38:22 +02:00
Stephan Bergmann
15c599aaf2 tdf#128522: Improve wording of failure message
Change-Id: Ibfc6b2b329f4b82ae4d552d06abe95078d1fb016
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95992
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-07-13 02:55:47 +02:00