Commit graph

474938 commits

Author SHA1 Message Date
Caolán McNamara
75277f27e3 set CTL_HEADING for cppunit tests to something from more_fonts
Change-Id: Ieb2878048017cc186fb98fa3c79eaf72b8e7b798
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133565
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-29 09:46:17 +02:00
Miklos Vajna
c53d3a1f4b sw content controls, checkbox: add DOCX import
My expectation was that <w14:checked w14:val="0"/> would be mapped to a
single SPRM where the int value is 0 or 1 depending on if this is a true
or false boolean. But the w14 tokenizer rules actually created a
NS_ooxml::LN_CT_SdtCheckbox_checked token with a
NS_ooxml::LN_CT_OnOff_val token in it, which itself again didn't contain
just a bool but dedicated NS_ooxml::LN_ST_OnOff_true,
NS_ooxml::LN_ST_OnOff_1, etc values.

To make this more complicated, TextEffectsHandler even depends on this
weird behavior.

Bring the w14 rules closer to the "main" wml rules by folding the
NS_ooxml::LN_CT_OnOff_val token into the parent token
(NS_ooxml::LN_CT_SdtCheckbox_checked in this case), but leave the
NS_ooxml::LN_ST_OnOff_* values unchanged for now.

The rest of the changes are more straightforward: we now handle
inline/run checkbox SDTs similar to rich text ones, i.e. map them to
Writer content controls, rather than just doing a poor mapping to
grab-bags.

The main benefit here is that the checkbox type of Writer content
controls actually change their value on mouse click, so it's possible to
fill in such forms.

Change-Id: Idbf49a8ff1843d5271f2836e5299c4387bb58e55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133588
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-04-29 09:03:01 +02:00
Noel Grandin
d3849255b7 use more string_view in INetURLObject
Change-Id: I4462f7cf4740fa4d1b129d76a0775f4250f41bbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133555
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-29 08:53:22 +02:00
Miklos Vajna
f9b6bd6336 CppunitTest_sw_layoutwriter: use more SwParaPortion::dumpAsXml()
See commit feeed3e762
(CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing,
2022-04-07) for motivation.

Change-Id: I1bd84e232c8010fcbcf228295b80ef9306d30136
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133580
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-04-29 08:12:00 +02:00
Regina Henschel
4cfe46997e tdf#148714 connect first and second arc with arcTo
The curved*Arrows start with two arcs, which should be connected by a
line. The used commands are double V and double B respectively. Both
have an implicit moveTo, so that there should be no line between.
Other applications show the shapes correctly without line. But because
of bug 148714 LO shows a connecting line so that the error was not
earlier detected.
The patch changes the segment definition so that for the second
command the variant with implicit lineTo is used. This does not change
rendering in LO but makes other applications rendering the shapes
like LO.

Change-Id: I4f799f89497e52b1a7e00d8e5345a66ce21c00a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133586
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2022-04-29 07:27:48 +02:00
Luboš Luňák
467f2c50a9 hack for glyph subset being different because of space being RTL
This is a rather weird corner case than I can see only with
JunitTest_svx_unoapi failing without this, when asking to lay out
characters 7-9 from "paragraph 1" with layout mode set to RTL.

Change-Id: Ic55e571a5934ea2b9de2f09b7c066abf014ac212
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133578
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-29 06:57:42 +02:00
Luboš Luňák
3d7ca1bd1c don't try to find glyph font fallback for null character
Change-Id: I53000b4da6e208774d5e8c23948474e2e9a1cf3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133561
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-29 06:57:24 +02:00
Luboš Luňák
2e33af67e0 move HAVE_EXPORT_VALIDATION from config_features.h
So that so much stuff doesn't get rebuilt on --with-java change.

Change-Id: I87388590a4fd218fd22e68ba0edd290831f6f0fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133570
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-29 06:55:04 +02:00
Justin Luth
83d0f2eeba tdf#137899 sc: accept any unfinished editing before adding sheet
There might be a more general place where this belongs,
to cover other similar kinds of situations.
However, putting it here is very targetted,
and shouldn't get me into unanticipated trouble.

