Commit graph

469534 commits

Author SHA1 Message Date
Justin Luth
324daa38a8 tdf#129638 print preview: use new paper size after switching page
This is a partial revert of LO 6.3
commit 2c23a96f7b.

Change-Id: I17525d06d96779671caaa84e1e48629289453ad2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125685
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2021-11-23 11:05:19 +01:00
Caolán McNamara
1f99fc7f94 gtk3: reuse popover replacement as mouse event widget
Change-Id: I99aa1f1843c5ff6e4c76716178e721a96ae284fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125676
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-23 10:54:58 +01:00
Stephan Bergmann
1040228c35 My clang-cl build does not work with -Zc:dllexportInlines-
Lots of

> [build LNK] Library/cppuhelper3MSC.dll
> servicemanager.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl xmlreader::Span::Span(char const *,long)" (__imp_??0Span@xmlreader@@QEAA@PEBDJ@Z) referenced in function "public: __cdecl `anonymous namespace'::Parser::Parser(class rtl::OUString const &,class com::sun::uno::Reference<class com::sun::uno::XComponentContext> const &,struct cppuhelper::ServiceManager::Data *)" (??0Parser@?A0x40CCA2FC@@QEAA@AEBVOUString@rtl@@AEBV?$Reference@VXComponentContext@uno@star@sun@com@@@uno@star@sun@com@@PEAUData@ServiceManager@cppuhelper@@@Z)
> servicemanager.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl xmlreader::Span::Span(void)" (__imp_??0Span@xmlreader@@QEAA@XZ) referenced in function "public: __cdecl `anonymous namespace'::Parser::Parser(class rtl::OUString const &,class com::sun::uno::Reference<class com::sun::uno::XComponentContext> const &,struct cppuhelper::ServiceManager::Data *)" (??0Parser@?A0x40CCA2FC@@QEAA@AEBVOUString@rtl@@AEBV?$Reference@VXComponentContext@uno@star@sun@com@@@uno@star@sun@com@@PEAUData@ServiceManager@cppuhelper@@@Z)
> servicemanager.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl xmlreader::Span::equals(char const *,long)const " (__imp_?equals@Span@xmlreader@@QEBA_NPEBDJ@Z) referenced in function "public: __cdecl `anonymous namespace'::Parser::Parser(class rtl::OUString const &,class com::sun::uno::Reference<class com::sun::uno::XComponentContext> const &,struct cppuhelper::ServiceManager::Data *)" (??0Parser@?A0x40CCA2FC@@QEAA@AEBVOUString@rtl@@AEBV?$Reference@VXComponentContext@uno@star@sun@com@@@uno@star@sun@com@@PEAUData@ServiceManager@cppuhelper@@@Z)
[...]

Change-Id: I2cf96b8ce52027fa3c307a0973cdfb91fa990763
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-11-23 09:37:09 +01:00
Stephan Bergmann
780d786d72 Fix test for clang-cl with the MSVC template instantiation model
(Otherwise, the FunctionDecl's body was null and all the error and note
diagnostics were flagged as expected but not seen.)

Change-Id: I32acb6e0028433c9b40545cf91d8fe1acd19a77a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125682
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-11-23 09:35:55 +01:00
Miklos Vajna
ed662bcc20 PPTX import: implement native handling of a color's luminance modulation
This was already handled in oox/ at import-time: this adds it to the doc
model, including UNO API and PPTX import.

This is a dependency PPTX export and UI.

Change-Id: I5d875b53d715beb10c13ef616d06cf958d43f70f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125684
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-11-23 09:07:42 +01:00
Miklos Vajna
cea0b1f894 cui, editeng, sw: WrdStt -> WordStart
Because I'm unable to remember if Stt is Start or Stat.

Change-Id: Ie853c6e94e45c3e14e002a0218d11c61905a3180
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125672
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2021-11-23 08:09:48 +01:00
Michael Stahl
6c9d853edc tools: fix INetURLObject::changeScheme()
(regression from dc2010964f
 which broke JunitTest_ucb_unoapi)

Change-Id: I14a79c3b7d1161234da64822186bcf97d4022264
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125671
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-23 07:40:04 +01:00
Justin Luth
283586c89a tdf#138223 oox: don't set highlight color if it is transparent
Probably when this was first implemented in 6.4,
it should have set a transparency threshold of when to accept
the color as the background (perhaps at 50%).
But since this has already been running for a while,
I only cancel it if it is fully transparent.

No existing unit tests matched this scenario.

I'm not making a unit test because the color really
ought to be set - it should just be transparent.
LO doesn't seem to have a character highlight
transparency capability, so this needs to be emulated.

Change-Id: I7b295894e529f8345cadc9b30bc43598a9a02e2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125670
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2021-11-23 06:57:23 +01:00
Andrea Gelmini
e2e7e217e9 Update git submodules
* Update helpcontent2 from branch 'master'
  to f2cbbd18d34a7fb8ece9c774cdcb5a2e38fac957
  - tdf#145831: fix typo in PNG
    
    Change-Id: If393a87a9e17615e65b93852c41f0aeb0c9b55c8
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125678
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-11-23 05:49:52 +01:00
Caolán McNamara
dcc890e3b0 remove an ugly coverity warning suppression
Change-Id: Id67530f1a7c91e3e4e29974b7b9050c7b1fc159f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125669
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-22 20:31:08 +01:00
Xisco Fauli
5a00326951 tdf#143316: sd_export_tests-ooxml2: Add unittest
Change-Id: I7d045d439226c67f479643c71f632a760ad3c2ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125664
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-11-22 19:19:34 +01:00
Xisco Fauli
59e70256a3 tdf#145207: sw_uiwriter3: Add unittest
Change-Id: I1a904f4261f80c2ce709a6e97767c9ba6a71b8f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125662
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-11-22 18:20:34 +01:00
Noel Grandin
e29d89545e improve method naming
Change-Id: I9a45839f6566caf41ccee2f8d149b4d0c60c3503
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125663
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 17:37:58 +01:00
Luboš Luňák
1a32af4192 cache error strings for ScTable::validQuery() (tdf#133835)
Avoid calling SharedStringPool::intern() on values that are
repeatedly the same.

Change-Id: I094f2e777a4ca24536e0c25e6a1c6358ccf49f61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125660
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-22 15:46:46 +01:00
Luboš Luňák
2de99501b7 Revert "cache FormulaError::NoRef error string (tdf#144249)"
A more generic fix coming.

This reverts commit b4c1bb2f91.

Change-Id: Ia7821f1c8585506556708f1bf8526e7f509aafd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125659
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-22 15:46:32 +01:00
Mike Kaganski
7ead98eec8 Use less DegreeN::get()
Change-Id: I97b8d6282c72307cc29a913af221d283523f2fae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125653
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-22 15:20:24 +01:00
Miklos Vajna
2eaf79131d PPTX: implement native handling of <a:clrScheme> children
This was already handled by converting them to raw colors at import
time. This commit imports the color scheme contents (the 12 colors) into
the doc model.

This is a dependency to export them back to PPTX and to be able to
update these colors on the UI by picking a different theme.

Change-Id: I177de4f15d5f0e628669998d1cda7db24220b2eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125651
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-11-22 15:20:09 +01:00
Rafael Lima
5c6c3c0b75 Update git submodules
* Update helpcontent2 from branch 'master'
  to 023b21a704bf0bae904b87907dd72d48d518ac09
  - Document ScriptForge Dispose() method
    
    Change-Id: Ic2ff80cfc2dc987ea7e62d7c216358af279712a7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125452
    Tested-by: Jenkins
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-11-22 15:16:20 +01:00
Heiko Tietze
899e8f813c Resolves tdf#145684 - Sort sidebar decks in a more natural way
Effects and Shadow went down, Line and Graphic aka Image up

Change-Id: Ifb921e8b84d6fd18926c3249891c76c61ee6626f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125661
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2021-11-22 15:04:59 +01:00
Noel Grandin
c19b6a80da loplugin:noexceptmove
Change-Id: I2ba1ebb161f4004b819fd106c090fefd8d8af8ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125658
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 14:49:29 +01:00
Sarper Akdemir
d3651f96d4 tdf#143316: fix datetime footer regression on mso2010
Exports language in run properties of the datetime footer.
And also overrides the placeholder "Date" text with formatted
datetime text if the datetime footer is a nonfixed one.

Fixes regression from: 166671f4aa
(tdf#59323: pptx import: import footer fields as properties)

Change-Id: Ib888e5cf51ea7e14fb13278e96610051e1e5fe5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124123
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2021-11-22 14:05:53 +01:00
Xisco Fauli
23a6b9bd98 uitest: sw: make test more precise
and no need to use the for i in range(90) loop

Change-Id: I9b039d49dc74f61289ad11979da1f244ec59903f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125655
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-11-22 13:57:56 +01:00
Luboš Luňák
6b2d8e2d88 handle filling and stroking at the same time if possible
All tests still pass, so the end result should be the same, but
this way it's done in one call.

Change-Id: If5da34837a45ad600ae30568e4ba7651ac5838bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125644
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-22 13:49:14 +01:00
Luboš Luňák
53ce0e3af4 move code to helper functions
I'll want some common extra functionality there later.

Change-Id: I249f9ca4662fc8e8d52c58b1bd33293f363464d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125643
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-11-22 13:49:01 +01:00
Noel Grandin
1b327e4a33 tdf#133835 speedup calc autofilter (9)
Remove the temporary buffer in INetURLObject::setAbsURIRef,
and just write directly to the main buffer.

This is a behaviour change since we are "committing" bad data to the
buffer if the URL is incorrect, but since it that case we set the
whole object to be invalid, that should not matter.

Change-Id: Ic8e7d4027bcb927005edd7de4098f4f525412869
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125648
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 12:20:18 +01:00
Noel Grandin
a70bd820da tdf#133835 speedup calc autofilter (8)
Add move operator to OUStringBuffer to avoid copy

Change-Id: Ifef326449d87aac79f4b1142db7a53faad427580
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125626
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 12:19:59 +01:00
Michael Stahl
8e34fe5041 ucb: webdav-curl: don't use chunked encoding for PUT
What happens with Nextcloud:

 CURLINFO_HEADER_OUT: 0xa028408: PUT .../testB.odt HTTP/1.1
User-Agent: LibreOffice 7.3.0.0 curl/7.79.1 NSS/3.71
Accept: */*
Accept-Encoding: deflate, gzip
Transfer-Encoding: chunked
Expect: 100-continue
 debug log: 0xa028408: STATE: DO => DID handle 0xa028408; line 2077 (connection #0)
 debug log: 0xa028408: STATE: DID => PERFORMING handle 0xa028408; line 2196 (connection #0)
 debug log: 0xa028408: HTTP 1.1 or later with persistent connection
 CURLINFO_HEADER_IN: 0xa028408: HTTP/1.1 100 Continue
 debug log: 0xa028408: CURLINFO_DATA_OUT 8357
 debug log: 0xa028408: Signaling end of chunked upload via terminating chunk.
 debug log: 0xa028408: CURLINFO_DATA_OUT 5
 debug log: 0xa028408: Mark bundle as not supporting multiuse
 debug log: 0xa028408: HTTP 1.1 or later with persistent connection
 CURLINFO_HEADER_IN: 0xa028408: HTTP/1.1 201 Created
 CURLINFO_HEADER_IN: 0xa028408: Date: Fri, 19 Nov 2021 16:27:47 GMT
 CURLINFO_HEADER_IN: 0xa028408: Server: Apache
 CURLINFO_HEADER_IN: 0xa028408: Content-Length: 0

... yes, "201 Created" a 0 byte file.

https://github.com/nextcloud/server/issues/7995

Apparently this doesn't happen with header Content-Length: 8347

Change-Id: I3f38d50530a8b6430b27de2525370e1d95705da6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125579
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-11-22 11:26:28 +01:00
Mike Kaganski
de4cb026b5 Generalize DegreeN
This potentially allows to introduce other degree fractions easily,
like Degree<sal_Int64, 60000>, with automatically defined conversion
functions.

Change-Id: Id1c32d9e029943844bdc833178c1f99387ff87fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125640
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-11-22 11:25:38 +01:00
Heiko Tietze
003b2d0c36 Resolves tdf#145821 - Layout inconsistency on paragrapgh dialog
This reverts expanded controls from patch Icb22f2a9f24852898ab4550bc0cec32732ad32dd

Change-Id: Iac9a0d920193d47976d6a2fc9305c43b09447019
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125642
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2021-11-22 11:06:54 +01:00
Rafael Lima
4f8fd72846 Update git submodules
* Update helpcontent2 from branch 'master'
  to 957baaaa79fc771842444d2fd5df6c9f9383f6d7
  - Document Duplicate/Rename sheet shortcuts in Calc
    
    Based on Regina's comment on bug tdf#145745 there are quick ways to duplicate and rename Calc sheets. This patch documents these shortcuts.
    
    Change-Id: I887018cec48b829b73edd3c593d32f2044d60778
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125450
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:57:10 +01:00
Johnny_M
b56e7a74a1 Update git submodules
* Update helpcontent2 from branch 'master'
  to e03ef6d09a95251a7e31c03c4df183d80de2f73f
  - tdf#132643 Translate German section IDs
    
    Change-Id: I02ddd433b92c1948b53442dba46480010b275d12
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125614
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:55:48 +01:00
Michael Stahl
6c377dc4a3 ucb: webdav-curl: log headers in debug_callback
Change-Id: I40ed170c2ae8bc769372fa2269dcf1f1643000de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125580
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-11-22 10:55:05 +01:00
Johnny_M
acee9aa28e Update git submodules
* Update helpcontent2 from branch 'master'
  to b0391082f22e06d38c17beb241852f7f6dc1ceb4
  - tdf#132643 Translate German section IDs
    
    Change-Id: Ibff67e3a6e819d998acd81d48cc8487423912df8
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125612
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:55:04 +01:00
Michael Stahl
4d75e29b3b Revert "The CurlOption curl_off_t case appears to be unused"
This reverts commit 20168b1f09.

Change-Id: I3ac7bdeece94ec2a0e01d67f2788874b3f286fe4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125578
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-11-22 10:54:41 +01:00
Johnny_M
3c62f72d7e Update git submodules
* Update helpcontent2 from branch 'master'
  to 4f86b98f4852a3590208a5ba0183b0767b2340b0
  - tdf#132643 Translate German section IDs
    
    Change-Id: I43001aefdeec0ac4f43f1b0a7274116dbc87b76a
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125613
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:54:32 +01:00
Johnny_M
f1c0f123c3 Update git submodules
* Update helpcontent2 from branch 'master'
  to 6f3dfd46d61bd8ee5ae04b35056f95117cc472c5
  - tdf#132643 Translate German section IDs
    
    Change-Id: I544d292737aff83158bcfe46cdbef715e4a5ca33
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125609
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:53:59 +01:00
Johnny_M
2aba4fb6bb Update git submodules
* Update helpcontent2 from branch 'master'
  to cb389072da48f9712f8100ac8e88656604106ab5
  - tdf#132643 Translate German section IDs
    
    Remove unused.
    
    Change-Id: Idced60ec26d33644833e758886da95b9b12596eb
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125611
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:53:25 +01:00
Johnny_M
186cdc22ee Update git submodules
* Update helpcontent2 from branch 'master'
  to 649d6ca20c8e574e86a25318510b4ba611da94c3
  - tdf#132643 Translate German section IDs
    
    Change-Id: I2c676d21d8b78ca1f5307904508bbd620724ddfd
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125608
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:52:50 +01:00
Johnny_M
d09492732e Update git submodules
* Update helpcontent2 from branch 'master'
  to 430875f024037702e09291ee48c6dec481ad40c5
  - tdf#132643 Translate German section IDs
    
    Change-Id: I10ce80babf0e191f854f151a480d3340bf2eef0f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125607
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:51:39 +01:00
Johnny_M
916fec758b Update git submodules
* Update helpcontent2 from branch 'master'
  to 598bf0b1deb8a4e0795a79c78001a10d3b262e87
  - tdf#132643 Translate German section IDs
    
    Change-Id: I1e582772a69cca77716f270b243bf8f73b173dcd
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125605
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:50:57 +01:00
Johnny_M
adb5ab8fbe Update git submodules
* Update helpcontent2 from branch 'master'
  to a6e8b1dcb95877d2d03586482e70e96f276961da
  - tdf#132643 Translate German section IDs
    
    Change-Id: I6ec193b5e751a9f1ceab602ef88582d01457fbb3
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125604
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-22 10:50:17 +01:00
Justin Luth
fbda2f3b7b tdf#132470 tabbar: revert back to bold font on visible tab
This is a partial regression to LO 6.3's
commit fad98c8641.

The current sheet is always selected, which is fairly
distinctive. However, it is possible to select
multiple sheets, and the current one should be
distinctly marked to differentiate it from
the other selected sheets.

Change-Id: Ib160535cccebcfcabee94d17e5941cc3cd23bb15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125601
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-11-22 10:30:37 +01:00
Dr. David Alan Gilbert
4c577a0ada pszctrl: cppcheck undefined shift
cppcheck noticed that the shift in:

    for ( sal_uInt16 nCheck = 1; nCheck < 32; ++nCheck )
        if ( nCheckEncoded & (1 << nCheck) )

is undefined since 1 << 31 is implementation defined.
Make it 1u, and the others around.
(Not that we define bits that high, but we are explicitly checking it)

Change-Id: Ieb780ac999af71df2b48ce64daaf4b2878162e35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125016
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-11-22 10:03:22 +01:00
Noel Grandin
626296cb6c osl::Mutex->std::recursive_mutex in LanguageTag
Change-Id: I75e2d0b78ebf4390ed67d94eb1021145f245fe50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125631
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 09:52:34 +01:00
Noel Grandin
ef1e087dc9 osl::Mutex->std::mutex in MimeConfigurationHelper
Change-Id: Ib9a628d42448aea858271094ef5bdaac022b0f21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125633
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 09:52:18 +01:00
Noel Grandin
2d073a759f osl::Mutex->std::mutex in OPropertyArrayUsageHelper
Change-Id: I4fd784f291fd6606b25520e3f08aa8692132e997
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125634
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 09:51:40 +01:00
Noel Grandin
a6ed758811 tdf#133835 speedup calc autofilter (7)
vcl::Font avoid allocating a new instance if the setter doesn't
change anything, saves 5%

Change-Id: I461a2a8e3709b3f3f20e431cb3b976ad47bed0ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125625
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-11-22 09:51:25 +01:00
Caolán McNamara
131c1c7da8 Related: tdf#145786 cooperate between our own grabs
don't try to workaround a grab if the grab is done by another
of our own popups, and on tearing down one of our popups, restore
the grab of its parent if that parent was one of our own popups.

This typically matters on X where we don't use GtkPopovers (unlike
wayland, where Popovers can escape the parent window). Things to test
are:

writer's watermark dialog: click the color button to get the 1st level
popup, then click the combobox to get the 2nd level one, select an entry
to return to the 1st level.
a) Clicking a valueset element should select that color, not dismiss the
popup without selecting a color.
b) Clicking the combobox to get the popup again should result in a popup
where the focus still follows the mouse (i.e. the 1st level popup
doesn't try and steal away the 2nd level grab)

sidebar: same scenario as above, except a color popover parented to a
sidebar pane and not a dialog.

Change-Id: Ib5d765b22b8a9b6b1a7806676c8fe3cfb7709734
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125638
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-22 09:47:19 +01:00
Caolán McNamara
873e4d30e3 gtk3: popover replacement for GtkMenuButton has to be modal
Change-Id: If1b18c4b39fbe82fd613ff0f62f0ff60fdaeeed8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125637
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-11-22 09:35:09 +01:00
Miklos Vajna
e6b75a22df sw: prefix members of SwDBManager, SwWebGlosDocShell, SwWordCountWrapper ...
... and SwZoomControl

See tdf#94879 for motivation.

Change-Id: I74f31e45a8c215d406371a23b64d548fbb851d28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125641
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2021-11-22 09:09:27 +01:00