Commit graph

477847 commits

Author SHA1 Message Date
Eike Rathke
33c8c9d0dc Use CharClass::uppercase() for AddIns' English UI names, tdf#135993 follow-up
... instead of OUString::toAsciiUpperCase(). English names should
consist of ASCII alphanumeric only, but we don't know what an
AddIn's author comes up with. Lookup in ScCompiler is done with
CharClass as well.

For this, use the static ScCompiler::GetCharClassEnglish()
instance made public and guard creation with a mutex.

Change-Id: Icb79d49d4c7339c8d01b141de2a34715d794dd92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138004
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-08-09 10:21:34 +02:00
Caolán McNamara
8f0e5308fa sfx2: check saved last tab page name exists before restoring it
since GetPage might return nullptr on a nonexisting page

See https://crashreport.libreoffice.org/stats/signature/SfxHelpIndexWindow_Impl::ActivatePageHdl(rtl::OString%20const%20&)

Change-Id: I26e21f783645e8a87d56cbe76c0126de8947bf3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137990
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-09 10:18:33 +02:00
Caolán McNamara
0c9c3f75d7 cid#1507857 Big parameter passed by value
and

cid#1507854 Big parameter passed by value
cid#1507853 Big parameter passed by value
cid#1507848 Big parameter passed by value
cid#1507846 Big parameter passed by value
cid#1507844 Big parameter passed by value
cid#1507843 Big parameter passed by value
cid#1507842 Big parameter passed by value
cid#1507845 Big parameter passed by value
cid#1507847 Big parameter passed by value
cid#1507849 Big parameter passed by value
cid#1507855 Big parameter passed by value
cid#1507850 Big parameter passed by value
cid#1507852 Big parameter passed by value

Change-Id: I03138b93d0936fe5e62453651227f3925a7b4b83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137981
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-09 10:02:13 +02:00
Caolán McNamara
813ad0b0e1 cid#1507856 silence Invalid type in argument to printf format specifier
Change-Id: I05cfe777108667ea3640519b3231431fbe3fc0d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137980
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-09 10:01:35 +02:00
Caolán McNamara
6f377e7bae move scrbar.hxx to vcl/toolkit
Change-Id: I77038cbf500976703ad41365da9a675a698863a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137979
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-09 10:01:15 +02:00
Michael Weghorn
1703c3bb70 tdf#149818 qt: Handle double mouse click again
Qt has `QEvent::MouseButtonDblClick` as a specialized
type for "Mouse press again" [1] in addition to
just `QEvent::MouseButtonPress` for a single click.
Handle that as mouse button down event in LO as well,
to make handling of double-click work again after

    commit 393c9f736b
    Date:   Tue Apr 19 16:00:31 2022 +0200

        Qt use QEvent::type to handle the event correctly

[1] https://doc.qt.io/qt-6/qevent.html

Change-Id: I9964b554bf71f30861ed0868e7a8000c84de50ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138006
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-08-09 10:00:27 +02:00
Xisco Fauli
452311610d crashreportScraper: continue when os_tab is not found
Change-Id: I293ad70ad2776bfa6ea3e075ba69428963301433
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137994
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-08-09 09:51:33 +02:00
Stephan Bergmann
b8e451af93 Use stable_sort in comphelper::s3sort
With a randomizing debug-mode libc++ (`export LIBCPP_DEBUG=-D_LIBCPP_DEBUG=1`
in config_host.mk), CppunitTest_sc_ucalc_pivottable consistently failed for me
with

> Expected: A  Actual: a
> sc/qa/unit/ucalc_pivottable.cxx:1886:TestPivottable::testPivotTableCaseInsensitiveStrings
> assertion failed
> - Expression: bSuccess
> - Table output check failed

when _LIBCPP_DEBUG_RANDOMIZE_UNSPECIFIED_STABILITY_SEED is 140365334480272.

This change apparently happens to fix it, but I have no idea what exactly is
going on here.  (comphelper::s3sort was introduced in
46d0afba73 "Implement parallel version of
super-scalar-sample-sort...", and
TestPivottable::testPivotTableCaseInsensitiveStrings traces back to
96086484d3 "Move pivot table tests into a separate
source file.)

