Commit Graph

442829 Commits

Author SHA1 Message Date
Stephan Bergmann
ecf708e90d Avoid repeated calls cppu::detail::loadModule -> osl_getModuleURLFromAddress
...where the latter are reportedly expensive.  Both
<https://gerrit.libreoffice.org/#/c/75162/> "tdf#121740 related, cache external
mapping in cppu::loadExternal" and <https://gerrit.libreoffice.org/#/c/82261/>
"tdf#121740 add cache to win osl_getModuleURLFromAddress" attempted to reduce
the costs observed when loading one specific document by introducing caches
below cppu::detail::loadModule's call to osl::Module::loadRelative.

On the other hand, this change reduces the number of calls to
osl_getModuleURLFromAddress by computing the base URI in
cppu::detail::loadModule only once.  For my local Linux --enable-dbgutil build,
for `instdir/program/soffice '109340 class14.ppt'` and then exiting LO again
(with the document attached at
<https://bugs.documentfoundation.org/show_bug.cgi?id=121740#c0>), this reduces
the number of calls to osl_getModuleURLFromAddress from 3775 to 22.

(Many of those calls originated from cppu::getCaughtException or
cppu::throwException, as in

  osl_getModuleURLFromAddress
  osl_getModuleURLFromFunctionAddress
  osl::Module::getUrlFromAddress
  osl_loadModuleRelative
  osl::Module::loadRelative
  cppu::detail::loadModule
  cppu::loadModule
  cppu::loadExternalMapping
  uno_getMapping
  com::sun::uno::Mapping::Mapping
  cppu::throwException

.)

Unfortunately, this needs to duplicate functionality from osl_loadModuleRelative
(sal/osl/all/loadmodulerelative.cxx) somewhat, as the stable SAL interface only
offers functionality to load relative to a given function, not relative to a
given base URI.  (And extending the stable SAL interface for this one use is not
worth the maintenance costs.)

Change-Id: Ib58814136d11c67d1419b0224d12e30bb710e613
Reviewed-on: https://gerrit.libreoffice.org/82290
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-08 14:19:10 +01:00
Michael Weghorn
08ee6fb9f0 Mention that SAL_FORCEDPI is used by qt5/kf5 as well
And "gtk" (i.e. gtk2) is no more, so remove that one.

Change-Id: Idc68553ff6f396a6dbc7226145cb070560c2cb93
Reviewed-on: https://gerrit.libreoffice.org/82288
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2019-11-08 14:02:47 +01:00
Balazs Varga
f6437b3a98 tdf#128618 OOXML chart export: deleted automatic title returns on save
If there is no main title and/or subtitle, write out autoTitleDeleted
with a true value.

Regression from the commit 96a29c12a9
(tdf#101322 Chart OOXML Export: fix missing subtitle)

Change-Id: I0094014fc4da4cb66d31e4249f916452d00758c7
Reviewed-on: https://gerrit.libreoffice.org/82142
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2019-11-08 13:19:47 +01:00
Noel Grandin
37e3573bb5 tdf#121740 speed up font loading
by caching whether the font is a graphite font.
Takes load time from 27s to 23s for me.

Change-Id: I7b14a8bd305b27a088f363d19ebfb6fe774d3b02
Reviewed-on: https://gerrit.libreoffice.org/82267
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-11-08 13:16:27 +01:00
Tünde Tóth
023285158b tdf#128504 save DOCX as ODT: don't color not highlighted hyperlinks
During DOCX import, not highlighted hyperlinks, ie. without hyperlink
character styles, set the Visited/Unvisited character style text
attributes to "Default Style" to avoid saving them with the
default highlighted hyperlink character styles in ODT.

Regression from the commit 576611895e
"tdf#127741 DOCX import: format hyperlink with Default character style".

Change-Id: I5ffbb107e6704b285bc3d1546e08a324c386a0ab
Reviewed-on: https://gerrit.libreoffice.org/82205
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2019-11-08 13:12:54 +01:00
Stephan Bergmann
eb6410b5cf Fix Windows --eanble-vlc errors and (clang-cl) warnings
Fix "no matching constructor" for

  OUString( arCurrent, dwCurrentSize )

from wchar_t and loplugin:cstylecast, loplugin:nullptr, and
loplugin:stringconstant warnings.

Change-Id: Ibe0341afe14a8c0380a69e9cbf946e68f9c58391
Reviewed-on: https://gerrit.libreoffice.org/82264
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-08 12:40:39 +01:00
Stephan Bergmann
725b7a37e7 -Werror,-Wunused-macros (clang-cl)
Not sure why the unused-macro warning for isnan only started to show now that I
build on Windows with clang-cl against MSVC 2019 (rather than 2017).  The code
was there ever since 16cba77220 "#112673# initial
checkin of HWP filter", but there appears to never have been any use of isnan at
least in hwpfilter/ itself.

Change-Id: Ib202da91806baf347bbaf1ac2a47bcc7f81bd868
Reviewed-on: https://gerrit.libreoffice.org/82271
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-08 12:37:45 +01:00
Szymon Kłos
240581f7d7 jsdialog: apply .uno:LineWidth in Impress
Change-Id: I7b9a3e5d6af5ccf9e9be28c5a1460fbf8553ff08
Reviewed-on: https://gerrit.libreoffice.org/82275
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/82281
Tested-by: Jenkins
2019-11-08 12:36:20 +01:00
Balazs Varga
271bdc3469 tdf#128633 Chart OOXML Export: Fix position of bar in charts
Fix export of c:crossBetween tag if the category axis is deleted.

Regression from commit: e0b0502516
(tdf#128016 Chart OOXML Import: fix duplicated category labels)

Change-Id: I46ab45f3ba4f3d0fdde3ddf017a7f512b6e2e403
Reviewed-on: https://gerrit.libreoffice.org/82194
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2019-11-08 12:33:31 +01:00
Stephan Bergmann
63f7efe613 Missing include (Windows --disable-pch)
> sw/source/core/doc/docfld.cxx(558,18): error: member access into incomplete type 'const ::utl::TransliterationWrapper'
>         if( rSCmp.isEqual( rDBName, sName.getToken(0, ';') ) )
>                  ^

Change-Id: I041879acb350a2bc42133f55be5a1501ffe93c95
Reviewed-on: https://gerrit.libreoffice.org/82272
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-08 12:32:40 +01:00
Caolán McNamara
fbdeeb4dac tdf#127993 remove default WB_HIDESELECTION
so the highlighted entries in a TreeView doesn't appear different
when it has focus vs not having focus.

Change-Id: I823fc0cc503161ee93845eb0fb7458a41344d608
Reviewed-on: https://gerrit.libreoffice.org/81995
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2019-11-08 12:31:55 +01:00
Tomaž Vajngerl
389c8239c9 widget theme: Gradient support when drawing widgets
Change-Id: I29239348e36e4963d9708a22ac649b2b1d68bf02
Reviewed-on: https://gerrit.libreoffice.org/82207
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2019-11-08 12:09:48 +01:00
Stephan Bergmann
456300d4fb loplugin:indentation (clang-cl)
Change-Id: Id3031852a9e4d58c7caad68b91a0633bcd7a2489
Reviewed-on: https://gerrit.libreoffice.org/82270
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-08 11:29:02 +01:00
Stephan Bergmann
05bec2bc26 loplugin:stringadd (clang-cl)
Change-Id: Icf2894f77c90aa4620910d621249947bad4be8b7
Reviewed-on: https://gerrit.libreoffice.org/82269
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-08 11:28:31 +01:00
Samuel Mehrbrodt
83579e8018 Respect DisableMacrosExecution option in beanshell editor
Change-Id: I0713b3d1ab45519aef25b5bd3d912baf2252d37b
Reviewed-on: https://gerrit.libreoffice.org/82262
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-11-08 11:27:07 +01:00
Szymon Kłos
f7c751439d jsdialog: consume .uno:LineWidth double value
Change-Id: Iaf09dd11ae4fd6b3d9ebeabac790f0cfe73fec17
Reviewed-on: https://gerrit.libreoffice.org/82226
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/82234
Tested-by: Jenkins
2019-11-08 10:04:57 +01:00
Caolán McNamara
b94dd25273 tdf#128625 set only one active radiobutton per group
Change-Id: Ia44438ec4da771eb093a46311f37e49d1df7b511
Reviewed-on: https://gerrit.libreoffice.org/82254
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-08 09:52:04 +01:00
Eike Rathke
3e71ec4dd5 Unit test for fixed locale Excel export formats, tdf#128649
Change-Id: I7ec63659c39acb612de4df502e364afdc2cc7189
Reviewed-on: https://gerrit.libreoffice.org/82257
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2019-11-08 09:39:20 +01:00
Eike Rathke
3b49477c31 Resolves: tdf#128649 Do not insert duplicate LCID for currency
Fallout from

    commit d0f8daa098
    CommitDate: Wed Aug 22 19:03:27 2018 +0200

        Resolves: tdf#73063 preserve and roundtrip LCID from/to Excel number formats

Change-Id: I356f37624786d753370a272b0f1b54b17b5d206c
Reviewed-on: https://gerrit.libreoffice.org/82249
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
2019-11-08 09:39:09 +01:00
Samuel Mehrbrodt
a70d007ad6 Revert "tdf#120734 Only enable "Remove hyperlink" when hyperlink selected"
This reverts commit cae4b4951f.

Change-Id: I06f6a828e2766058b90dde14e8efbe5759867084
Reviewed-on: https://gerrit.libreoffice.org/82228
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-11-08 09:33:13 +01:00
Gabor Kelemen
c6e7a70d2a tdf#42949 Fix IWYU warning in include/svx/svdotable.hxx
The boost/property_tree/json_parser.hpp added in commit
0285492a45

is somewhat expensive.

Replacing it with forward declaration header - similar to commit
fb1b461208
shaves off about 80Mb of includebloat

Change-Id: I5055834b691718eec2a5ebbfc4f1cffbdea96aae
Reviewed-on: https://gerrit.libreoffice.org/81972
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-11-08 09:23:49 +01:00
andreas kainz
7b1667d950 Writer Property Dialog update
Change-Id: I22959d387d23fc28e2b7d8fa84b290d7f7d95995
Reviewed-on: https://gerrit.libreoffice.org/82260
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-11-08 09:22:50 +01:00
Miklos Vajna
423e1ce9c1 sw: no reason why SwModelTestBase can be used only by "extras" tests
So move it one level up, this way more tests can share code in the
future.

Change-Id: I35300b3c88ac9a5c39916f53b1b1743aa85869a0
Reviewed-on: https://gerrit.libreoffice.org/82252
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-11-08 09:04:45 +01:00
andreas kainz
666142d72d Bibliography .ui file update labels are right align for beter read
Change-Id: I6b7edb822896ab6d600ecd0d751e5adf53fa1fb9
Reviewed-on: https://gerrit.libreoffice.org/82258
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-11-08 08:04:28 +01:00
andreas kainz
1df5bbb591 Writer Property Statistic Dialog update
Change-Id: I1da8500ea12581b856b276247584a37e8f18f0aa
Reviewed-on: https://gerrit.libreoffice.org/82259
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-11-08 08:04:13 +01:00
Andras Timar
996f39ec45 Update git submodules
* Update translations from branch 'master'
  - Updated Slovenian translation
    
    Change-Id: I84d4130cc7cb530a7cc73f2c1d69bee050f07d49
2019-11-08 06:53:49 +01:00
Andras Timar
2c574927da Update git submodules
* Update translations from branch 'master'
  - Updated Slovenian translation
    
    Change-Id: Ic6a361c878b8004df19744e448391e17ca119c55
2019-11-08 06:49:08 +01:00
andreas kainz
8d1f226593 Bibliography Insert Dialog update
Change-Id: I8b0eb23660aa15254d5a84eba4a045278a7c8152
Reviewed-on: https://gerrit.libreoffice.org/82255
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-11-08 01:47:30 +01:00
Olivier Hallot
d60f7bb118 Update git submodules
* Update helpcontent2 from branch 'master'
  - Fix missing %PRODUCTNAME replacements
    
    Some contents were still carrying %PRODUCTNAME variable
    Apply template brand on
    <bascode>,
    <meta itemprop../> and
    <title>
    
    Change-Id: Ia93204cba63ba72d1df6014e3de37d7322c68029
    Reviewed-on: https://gerrit.libreoffice.org/82256
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-08 01:18:45 +01:00
LibreOfficiant
b4920c8ca4 Update git submodules
* Update helpcontent2 from branch 'master'
  - faulty $[officename] and routine name adequate names
    
    Change-Id: I53fe5fecab562b2cf15da2d96dcabdd79ee7f25e
    Reviewed-on: https://gerrit.libreoffice.org/82218
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-08 00:26:02 +01:00
Maxim Monastirsky
f17fb8824c MenuBarManager: Honor visible property of menu items
This became a problem recently with the introduction of
notebookbar customization, as it allows to hide menu items.

As a solution, use the same approach as for toolbars (see
GenericToolbarController::statusChanged): Force menu item
visibility only if it was previously hidden via a special
status update of css::frame::status::Visibility.

Change-Id: Ief9f70a289bd2e6a4855c1f92dbc20e31c62924c
Reviewed-on: https://gerrit.libreoffice.org/82222
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2019-11-07 23:57:05 +01:00
Maxim Monastirsky
2e9322d765 Avoid .uno: command names in the customization dialog
Change-Id: I37a510727dc2d5f8de1eb6ee5b60653e43ff0e4c
Reviewed-on: https://gerrit.libreoffice.org/82230
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2019-11-07 23:54:23 +01:00
Gabor Kelemen
3fe387010f tdf#128625 Fix radio button alignments in Error Bars dialog
This seems to fix the multiple selection problem with QT5 backend

Change-Id: I1be16512db1a485b4c610cd3b5eceaba3b68ef84
Reviewed-on: https://gerrit.libreoffice.org/82247
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-07 22:33:31 +01:00
Caolán McNamara
e9669a5a96 make size group defaults match and document what the default is
Change-Id: Ic9a90d50d19b82ffd2ad599a106c2bc58d138f17
Reviewed-on: https://gerrit.libreoffice.org/82237
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-07 21:53:36 +01:00
Stephan Bergmann
0f311cebd6 Fix UBSan null-pointer-use
...during CppunitTest_sw_mailmerge (see below).  Not sure why this started now,
and no idea whether pWin can legitimately be null there in
SfxWorkWindow::HidePopups_Impl, but the fix looks harmless enough to just do it.

> sfx2/source/appl/workwin.cxx:1512:52: runtime error: reference binding to null pointer of type 'const vcl::Window'
>  #0 in SfxWorkWindow::HidePopups_Impl(bool, unsigned short) at sfx2/source/appl/workwin.cxx:1512:37
>  #1 in SfxDispatcher::DoActivate_Impl(bool) at sfx2/source/control/dispatch.cxx:706:56
>  #2 in SfxViewFrame::DoActivate(bool) at sfx2/source/view/viewfrm.cxx:1175:20
>  #3 in SfxApplication::SetViewFrame_Impl(SfxViewFrame*) at sfx2/source/appl/app.cxx:308:21
>  #4 in SfxViewFrame::SetViewFrame(SfxViewFrame*) at sfx2/source/view/viewfrm.cxx:3268:19
>  #5 in SfxViewFrame::MakeActive_Impl(bool) at sfx2/source/view/viewfrm.cxx:1879:9
>  #6 in SfxBaseController::ConnectSfxFrame_Impl(SfxBaseController::ConnectSfxFrame) at sfx2/source/view/sfxbasecontroller.cxx:1254:33
>  #7 in SfxBaseController::attachFrame(com::sun::uno::Reference<com::sun::frame::XFrame> const&) at sfx2/source/view/sfxbasecontroller.cxx:532:9
>  #8 in (anonymous namespace)::SfxFrameLoader_Impl::impl_createDocumentView(com::sun::uno::Reference<com::sun::frame::XModel2> const&, com::sun::uno::Reference<com::sun::frame::XFrame> const&, comphelper::NamedValueCollection const&, rtl::OUString const&)
>  #9 in (anonymous namespace)::SfxFrameLoader_Impl::load(com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&, com::sun::uno::Reference<com::sun::frame::XFrame> const&) at sfx2/source/view/frmload.cxx:714:13
>  #10 in framework::LoadEnv::impl_loadContent() at framework/source/loadenv/loadenv.cxx:1157:37
>  #11 in framework::LoadEnv::startLoading() at framework/source/loadenv/loadenv.cxx:390:20
>  #12 in framework::LoadEnv::loadComponentFromURL(com::sun::uno::Reference<com::sun::frame::XComponentLoader> const&, com::sun::uno::Reference<com::sun::uno::XComponentContext> const&, rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) at framework/source/loadenv/loadenv.cxx:171:14
>  #13 in framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) at framework/source/services/desktop.cxx:621:12
>  #14 in non-virtual thunk to framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) at framework/source/services/desktop.cxx
>  #15 in unotest::MacrosTest::loadFromDesktop(rtl::OUString const&, rtl::OUString const&, com::sun::uno::Sequence<com::sun:🫘:PropertyValue> const&) at unotest/source/cpp/macros_test.cxx:48:62
>  #16 in SwModelTestBase::loadURL(rtl::OUString const&, char const*, char const*) at sw/qa/extras/inc/swmodeltestbase.hxx:764:23
>  #17 in SwModelTestBase::load(rtl::OUString const&, char const*, char const*) at sw/qa/extras/inc/swmodeltestbase.hxx:719:16
>  #18 in MMTest::executeMailMerge(bool) at sw/qa/extras/mailmerge/mailmerge.cxx:209:9
>  #19 in testTdf95292::verify() at sw/qa/extras/mailmerge/mailmerge.cxx:593:5
>  #20 in MMTest::executeMailMergeTest(char const*, char const*, char const*, bool, int, char const*) at sw/qa/extras/mailmerge/mailmerge.cxx:88:9
>  #21 in testTdf95292::MailMerge() at sw/qa/extras/mailmerge/mailmerge.cxx:590:1

Change-Id: Id9499c62cca6e1fcf3ba50b82117395106a93765
Reviewed-on: https://gerrit.libreoffice.org/82246
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-07 19:40:18 +01:00
Miklos Vajna
0c49f0f8a1 Related: tdf#128603 sw textbox: fix use-after-free
lcl_RestoreAnchor() needs to decide if if wants to not copy the old
anchor (and keep reading it via a reference) or it wants to update the
item set, it can't do both at the same time. The reason for this is that
the item set update works by deleting the old pool item and allocating a
new one, it doesn't work by updating the old pool item.

I believe this was always broken, but now sanitizers found the issue
since the cppunit test for the above bug was added recently.

Change-Id: Ic08d60eb522a62d78cb2b0ea6a4cda328f8fb80b
Reviewed-on: https://gerrit.libreoffice.org/82245
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-07 19:11:54 +01:00
Caolán McNamara
c4ee738407 we want this size group to handle both dimensions
Change-Id: I22647328dbcc1d4eb6b3841ea9a8e64d022cf252
Reviewed-on: https://gerrit.libreoffice.org/82236
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-07 18:30:57 +01:00
Miklos Vajna
f2eae41e9a sw XHTML export: <blockquote> can't have character children
Fixes the following reqif-xhtml validation error:

ERROR at 214: [XSD] cvc-complex-type.2.3: Element 'reqif-xhtml:blockquote' cannot have character [children], because the type's content type is element-only.

But this is probably useful in the general xhtml case as well.

[ Also add a way to not load a document when we want to cover "store"
behavior in a test. ]

Change-Id: I88795271475863b9560ac1cb99636c507746f1e9
Reviewed-on: https://gerrit.libreoffice.org/82239
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2019-11-07 18:28:52 +01:00
andreas kainz
47471a5904 tdf#127773 AutoCorrect Dialog Buttons on top
Change-Id: Ie26c2ef0abd126b6731eeb90100d27359bc77011
Reviewed-on: https://gerrit.libreoffice.org/82235
Tested-by: Jenkins
Reviewed-by: andreas_kainz <kainz.a@gmail.com>
2019-11-07 18:14:28 +01:00
Samuel Mehrbrodt
8d69ca60f3 Always check whether macro execution is allowed
No only when this executing from a document.

Setting 'DisableMacrosExecution' had no effect on the macro editor,
macros could still be executed there.

Change-Id: I400ed25050173d2ce1fb612aebd2dbcb73720a73
Reviewed-on: https://gerrit.libreoffice.org/82229
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2019-11-07 17:13:09 +01:00
Caolán McNamara
498c2d3944 fetch the values just once
Change-Id: I915dbba18f560cedf4dc719b25c889e8b02aa0c2
Reviewed-on: https://gerrit.libreoffice.org/82212
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-07 15:52:08 +01:00
Stephan Bergmann
d5cb1c694c Looks like UBSan still needs various RTTI for some reason
After 5d7af3c38b "make some classes
module-private" various tests in my Linux ASan+UBSan build failed due to missing
symbols.

Identified the problematic types with

> make check screenshot gb_SUPPRESS_TESTS=x && for i in $(find instdir/program workdir/LinkTarget/CppunitTest -type f); do LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}instdir/program:workdir/UnpackedTarball/cppunit/src/cppunit/.libs ldd -r "$i" 2>/dev/null | grep 'undefined symbol: _ZTI'; done

and fixed the ensuing

> sw/source/core/SwNumberTree/SwNodeNum.cxx:190:32: error: dynamic_cast from 'SwNumberTreeNode' with hidden type visibility to 'SwNodeNum' with default type visibility [loplugin:dyncastvisibility]
>             SwNodeNum* pChild( dynamic_cast<SwNodeNum*>(pNode) );
>                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> sw/inc/SwNumberTree.hxx:114:7: note: base class 'SwNumberTreeNode' with hidden type visibility defined here [loplugin:dyncastvisibility]
> class SwNumberTreeNode
> ~~~~~~^~~~~~~~~~~~~~~~
> sw/inc/SwNodeNum.hxx:29:26: note: derived class 'SwNodeNum' with default type visibility defined here [loplugin:dyncastvisibility]
> class SAL_DLLPUBLIC_RTTI SwNodeNum : public SwNumberTreeNode
> ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

fallout.

Change-Id: I7abafdb4d02216e1a047f886d5e72ad3420115ce
Reviewed-on: https://gerrit.libreoffice.org/82210
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-07 15:17:07 +01:00
Christian Lohmaier
eb050ae015 tdf#123290 fix android tinderbox builds/properly package libc++_shared.so
While it might not be the original problem, at least that is the current
problem the tinderbox provided builds have and should make it work again

Change-Id: Ifaedb3304622286cfe7a6cb49e862a359b53f892
2019-11-07 15:06:00 +01:00
Olivier Hallot
96df9f4da5 Update git submodules
* Update helpcontent2 from branch 'master'
  - Add <alt> contents for screenshot
    
    Change-Id: I3c21768f5e659d7f299d56ec848c94fb6341265c
    Reviewed-on: https://gerrit.libreoffice.org/82217
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-07 14:37:34 +01:00
Olivier Hallot
3a2dcc72b9 Update git submodules
* Update helpcontent2 from branch 'master'
  - tdf#128219 Extra start params for debugging
    
    Change-Id: Ic4bac1ba59cc17331334813e1211156606511e5f
    Reviewed-on: https://gerrit.libreoffice.org/81294
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-07 14:33:15 +01:00
Olivier Hallot
4caf1cbc8e Update git submodules
* Update helpcontent2 from branch 'master'
  - Housekeeping page on Calc custom functions
    
    + Proper code formatting
    + proper menu path with MAC option
    + refactor some tags
    
    Change-Id: Ib54ade5fd1db56e27e67e4bcc1f7808cddb07341
    Reviewed-on: https://gerrit.libreoffice.org/82215
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-07 14:31:38 +01:00
Szymon Kłos
e9131e7abd Show highlight ranges when chart is selected
Change-Id: Ibb9a085699065869a7f122f37a36c5873b934271
Reviewed-on: https://gerrit.libreoffice.org/82138
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/82140
Tested-by: Jenkins
2019-11-07 14:15:29 +01:00
Caolán McNamara
72fad7a18d remove some unused getters
Change-Id: Iaa556491add4a7674f90ecfbf8e44f0b1d6583ee
Reviewed-on: https://gerrit.libreoffice.org/82198
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-07 13:58:43 +01:00
Caolán McNamara
2b635e6de8 drop unused TreeView::set_top_entry
Change-Id: I70171b95baf29486c253e7d388ba59385da1d929
Reviewed-on: https://gerrit.libreoffice.org/82196
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-07 13:09:57 +01:00
Caolán McNamara
c379aeec49 ButtonDialog is only inherited from
Change-Id: Icc827ba76432e6ed454acf12dc18c83c6908487b
Reviewed-on: https://gerrit.libreoffice.org/82197
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-07 13:09:12 +01:00