Any changes made in the "top view" need to be accepted before
they are committed. In this case, the user switched gears
and added a new sheet while in the process of editing.
So what should happen here? Should we commit the change
before changing task? Perhaps. Certainly it should
NOT show up on the new sheet - but that is what was happening.

Accepting the change when the user gets side-tracked is the norm
in cases like print-preview, switching to another soffice app,
or simply clicking on a different cell or switching tabs.
So auto-accepting in this situation is consistent behaviour.

Change-Id: I4f3f0103ad4fcc1aa8a0c6118383b63ace07ff5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126501
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Eike Rathke <erack@redhat.com>
2022-04-28 23:50:39 +02:00
Thorsten Behrens
b7a37d6fb9 Fix system-nss: add hasht.h header back
Revert part of 02e1be8883 which broke
with-system-nss builds - the hasht.h header was actually needed.

Change-Id: Ida36bc6cd91f0a9b26a2029f1cab835f90f40dde
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133571
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-04-28 23:23:08 +02:00
Caolán McNamara
972819fe36 avoid a glyph fallback in writerlayout test
replace the obscure graphemes with a bullet that exists in the font

Change-Id: Ib95ae2a8f83a04a3a8b32cf3f7d9d1ecaf7d5f8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133564
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-28 22:17:01 +02:00
Caolán McNamara
1d59798a17 Linux Libertine -> Linux Libertine G for repeatable results
Change-Id: I42ec2b6b0a42428f7a322ffd96fadb96ef0e7678
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133563
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-28 22:16:40 +02:00
Xisco Fauli
49ce19a824 tdf#74331: vcl_filters: Add unittest
Change-Id: Ia93f5f5f3ca5b4ddd51d68335af7f1c7b79b5c31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133551
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-04-28 21:20:15 +02:00
Noel Grandin
d9c3f05dcb use more string_view in ucbhelper
Change-Id: Ief60eda8be8e184b9d637ab84fec2f8740c04396
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133554
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 20:56:18 +02:00
Caolán McNamara
ac1c31a577 set CJK_HEADING and CTL_HEADING for cppunit tests to something from more_fonts
Change-Id: Iabd60e6266f0543e258151aa1bc7199eb7edc35f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133559
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-28 20:45:52 +02:00
Bartosz Kosiorek
8c9e6d3a99 Add initial support OfficeArtBlip TIFF format
Additionally the magic number were replaced with enum
Change-Id: I7d825ec84ff5cd5ff315ee37613e3b84cb6f0567

Change-Id: Ic33022a0e225099f2397dd300f4792055184fd10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133526
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2022-04-28 20:40:09 +02:00
Adolfo Jayme Barrientos
3804d4991c Update git submodules
* Update helpcontent2 from branch 'master'
  to d7890e97169844d9a2f46703b893c1123dd8ebce
  - Drop reference to AskBot and update link
    
    It is never a good idea to hardcode the name of the backend software for
    a website in a translatable string directed to users. It’s not future-proof.
    Also, we’ve never called it that; it’s always been “Ask LibreOffice”.
    
    But in this case, I’ve carefully avoided mentioning the product name, for
    the sake of corporate builds.
    
    Change-Id: Ic4c1c01e7ecc86d44157fec638a5d79dcb809733
2022-04-28 20:37:10 +02:00
Seth Chaiklin
ceb1d4836d tdf#148593 Rename two Horizontal "to" position options for Shape/Image
Left page border ->  Left of page text area
   Right page border ->  Right of page text area

   The CSS box model is the underlying idea here, where
   LO uses "page text area" for what is called "content area"
   in the box model. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model

   The reference to "border" in the options was incorrect.
   The renamed controls refer to the regions to the
   left (and right) of the page text area. These regions
   can be used for horizontal positioning  of shapes and images.

