Commit graph

458330 commits

Author SHA1 Message Date
Jean-Pierre Ledure
10d7c694ab ScriptForge - (SF_Form) methods for forms and subforms
MoveFirst, MoveLast, MoveNew, MoveNext, MovePrevious
Requery

Change-Id: I7d4962e16652c6ef6e0b5400a8b4beae0b15d20b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109298
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-01-15 09:58:12 +01:00
Tor Lillqvist
fde2629fa5 Fix errors in produced JSON introduced with the switch to JsonWriter
GetRedlineAuthorInfo() should produce a JSON array and not an object
with empty strings as keys, which is incorrect JSON. The code in
Collabora Online expects an array, see Document::getViewColors() in
kit/Kit.cpp.

Producing the wrong kind of data leads to Poco throwing an exception:

Assertion violation: !_key.empty() [in file "src/ParseHandler.cpp", line 64]

Also SwXTextDocument::getPostIts() should produce a JSON array.

Change-Id: I1ab0653ca1eaa3c466d31b1f068ba5937a04e43e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109316
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-15 09:09:44 +01:00
Tor Lillqvist
5aee16cf09 Make JsonWriter::writeEscapedOUString() handle surrogate pairs properly
It is wrong to iterate over UTF-16 code units one by one. We have
OUString::iterateCodePoints() to iterate over Unicode code points.

The two UTF-16 code units of a surrogate pair (for a non-BMP code
point) should not be encoded separately to UTF-8 bytes. It is the code
point that should be encoded (to four bytes).

Change-Id: Ica4341308deb6618c9c2da8dcee8a11ef4e8238d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109318
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-15 08:54:12 +01:00
Tor Lillqvist
84a6cfd9bb Fix handling of the OBJECTDESCRIPTOR clipboard (pasteboard) type on macOS
This fixes a demonstrable problem, and affects only macOS.

This is also on the path towards fixing
https://github.com/CollaboraOnline/online/issues/849 , even if the
code touched here is for macOS only. The iOS pasteboard handling code
is based on the macOS one.

We need the pasteboard to have the OBJECTDESCRIPTOR type as a MIME
type that includes the typename attribute, because the code in sc
checks for that when it decides whether it is a proper
OBJECTDESCRIPTOR.

Simplify the data in the flavorMap array. No need to duplicate the
same MIME type string as both the pasteboard type and MIME type, for
those cases where the MIME type is used diretly as pasteboard type. We
also know that for those types, the MIME type might have additional
parameters, so be more lenient in checking.

With this change, and my recent change to sot, this now works:

Start LibreOffice. Open a spreadsheet. Select a cell range. (It can
include formulas.) Edit > Copy. Quit LibreOffice.

Start LibreOffice again. Open a spreadsheet. Edit > Paste. You get the
very same cells that you pasted as such (with relative cell addresses
in formulas properly adjusted, as expected).

Previously, it would paste an image of the copied cell range, which is
fairly pointless.

There is still lots of opportunity for cleanup in the clipboard code
for macOS and iOS. It is presumably rather pointless to put images on
the pasteboard in Windows bitmap format, for instance. Just PNG should
be enough. No idea why the code provides the TIFF pasteboard type for
images. Ditto for Windows metafiles (WMF and EMF). It is also unclear
how useful the EMBED_SOURCE or LINK_SOURCE types are on macOS, for
instance.

Change-Id: I573648480b03972b506203b4f470d513bcb81212
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109297
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-15 08:48:54 +01:00
Tor Lillqvist
846bcc5adb OUString::matchAsciiL() can be used instead of the fresh startsWithAsciiL()
Revert the addition of the latter.

Change-Id: I93636a901cde401b0b7d923e052887f57dd58212
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109315
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-15 08:48:20 +01:00
Szymon Kłos
72f1cbe59a jsdialog: TreeView row activation
Change-Id: I3d2884d456f8b6fa01d2dbe6c4d2f7d9e9528e1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109261
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-15 08:40:01 +01:00
Szymon Kłos
8760c3036b jsdialog: enqueue messages in order
Change-Id: Ib50cf6e2b57c591d1d3cffbe823162d7a17474cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109262
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-15 08:39:21 +01:00
Mert Tumer
ca8ba00bb8 jsdialogs: Use JS dialog for Fontwork dialog
Change-Id: I4d2206550f7d3948f373c803888c7d19034e42c4
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108684
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109217
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-15 08:37:57 +01:00
Miklos Vajna
97601533cb pdfium: add wrapper for FPDF_FILLMODE_* defines
Which is, I think, the last direct pdfium usage outside vcl.