Change-Id: I24316db6cb274f7afd0ce0a5aa9ced79121eeeb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136623
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-09 09:37:03 +02:00
Justin Luth
6161b951c2 tdf#150278 sfx2: use provided aInfo, not factory
This continues the revolution from tdf#81293 that was done
for the MOD section of this function in 7.4.
It looks like the same thing needs to be done for APP.

Prior to this commit, opening up the same form control
property dialog always opened up to the same initial tab,
regardless of the last-used-tab. ONLY of document reload
would the last-used-tab come into play.

Now it always opens up immediately tot he last-used-tab.

This is full fix for SAL_USE_VCLPLUGIN=gen.
gtk3 needs an additional fix so it doesn't follow the
second-last-used-tab instead.

Change-Id: Ie7c13cfb48de87c4ab595460680f4306e8feaac7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138002
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-09 08:43:33 +02:00
Noel Grandin
9bfc9c3f41 unique_ptr->optional in CellSaveStruct
Change-Id: I046442f4ebfb62ad4ec346fa5622b37370774698
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137995
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-09 08:40:35 +02:00
Noel Grandin
c7e9a787a2 unique_ptr->optional in SaveRedlEndPosForRestore
Change-Id: I355931b53457079c0bce3da26a99f250fdc11bac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137997
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-09 08:40:13 +02:00
Noel Grandin
029e607ef0 no need to allocate this separately in SwHTMLPosFlyFrame
Change-Id: Icf85acd3d96889248c62925993b06ca7ec7a52a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137996
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-09 08:36:36 +02:00
Stanislav Lopatin
815851d1cb tdf#145538 Change common loops to range based in ScanlineToolsTest.cxx
Just convert some loops to range based and fix strange loop logic
at 216 line.

Upd: rename *iterators* as Mike Kaganski adviced

Change-Id: Idf33b65f9c4466aa49c8f3bc13a12ad072dce7b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137929
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2022-08-09 07:51:26 +02:00
Caolán McNamara
3905d44dd1 gtk4: set draw-as-radio explicitly on
Change-Id: I546abe771a6c6d1029258ac702713e34353b8e00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137992
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 22:24:37 +02:00
Caolán McNamara
3fa9af03d4 resave with latest glade
Change-Id: I0c217736e9c4a0eea5315f32a1562d76a6ce84f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137991
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 22:24:24 +02:00
Xisco Fauli
729c29f3be sd: avoid divide by zero in FuZoom::MouseMove
See https://crashreport.libreoffice.org/stats/signature/sd::FuZoom::MouseMove(MouseEvent%20const%20&)

Change-Id: I3b07def2ba088a92e2358e7db57c27c047165cef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137988
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-08-08 21:58:46 +02:00
Jim Raykowski
469414e66f tdf#138868 follow up: fix selected entry not unselected
For Gtk3, setting the Navigator tree view cursor -1 doesn't unselect
the selected entry which is what is wanted when the canvas selected
object is not in the Navigator tree view.

Change-Id: I879e8dc09870b91d42eadb6b42d9236c1a1cf40c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137916
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-08-08 21:40:08 +02:00
Stephan Bergmann
cc3e2e7efa Adapt to changed clang::LambdaCapture::getCapturedVar return type
...where
<127bf44385>
"[Clang][C++20] Support capturing structured bindings in lambdas" on Clang 16
trunk changed the return type from VarDecl to ValueDecl, causing