Change-Id: I2ea8c682da8fb34b04496b3629819bf5201e86e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133403
Tested-by: Jenkins
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-04-28 18:55:59 +02:00
Caolán McNamara
002e00eed9 Thorndale -> Liberation Serif for repeatable results
Change-Id: I2096d3a4265d5f38d8bce54ef6089f767aa39afb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133558
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-28 18:34:56 +02:00
Caolán McNamara
dd00ccf29d Engravers MT -> DejaVu Sans for repeatable results
Change-Id: I95273d657fe18b5a8f2315650a6232b5a1de4be5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133557
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-28 18:34:40 +02:00
Caolán McNamara
a76bc73723 override default "Segoe UI" for UI_SANS for cppunit tests
Change-Id: If8b073c6ed9f9508a03ec65e885313d7a618b600
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133556
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-28 18:34:09 +02:00
Caolán McNamara
5dcd46fb8f set default cjk/ctl fonts for cppunit tests that exist in "more fonts"
Change-Id: Ib145f1ce60eb8bb3aef15c803b0d78f684507bc5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133550
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-28 18:33:36 +02:00
Noel Grandin
e6d60166db use more string_view in tools::INetMIME
Change-Id: I3bfa5a1402835c21ec70b8d995f79a2edaa6577d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133549
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 17:49:28 +02:00
Andrea Gelmini
6cb72c5fc6 Fix typo
Change-Id: I600199f87df8a211b2a27913bc1fe2340d315766
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133552
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-04-28 17:09:59 +02:00
Noel Grandin
f757f152b1 use more string_view in tools::SvGlobalName
Change-Id: I814744d250d6ce0ec7049daf215a506adb4f1ac5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133548
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 16:10:16 +02:00
Noel Grandin
4149201b09 use more string_view in tools::Color
Change-Id: I0203aff3af19d3994af5325538520469ab2900ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133541
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 16:08:03 +02:00
Luboš Luňák
34b3c66da2 add a hack to SalLayoutGlyphsImpl::cloneCharRange() for a strange glyph
Change-Id: Id4859982079f5f156b5e2d85598940ec8c936475
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133547
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 15:28:26 +02:00
Luboš Luňák
f4d51b6fc1 use the same TextLayoutCache for the verifying call
Apparently not using it makes the ImplLayout() call treat everything
as one run, which changes whether a glyph may get ALLOW_KASHIDA.

Change-Id: I1a951dbc4242d1fe8e4ee5074d9f9ad1d80480be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133546
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 14:34:33 +02:00
Luboš Luňák
825102492a don't cut a glyph subset inside a composed glyph #2
This is basically the same like 7b7d2f4a3e,
triggered by CppunitTest_sw_uiwriter3's testTdf104649 on Mac.

Change-Id: Ibb3c33dd6924e8f0c8856185fc7fb7aeaaf72177
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133545
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 14:34:00 +02:00
Seth Chaiklin
450b9630c8 Update git submodules
* Update helpcontent2 from branch 'master'
  to d4e7c6e6e119fe3fab827753bbb8d27caff195c2
  - tdf#148797 improve explanation of multiple selection in add to list
    
        Some of the options for using the Add to List command are not
        available when the Ctrl key is pressed. The existing description of
        how to use the Ctrl key may have contributed to confusion about
        how to use the command. This patch aims to improve the 
        description of the workflow with multiple selection.
    
        Also the order of the two procedures were switched, on the
        assumption that the most typical use was to add some consecutive
        items to a list, so now that explanation comes first.
    
    Change-Id: I4e7c57dba4b6060fcd87eb1046b9e0788dd50b1c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/133483
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-04-28 14:08:47 +02:00
Noel Grandin
b1148c31ed use more string_view in comphelper
Change-Id: I1544da756d8da074787bc19a98d2740058e36479
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133520
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 13:40:36 +02:00
Xisco Fauli
ae761fd359 tdf#37864, tdf#147496: sc: Add UItest
Change-Id: Idfcf34a0101158f54bd73efc8629ea8e660a3b11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133539
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-04-28 12:56:42 +02:00
Julien Nabet
bd1d096792 tdf#74331: 16bit "min-is-black" tiff not loaded correctly
Since 16 bits part is well taken into account for photometric interpretation "RGB",
just consider greyscale as subcase of rgb since greys are just "RGB" colors with same value for red, green and blue
Finally, in ConvertScanline, nPhotometricInterpretation <= 1 (so "min is white" and "min is black") with nSamplesPerPixel = 1
corresponds to nDstBitsPerPixel = 8 here, so consider this specific case in the same block.

