Commit graph

484253 commits

Author SHA1 Message Date
Xisco Fauli
92598f5a5e CppunitTest_sw_layoutwriter: split in two
it already has 110 tests

Change-Id: I4f218c873b5771e46cd2037249f0bb9db5f6b808
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148554
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-03-09 19:09:45 +00:00
Rizal Muttaqin
560a6307a1 tdf#153465 & tdf#153344 Sukapura Dark with 16px status bar icons
Change-Id: If255495c43f4606b7931b86901449453189e9994
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148551
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-09 18:21:20 +00:00
Miklos Vajna
ff1640fd59 sw layout xml dump: allow invoking this from out sw/ in a debugger
This is similar to SwDoc::s_pLast, but for the layout.

Change-Id: I48bb53a7595a4cec3fe47c563e91db671643d6b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148529
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-03-09 18:14:31 +00:00
Seth Chaiklin
785bd2af80 Update git submodules
* Update helpcontent2 from branch 'master'
  to d1b4263237f2cb02929156ff556cc12f6460380f
  - tdf#153561  adjustments for "Format" because of widget name change
    
    Change-Id: Iaead2cc332a8889f8c174f1ccf84e9cdfbfc154c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148507
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
    Tested-by: Jenkins
2023-03-09 17:46:39 +00:00
Noel Grandin
2b87bcf08c remove some unnecessary locking in TypeDetection
the FilterCache class is already internally thread-safe

Change-Id: Ic869bda1257cc61fc69557624c8d6e169645b23a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148538
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-09 17:33:18 +00:00
Heiko Tietze
49379a0b3f Resolves tdf#131177 - Replace Hard-Coded TotD bulb by themeable icon
Change-Id: I25006f64436a72f554450929b1b649478b02cbc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148536
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-03-09 17:07:04 +00:00
Tünde Tóth
ed77023797 tdf#148026 DOCX export: fix link with target frame and anchor
Hyperlink with target frame and anchor didn't work after export.

Change-Id: I84980e30d2e1d6d53cfe201cf4cac60354151aba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148041
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
2023-03-09 16:46:36 +00:00
Caolán McNamara
153313dd19 cid#1521899 Dereference after null check
Change-Id: I6cbdabfe794e37f7e00fa730f672bf8318b86b83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148549
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-09 16:27:46 +00:00
Seth Chaiklin
369f65d4aa Update git submodules
* Update helpcontent2 from branch 'master'
  to 6a25d11512dc078fc47c546585c9663b5804a3eb
  - tdf#153561  "Chapter No." -> "Numbering" because of widget name change
    
        also corrections to "Numbering" and "Entry text" descriptions
        refactor <h2>,<h3> and remove <xml-lang>
    
    Change-Id: I19fe8d8ecf74f3526a4d10b18a76ad1da47ad5c3
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/147370
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2023-03-09 16:13:36 +00:00
Julien Nabet
ee19ca2286 Wrong value for VT_UI4 (sd/propread)
9 instead of 19
see https://learn.microsoft.com/en-us/windows/win32/api/wtypes/ne-wtypes-varenum

Change-Id: I00283e117a2a2fd2d5165047bf7dcad82ffc18ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148446
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-03-09 12:48:06 +00:00
Mike Kaganski
3579343ec0 Some refactoring and deduplication
Change-Id: I443bd562bc9df6636bf71a230a05a12e443c6614
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148532
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-03-09 12:08:16 +00:00
Caolán McNamara
33153adfc2 ofz#56819 Null-dereference
since:

commit d062f097cc
Date:   Wed Mar 8 02:14:11 2023 +0300

    Simplify usage of BinaryDataContainer

    It is always used to store data read from streams

Change-Id: I33d237a801b1cdf47b85b3fd3522c398ba08068b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148524
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-09 11:50:42 +00:00
Arvind K
013fbfb592 tdf#114441 Convert sal_uLong to better integer types
This patch replaces sal_uLong usages in cui directory.
changed m_nOldCount in cui/source/inc/dbregister.hxx to size_t.
m_nOldCount has been used in dbregister.cxx where it is initially
assigned a value 0, later on it has been assigned the value
returned by registration.size() which returns type size_t.
Line 272 in cuigaldlg.cxx mrTakenList with type TokenList_impl
is pushed back with variable nPos of type sal_Int32 hence
changed TokenList_impl to store sal_Int32 types.

