Commit graph

482871 commits

Author SHA1 Message Date
Michael Weghorn
5e4bcb501f android: Only offer creating docs when editing enabled
Hide the UI to create new documents unless the
experimental editing mode is enabled. There is
little use in creating new empty documents when there
is no way to edit them...

Change-Id: I2f8c86f5db96a5135ff8a66a7a7078b664d05a5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145735
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-01-18 13:03:46 +00:00
Michael Weghorn
20989728c7 android: Update Android Gradle Plugin to 7.4.0
... and gradle to 7.5.

Change-Id: If5156ab18dc500dafdfa4f8a0f6e6c2563acc4db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145711
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-01-18 12:38:43 +00:00
Caolán McNamara
1f1d75feef cid#1519050 silence Unchecked dynamic_cast
Change-Id: I024094717141eb3c545ee0491a0d34f03a74c8c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145707
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 12:25:40 +00:00
Caolán McNamara
ae76a67623 Related: tdf#152770 we don't use the font list, so don't warn if its empty
this is a left over from unused code removal

Change-Id: I6f6451561ae644a41d402f4de0d805a00945a66d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145712
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 12:25:01 +00:00
Caolán McNamara
90ffbbdcd3 cid#1519129 Improper use of negative value
Change-Id: Ib74c0734801e9f4b5cbeb9b1b19c12d5ad5eadbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145708
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 12:24:54 +00:00
Noel Grandin
2cad5c39e3 XUnoTunnel->dynamic_cast in FmXFilterCell
Change-Id: I7e875a9445fd24370d491315cb6a8aa42951f642
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145702
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-18 11:58:38 +00:00
Noel Grandin
02fc71edd6 XUnoTunnel->dynamic_cast in ValueSetAcc
Change-Id: I0ae633a29eda0658dfb92e92f498dc5fe1673219
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145701
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-18 11:39:41 +00:00
Noel Grandin
5afc1bcbda XUnoTunnel->dynamic_cast in ValueItemAcc
Change-Id: I51450d2bc611b888b5b2f77293eed7ea3f5cbce1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145700
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-18 11:39:34 +00:00
Andrea Gelmini
031f7527f4 Fix typo
Change-Id: Ifc9748fc33c72ad6e0cb334ca22ebb8b488164c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145710
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-18 11:28:31 +00:00
Caolán McNamara
e6b2761cb7 give message dialog a suitable parent
Change-Id: I2eb21cbc9e89189ab0fa4090c04fec98f654a542
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145687
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 10:49:23 +00:00
Caolán McNamara
7ed2ddbb5c set a parent for this warning dialog
Change-Id: Ia15a3cf7cc5136d2db7463f7486bcc14f4f6a6b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145686
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 10:49:14 +00:00
Caolán McNamara
7e34201849 only need ooo_fixed for gtk3
Change-Id: I2ddc54d013dbeeb75fd07bd5c4ec413306472167
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145680
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-18 10:48:59 +00:00
Stephan Bergmann
2eeda7e20b Fix use-after-free
...introduced with 18f1e7ae9d "sc: Use
FormulaGrammarSwitch" (which gets partially reverted here),