The last piece to adjust is when calling SetPixel:
nPhotometricInterpretation = 1 corresponds to the same case as nPhotometricInterpretation = 2
since RGB black is 0, nPhotometricInterpretation = 1 is minisblack so here too black is 0

Change-Id: I5c8e420f851ed6e31998c0698d86300aaa7c4b19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133251
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-04-28 12:40:21 +02:00
Luboš Luňák
12dcfc191b include LogicalFontInstance font scale in SalLayoutGlyphsCache key
For some reason it may differ even if vcl::Font is the same.
Without this ScExportTest2::testTdf66668 fails.

Change-Id: I728a0848ac0420ce0d746134c7072f6ab59f2761
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133537
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 12:36:23 +02:00
Luboš Luňák
f8d6ec1a51 make some LogicalFontInstance functions const
They call non-const GetHbFont() internally, but conceptually they
are const.

Change-Id: Idec7f06425383c5e78030c76da2c50f560bf64fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133536
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 12:36:02 +02:00
Miklos Vajna
8642389b95 sw content controls, checkbox: add DOCX export
Map the 4 UNO properties to the following XML construct:

          <w14:checkbox>
            <w14:checked w14:val="0"/>
            <w14:checkedState w14:val="2612"/>
            <w14:uncheckedState w14:val="2610"/>
          </w14:checkbox>

Change-Id: I6457754e5dc9750204da7f2e5e479589380f3992
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133532
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-04-28 12:32:49 +02:00
Attila Bakos (NISZ)
41b012767f tdf#100680 sw DOCX compatibility: fix wrap of as_char flys
New DOCX compatibility flag "WordLikeWrapForAsCharFlys"
has been introduced which true in case of importing DOCX
documents. It modifies the wrapping of long words
with as_char anchored flys anchored into the same line,
resulting e.g. correct import of poor man's header lines
drawn by using underline characters under an image.

Note: this example was imported as a broken header line:
half of it was there after the left aligned image in the
same line, and after the line break, only the other half
under the image.

Change-Id: I9474900ef778bcf5ddc9d95f39d536d67015f3b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132571
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-04-28 11:47:42 +02:00
Noel Grandin
6c724e18c2 use more string_view in i18nlangtag
Change-Id: I92e3d60180c31d765994a2212e1c4547c09c93d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133517
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 11:45:56 +02:00
Noel Grandin
7e3c2e46c6 use more string_view in unodevtools
Change-Id: I60e090381e6e56d531b9727604b4755b96c608c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133516
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 11:45:30 +02:00
Luboš Luňák
2b418c16cd make SalLayoutGlyphsImpl::cloneCharRange() work for RTL runs too
Glyphs are in the reverse order in this case, so the character
positions for the wanted range must be treated that way. This improves
e.g. the second attachment from tdf#112989. Unfortunately it's
not that significant, as arabic glyphs are often unsafe to break at.

Change-Id: I836ebff6282c420462c5cd5906d30d2e9431f218
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133494
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 11:08:16 +02:00
Noel Grandin
e3c0a4eb7d use more string_view in idlc
Change-Id: Id43d0188c37b0a4d0e7b77a2bb0c95c4411e52c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133515
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-28 11:03:47 +02:00
Dhiraj Holden
b5e838334b tdf#144788 Split up footnotes and endnotes in Navigator
This patch splits the footnotes and endnotes section in Navigator.
Before, there was one section for both footnotes and endnotes and
now there are two sections, one for footnotes and one for endnotes.

Change-Id: Ic0f3af92efa1c0487ee3c407a819bf34138ef4ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132796
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2022-04-28 10:48:38 +02:00
Stephan Bergmann
27c850b2ea Fix determining ZXING_CFLAGS for --with-system-zxing
While at least Linux distros typically provide the zxing include files in a
dedicated ZXing sub-directory (i.e., /usr/include/ZXing/), the bundled
external/zxing does not (it rather provides them in
workdir/UnpackedTarball/zxing/core/src/, cf. RepositoryExternal.mk).  Therefore,
source files like cui/source/dialogs/QrCodeGenDialog.cxx

  #include <BarcodeFormat.h>