Change-Id: I2e435e5a3669c6163bf2c20bc6d1d8bd4c88cecd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109314
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2021-01-15 08:35:11 +01:00
Noel Grandin
61a3aaae61 cid#1471704 workaround
Coverity complaints that
"nVal = nNum[0] in bigint.cxx:84 is an assignment of overlapping memory"
But this is essentially a tagged union, so it's actually fine.
Workaround the warning by using a temporary (which the compiler
will optimise away anyhow)

Change-Id: I0fda945f831b1cdd7b33f7cb671a744150990bf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109294
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-01-15 08:08:40 +01:00
Mike Kaganski
f582670131 Use value comparison here
This was always comparing pointers, ever since commit
cb07ed8c74. They could only
happen to be not different if they are both nullptr. But
the uses of the function seem to expect value comparison
(see SdrObjEditView::ImpChainingEventHdl,
SdrObjEditView::SdrEndTextEdit).

Change-Id: I2265dc8f0f7e4441940f8e19ec0b016b5f78e812
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109284
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-01-15 07:26:48 +01:00
Jim Raykowski
9598018e67 Make page navigation in move navigation handler consistent
Page navigation in the move navigation handler scrolls the view without
moving the cursor or unselecting selections. This patch makes page
navigation that results in document wrapping, scroll the view without
changing the cursor position or selections. This is useful, for example,
when find all search is made and page viewing is wanted that does not
destroy cursor selections.

Change-Id: Ie062eeba9a29c2b8a42605ed842d60244cc74147
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108380
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2021-01-15 01:02:58 +01:00
Xisco Fauli
fd2dbccefa uitest: sw: factor out common code ( part 3 )
Change-Id: I8c65b9729b4a5c91c77c278282b54a9410876ca9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109259
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-01-15 00:19:42 +01:00
Tor Lillqvist
5f787d7f9d Run through clang-format and fix a typo
Change-Id: I24e5fd839fa9ab7d7496180c6d6fdaa89774c94a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109312
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14 21:40:46 +01:00
Julien Nabet
25c5894885 Rename m_xClose->mxCancel + CloseHdl_Impl->CancelHdl_Impl (sw/mailmerge)
In sw/uiconfig/swriter/ui/mmsendmails.ui
we got:
id="cancel"
gtk-cancel
<action-widget response="-6">cancel</action-widget>
+
in sw/source/ui/dbui/mmoutputtypepage.cxx
IMPL_LINK_NOARG(SwSendMailDialog, CancelHdl_Impl, weld::Button&, void)
we got:
    if (m_bDestructionEnabled)
        m_xDialog->response(RET_CANCEL);

we want to cancel the process to send (of course what's already be sent can't be undone)

Change-Id: If221ecc20366f0634079ab515613757cc019c8ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109300
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 21:13:59 +01:00
Julien Nabet
a9af05467e Replace gtk-close to gtk-cancel (sw TOC dialog)
In sw/uiconfig/swriter/ui/tocdialog.ui
we got:
id="cancel"
<action-widget response="-6">cancel</action-widget>

In sw/source/ui/index/cnttab.cxx
we got:
SfxTabDialogController(pParent, "modules/swriter/ui/tocdialog.ui", "TocDialog", &rSet)
which contains std::unique_ptr<weld::Button> m_xCancelBtn;

and finally if you change some options in the TOC dialog and click on "Close"
then open again the dialog, all the changed options are reverted.

=> UI impact, the button is renamed "Cancel" instead of "Close"

Change-Id: Ia99e7c8a10da51f258faf0833ea1931ce62364bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109301
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 21:08:55 +01:00
Mike Kaganski
197357413a Drop some unused "using" directives
Change-Id: Ibc071f7b3d21c24e119fdc4e0db5351f80813287
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109279
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-01-14 20:51:58 +01:00
Justin Luth
8466fae95a tdf#138544 sw LoadUserSettings: default EmptyDbFieldHidesPara
This is the fourth patch in the series.
When you start a new document, Writer compat setting
"Hide paragraphs of database fields with an empty value" is on.
Now, when saving and reloading it with LoadUserSettings disabled,
it is still the program default of "on", instead of "off".

This one was a bit different because it didn't initialize
in the standard way.
    // for some properties we don't want to use the application
    // default if they're missing. So we watch for them in the loop
    // below, and set them if not found
So I'm changing it to match the standard way,
and adding the now familiar clause to cover the case
when the LoadUserSettings is disabled.