> ==7079==ERROR: AddressSanitizer: heap-use-after-free on address 0x61d0002d6cac at pc 0x7f3635905f9e bp 0x7ffdd2107b60 sp 0x7ffdd2107b58
> WRITE of size 4 at 0x61d0002d6cac thread T0
>     #0 0x7f3635905f9d in ScDocument::SetGrammar(formula::FormulaGrammar::Grammar) /sc/source/core/data/documen3.cxx:507:14
>     #1 0x7f362ce3da0c in FormulaGrammarSwitch::~FormulaGrammarSwitch() /sc/qa/unit/helper/qahelper.cxx:56:12
>     #2 0x7f36529ad332 in ScExportTest2::testRefStringUnspecified() /sc/qa/unit/subsequent_export_test2.cxx:436:1
>
> 0x61d0002d6cac is located 2092 bytes inside of 2280-byte region [0x61d0002d6480,0x61d0002d6d68)
> freed by thread T0 here:
>     #0 0x4fe180 in operator delete(void*) /home/tdf/lode/packages/llvm-llvmorg-12.0.1.src/compiler-rt/lib/asan/asan_new_delete.cpp:160
>     #1 0x7f36398e1b9e in __gnu_cxx::new_allocator<std::_Sp_counted_ptr_inplace<ScDocument, std::allocator<ScDocument>, (__gnu_cxx::_Lock_policy)2> >::deallocate(std::_Sp_counted_ptr_inplace<ScDocument, std::allocator<ScDocument>, (__gnu_cxx::_Lock_policy)2>*, unsigned long) /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/ext/new_allocator.h:125:2
>     #2 0x7f36398e1b4e in std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<ScDocument, std::allocator<ScDocument>, (__gnu_cxx::_Lock_policy)2> > >::deallocate(std::allocator<std::_Sp_counted_ptr_inplace<ScDocument, std::allocator<ScDocument>, (__gnu_cxx::_Lock_policy)2> >&, std::_Sp_counted_ptr_inplace<ScDocument, std::allocator<ScDocument>, (__gnu_cxx::_Lock_policy)2>*, unsigned long) /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/alloc_traits.h:462:13
>     #3 0x7f36398e0691 in std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<ScDocument, std::allocator<ScDocument>, (__gnu_cxx::_Lock_policy)2> > >::~__allocated_ptr() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/allocated_ptr.h:73:4
>     #4 0x7f36398e12b3 in std::_Sp_counted_ptr_inplace<ScDocument, std::allocator<ScDocument>, (__gnu_cxx::_Lock_policy)2>::_M_destroy() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:545:7
>     #5 0x7f3635077f59 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:170:10
>     #6 0x7f3635077bf9 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:684:11
>     #7 0x7f36388ea06c in std::__shared_ptr<ScDocument, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:1123:31
>     #8 0x7f36388e02b8 in std::shared_ptr<ScDocument>::~shared_ptr() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr.h:93:11
>     #9 0x7f36398a45c7 in ScDocShell::~ScDocShell() /sc/source/ui/docshell/docsh.cxx:2941:1
>     #10 0x7f36398a475f in ScDocShell::~ScDocShell() /sc/source/ui/docshell/docsh.cxx:2910:1
>     #11 0x7f36398a4908 in ScDocShell::~ScDocShell() /sc/source/ui/docshell/docsh.cxx:2910:1
>     #12 0x7f3627bd3f11 in SvRefBase::ReleaseRef() /include/tools/ref.hxx:163:29
>     #13 0x7f3627bd350c in tools::SvRef<SfxObjectShell>::~SvRef() /include/tools/ref.hxx:56:36
>     #14 0x7f3629662ce1 in IMPL_SfxBaseModel_DataContainer::~IMPL_SfxBaseModel_DataContainer() /sfx2/source/doc/sfxbasemodel.cxx:249:5
>     #15 0x7f362966598a in void __gnu_cxx::new_allocator<IMPL_SfxBaseModel_DataContainer>::destroy<IMPL_SfxBaseModel_DataContainer>(IMPL_SfxBaseModel_DataContainer*) /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/ext/new_allocator.h:140:28
>     #16 0x7f3629665746 in void std::allocator_traits<std::allocator<IMPL_SfxBaseModel_DataContainer> >::destroy<IMPL_SfxBaseModel_DataContainer>(std::allocator<IMPL_SfxBaseModel_DataContainer>&, IMPL_SfxBaseModel_DataContainer*) /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/alloc_traits.h:487:8
>     #17 0x7f3629660583 in std::_Sp_counted_ptr_inplace<IMPL_SfxBaseModel_DataContainer, std::allocator<IMPL_SfxBaseModel_DataContainer>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:535:2
>     #18 0x7f3627b7b1fc in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:154:6
>     #19 0x7f3627b7b029 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:684:11
>     #20 0x7f362966a9cc in std::__shared_ptr<IMPL_SfxBaseModel_DataContainer, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:1123:31
>     #21 0x7f362962f893 in std::__shared_ptr<IMPL_SfxBaseModel_DataContainer, (__gnu_cxx::_Lock_policy)2>::reset() /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/bits/shared_ptr_base.h:1235:9
>     #22 0x7f3629572b96 in SfxBaseModel::dispose() /sfx2/source/doc/sfxbasemodel.cxx:765:13
>     #23 0x7f3629591550 in SfxBaseModel::close(unsigned char) /sfx2/source/doc/sfxbasemodel.cxx:1496:5
>     #24 0x7f36295702fd in SfxBaseModel::dispose() /sfx2/source/doc/sfxbasemodel.cxx:722:13
>     #25 0x7f36247062aa in UnoApiTest::load(rtl::OUString const&, char const*) /test/source/unoapi_test.cxx:87:22
>     #26 0x7f362470bb09 in UnoApiTest::saveAndReload(rtl::OUString const&, char const*) /test/source/unoapi_test.cxx:207:5
>     #27 0x7f36529ad04f in ScExportTest2::testRefStringUnspecified() /sc/qa/unit/subsequent_export_test2.cxx:428:5