> compilerplugins/clang/reducevarscope.cxx:541:26: error: no matching member function for call to 'erase'
>             maVarDeclMap.erase(varDecl);
>             ~~~~~~~~~~~~~^~~~~
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/unordered_map.h:740:7: note: candidate function not viable: no known conversion from 'ValueDecl *' to 'const_iterator' (aka '_Node_const_iterator<std::pair<const clang::VarDecl *const, (anonymous namespace)::ReduceVarScope::DepthInfo>, __constant_iterators::value, __hash_cached::value>') for 1st argument
>       erase(const_iterator __position)
>       ^
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/unordered_map.h:745:7: note: candidate function not viable: no known conversion from 'ValueDecl *' to 'iterator' (aka '_Node_iterator<std::pair<const clang::VarDecl *const, (anonymous namespace)::ReduceVarScope::DepthInfo>, __constant_iterators::value, __hash_cached::value>') for 1st argument
>       erase(iterator __position)
>       ^
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/unordered_map.h:762:7: note: candidate function not viable: cannot convert from base class pointer 'ValueDecl *' to derived class pointer 'const key_type' (aka 'const clang::VarDecl *const') for 1st argument
>       erase(const key_type& __x)
>       ^
> /usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/unordered_map.h:780:7: note: candidate function not viable: requires 2 arguments, but 1 was provided
>       erase(const_iterator __first, const_iterator __last)
>       ^

etc.

Change-Id: I79b062ca604435bc83a58eeb32df673e6c658bd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137984
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-08 21:04:30 +02:00
Stephan Bergmann
fb992aefc8 Adapt to changes in llvm::Optional
<3c49576417>
"[ADT] Add has_value, value, value_or to llvm::Optional" is in Clang 15, and
<b5f8d42efe>
"[ADT] Deprecate Optional::{hasValue,getValue} (NFC)" is in Clang 16 trunk,
causing