Change-Id: I979b01340000056567a4baa9ace27f9f9d15e9b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108548
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2021-01-14 20:23:55 +01:00
Caolán McNamara
9013666c5a cid#1471346 Uncaught exception
Change-Id: I535affd6597636aa32e1cf9c6005238f9503ef6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109266
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 20:22:35 +01:00
Caolán McNamara
3831aa8114 drop newly added deprecated GtkAlignment instance
Change-Id: Iad8d15ffc89b48aca698553329cda643dd0b4406
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109260
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 20:21:53 +01:00
Christian Lohmaier
0c82232305 Update git submodules
* Update translations from branch 'master'
  to 4668a661bfdc743bb88bfc5b7fbc83383974d733
  - update translations for master
    
    and force-fix errors using pocheck
    
    Change-Id: I5a86a2cfa383bbd34bd95ea0008959518a230793
2021-01-14 19:11:20 +01:00
László Németh
b5ab4836c0 tdf#39721 sw change tracking: fix move down
When moving list items by Move Down (see Bullets
and Numbering toolbar) to a non-content node (e.g.
tables, images or end of the document), tracked
deletions of the inserted paragraphs reappeared
as non-deleted text.

Note: disable unit test on Windows because of
a not reproducable problem of the Jenkins build
(moreover, reverting the patch, and modifying the
unit test according to the revert has still resulted
the same problem on the Windows test machine).

Change-Id: I3fb49061a81f832e1070da0f78cf7c5b3bd7d2c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108888
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-01-14 18:18:36 +01:00
Seth Chaiklin
5eda63e85c Update git submodules
* Update helpcontent2 from branch 'master'
  to 0a848766232d6516f2af5a7605373b2ab8ca193e
  - tdf#130170 update change in dialog box label
    
      tdf#139017 changed a label in the "New Style from Selection"
      dialog box.  This patch updates the label.
    
    Change-Id: I830cec29fdf1a358ae0a217ee53688059a193f67
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109286
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
    Tested-by: Jenkins
2021-01-14 18:14:05 +01:00
Tor Lillqvist
ba1cd49642 Make SotExchange::GetFormat() accept a MIME type with additional parameters
For instance, if SotExchange::GetFormat() is passed a flavor with MIME
type
"application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star
Object Descriptor (XML)\";typename=\"LibreOffice 7.2 Spreadsheet\"" we
do want to recognize it as SotClipboardFormatId::OBJECTDESCRIPTOR,
even if the MIME type in the entry for it in the array in
ImplFormatArray_Impl only has the windows_formatname parameter.

This is part of fixing
https://github.com/CollaboraOnline/online/issues/849, but it will help
for corresponding problems with LibreOffice on macOS, too.

Note that on Linux, SotExchange::GetFormat() gets called with a flavor
with a MIME type that does *not* have all the extra parameters
(classname, typename, displayname, viewaspect, width, height, posx,
posy) (See the GitHub issue mentioned above.) This change does not
remove any checks for classname, typename, etc. There are/were no such
checks in SotExchange::GetFormat().

But, in the (much different) code path for macOS (and iOS), with my
work in process in vcl, SotExchange::GetFormat() gets called with a
flavor with a MIME type that *does* contain those extra parameters. I
don't see the point in introducing checks of the "sanity" of those
into SotExchange::GetFormat().

Change-Id: Ie65ed1ab922cdaa6557eb65d980b9e886d3c6971
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109254
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14 18:07:59 +01:00
Tor Lillqvist
06ecfbe3d2 Introduce startsWithAsciiL() to match endsWithAsciiL()
Will be used in an upcoming change. Unit test included.

Change-Id: I777a755cab543ea277b84fb5ad021d0b91725764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109264
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14 18:06:58 +01:00
Seth Chaiklin
51d9f9069a Update git submodules
* Update helpcontent2 from branch 'master'
  to 319b987c6acfd51ba009e6c2e63284bf2eec92c7
  - tdf#107229 (related to tdf#138846) update "settings" label to "tools"
    
       tdf#138846 changed the "settings" label to "tools" in the template manager
       This patch makes the necessary updating in the template manager help
    
    Change-Id: I2b20ccfe2919c4d6a15ed12ccf33fc98d003825f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109008
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
    Tested-by: Jenkins
2021-01-14 17:51:02 +01:00
Alain Romedenne
9ec5883c65 Update git submodules
* Update helpcontent2 from branch 'master'
  to 434d763ddb4a8bb32e3896eb967c93c74479a873
  - Gimmicks Basic shared library help page
    
    - entry points
    - loaded libraries
    - related topics
    
    Change-Id: I762b4985a943a88ef31843c55fdfe98f1badf639
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109282
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-01-14 17:19:30 +01:00
Julien Nabet
6a80183743 Asian phonetic guide dialog uses "close" widget
and not cancel one.
widget response = -7 corresponds to GTK_RESPONSE_CLOSE
See https://gtk.developpez.com/doc/en/gtk/GtkDialog.html
label is "gtk-close" and the variable name is "m_xClosePB"