(<https://ci.libreoffice.org/job/lo_ubsan/2653/>)

Change-Id: I34adf135a4ec79935295a21b34277324c531291b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145706
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-18 10:01:52 +00:00
Miklos Vajna
1f8c02353d sc: fix crash in ScViewData::GetCurXForTab()
Crashreport signature:

program/libsclo.so
        ScViewData::GetCurXForTab(short) const
                sc/source/ui/view/viewdata.cxx:1431
program/libsclo.so
        ScViewFunc::OnLOKInsertDeleteColumn(short, long)
                sc/source/ui/view/viewfunc.cxx:1552
program/libsclo.so
        ScDocFunc::InsertCells(ScRange const&, ScMarkData const*, InsCellCmd, bool, bool, bool)
                source/ui/docshell/docfunc.cxx:2256
program/libsclo.so
        ScViewFunc::InsertCells(InsCellCmd, bool, bool)
                sc/source/ui/view/viewfunc.cxx:1658

Seeing that e.g. ScViewData::WriteUserDataSequence() already checks if
the pointer in maTabData is a nullptr, do the same here.

Change-Id: I0ebdba8c8a5bedd3c3c57c36bdf0632e2fee45c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145697
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-18 09:56:33 +00:00
Miklos Vajna
e9d5ccd5a0 sw, .uno:InsertField: add a new Wrapper parameter
This is similar to ceea8f3924 (sw:
.uno:TextFormField: add new Wrapper parameter, 2023-01-16), but that was
for fieldmarks & footnotes, while this is for refmarks & footnotes.

Also start a new test file as the one for the entire directory starts to
grow too long.

Change-Id: Ib7c0e03d6686a8a52a5691a4e2dbf97dcc2facba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145698
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-18 09:56:23 +00:00
Aron Budea
305e5fe1ba tdf#153080 RTL UI was misbehaving
Regression from
6f43f00279

Change-Id: I472381252641bdcd1416bad0893c416a041cc49f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145704
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2023-01-18 09:19:56 +00:00
Miklos Vajna
91c0e64c2f sw: rename getBookmarkFor() further to getOneInnermostBookmarkFor()
One additional complexity I missed is that there can be only one
innermost fieldmark for a position, but there can be multiple bookmarks,
because bookmarks don't have a starting dummy character.

See
<https://gerrit.libreoffice.org/c/core/+/145412/2#message-85a4780c8140038a9cc2bd4b9af64ecf97ee5e60>.

Change-Id: Ia5d3bebddd42be7c44b8df2d5db3c5312285a5f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145699
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-18 09:12:26 +00:00
Noel Grandin
90d658d6d1 XUnoTunnel->dynamic_cast in ExplicitValueProvider
Change-Id: I72b85a18d0a754f81a136fd79e56789aa926f425
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145617
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-18 09:08:49 +00:00
Heiko Tietze
d395b42cdf Resolves tdf#91415 - Scale Calc's comment indicator with zoom level
Avoids covering of content when zoomed out
Shows the indicatior as a triangle now

Change-Id: Icb613e0e728852dd2dfb6d52ad657a986d0c1a0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145677
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-01-18 08:22:08 +00:00
Stephan Bergmann
b63afb3c74 Fix typo
...which happened to go largely unnoticed (the would-be additional overload, as
seen when including drawinglayer/processor2d/SDPRProcessor2dTools.hxx first
thing in drawinglayer/source/processor2d/SDPRProcessor2dTools.cxx, was just
never defined nor used), but caused

> drawinglayer/source/processor2d/SDPRProcessor2dTools.cxx(140,6): error: externally available entity 'prepareBitmapForDirectRender' is not previously declared in an included file (if it is only used in this translation unit, make it static; otherwise, provide a declaration of it in an included file) [loplugin:external]
> bool prepareBitmapForDirectRender(
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

with clang-cl

Change-Id: I9f338dd998b66fe3223af045206a423b016b93f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145696
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-18 07:45:51 +00:00
Miklos Vajna
02f286271d CppunitTest_sw_rtfexport2: make testFdo48023() more self-contained
Avoid magic in preTest() based on the bugdoc name.

Change-Id: I40e3d58230e8e815bcea067cfc0ecca4ebeca98e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145683
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-18 07:11:22 +00:00
Noel Grandin
7195e2740e cleanup commit for Submission
The following commit missed some stuff:
    commit fc41f4d58c
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Sat Jan 14 12:41:58 2023 +0200
    XUnoTunnel->dynamic_cast in Submission

Change-Id: Ic27a813e360ae39227cd68213d2899ab64f0dee5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145688
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-18 05:01:26 +00:00
Justin Luth
29f23c0e71 tdf#114537 docx export: export conditional text with " as '
I couldn't find any way  in MS Word to escape a double-quote
that is inside of a conditonal text result.
So just "emulate" that with a single-quote,
which is a common substitute at least in the English world.

Hmm, Google says that { QUOTE 34 } would do the trick,
but it didn't work for me in Word 2010.

Change-Id: Ib9833e482911809c86b4e300533ea0aedbeed71c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145685
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-01-18 03:32:40 +00:00
Patrick Luby
ef558d0aab Related: tdf#42437 Skip special press-and-hold handling for action keys
Pressing and holding action keys such as arrow keys must not be handled
like pressing and holding a character key as it will insert unexpected
text.

Change-Id: I6beaff265e6cae30337b025791692ff67b760ff8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145689
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
2023-01-17 22:21:04 +00:00
Justin Luth
98550980e4 tdf#114537 docx export: export conditional text in quotes
DOCX is very much dependent on the true and false text
being in quotes. Likely any inside quotes need to be escaped,
but I haven't looked at that yet.

Change-Id: I9f1976a92ea21d9d444ab2e405a0678daa8f939c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145684
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-01-17 22:18:42 +00:00
Noel Grandin
db28a0cc2e tdf#153006 ordering of date/time formats in report builder
regression from
    commit 17d2247a66
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Fri Aug 13 19:03:23 2021 +0200
    formatter maps can use unordered_map

Change-Id: Ibc4bc71776a48c61fb9b651672404f9507c1f082
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145566
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 21:06:59 +00:00
Caolán McNamara
b5480ea6c5 gtk4: some basis for experimenting on a11y support
4.10 makes GtkAccessible public

Change-Id: Ib6ec27f9db9c9b87ff775fdc5a075b5b26a16b22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145679
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-17 21:04:52 +00:00
Caolán McNamara
a21258c86e Resolves: tdf#153059 after ChangeHeaderOrFooter the control can be disposed
If the cursor is still on page one then when a header, via a control on
another page, is added it jumps back to that page, so the widget on the
now hidden page is removed, but the click handler hasn't completed so
the follow up action to change it from a "plus" button to a dropdown
menubutton was on a disposed widget.

Change-Id: I981126412a0ee6a667d77fb97a3db2f2b0a0363c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145665
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-17 21:04:39 +00:00
Noel Grandin
a04bf69bcc XUnoTunnel->dynamic_cast in ZipPackageEntry
Change-Id: I0c49ebcb0ed16ab5b90c0cfa1417f002b5dad7b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145632
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 19:09:51 +00:00
Andrea Gelmini
c4341c95a2 Fix typo
Change-Id: I4f2cf13ce7b9dd7cd4d579bee1ad411459687c57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145668
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-01-17 18:59:38 +00:00
Noel Grandin
74600e7949 XUnoTunnel->dynamic_cast in ThumbnailViewItemAcc
Change-Id: Iba0a4a002b261e7b75e20e25d676a6a846b73647
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145669
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 18:17:57 +00:00
Fred Kruse
924005b067 ParagraphProperties.idl: SortedTextId: Changed 7.5 -> 7.6
Change-Id: Iebfae0952f0c2d7219cb00bf1af73e1a75f4f256
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145674
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
2023-01-17 17:36:14 +00:00
Caolán McNamara
bbf1d7faca tdf#152637 format cells example text black on dark background
with application colors, scheme: LibreOffice Dark enabled

Change-Id: I56ac48ec2e6afd77f20a8581c6d872942618d802
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145667
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-17 17:12:18 +00:00
Jean-Pierre Ledure
c7ac513a82 ScriptForge - (SF_Calc) fix CompactUp/CompactLeft methods
When
  - WholeRow/WholeColumn = False
  - no row or column matches the FilterFormula
the cells below or at the right were erroneously
shifted down or right.

Future behaviour:
- when nothing to compact,
   the initial range is left unchanged
   the return value = the initial range
- when all rows/columns are impacted,
   the initial range is cleared
   the return value = zero-length string
- otherwise
   the initial range is compacted
   the return value is the compacted range
In either case, the surrounding cells are unchanged.

Change-Id: I27288878dcadeb4ded297b7bb1e6897947ed5e56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145622
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-01-17 16:17:45 +00:00
Stephan Bergmann
ea70cf3ca0 loplugin:casttovoid ("unnecessary cast to void")
Change-Id: Ic891e3ea72e7946a9088ab77ba561d0f1c9b77e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145673
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-17 16:14:15 +00:00
Noel Grandin
3fdfee3268 XUnoTunnel->dynamic_cast in SfxOfficeDispatch
Change-Id: Ie1aa51a873d1e80a15cddf6220f23a6cf4d090c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145671
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 16:10:45 +00:00
Noel Grandin
23e6c378b6 XUnoTunnel->dynamic_cast in ThumbnailViewAcc
Change-Id: I0d7e98c45ff4b15c646ba90f7bd1f363300dcdb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145670
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 16:10:23 +00:00
Noel Grandin
6e0d5afa23 XUnoTUnnel->dynamic_cast in sd::ViewTabBar
Change-Id: I0aae59685986f07e74a15ef7e7261de808b20c47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145639
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 16:10:07 +00:00
Noel Grandin
fc41f4d58c XUnoTunnel->dynamic_cast in Submission
Change-Id: I2bafbecdd1b3f16375880e49708fe932db060812
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145626
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 16:10:02 +00:00
Caolán McNamara
873a695b64 tdf#153049 UpdateScrollBars on mouse release
which is what the old code effectively did

Change-Id: I19b6de0a0015420d1802969064b3338ce6ae1638
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145663
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-17 15:12:35 +00:00
Armin Le Grand (Allotropia)
6c8b6fa6c6 SDPR: use correct Viewport for sub renderer
Change-Id: Ia10731fbe44c812120ed6594959ddee909568187
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145666
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2023-01-17 14:53:40 +00:00
Noel Grandin
8446cac7d3 XUnoTunnel->dynamic_cast in ScDataPilotDescriptorBase
Change-Id: I493d3fbd5eabb70804bd44affefdd705118f8185
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145635
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 14:45:46 +00:00
Miklos Vajna
43d80906c8 sw: .uno:TextFormField: handle Endnote as a value for the Wrapper parameter
This is similar to the fieldmark-in-footnote case, but here we need to
make sure that the layout is calculated before the cursor attempts to
jump to the endnote, otherwise the fieldmark will be inserted before the
endnote anchor, not in the endnote body.

The move of StartAction() / EndAction() calls can be done
unconditionally, it's not a problem for the existing footnote case.

Change-Id: I772d27937456978ca6aa01148eff3163d8877208
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145660
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-01-17 13:43:36 +00:00
Xisco Fauli
18f1e7ae9d sc: Use FormulaGrammarSwitch
Change-Id: Ia4d21886a5a8536f20fed87bfea9676ac8603d86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145481
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-01-17 13:35:07 +00:00
Noel Grandin
5355f52b14 XUnoTunnel->dynamic_cast in sd::DrawController
Just past the concrete type down through a couple of layers, rather than
using a generic type and then casting

Change-Id: I7ba6c83463f3db7176b72cb7e764d3659706ae78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145638
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 12:40:28 +00:00
Noel Grandin
c1d50d738f XUnoTunnel->dynamic_cast in ODatabaseContext
Change-Id: I5e20afd203c07d371599634b2b3239b38a4ecce2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145625
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 11:51:25 +00:00
Noel Grandin
87d0f136de XUnoTunnel->dynamic_cast in ScNamedRangeObj
Change-Id: Ib298d8ba676f5a6ddf3fe9b7a49dc45c46d7adbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145636
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-17 11:28:43 +00:00
Michael Weghorn
377a8c8ed7 tdf#153058 android: Use "fit page" for min zoom level
So far, Android Viewer was using "fit page width"
as minimum zoom level, meaning that it was impossible
to zoom out to see the full page, e.g. when opening
a doc with page size A4 portrait and using
the device in landscape mode.

Change the minimum zoom level to take the page
height into account as well, i.e. adapt the minimum
zoom level to be "fit whole page" to allow doing that.

However, keep applying "fit page width" as
zoom level when double-tapping, by using
the "fit page width" zoom level as new
default zoom level and applying the default
instead of the minimum zoom level on
double-tap.
("Fit page width" is probably more desirable
than "fit whole page" at least when used on small
devices, at least in all cases where
writing is in horizontal direction, so the user
can see the current portion of text and scroll
down to continue reading/writing.)

Use on double-tap is currently the only use for the
default zoom level, the only previous occurence
was effectively unused since

        commit 9ab43aebad
        Date:   Wed Dec 4 17:18:20 2019 +0100

            android: Allow zooming for Calc as well

and finally dropped with
Change-Id I702874f1d9161e5cef660bb4c4a0b7864d6e3c09
("android: Drop superfluous ZoomConstraints#mAllow{,DoubleTap}Zoom").

Change-Id: Ica5d8207bc19a81173143fcb5c3747dc89f9fa81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145658
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-01-17 11:08:27 +00:00
Michael Weghorn
7c39976705 android: Drop superfluous ZoomConstraints#mAllow{,DoubleTap}Zoom
Both members are always set to true since

    commit 9ab43aebad
    Date:   Wed Dec 4 17:18:20 2019 +0100

        android: Allow zooming for Calc as well

, so drop the two now superfluous members and
getters.

Change-Id: I702874f1d9161e5cef660bb4c4a0b7864d6e3c09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145657
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-01-17 11:08:21 +00:00
Tünde Tóth
a1f16b4603 tdf#152989 sc: fix oversized rectangle of edited embedded object
Editing resulted unusably oversized OLE objects. Keep
its original size to fix the UX problem.

Note: lost zoom is still a problem.

See also commit fdf95de18e
"tdf#152991 sd: fix oversized rectangle of edited embedded object"

Change-Id: I6b73d1aea76ea4addc24ff978403893c3cbd3dac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145432
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2023-01-17 10:34:24 +00:00