> In file included from compilerplugins/clang/sharedvisitor/sharedvisitor.cxx:95:
> compilerplugins/clang/pointerbool.cxx:118:21: error: 'hasValue' is deprecated: Use has_value instead. [-Werror,-Wdeprecated-declarations]
>             if (ret.hasValue() && (ret.getValue() == 1 || ret.getValue() == 0))
>                     ^
> ~/llvm/inst/include/llvm/ADT/Optional.h:324:5: note: 'hasValue' has been explicitly marked deprecated here
>   [[deprecated("Use has_value instead.")]] constexpr bool hasValue() const {
>     ^

etc.

Change-Id: I377effe29fc6752484d2870b9a0fd66fddc26bfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137982
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-08 21:04:10 +02:00
Noel Grandin
00f3bbc846 unique_ptr->optional in SwRangeRedline
Change-Id: I4d4c55eef6e6b56634766bc57f11539ece9dc20d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137940
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-08 21:00:59 +02:00
Caolán McNamara
87bde9e695 gtk4: cursor not changing on moving over other widgets
Change-Id: I57f924522a6fd93950f56c44ca65aa5131fb4aa8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137989
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 20:30:33 +02:00
Caolán McNamara
d632b83a4b gtk4: complete set_cursor for gtk4
Change-Id: I31413a6dafe1ddf1345ac6bccb96fc88ed2993c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137985
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 20:30:07 +02:00
Caolán McNamara
479cf04cee drop unwanted scroll corner
Change-Id: I82143de336df91c5ca69693f6255b0d729e8381b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137978
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 20:26:28 +02:00
Caolán McNamara
b8128ae611 no need for ScrollBarBox if bg is already the desired color
Change-Id: I94f83a1c2142b8b8712fc3527a90dad4f0babb9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137977
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 20:26:14 +02:00
Noel Grandin
9130c1abc6 make SwDoc::IsInTable more efficient
Just follow the pointers, instead of unnecesarily indexing through
the SwNodes array.

Change-Id: I7da103d1300e1cbb54a8ca2994170fb7b2d9779f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137938
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-08 19:27:36 +02:00
Noel Grandin
5ae0fcbc4a no need to allocate on heap in lcl_FindField
Change-Id: Ia9172292220f6935e4a21b659d07dc317c060740
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137939
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-08 18:59:35 +02:00
Noel Grandin
8432910591 unique_ptr->optional in XTextRangeOrNodeIndexPosition
Change-Id: Ie98a79befe4ab3d9a78c908169b0004f478075be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137976
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-08 18:03:49 +02:00
Noel Grandin
307af8c1b0 unique_ptr->optional in SwXMLImport
Change-Id: I66d32a8ffd03fb87aa9380f3f84b6e7463258a04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137975
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-08 18:01:49 +02:00
Caolán McNamara
094572831b these two scrollbars don't meet, so drop the junction box
Change-Id: I066a63910d7ad71c3777b26091ce527e4017017c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137974
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 17:34:24 +02:00
Caolán McNamara
ba394d2c9a move m_bNavigationBar to BrowseBox so it knows best scroll/status bar height
to use, so databrowser with it (view data sources) has the tall case,
while bases, create table in design view has the short case

Change-Id: If3269d2ab2ce62f09acac624e5ef7e91ff91eaea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137953
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 17:33:49 +02:00
Caolán McNamara
6aedcba229 use separate width and height for databrowser vert/horz scroll sizes
the scrollbar in the statusbar can be thicker than the vertical one
which looks weird when both set to the thick size

Change-Id: I76496e47203a7cde72082f8e6b83f5af3e8c3759
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137952
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 16:53:15 +02:00
Caolán McNamara
bb24d34db7 overpaint scrollbar junction with the face color
Change-Id: Ib2dba2d5e47a8c39f79c3ab5a8e79e8185599da6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137951
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 16:52:21 +02:00
Michael Stahl
47b08551a7 tdf#148518 writerfilter,sw: RTF import/export of FORMDROPDOWN field
On import, the values overwrote each other; export of the form data
was missing completely.

Change-Id: I918b3cfced39dc2602c6de03cdaf5848a9825dd2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137861
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-08-08 15:50:08 +02:00
Mike Kaganski
a1c536543d tdf#150293: UITest
Change-Id: I662e82cce6dd8dbf13bac8608af064b34e21e0fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137949
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-08-08 15:17:31 +02:00
Caolán McNamara
e50f6c0239 no need for ScrollBarBox when bg is already the desired color
Change-Id: I5e50d67687355b38190a991ea539b2d40ef74659
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137948
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 14:56:56 +02:00
Caolán McNamara
d564d73673 no need for ScrollBarBox if bg is already the desired color
Change-Id: Ia471938bf0340bdef51b4a745814194f57893eac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137947
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 14:56:30 +02:00
Caolán McNamara
c473a34d77 no need for ScrollBarBox when bg is already the desired color
Change-Id: Id9dd4d4e3ba2c0b0a335fc9f8b1892cd70daf010
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137945
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 14:56:02 +02:00
Michael Weghorn
e77bfe2814 android: Add scrollbars.ui into APK
That UI file was added in

    commit 4bc62c4e9b
    Date:   Thu Aug 4 15:33:51 2022 +0100

        split SwScrollbar up for reuse of adaptor

Include it for Android.
Without it, trying to load/display any document
would result in Android Viewer crashing or getting stuck,
with this in the ADB log:

    08-08 09:22:20.102  6064  6256 D libo:sal/osl/unx/file: double-slash in path: /assets//config/soffice.cfg/svt/ui/scrollbars.ui
    08-08 09:22:20.102  6064  6256 E libo:sal/osl/unx/file: miss cache: failed to open /assets//config/soffice.cfg/svt/ui/scrollbars.ui
    08-08 09:22:20.102  6064  6256 W vcl.builder: 23:vcl/source/window/builder.cxx:480: DBG_UNHANDLED_EXCEPTION in VclBuilder
    08-08 09:22:20.102  6064  6256 W vcl.builder:     when: Unable to read .ui file exception: void
    08-08 09:22:20.103  6064  6256 I LOKitTileProvider: ====> mOffice.documentLoad() returned null, trying to restart 'Office' and loading again

Change-Id: I0938d77dc9553d8acc7b2bdd4a72b5299b4ec1a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137943
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-08-08 13:23:15 +02:00
Michael Weghorn
fd95bf6dea android: Drop empty main.jni.srcDirs from sourceSets
This was shown as a recommended step in Android Studio
when the update to Android Gradle Plugin 7.2.2 was
suggested:

> *Remove jni source directory from sourceSets*
>
> The jni block in an android
> sourceSet does nothing, and will be removed in Android Gradle Plugin
> version 8.0.0.

Change-Id: I3378926047d5ad86548d0bf800e022b74efb5e09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137942
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-08-08 13:22:45 +02:00
Caolán McNamara
56e7646a7d ofz#24932 Timeout
restrict this to a very short length to reset ofz Timeout to force
ofz to report a new issue when restored later

Change-Id: Ibbdbb60f16ddca8367355d4c855e58aa16ea5f4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137944
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 12:05:12 +02:00
Michael Weghorn
495efc3396 android: Update Android Gradle Plugin to 7.2.2
Change-Id: I3235716498168ca5eebf71ebf6f5ee571af7a72d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137941
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-08-08 11:33:49 +02:00
Caolán McNamara
cdf5b6a2a6 tdf#117388 use native scrollbar under gtk in richedit control
you get one of these by starting with a normal text box form control
and changing its "text type" property to multi-line with formatting

Change-Id: If922b6b9fdc49b78fa379dbb3e5974a73f6095ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137933
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-08 09:54:31 +02:00
Noel Grandin
1b44b9d0c7 make more of the SwPaM constructors explicit
which flushes out some more places where we were implicitly
construcing temporaries

Change-Id: I2eee5f99071cd8c155de1be369ba89ec1d732bae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137921
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-08 08:52:35 +02:00
Stephan Bergmann
8785b280ea Pass $(verbose) into ExternalProject_libxml2
Change-Id: I11c7c15f4a97d3024a179fd2489fdace27f15216
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137892
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-08-08 08:45:41 +02:00
Julien Nabet
7b204ecb49 Related tdf#114790: add align and vertalign to datefield im/export
Change-Id: I2661e0c372fbb3c364ac338f23ebbd5b1a448ff0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137936
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-08-08 07:23:59 +02:00
Caolán McNamara
a56705efdb add set_scroll_thickness to provide a way to "zoom" the scrollbar
Change-Id: I551112fb097a6ac2b442cd37d1a16bd2b34ecc54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137932
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-07 22:51:48 +02:00
Noel Grandin
70015759e2 no need to allocate these SwPosition separately
It is a small object, and in these places is already contained
inside a heap object.

Change-Id: Ib9aba6feaf0dd2c24659c03e55fc8a872610cc00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137920
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-07 21:37:28 +02:00
Mike Kaganski
47b4c9bb7f tdf#150293: setPropertyValue(WID_TXTCOL_LINE_WIDTH) takes mm100
Before commit 95ebd24a62
  Author Mike Kaganski <mike.kaganski@collabora.com>
  Date   Thu May 27 13:00:10 2021 +0300
    editengine-columns: ODF support [API CHANGE]

SwXTextColumns crtor took SwFormatCol, and stored line width in the
same units as in SwFormatCol - in twips; conversion to mm100 only
happened at export stage in SwXTextColumns::getPropertyValue.
The mentioned commit changed to SvxXTextColumns::setPropertyValue,
passing the line width from SwFormatCol also without any conversion;
but SvxXTextColumns::setPropertyValue expects mm100, so the result
was wrong.

So perform the proper conversion at SwFormatCol::QueryValue and
SwFormatCol::PutValue, and also store the line width in mm100 in
SvxXTextColumns, to avoid useless extra conversion.

Change-Id: Idfd62a7563f9d3aa5947c1149572a8b8b696b179
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137931
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-08-07 21:14:12 +02:00
Noel Grandin
b1cefa026d no need to allocate these SwPosition separately
It is a small object, and in these places is already contained
inside a heap object.

Change-Id: I930d87827104e04fff2ad6b481ed94348a49701d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137930
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-07 20:36:00 +02:00
Noel Grandin
57ae680048 no need to allocate these SwPosition separately
It is a small object, and in these places is already contained
inside a heap object.

Change-Id: I63eee5390e4ab1d1a66197a100e3876f96f95944
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137928
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-07 20:35:40 +02:00