Change-Id: Ie0ba284dc4592cc69a1ded2fe232d18aaec3c92a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148237
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-03-09 11:01:51 +00:00
Caolán McNamara
bef33a6c59 ofz#56818 Integer-overflow
Change-Id: I4be620619e407be132b92f4ce82b7a26dbc34406
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148531
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-09 10:49:01 +00:00
Noel Grandin
ab8ebc65af remove dead code in SwNodes::FindPrvNxtFrameNode
ever since
    commit af4e20426a
    Author: Michael Stahl <michael.stahl@allotropia.de>
    Date:   Tue Dec 21 15:19:33 2021 +0100
    tdf#135061 sw_redlinehide: create frames following hidden table

Specifically, remove the line
   pFrameNd = &aIdx.GetNode();
because the pFrameNd is then immediately overwritten with nullptr.

Also re-indent the resulting code and removing an unnecessary block scope.

Change-Id: Ic4d40ee7835ed73038eba9da7ec72670cf0b97b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148384
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-09 10:28:51 +00:00
Caolán McNamara
59b0f67675 ofz#56826 Heap-use-after-free
since:

commit abda72eeac
Date:   Mon Feb 20 00:32:22 2023 +0100

    tdf#82984 tdf#94915 zip64 support (import + export)

Change-Id: Iffc1c54b3ccc5464e217d7f94ecc34b57ec1afb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148526
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-09 10:18:42 +00:00
Yousef_Rabia
ddd2e00278 tdf#143148 Use pragma once instead of include guards
Change-Id: I1c175753242783d83b5b1edc9b8b4cee2a5bd277
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148449
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-03-09 10:12:10 +00:00
Stephan Bergmann
b48371ba61 Silence false -Werror=dangling-pointer=
...that hit at least with GCC 13 trunk and --enable-optimized,

> In file included from sw/inc/tox.hxx:35,
>                  from sw/inc/doc.hxx:35,
>                  from sw/source/core/inc/AccessibilityCheck.hxx:14,
>                  from sw/source/core/access/AccessibilityCheck.cxx:11:
> In constructor ‘sw::ClientIteratorBase::ClientIteratorBase(const SwModify&)’,
>     inlined from ‘SwIterator<E, S, <anonymous> >::SwIterator(const TSource&) [with TElementType = SwTextFrame; TSource = SwTextNode; sw::IteratorMode eMode = sw::IteratorMode::UnwrapMulti]’ at sw/inc/calbck.hxx:364:68,
>     inlined from ‘virtual void sw::{anonymous}::FakeCaptionCheck::check(SwNode*)’ at sw/source/core/access/AccessibilityCheck.cxx:937:99:
> sw/inc/calbck.hxx:295:32: error: storing the address of local variable ‘aIter’ in ‘sw::ClientIteratorBase::s_pClientIters’ [-Werror=dangling-pointer=]
>   295 |                 s_pClientIters = this;
>       |                 ~~~~~~~~~~~~~~~^~~~~~
> sw/source/core/access/AccessibilityCheck.cxx: In member function ‘virtual void sw::{anonymous}::FakeCaptionCheck::check(SwNode*)’:
> sw/source/core/access/AccessibilityCheck.cxx:937:14: note: ‘aIter’ declared here
>   937 |         auto aIter = SwIterator<SwTextFrame, SwTextNode, sw::IteratorMode::UnwrapMulti>(*pTextNode);
>       |              ^~~~~
> sw/inc/calbck.hxx:289:53: note: ‘sw::ClientIteratorBase::s_pClientIters’ declared here
>   289 |             static SW_DLLPUBLIC ClientIteratorBase* s_pClientIters;
>       |                                                     ^~~~~~~~~~~~~~

(And -Wdangling-pointer is unknown to older GCC versions, so would cause
-Werror=pragmas there.)

