452964 Commits

Author SHA1 Message Date
Stephan Bergmann
96b3de39bc Document that the deleteException hack is only relevant for LLVM 5, not later
Change-Id: I2d93d3d76f2fe5e24e6864725184519c0595076b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100638
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-13 13:41:20 +02:00
Stephan Bergmann
e6450f1115 gcc3_linux_aarch64 also needs the hack to dynamically adapt to __cxa_exception
...in LLVM 10 libcxxabi, same as f4b6f6a8ae60bdec53512728d00853b73fa18500 "Hack
to dynamically adapt to __cxa_exceptiom in LLVM 11 libcxxabi" for
gcc3_macosx_x86-64 and 986bd28388df745dd969e7be7c3bda36b2b2cb0e "ofz#24641
libc++abi __cxa_exception has grown another member" for gcc3_linux_x86-64.
(Note that 91c8a3f3e7d3c178952d7e78e24cd0d6ba2b165a "The
__cxa_exception::reserve member has been backported to LLVM 10 libcxxabi" found
out that this is already relevant for LLVM 10, contrary to the mentioned
commits' subject lines.)

On macOS arm64 (which shares the bridges/source/cpp_uno/gcc3_linux_aarch64/
code) we know that we always target a >= LLVM 10 libcxxabi, so we do not need
the hack there.

Change-Id: I49e3d5b06b0b427ee3edeb10281025e4b9f2615f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100644
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-13 13:25:47 +02:00
Rizal Muttaqin
d0e2d5817f Sifr: icons for Manage Changes
Change-Id: I71b1dcdaac623d3d5927035fabc031a64204995a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100635
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-08-13 13:23:43 +02:00
Rizal Muttaqin
6d5f547f55 Karasa Jaga: enlarge Insert Char/Symbol icons, update Ref Field icons
Change-Id: I16184cc81bda1b9608bbf52d2732e2fd3f5a8cf3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100636
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-08-13 13:23:16 +02:00
Adolfo Jayme Barrientos
858f93392c Update git submodules
* Update helpcontent2 from branch 'master'
  to 30948b9f503a6270edd2ead2dd13fe9085ab5076
  - There is no space in “OpenCL”
    
    Change-Id: I11e897ee51ec3f8962a203ba7192fcf10f36c668
2020-08-13 09:54:24 +02:00
Samuel Mehrbrodt
6a32706e7c Add "All supported files" filter to extension add dialog
Did you know you can install xcu files directly via extension manager?
Now it should be easier to discover...

Change-Id: I9a96708fd13f762b20916540e6fa9b87bb582677
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100176
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2020-08-13 09:39:59 +02:00
Noel Grandin
0e8681d4a1 simplify memory management in SfxInPlaceClient_Impl
no need for the impl class to hold a reference to itself

Change-Id: I4ee3fc46df93d9ba087590af33d78834a454161f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100619
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 09:19:23 +02:00
Miklos Vajna
426d210c4d connectivity: avoid unnamed parameter
Change-Id: I6745f281924573140b02c5f7e5b7174cd9661134
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100631
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-08-13 09:08:24 +02:00
Noel Grandin
3101fa6862 use OUStringLiteral in SfxItemPropertyMapEntry
Change-Id: I4f05b6a35010e661ea77f3e4b83302d2ec74d227
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100405
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 08:18:40 +02:00
Noel Grandin
8143a2023f expand out DELETEZ in sfx2
Change-Id: Iced9299be454f5260582b0b639aad8e5d362d730
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100620
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 08:18:20 +02:00
Noel Grandin
8ce3647224 use unique_ptr in SfxObjectShell_Impl
Change-Id: I90fda5d15168027bb92d9c6265b0065e3fa0472d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100621
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 08:17:22 +02:00
Noel Grandin
8436c02338 use unique_ptr in SfxBindings_Impl
Change-Id: I8377fc5e8d79456aaa5d827f62e3d9c74ca8e52a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100623
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 08:16:50 +02:00
Noel Grandin
bbd598e62f use unique_ptr in SwView
Change-Id: I0aee92369627b18f8c6eabb756e0f409863e2a58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100617
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 08:16:22 +02:00
Noel Grandin
3457da6abe loplugin:stringstatic also look for local statics
Add some API to O*StringLiteral, to make it easier
to use in some places that were using O*String

Change-Id: I1fb93bd47ac2065c9220d509aad3f4320326d99e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100270
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-13 08:16:03 +02:00
Rizal Muttaqin
47196637a4 Sukapura: Update MIME types and document folder icons
Change-Id: If55b75c4af523e2cd1440d0546e7ae38d578af93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100634
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-08-13 02:47:53 +02:00
Rizal Muttaqin
72268f475d tdf#135265 Add icon variants in Manage Changes dialog
Change-Id: Ifcffc928040fc5e3f82f005d977bf3f6df8bd786
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100633
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-08-13 02:15:50 +02:00
Maxim Monastirsky
839b27f249 Merge toolbar popup classes
Now that all popups are welded.

Change-Id: I5ad8a4eb6b9512ea9dd075b56d0ae6ee201fff19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100597
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2020-08-13 00:40:05 +02:00
Rizal Muttaqin
d9f944ce94 Colibre tdf#135670 Square Bevel and Octagon Bevel icons
Change-Id: I99fd0a65899d3322896fe5f9fdab93e6521d41c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100604
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <riz_17_oke@yahoo.co.id>
2020-08-12 23:54:22 +02:00
Miklos Vajna
29eaf5c012 sw: prefix members of SwFmDrawPage, SwNumRule, SwTableAutoFormat and ...
... WriterSpecificAutoFormatBlock

See tdf#94879 for motivation.

Change-Id: Ie740f07e1c65a6def6ba673529144d0e111b056e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100610
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-08-12 22:37:42 +02:00
Olivier Hallot
50c6fba059 Update git submodules
* Update helpcontent2 from branch 'master'
  to 6b7711c79345eb2171679b634d23e1be1722dc81
  - Fix "zurueck" in many files
    
    Change-Id: I6c8203f5a3ace90e58453792b5356d51dc12e59e
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/100630
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-08-12 22:32:57 +02:00
Olivier Hallot
cd3675f050 Update git submodules
* Update helpcontent2 from branch 'master'
  to 49af25239f655a8d87dbe28bf5ed75040ca6bc11
  - Reposition query design help page
    
    Change-Id: I5bf19c20cbac1b764aec972fa756586438279cc0
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/100629
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-08-12 22:32:17 +02:00
Noel Grandin
0a8ce55f71 expand out DELETEZ
Change-Id: I5460de0f54a0d7c1a18ce8f1fa33ef3405d8183c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100622
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 22:27:16 +02:00
Noel Grandin
d4df251320 expand out DELETEZ
Change-Id: Ia69fb105c6cc661ac94a360d47655b3faa9d6bb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100618
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 22:04:55 +02:00
Stephan Bergmann
2cb40c77cd Let exceptions pass through aarch64 callVirtualFunction built with Clang
At least with Clang 12 trunk on Linux, CustomTarget_testtools/uno_test aborted
with

libc++abi: terminating with uncaught exception of type com::sun::uno::RuntimeException

at

> #0  0x0000ffffad97e598 in raise () from /lib64/libc.so.6
> #1  0x0000ffffad96ada0 in abort () from /lib64/libc.so.6
> #2  0x0000ffffadbf704c in abort_message (format=format@entry=0xffffadbfa398 "terminating with %s exception of type %s") at /llvm/llvm-project/libcxxabi/src/abort_message.cpp:78
> #3  0x0000ffffadbe50ec in demangling_terminate_handler () at /llvm/llvm-project/libcxxabi/src/cxa_default_handlers.cpp:67
> #4  0x0000ffffadbf633c in std::__terminate (func=<optimized out>) at /llvm/llvm-project/libcxxabi/src/cxa_handlers.cpp:59
> #5  0x0000ffffadbf92ac in __cxxabiv1::failed_throw (exception_header=0x361b5970) at /llvm/llvm-project/libcxxabi/src/cxa_exception.cpp:152
> #6  __cxxabiv1::__cxa_throw (thrown_object=0x361b59f0, tinfo=0x43f5a0 <typeinfo for com::sun::uno::RuntimeException>, dest=0xffffa0575b84 <com::sun::uno::RuntimeException::~RuntimeException()>) at /llvm/llvm-project/libcxxabi/src/cxa_exception.cpp:283
> #7  0x0000ffffa056944c in bridge_object::(anonymous namespace)::Test_Impl::getRaiseAttr1 (this=0x361810c0) at testtools/source/bridgetest/cppobj.cxx:296
> #8  0x0000ffffa0644b70 in callVirtualFunction (function=281473371790408, gpr=0xffffcc4c1b68, fpr=0xffffcc4c1b28, stack=0xffffcc4c18d0, sp=0, ret=0xffffcc4c1cf0) at bridges/source/cpp_uno/gcc3_linux_aarch64/callvirtualfunction.cxx:38
> #9  0x0000ffffa064c5b4 in (anonymous namespace)::call (proxy=0x36193710, slot=..., returnType=0x3615b380, count=0, parameters=0x0, returnValue=0xffffcc4c1cf0, arguments=0xffffcc4c1cf0, exception=0xffffcc4c1e78) at bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx:176
> #10 0x0000ffffa064bd58 in bridges::cpp_uno::shared::unoInterfaceProxyDispatch (pUnoI=0x36193710, pMemberDescr=0x361a5b70, pReturn=0xffffcc4c1cf0, pArgs=0xffffcc4c1cf0, ppException=0xffffcc4c1e78) at bridges/source/cpp_uno/gcc3_linux_aarch64/uno2cpp.cxx:328
> #11 0x0000ffffa064b174 in (anonymous namespace)::call (proxy=0x361a9280, description=..., returnType=0x3615b380, count=0, parameters=0x0, gpr=0xffffcc4c2070, fpr=0xffffcc4c20b0, stack=0xffffcc4c20f0, indirectRet=0x361a92a8) at bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx:120
> #12 0x0000ffffa064a900 in vtableCall (functionIndex=37, vtableOffset=0, gpr=0xffffcc4c2070, fpr=0xffffcc4c20b0, stack=0xffffcc4c20f0, indirectRet=0x361a92a8) at bridges/source/cpp_uno/gcc3_linux_aarch64/cpp2uno.cxx:240
> #13 0x0000ffffa065c1cc in vtableSlotCall () from instdir/program/libgcc3_uno.so
> #14 0x0000ffffa05f9ce0 in bridge_test::performTest (xContext=uno::Reference to (cppu::(anonymous namespace)::ComponentContext *) 0x3616eac0, xLBT=uno::Reference to (com::sun::uno::XInterface *) 0x361a92a8, noCurrentContext=false) at testtools/source/bridgetest/bridgetest.cxx:527
> #15 0x0000ffffa05f7400 in bridge_test::(anonymous namespace)::TestBridgeImpl::run (this=0x361806e0, rArgs=uno::Sequence of length 1 = {...}) at testtools/source/bridgetest/bridgetest.cxx:1168
> #16 0x00000000004050c0 in sal_main () at cpputools/source/unoexe/unoexe.cxx:517
> #17 0x00000000004040cc in main (argc=8, argv=0xffffcc4c4458) at cpputools/source/unoexe/unoexe.cxx:357

The reason is that _Unwind_RaiseException (in libgcc_s.so.1) called from
__cxa_throw (in libc++abi.so.1) for some reason does not find unwind information
for the callVirtualFunction frame #8, so returns _URC_FATAL_PHASE2_ERROR.  This
looks similar to the issue discussed in the comment at the top of
bridges/source/cpp_uno/gcc3_linux_x86-64/callvirtualmethod.cxx introduced with
0fdbb5b0eabbaa571f3747fda12a56c938cba474 "Make cpp_uno/gcc3_linux_x86-64 bridge
work with GCC 4.7".  Though what happens to fix it here appears to be
-fasynchronous-unwind-tables.  (The -fnon-call-exceptions mentioned in that
comment appears to be ignored by Clang.)

The actual difference that -fasynchronous-unwind-tables makes in the generated
callvirtualfunction.s is that it drops a single line

>  .Lfunc_begin0:
>       .file   7 "" "bridges/source/cpp_uno/gcc3_linux_aarch64/callvirtualfunction.cxx"
>       .loc    7 32 0                          // bridges/source/cpp_uno/gcc3_linux_aarch64/callvirtualfunction.cxx:32:0
> -     .cfi_sections .debug_frame
>       .cfi_startproc
>  // %bb.0:
>       stp     d15, d14, [sp, #-128]!          // 16-byte Folded Spill

Change-Id: Ib60e9f4958c6041b10ca959a0953e998ac6f141a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100614
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-12 21:11:26 +02:00
Caolán McNamara
bb098efade ucb_component_getFactory no longer exists
Change-Id: I9c937d5fa0e235de114d8f3962eba0ba3bcb33ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100626
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:53:43 +02:00
Mike Kaganski
4cdd446b09 imp is deprecated since Python v.3.4
This avoid Python warnings about this during checks

Change-Id: I6647d9c93f3c2fbc1af475f8bc45e03300ee8b79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100518
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-08-12 20:45:09 +02:00
Caolán McNamara
3c0193c43b remove DBTreeView class which doesn't do anything useful
Change-Id: I9270f8f87149a395f47a5b4599d6eac4b07103c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100607
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:24:37 +02:00
Caolán McNamara
7956d0593c tdf#135640 ensure parent rows are expanded on scolling to make a row visible
Change-Id: I37e55ed8d0d3d5916950228ba78982b90356fbc2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100606
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:24:10 +02:00
Caolán McNamara
866855dcf8 cleanup some unused leftovers
Change-Id: I5971ec431471c528c33b2f3a3f2353a3a825f286
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100603
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:23:40 +02:00
Caolán McNamara
70a008181a SvTreeListBox can move into toolkit headers now
Change-Id: I6b3b6ef1530a192f4b6bf87aa9688687063683ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100591
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:23:20 +02:00
Caolán McNamara
4ddafa14d7 svlbitm.hxx can be toolkit only now
Change-Id: Ie5ad0febca0747fa66c2caede619d14e468da032
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100498
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:22:57 +02:00
Caolán McNamara
7b314c6ace drop now unused DBTreeListBox
Change-Id: I607d0e1519b48effd1b306b8113b2010adee14d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100497
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:22:41 +02:00
Caolán McNamara
5f7cf9ccba use InterimDBTreeListBox
Change-Id: I2f345f1a4fd6c7a4dc7be831f85a9f728ee477ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100496
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:22:23 +02:00
Caolán McNamara
f88c85b09b don't need to enforce sort in the baseclass
Change-Id: Ib8f208952bdda686c9ec9881f4da66e8c1c3a83e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100495
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:21:46 +02:00
Caolán McNamara
46c34d5abc weld DBTreeListBox
Change-Id: I4b7369a496339b9bbab0c885c7360a5d7818a62e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100329
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:21:10 +02:00
Caolán McNamara
c299e12559 sync OTableTreeListBox and TableTreeListBox
Change-Id: I52c26e055c599e266221d6092957a0e764744e20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100409
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 20:20:52 +02:00
Rizal Muttaqin
a2219391f3 tdf#135625 icons for Drawing Object in Calc's Navigator
Change-Id: I47b0975763182275bc4dbda200105de51ab77bbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100454
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-08-12 19:33:39 +02:00
Ahmed ElShreif
edd916b47e uitest : Add support for Normal ValueSet
This patch will add support for all the normal valuesets inside any dialog .

for example it will help in "Select Presets and Shadow Styles in borders tab ( format table or format cell )" to test tdf#133641 .

You can use the support by this line:
	>> obj_name.executeAction("SELECT", mkPropertyValues({"POS": "4"}))

Change-Id: I35d0608318f1bca4f4e702ebcc258957835ce0db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100373
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2020-08-12 18:48:32 +02:00
Noel Grandin
ed8bce1909 fix i18n constructors and android scripts
after
    commit 155c056b1d4674d5ff73bbb5e1ad1dcd1e6aae36
    i18npool: create instances with uno constructors
this fixes two things
(*) the names of some of the constructo functions were wrong
(*) the native-code.py script needed updating

Change-Id: I5f3cad78eb2f84cb78ba7fed9f98122858fc6b81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100599
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 18:48:18 +02:00
Caolán McNamara
4061fa2e5f put all the renderers into the same column
so text entries are left aligned to their expander, not
all aligned to eachother

Change-Id: Ibf35e204bb83a93fa6dcb2391cf04398d51952d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100602
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-08-12 18:09:33 +02:00
Stephan Bergmann
91c8a3f3e7 The __cxa_exception::reserve member has been backported to LLVM 10 libcxxabi
...so record that fact in our comments, to avoid confusion

Change-Id: I83a9c576a92d74c207c8c778df0d020daf5bf33d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100593
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-12 17:37:06 +02:00
Xisco Fauli
77128b8396 git pre-commit hook: check min gtk3 version
See tdf#135442 for motivation

Change-Id: I6db67b7a39edeb6dd9d9d82fbaa9cb93362e09e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100588
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-08-12 16:38:13 +02:00
Jim Raykowski
ebdc0f1aad fix memory leaks in CuiConfigGroupListBox
Change-Id: I47dab54764de24bccc42513373b65657c241a8e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100570
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 15:37:43 +02:00
Noel Grandin
ca5e875958 expand out DELETEZ
Change-Id: I8691d7cedc340997284b1e8e9adae5f867c2d707
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100586
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 15:33:03 +02:00
Noel Grandin
05bf4b0a3a fix leak in ScAccessiblePreviewHeaderCell
Change-Id: I0bafbe6d60980146006825229c0476fc22d1510f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100585
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 14:25:16 +02:00
Noel Grandin
537693e572 use unique_ptr in ScDbNameDlg
Change-Id: Id6e6b452ef1e3254a4a995eea0a2ca89f54019bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100584
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 13:39:23 +02:00
Miklos Vajna
347d05edd8 tdf#135144 xmloff textbox: fix export style name to be consitent with import
Regression from commit 28d67b792724a23015dec32fb0278b729f676736
(tdf#107776 sw ODF shape import: make is-textbox check more strict,
2019-08-26), the problem was that in case the import side in
SdXMLCustomShapeContext expects a fixed "Frame" parent style name, then
the export side should go with that name as well.

Fix the problem by simplifying XMLShapeExport::collectShapeAutoStyles(),
which initially assumed that the string may be localized, so try to look
it up: instead just use the fixed string that the import side will look
for.

This solves all problem which may stem from a parent style name which is
non-empty, but other than Frame.

Change-Id: I8146440c591d3dd5a904d243d85741d704711e9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100577
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-08-12 13:18:55 +02:00
Noel Grandin
d837fb6ce9 expand out DELETEZ in vcl
Change-Id: Ibcaef8c5dd057cb9b1711440e5f9da43817078f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100587
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-12 13:11:47 +02:00
Shivam Kumar Singh
a2f226d63e tdf#135528 tdf#135491 Fix LO crash when using macro with SI enabled
WriterInspectorTextPanel.cxx tries to work on the current shell
which might change everytime. This patch uses the original shell
stored in m_pWrtShell to get the current DocShell.

Change-Id: I243e7346b748ca81041016f526b6d4da7861f7bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100493
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-08-12 12:07:43 +02:00
Stephan Bergmann
26298f29e9 Avoid repeated calls to document.DrawPage.getByIndex(0)
I have seen various failures with (slow) ASan+UBSan builds where some other
than the first one of those self.assertEqual failed.  I would assume that they
rather either all succeed or all fail (in which case consistently the first one
in each of those self.assertEqual blocks should fail).  To rule out the
possibility that, for some timing/race reason, the identity of the element
provided by document.DrawPage.getByIndex(0) changes midway through those blocks,
only obtain that element once per block.

Examples of such failures during UITest_writer_tests3 are
<https://ci.libreoffice.org//job/lo_ubsan/1725/>

> FAIL: test_insert_signature_line (insertSignatureLine.insertSignatureLine)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/tdf/lode/jenkins/workspace/lo_ubsan/sw/qa/uitest/writer_tests3/insertSignatureLine.py", line 53, in test_insert_signature_line
>     self.assertEqual(document.DrawPage.getByIndex(0).SignatureLineSuggestedSignerEmail, "Email")
> AssertionError: None != 'Email'

and my local build

> FAIL: test_insert_signature_line2 (insertSignatureLine.insertSignatureLine)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/sbergman/lo/core/sw/qa/uitest/writer_tests3/insertSignatureLine.py", line 91, in test_insert_signature_line2
>     self.assertEqual(document.DrawPage.getByIndex(0).SignatureLineShowSignDate, False)
> AssertionError: None != False

Change-Id: I2739edb12ed39892f5b29999b9e3d632e166c1c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100572
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-08-12 11:15:57 +02:00