Change-Id: I6ac8e1814ff3c594498d81e99e864939b6a2c23a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109252
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 16:55:44 +01:00
Stephan Bergmann
a33469518f Bump MSVC baseline to Visual Studio 2019 version 16.5
After b4b7e92cbf "Use MSVC's /permissive- to make
it more standards conforming", vmiklos reported that his 16.4.6 build started to
fail with

> C:/lo/master/connectivity/source/drivers/odbc/OStatement.cxx(411): error C2760: syntax error: unexpected token 'identifier', expected 'type specifier'
> C:/lo/master/connectivity/source/drivers/odbc/OStatement.cxx(411): note: This diagnostic occurred in the compiler generated function 'T connectivity::odbc::OStatement_Base::getStmtOption(SQLINTEGER) const'
> C:/lo/master/connectivity/source/drivers/odbc/OStatement.cxx(418): error C2760: syntax error: unexpected token 'identifier', expected 'type specifier'
> C:/lo/master/connectivity/source/drivers/odbc/OStatement.cxx(418): note: This diagnostic occurred in the compiler generated function 'SQLRETURN connectivity::odbc::OStatement_Base::setStmtOption(SQLINTEGER,T) const'
> [build CXX] connectivity/source/drivers/odbc/ODatabaseMetaData.cxx
> make[1]: *** [C:/lo/master/solenv/gbuild/LinkTarget.mk:301: C:/lo/master/workdir/CxxObject/connectivity/source/drivers/odbc/OStatement.o] Error 2
> make[1]: *** Waiting for unfinished jobs....
> C:/lo/master/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx(161): error C3861: 'checkDisposed': identifier not found
> C:/lo/master/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx(161): note: 'checkDisposed': function declaration must be available as none of the arguments depend on a template parameter
> C:/lo/master/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx(161): note: This diagnostic occurred in the compiler generated function 'T connectivity::odbc::ODatabaseMetaDataResultSet::getInteger(sal_Int32)'
> make[1]: *** [C:/lo/master/solenv/gbuild/LinkTarget.mk:298: C:/lo/master/workdir/CxxObject/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.o] Error 2

while it succeeded after upgrading to 16.8.4.  That change had been seen working
with 16.5.4 (on tb73, see
<https://lists.freedesktop.org/archives/libreoffice/2021-January/086635.html>
"Heads up: Use MSVC's /permissive- to make it more standards conforming"), so
lets hope that bumping the baseline from 16.4 to 16.5 is all that is needed.

Change-Id: I7446f778a94e15e7ea5c8ef0780bf10831a2d4b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109293
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-01-14 16:43:04 +01:00
Alain Romedenne
fb4cc4d25e Update git submodules
* Update helpcontent2 from branch 'master'
  to fb2118d675e4c6a7b19b6b27c1cbe56c32e9e41e
  - typo correction
    
    Change-Id: I15d9f396f7d2879bf48c79761e5b4c1ff9de1972
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109283
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-01-14 16:17:53 +01:00
Tor Lillqvist
1dacb8cb94 Add an option to dump pasteboard data for a type to stdout
Change-Id: Iafa24799c5c18abef93f032a2f637c39f4a9cf5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109296
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14 15:49:49 +01:00
Seth Chaiklin
30b599ed27 Update git submodules
* Update helpcontent2 from branch 'master'
  to a8d509f67da36c7e5a0db4dd3679be8a9b6bf8ba
  - tdf#139542  remove "Data Area" from Sort options help
    
      * correct control name to "Case sensitive"
      * update to <h1> and <note>
    
    Change-Id: I8980bda5daaeaac04c5116de083a8b24a9bbdf53
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109276
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-01-14 15:24:43 +01:00
Mike Kaganski
6aabffcfc1 Use comphelper::ContainerUniquePtrEquals here
This restores correct comparison of pointed values, that was
broken since commit df3e716b3c.
Thanks Noel for investigation :-)

This restores operator== dropped for being unused in commit
1d25e1de0b.