Change-Id: I64e53b52e04ab34da42c7adc54b8d8cb46123dfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148515
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-09 10:11:19 +00:00
Seth Chaiklin
4322248194 add a missing space in formatting
Change-Id: I17263a1a29ba0bb0821d11234d05b55f0697e34c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148496
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-03-09 10:06:04 +00:00
Miklos Vajna
ab61be6ed5 sw doc model dump: allow invoking this from outside sw/ in a debugger
There is only a single SwDoc instance in many cases, having an easy
to access pointer to that is helpful when the backtrace doesn't include
a frame in sw/ code.

This allows something like 'print SwDoc::s_pLast->dumpAsXml(0)' in gdb,
even if e.g. the current frame is xmloff/, without hunting for a parent
that is in sw/.

Change-Id: Id70baf7919ef6fde7b834704741dab70531e7e2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148522
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-09 09:54:03 +00:00
Rizal Muttaqin
db06ae5475 tdf#149144 Icons for sm Formula Editor in Sidebar Deck
Change-Id: I851e0e45df3331012eddcaa3240c6ffb27054e57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148520
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-09 09:14:56 +00:00
Caolán McNamara
45d335e388 crashtesting: assert seen on load of moz1297206-1.svg
Change-Id: Ide16b0086ef81bb9580b93f63c2c5220459d74d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148478
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-09 08:28:54 +00:00
Regina Henschel
d95a09c1fc tdf#51195 add docx export of gradient fill of Fontwork shapes
FillGradient, which is a awt::Gradient, has many features which cannot
be represented in the <w14:textFill> element in docx. Therefore often
only workarounds are possible.

ELLIPTICAL and RADIAL are exported to 'circle', SQUARE and RECT to
'rect'. 'Angle' is ignored. A focus point is used instead of a focus
line.
LINEAR and AXIAL are exported to 'lin'. AXIAL is done be compress and
mirroring the color stops. Using Words feature of reflecting a gradient
would prevent detecting 'axial' in the current import filter.

'Border' is exported by introducing additional color stops.

'StepCount' is ignored. A workaround using additional color stops is
possible, but would require a simultaneous change of the import filter.

'StartIntensity' and 'EndIntensity' are exported as 'lumMod'.
Theme colors are considered where they can currently occur. But
tdf#151882 is yet not fixed, so Word will not render them because of
missing Theme folder.
To allow 'lumMod' and theme color and RGB color as well, the color of
a color stop is hold in a struct.

In case of two color stops, the color stop at position 0% is doubled.
That way Word uses the same linear color transition as LO and not its
quadratic one. AXIAL too introduces two color stops at position 50%.
Emulating 'StepCount' would produce two color stops at same position
too. Therefore a std::multimap is used for the color stops.

The implementation has a lot local parts. If they should be useful
for Fontwork shapes in Impress/Draw, they can be moved and adapted
later. The implementation separates the calculation of the required
color stops from the generation of the markup, so using parts in
Impress/Draw is likely possible.

Change-Id: I1032ab8d37b6f112d66f85a30210ebda3ae54486
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148354
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-09 08:25:51 +00:00
Miklos Vajna
78b1631e96 sw floattable: enable widow / orphan control in split rows
The bugdoc has a single table cell, and widow control is meant to move
the last 2 lines to the second page, but only one page was moved there.

The problem is that widow / orphan control was completely disabled
inside split table rows, but Word does this.

We know when a table comes from a Word document, so in that case enable
widow / orphan control inside split rows as well.

Do this only for in-fly tables for now, doing this in general would need
more work, as pointed out by CppunitTest_sw_layoutwriter's
testForcepoint76. It is an RTF file that doesn't open in Word, but we
would layout-loop on it if this would be enabled in general right now.

Change-Id: Ie37be61443a274f408e1124983d1d495de5636c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148521
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-03-09 08:21:29 +00:00
Franklin Weng
d2e8705c9c tdf#153839: add newline after certain tags
Add newline after certain tags in head section and paragraphs, to make generated xhtml easier to read.

Change-Id: I9562ef48d9dd1283110be4a45527616dce186681
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148026
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-09 07:43:14 +00:00
Adolfo Jayme Barrientos
bc8b153da7 Update git submodules
* Update helpcontent2 from branch 'master'
  to d399273cdb7cfb2b90260d40e49e81ac75398718
  - Update more references to the Extensions dialog
    
    Change-Id: I478df514a784bac03c4acdca935df184accd6b6b