etc. rather than

  #include <ZXing/BarcodeFormat.h>

etc., and for --with-system-zxing ad92c7dfa6 "fix
system zxing build" simply hardcoded ZXING_CFLAGS=-I/usr/include/ZXing (i.e.,
the typical location for these include files).

However, for e.g. a Fedora Flatpak-from-RPM build of --with-system-zxing
LibreOffice, the include files will be in /app/include/ZXing/ rather than in
/usr/include/ZXing/.  (And which AC_CHECK_HEADER would find via
CPLUS_INCLUDE_PATH containing /app/include for such a build.  But the hardcoded
ZXING_CFLAGS then caused compiling e.g. cui/source/dialogs/QrCodeGenDialog.cxx
to fail because it didn't find BarcodeFormat.h etc. in the hardcoded
/usr/include/ZXing/.)

So when checking for the sample zxing include file (MultiFormatWriter.h), try
any $CPLUS_INCLUDE_PATH paths one by one (and with a fallback to /usr/include).
(The explicit unset ac_cv_header_MultiFormatWriter_h is needed so that the
second and later iterations of the for loop don't erroneously reuse a cached
"no" result.)

Change-Id: Id85f9960ffd3759c7960ef3a81982b85bc3c04c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133189
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-28 09:56:32 +02:00
Alain Romedenne
d2199ca8e6 Update git submodules
* Update helpcontent2 from branch 'master'
  to b6accc5eaf8d547bc9721118caaa9edbc998a333
  - tdf#114263 Basic 'New' operator is optional when setting 'Option Compatible'
    
    Change-Id: I27ef9d9c832e4c52e5066336e54095ca949fec9c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/133398
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-04-28 08:28:09 +02:00
Miklos Vajna
30735bdb5a sd theme: add PPTX import for shape fill color effects
This is always direct formatting, so FillProperties::pushToPropMap()
always has the needed info at hand.

Change-Id: I3317b618e0e8bb7688d0f0fbfe4546e2e8b4e947
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133525
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-04-28 08:15:54 +02:00
Luboš Luňák
bd568b3604 check kashida only if the flag is set
Change-Id: Ie508863c670e4b691bd30ac4d20ce479a569f793
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133531
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 08:10:33 +02:00
Luboš Luňák
7b7d2f4a3e don't cut a glyph subset inside a composed glyph
A glyph may may composed from several characters, when asked to make
a glyph subset for a character range, make sure the end of the range
is not inside this character group.

Change-Id: I41d82b432858a87e103dcb0d2fac6a11f25a32dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133530
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 07:21:46 +02:00
Luboš Luňák
c8a7a6d600 better debug font compare in SalLayoutGlyphsImpl
The pointer comparison can be false even though the contents match.

Change-Id: I584d30fdc7f311fd1a6058ae3cef98ce8b243f86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133529
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 05:52:19 +02:00
Luboš Luňák
9e2d48b9e0 reduce Calc's INITIALCOLCOUNT to 1
Columns should be dynamically allocated on demand, so there should
be theoretically no good reason to allocate 64 initially. In practice
doing so hides all places that do not allocate columns as needed.

Change-Id: I8b46ecc97852ed23369e720f50f3266c48440435
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133311
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 05:51:53 +02:00
Luboš Luňák
ee57936475 fix horizontal Calc cursor skipping
UITest_calc_tests' columns.CalcColumns.test_column_hide_show fails
with INITIALCOLCOUNT being 1 because column C was hidden, but
searching only up to the first allocated column + 1 searched only
up to column B. Whether an entire column is hidden is not part
of ScColumn, it's stored in ScTable.

Change-Id: Ib1befe5cd0db8d50a6196bc6621fb1b0967e6209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133524
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-28 05:51:31 +02:00