Change-Id: I5614be004c0a98f5dc6f22febc3a51de08e75664
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109116
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-01-14 15:22:37 +01:00
Balaharipreetha Muthu
43c72f9b73 Update git submodules
* Update helpcontent2 from branch 'master'
  to d3699ebe29792a680cc965f5bdaa5b8a9432b8aa
  - tdf#139436 Add Help page for Format - Conditional - Data bar - More Options dialog
    
    Change-Id: I83faa2d1edb8f5cba08a7b1054bd66fc17f835b9
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109129
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-01-14 15:18:47 +01:00
Caolán McNamara
3208ded468 cid#1471680 help coverity see that "Division or modulo by zero" is bogus
Change-Id: I3c349b2cc274de6a74cb1de71b630c4fcb64231e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109268
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 14:52:30 +01:00
Caolán McNamara
bcca21c44d cid#1470700 try to help coverity see 'Using invalid iterator' is false
Change-Id: I04f3d2779db32cc5ca3d6303d146d017aa4f5ef4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109265
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 14:51:58 +01:00
Caolán McNamara
32aae380b0 cid#1471674 help coverity see that "Division or modulo by zero" is bogus
Change-Id: I82fc94d242e446d434c257471e80a6db2536e8aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109267
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-01-14 14:51:31 +01:00
Mike Kaganski
af343d6bc4 Make lambda auto parameters explicitly const
Change-Id: Ie8fe7738476f31ea3670987842f552782e9624da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109273
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-01-14 13:21:21 +01:00
Tor Lillqvist
feb6a4b2c5 Add a tiny program to list the contents of the macOS pasteboard
Change-Id: I78933f18a80140e9ccacabd6243716205b530c43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109271
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14 12:27:24 +01:00
Tor Lillqvist
c9853ace25 Add more source files for breakpointing convenience
Change-Id: I130273b7b5e812df1eeb904f652d23a492398636
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109270
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14 12:26:49 +01:00
Noel Grandin
52db69ed08 flatten formats data in SotStorage
there is no need for all this indirection.

Change-Id: Ie44723b54313b1103fe33a00ed014e2b28a59638
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109225
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-01-14 11:18:42 +01:00
Dennis Francis
e16b704db9 lok: send sheetGeometry invalidation after sort
...just for the rows to let the client know the row sizes/spans have
changed.

Change-Id: I26f985ab0ba4eb5b21db5783a8ac3957c64c2f22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109207
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit cca01519c7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109272
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
2021-01-14 10:49:09 +01:00
Dennis Francis
b14107dd0e tdf#133858 reduce the double-ref range to data content
in certain matrix formulas like SUM(IF(A1=G:G, H:H)*B1/B2) where whole
columns are used for comparison in the condition of IF ultimately
followed by a reducer like SUM. In such cases we can safely reduce the
double-refs involved in the comparison to the sheet area where there is
data before converting the data to ScMatrix.

This is a more restricted version of Noel's fix in
37ffe509ef

Change-Id: I1c2e8985adedb3f4c4648f541fb0e8e7d0fae033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109050
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 65167a9265)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109118
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
2021-01-14 10:47:19 +01:00
Tor Lillqvist
2e942c9b27 Add some more source files and drop dead ones
Change-Id: Ie669750404dd9b73881a9e217e3cced0bf21e42b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109263
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2021-01-14 10:34:42 +01:00
Szymon Kłos
aa10a99651 Make Fontwork gallery dialog async
Change-Id: I156dc1b505b01dc7520ccfe80bbf97eba881d653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109092
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109258
Tested-by: Jenkins
2021-01-14 10:23:27 +01:00
Szymon Kłos
e87119a3a9 jsdialog: execute IconView actions
Change-Id: If94df547096a5adb15ace432695f91ee7e879bb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109078
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109257
Tested-by: Jenkins
2021-01-14 10:23:00 +01:00
Szymon Kłos
26f246c020 jsdialog: dump IconView
Change-Id: I82df1f5e5f966e764b768044526b3401d55fc394
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108984
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109256
Tested-by: Jenkins
2021-01-14 10:22:43 +01:00
Szymon Kłos
95bddeaa81 jsdialogs: implemented IconView
Change-Id: I05f5009efc879aaf3fc6055ff8dfa7c26aa33d1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108983
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109244
Tested-by: Jenkins
2021-01-14 10:21:29 +01:00
Szymon Kłos
5ade3c6ce8 Move SalInstanceIconView decl to header file
Change-Id: I179f044b3db38ee51f539ef4023b136eac55f4ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108982
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109182
Tested-by: Jenkins
2021-01-14 10:21:05 +01:00
Szymon Kłos
c87b1a8874 UITest: add IconView
Change-Id: I6971d73e65f0a1f60203ea1010ed8ad3ba176755
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109243
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-14 10:20:45 +01:00