2023-03-09 07:36:35 +00:00
Maxim Monastirsky
37b2bb1f6c tdf#154050 Unset external pointer before destroying
Regression of 48ca233625
("tdf#125040 Avoid flickering on context change").
Before that commit the state of toolbar commands was
updating async, which is how it managed to not crash.

Change-Id: I07e2ce25faf848c7db33dd029b54a98bafcf8fa9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148518
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2023-03-09 07:23:25 +00:00
Stephan Bergmann
a5c83673ba Demultiplex test code
It is so much easier to work with if a test failure's line number unambiguously
points at the code's sole execution.  (That is, test code is necessarily non-
DRY.)

Change-Id: I75919c55671348f6190e9e108e72e24ec18ce986
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148514
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-09 07:06:05 +00:00
Stephan Bergmann
f194f9dba0 Re-enable CppunitTest_emfio_wmf for --enable-mergelibs
It had originally been disabled by a037f6338c
"Disable CppunitTest_vcl_wmf_test under --enable-merglibs for now" because "the
problems caused by that test having the vcl objects linked into both the test's
library and the mergedlib (which the test's library links against) are just not
manageable", which is no longer an issue at least since
29cdfa3fc3 "no need to statically link against the
emfio library in the tests".

But the test code apparently uses WinMtfFontStyle, which can thus no longer be
hidden under --enable-mergelibs.

Change-Id: Ie807b19f0cb44408c69d03faca01fabe88239ca0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148493
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-09 07:05:04 +00:00
Miklos Vajna
db73d73c40 sw: fix undo comment of FN_UPDATE_BOOKMARKS
It's updates, not insert. One has to dispatch .uno:UpdateBookmarks to see
this in action, which does something if the document already contains at
least one bookmark.

Change-Id: I32d259b0b5c18cbbec2969cd189ca7ba4dd0dde4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148487
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-03-09 07:00:12 +00:00
Andrea Gelmini
a7952b339e Fix typo
Change-Id: Ie69dd2bacbd1f1680d82ad113b707cca24950d2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148471
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-03-09 06:21:24 +00:00
Andrea Gelmini
5eae429d02 Fix typo
Change-Id: I4c48c988667ffd9221a0e226ab9c35e1e857e9d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148489
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-03-09 06:20:54 +00:00
Rizal Muttaqin
082d009b6a Sukapura: tdf#152887 Add status bar icons for Accessibility Check
Change-Id: If5b556fe8263740f26b80961add87398e8b3eefe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148517
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-09 02:02:42 +00:00
Justin Luth
80e8763036 tdf#153964 writerfilter: column break split should inherit most properties
When a column break or page break split occurs,
the split off paragraph should keep (most of) the properties
of the original paragraph. This already happened for page breaks.

Exceptions are first line indents, and numbering
if there was a run to apply them to already.

This commit:
-tells lcl_startParagraph when column breaks are m_bIsParaSplit,
 resulting in the paragraph properties being copied over
-clears the para properties that shouldn't apply twice.

[Top Margin was more complicated and handled separately.]

make CppunitTest_sw_ooxmlexport18 \
CPPUNIT_TEST_NAME=testTdf153964_firstIndentAfterBreak14

make CppunitTest_sw_ooxmlexport18 \
CPPUNIT_TEST_NAME=testTdf153964_numberingAfterBreak14

Change-Id: I5ecd25da831894536044c6dbffbb0a262f8b6828
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148452
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-03-09 00:33:26 +00:00
Rizal Muttaqin
6002b5ff59 tdf#152887 Add status bar icons for Accessibility Check
Change-Id: Ied2b876938824c3504231988943851bd97265e44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148466
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2023-03-08 23:27:00 +00:00
László Németh
8f26482986 tdf#136904 tdf#116084 tdf#121176 sw: fix Undo & anonymized w:del in w:ins
Undo/Redo crash resulted by the workaround for anonymized
w:del in w:ins. Anonymized (no time stamp) redlines
are loaded with Epoch time (1970-01-01) since
commit 2c51746997
"tdf#146171 DOCX: fix loss of change tracking, if no date",
so it's possible to fix the original DOCX import problem
using this value: don't combine anonymized deletion
inside/over anonymized insertion, and remove all the
workaround, keeping only their adjusted unit tests,
and add new tests for the export fixed finally, which
keeps anonymized w:del in anonymized w:ins.

Revert commit 2de1fd7d8b
"tdf#125187 DOCX track changes: fix w:del within w:ins",
commit df4f405a15
"tdf#121176 DOCX track changes: same size w:del in w:ins" and
commit 7a810d6a9f
"tdf#116084 DOCX track changes: fix w:del within w:ins".

Regression from commit 2de1fd7d8b
"tdf#125187 DOCX track changes: fix w:del within w:ins".

See also commit 64dcedcf7c
"tdf#147760 tdf#142902 DOCX export: anonymize date and moveFromRangeStart".

Change-Id: Id6e41187e7f94154389f24dd525067ac47ec7e58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148479
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2023-03-08 21:01:03 +00:00
Mike Kaganski
f5cceefde8 MSVC: use the newer conformant preprocessor
As explained in the /Zc:preprocessor documentation [1], it enables "a token-based
preprocessor that conforms to C99 and C++11 and later standards", available since
Visual Studio 2019 version 16.5.

It helps to workaround an IntelliSense bug [2], which disables highlighting and
code completion in the IDE integration when certain Boost libraries are included;
but using a better preprocessor can't hurt in general, right?

[1] https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor
[2] https://developercommunity.visualstudio.com/t/IntelliSense-reports-many-errors-for-the/10287480#T-ND10303205

Change-Id: I5268f2dd4acf01cc1da23cfe76653c2f6c688c05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148484
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-03-08 20:47:54 +00:00
Caolán McNamara
ee5f8b0bb5 cid#1521854 Unchecked return value
Change-Id: I2636790165b2fc0d535d4b8648e16751a0b69e23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148470
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-08 19:54:26 +00:00
Caolán McNamara
fa0f8dd9d3 cid#1521852 Unchecked dynamic_cast
Change-Id: Iec5f58101ca65665d6782e769a5a58765c9e6d37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148469
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-03-08 19:54:15 +00:00
Andreas Heinisch
c1af1b9c55 tdf#66613 - Transfer tab: preserve print ranges and col/row repetitions
Change-Id: Ib0e6f9942c2bae1f1fdfa2d0ead0868e9b790b1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148284
Tested-by: Jenkins
Tested-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-03-08 17:48:11 +00:00
Seth Chaiklin
e78e3b2de1 tdf#153712 revise labels for Chapter Info and its related options
"Chapter Info" -> "Heading Info" (in Entries tab)
       add tooltip; revise extended tip
    "CI" -> "HI"  (on Structure widget)
       and its tooltip
    "Chapter entry" -> "Heading info"
        add accelerator
     change labels in dropdown box to number and contents
      (consistent with 'Heading' type field variable)
        add tooltip; revise extended tip

Change-Id: Ic937d0db6af28c9fc416e6a960c0f22a69bfbadb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148406
Tested-by: Jenkins
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2023-03-08 16:22:20 +00:00
Noel Grandin
b8ef33f1a2 BaseMutex->std::mutex in MutableTreeDataModel
Change-Id: I9028c0ac35b2f375ef0d72201ca4b9f8eb99c7b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148477
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-08 14:56:11 +00:00
Attila Szűcs
abda72eeac tdf#82984 tdf#94915 zip64 support (import + export)
Implemented import + export for "Zip64 Extended Information Extra Field",
(in "Local file header" and "Central directory file header")
and for Data descriptor.
Focused only to be able to handle files with over 4GB uncompressed size,
in the zip archive.
The 64k filecount, and the 4GB compressed size limit is probably still present

Tried to follow pkware .ZIP File Format Specification,
Some cases were not clear to me and/or some zip compressing tool may not
perfectly follow the standard, like 'extra field' should be 28 bytes long,
but its reader now can read shorter (or longer) 'extra field'.

Replaced some 32bit codes with 64bit codes, in stream handling, in deflater.

Tested with an ods file that contained a content.xml that bigger then 4BG+
(import + export + reimport) on windows.
I think 4GB+ files import/export would be too slow fot unittest.
So, for unit test, used the small but zip64 format files,
that was attached to the bugzilla tickets

Note: It helps with Bug 128244 too (1 of the unittest tests it),
but that ods file missing manifest.xml, so LO won't be able to import it.

Change-Id: Idfeb90594388fd34ae719677f5d268ca9a484fb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147306
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2023-03-08 14:53:57 +00:00
Heiko Tietze
f1306e1d0f Fix to SC_VIEWSETTINGS_COUNT
Missed in I8f3e368d4fdad362b819b4ce2fd6b0c32b5c1c0f

Change-Id: Ibb744c0c853813e379eca8558fa114d403a4f494
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148468
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-03-08 14:18:20 +00:00
Michael Stahl
470a2c0692 sw: PDF/UA export: produce more headings H7..H10
ISO 14289-1:2014 adds a new feature:

  7.4.3 Additional headings
  If a PDF that contains the tags H1, H2, H3, H4, H5, and H6 (in any
  permissible sequence) requires more headings, tags numbered from
  H7 upward (without limit) may be defined and used.

Do not add new enum values H7..H10 to StructElement, because this
approach results in veraPDF complaining:

  Specification: ISO 14289-1:2014, Clause: 7.1, Test number: 5
  All non-standard structure types shall be mapped to the nearest
  functionally equivalent standard type, as defined in ISO
  32000-1:2008, 14.8.4, in the role map dictionary of the structure
  tree root.

Change-Id: Icf39667dee3847f6b755bfa592a9d30ce872c26e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148431
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-03-08 13:28:24 +00:00
Seth Chaiklin
255dd20d2f Update git submodules
* Update helpcontent2 from branch 'master'
  to 717e288c98b181fe9a49e86f7fa6d4f594df4ab5
  - tdf#153637 update "use level..." option label and explanation
    
       correction to description about what appears in Type box when new
       user-defined index is created, and adding link to relevant help page.
    
       refactor <h1>,<h2>,<h3>,<relatedtopics>
    
    Change-Id: I35ccb871f6da435fac2cdf95f0a47e77baf75476
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148413
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2023-03-08 13:25:31 +00:00
Heiko Tietze
0f9226287f Related tdf#153499 - Index Entry UI
Misleading label "Selection" and associated frame removed
Nested grids cleaned-up

Change-Id: Ib144d91d6c03a4ae0324c18ad27cde6f25594be7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148467
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-03-08 13:24:36 +00:00
Mike Kaganski
6b6d59d04e Add some SAL_WARNs and SAL_INFOs
These help when debugging the LanguageTool issues.

Change-Id: I04bb84dbffc8e4c4e0b353f8e830fe66d8dff576
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148199
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-03-08 12:52:12 +00:00
Noel Grandin
c405820c8e deduplicate MutexAndBroadcastHelper
there are two very similar classes, standardise on the one in
include/comphelper

Change-Id: If85729dcea01e65a2d095bb211fe643c783ebf1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148442
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-08 12:38:51 +00:00
Justin Luth
96a502b375 tdf#153964 writerfilter compat15: top margin after break split
The problem was that the top margin was being applied
to the new paragraph after the split.

This is absolutely attrocious in MS Word before 2013.
If I am going to be in error, I want to error on the side
of being compliant with compat15, since all other versions
of MS Word are now unsupported.

I think I have the logic of it mostly figured out.
In compat15, the top margin never applies after the break.

In compat14, if the paragraph properties are not applied
to a run before the break, then they can be applied after the break.

make CppunitTest_sw_ooxmlexport18 \
CPPUNIT_TEST_NAME=testTdf153964_topMarginAfterBreak14

make CppunitTest_sw_ooxmlexport18 \
CPPUNIT_TEST_NAME=testTdf153964_topMarginAfterBreak15

Change-Id: I8816b391e898cfea58c2e0dbf01c881f87bbc4c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148451
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
2023-03-08 12:25:57 +00:00