Commit graph

489984 commits

Author SHA1 Message Date
Julien Nabet
8797ba5e5d Typo: Unfortuantely->Unfortunately (python3/ExternalProject_python3.mk)
Change-Id: I80d316c76196d8cdda4b2ad509d2d1b53b5c414a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157991
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2023-10-15 20:48:34 +02:00
Marco Cecchetti
48b6965c1c fixup for: 7523efa svg export filter: not export hidden slides
It seems that the Visible property does not always exist

That was causing a failure in Online Impress:
- swicth to master view
- select any object in the master slide
- result: the object is not selected or getting focus and the server
report an error

Change-Id: I77b0211c6e13da1804457ba48098bbee821b7d4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153049
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157980
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-15 20:26:58 +02:00
Marco Cecchetti
ca62ba974c svg export filter: not export hidden slides
Change-Id: I6010f27812a783fd27a423a0f34e30a1b0c584f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152798
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit 7523efa63a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157727
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-15 20:26:52 +02:00
Stephan Bergmann
37cc752dda pStringIds can be constexpr
This array lacked being const[expr], presumably accidentally, ever since it got
introduced in 2d1f08d639 "CWS-TOOLING: integrate
CWS otf01".

Change-Id: Ia8f8207ed5b0668356cafd284d4de595b5890cb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157948
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-15 19:49:39 +02:00
Eike Rathke
361c4f008e Follow-up: tdf#156985 Use SC_USE_SSE2 to determine which KahanSum::add() to use
Also, the CPU identifier for MSVC WIN32 is not X86 but INTEL, so
actually use SSE2 there as well, which was the cause of things
failing on that platform.

For other platforms than Intel x86/x86_64 SSE2 is not defined, so
exclude the new unit test based on that and live on with the old
slightly off value. Experiments did not yield any solution that
works, even using plain sumNeumaierNormal() (similar to SSE2) in
the executeUnrolled() case instead of KahanSum with its m_fMem did
not help, nor trying to add the internal values in different
orders or with long double, au contraire the error was slightly
larger.

Change-Id: Ica0b2963f76c01f248799e9a809ef06eb099e722
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156899
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2023-10-15 18:46:01 +02:00
Stephan Bergmann
59480a5e4e Drop leftover aPageHelpIds
...from 28b6480c6b "tdf#105303: Drop html export
wizard"

Change-Id: I996324e06a2f5eb04d722c45be9ce54715490b16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157970
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-15 18:34:28 +02:00
Stephan Bergmann
aae50af807 Improve snew_slide_value_info
Change-Id: Iabb67f465ef76c8c2fef822fb3844120a54ee243
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157971
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-15 18:34:11 +02:00
Patrick Luby
fc69d6b227 tdf#101376 don't detach thread if it is the main thread on macOS
On macOS, many AWT classes do their work on the main thread
deep in native methods in the java.awt.* classes. The problem
is that Oracle's and OpenJDK's JVMs don't bracket their
"perform on main thread" native calls with "attach/detach
current thread" calls to the JVM.

Change-Id: I0859dc9e20f34bd0b43bb321898507764fd530fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157985
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
2023-10-15 15:33:09 +02:00
khushishikhu
db0681effb tdf#143148 use pragma once and removed include guards
Change-Id: I02ebab47905eaaab0d7f34fa0416b5bbbe8e1b09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157973
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-10-15 12:08:09 +02:00
Attila Szűcs
52500239e8 LOK: navigator: hide empty contentTypes
In case of LOK, do not insert empty contenttype to tree,
and implement new way to find changes in contents, in hidden
contentTypes, because the original checked only on the tree.

Change-Id: Ib1e4da5e05b2ad4161c6a66a9c54111d558f66f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152735
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit ed3bb61461)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157983
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-15 11:25:51 +02:00
Jim Raykowski
148394645c tdf#154701 Fix move paragraph not working properly with outline folding
Change-Id: Ibb4706fae198fada0f143b1b25149fcbcc5c41d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157899
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2023-10-15 08:55:46 +02:00
EMartinGube
6da9d629f7 tdf#156250: sw: Keep comments when spell correction replaces a word
New method SwEditShell:ReplaceKeepComments for comment preserving
spell correction.

Change-Id: Ifdb9d5664ab8d457a16ad8f7ec62dd968c89d580
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154761
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-15 07:42:07 +02:00
Justin Luth
489da34e9b tdf#150466 notebookbar: hide PrintDefault on compact and standardize
As in the classic toolbars, do not promote direct printing
since it easily leads to mistakes and wasted paper.
Additionally, the printer settings is really never needed,
so it should not have a prominent place, especially on COMPACT.

At the same time, I standardized the File menu:
- always include print (especially useful for accessibility)
- always use the same order
- consistently provide access to print/web preview

Change-Id: I9ffbba179206274b5ed1788e496b7c5aa0503726
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157984
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-10-15 02:48:40 +02:00
Michael Weghorn
2a3023bc91 a11y: Add include to fix clang-cl build
Without this, my clang-cl build on windows would fail
like this:

    In file included from C:/tools/cygwin/home/user/development/git/libreoffice/accessibility/source/extended/accessibletabbarbase.cxx:20:
    In file included from C:/tools/cygwin/home/user/development/git/libreoffice/accessibility/inc\extended/accessibletabbarbase.hxx:24:
    In file included from C:/tools/cygwin/home/user/development/git/libreoffice/include\vcl/vclptr.hxx:25:
    C:/tools/cygwin/home/user/development/git/libreoffice/include\rtl/ref.hxx(129,20): error: member access into incomplete type 'accessibility::AccessibleTabBarPage'
      129 |             m_pBody->release();
          |                    ^
    C:/PROGRA~1/MICROS~2/2022/COMMUN~1/VC/Tools/MSVC/1437~1.328/Include\xmemory(321,21): note: in instantiation of member function 'rtl::Reference<accessibility::AccessibleTabBarPage>::~Reference' requested here
      321 |         _Location->~_Ty();
          |                     ^
    C:/tools/cygwin/home/user/development/git/libreoffice/accessibility/inc\extended/accessibletabbarpagelist.hxx(32,11): note: forward declaration of 'accessibility::AccessibleTabBarPage'
       32 |     class AccessibleTabBarPage;
          |           ^
    1 error generated.
    make[1]: *** [C:/tools/cygwin/home/user/development/git/libreoffice/solenv/gbuild/LinkTarget.mk:340: C:/tools/cygwin/home/user/development/git/libreoffice/workdir/CxxObject/accessibility/source/extended/accessibletabbarbase.o] Error 1
    make: *** [Makefile:121: accessibility] Error 2

Change-Id: I3961fb95602b96667f33ea0b087e1df5375faf19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157982
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-10-15 00:10:37 +02:00
Gökay Şatır
ca74511985 Add NUMBERSIGN key handler.
German keyboard layout has number sign key.
Users can print number sign without using modification keys.
So this key can be assigned a shortcut.
Subscript is assigned to CTRL + NUMBERSIGN.

Below PR is used as reference when adding the new key handler:
https://gerrit.libreoffice.org/c/core/+/86713

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I340dc47764e9200d2477f8db740a629f62f48004
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157554
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 1db8f6d484)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157959
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-14 21:51:43 +02:00
Caolán McNamara
025372363e get_iter_abs_pos doesn't neeed to be virtual
Change-Id: If69768ffac37aa7b39a806b3c67ad8cbdafc5d2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157981
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-14 21:51:32 +02:00
Attila Szűcs
5bdcd30a64 LOK: Navigator: headings expanded by default
Called an expand_row for the first element of the contetnTree
in the navigator constructor.
Right now contructor is called every time when navigator is
opened, it may change later. (desktop app do it only if navigator
opens in a new window, not on sidebar)

Change-Id: Ibe4b71e6a6ddb573269178f83c295b0c2cbd53b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151939
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 09c40d669c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157960
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-14 21:51:22 +02:00
Jim Raykowski
18f35dffae tdf#152029 related: Remove attention overlay on document view change
Fixes stale overlay that can happen when Navigator use causes a
document view change. For example, when the Navigator is used to
change a heading level or to delete a heading by key input.

Change-Id: If4c0aa2e31f088a8fa12d7ed02012033c4d13509
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157892
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2023-10-14 20:38:44 +02:00
Mike Kaganski
2c21358237 Keep some information when switching between exceptions and ErrCodeMsg
This simplifies debugging.

Change-Id: I21ba175a039bed9a1f13d510b2c80eb6356417ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157908
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-14 17:36:30 +02:00
Noel Grandin
871a90df57 use a single queue of data for PDFExtOutDevDataSync
instead of spreading the data out across multiple queues, which
is just asking for trouble.
This is slighly less efficient, but these are pretty small objects,
so I think the benefit outweighs the cost.

Change-Id: I89f8bdffc548cc287f7298081d80132878faf15e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157890
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-14 17:18:45 +02:00
Gökay Şatır
d521062dd3 Impress presentation engine (svg):
* Add handlers for w and b chars.
      * These hide the content and set the color of the view to either black or white.
   * Add handler for p char:
      * This changes the cursor to pointer and back to default with key presses.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I566f485aa676f0707a31f25a0b71f64970de2a26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157511
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 427e8c0a8d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157958
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-14 16:49:51 +02:00
Caolán McNamara
ef4f9dca33 don't bother checking existing mode before seting new mode
Change-Id: I2ff08283d7a3defdc7a7df5c2f86fca4cf3508ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157907
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-14 16:49:43 +02:00
Andrea Gelmini
0379bdc8c5 Remove duplicated include
Change-Id: I0a5bbd375e1841e3a441ab241b18933858ecd45c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157864
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-10-14 16:30:51 +02:00
Andrea Gelmini
974a1c84ea Fix typo
Change-Id: I6e1c0f7ef3a99d68c078b1d0c524bad54d240bfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157974
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-10-14 16:30:23 +02:00
Andrea Gelmini
9f9335ed67 Fix typo
Change-Id: I1554a3fbdf563a6fb9710ade03eccd162ae86643
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157976
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-10-14 16:30:06 +02:00
Andrea Gelmini
f979ca1061 Fix typo
Change-Id: I1da83cf853a0d04442b69229ef7caab955f91a9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157975
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-10-14 16:29:41 +02:00
Taichi Haradaguchi
7359700d5d Upgrade libffi to 3.4.4
Change-Id: I417abc5d76db235c23195abff22d3d27f9c0fa77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157972
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-10-14 15:51:09 +02:00
Mike Kaganski
176e8cf09a Use exception ctors, instead of setting members later
Avoids overwriting source location in message

Change-Id: Ia0290c7dd1ab3ea1357712a27ecab75c7b583dd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157893
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-14 15:37:17 +02:00
Skyler Grey
328d6aae9e Re-enable Bullets and Numbering → Customize
- Revert change If0f7b953a40ca1d5f469087cb8f362a949c39b37
- Enable jsdialog for the customize page
- Fix numbering not being selected when switching level
- Fix start at field not having a default when changing level type to one that can use it
- Disable types that rely on supporting graphics in LOK as we cannot
  provide them

Change-Id: I2517289b553b8a3e9ed62c64b6514c6aab3702b6
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153806
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 6b9415005f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157957
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-14 14:30:17 +02:00
Attila Szűcs
52fa7aed48 tdf#157662 SW: redline: accept/reject done for all parts
Tracked changes divided into smaller parts when they are
overlapping. But if the Author, and Change time, and some more
is equal, then they can be combined into 1 change later..

Modified AcceptRedline / RejectRedline, to seek for all these parts
that are neightbour to each other, and can be combined, and
reject/accept them all at once. Even those that are deepen in the tree.
i.e.: insert that have a delete redline too.

when rejecting an insert redline, that have a delete redline too,
the delete redline is accepted instead. (have the same result.)

when accepting an insert redline, that have a delete redline too,
The delete redline remains, while the insert is deleted. (=accepted)

made some limitations to lessen the probability of regression:
No anonym, No table, No seqNo, and dont use it in RejectAll/AcceptAll

Added unittest to check that accept/reject handle more redlines
at once, but not too many..

Change-Id: Ibd0a39f7847b22b279a797babb30ba162e70a513
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157950
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-14 11:55:27 +02:00
Taichi Haradaguchi
c72d5d787f tdf#116412 include bz2 module in internal python
This commit includes the changes in 5e3510dbb6
and 219bef04b7, as well as the following changes:

* add bzip2 as permissable build target when cross compiling for Windows ARM64.
* add external/bzip2/disable-test.patch.0 for cross-compiling.
* revert the changes to configure.ac in 5e3510dbb6.
* change the argument of gb_UnpackedTarball_fix_end_of_line.

Change-Id: Iad8b1ed48d6c56e1302d9ac11620dc8084e79276
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157101
Tested-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-10-14 08:53:14 +02:00
khushishikhu
3d0a8020f9 tdf#141908 change sal_Int32 to Color
Change-Id: I0f9b0bd18fd90c05de67525222be41ef6cd8723c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157935
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-10-14 08:29:55 +02:00
Joel Puronaho
4bb809f4d1 tdf#141908: CppUnittests: replace usage of sal_Int32 with colors
Change-Id: I2835feb65d65dbfd7f0c23ac1e99b66d803c05ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153646
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-10-14 08:17:52 +02:00
Stephan Bergmann
5f2206e3cc O{U]String copy ctor should be constexpr
...similar to the dtors, which will be useful for some upcoming replacements of
O[U]StringLiteral and O[U]StringConstExpr

Change-Id: Iad905d8466ee76eba1891fbc340073c482d568d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157944
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-13 22:41:10 +02:00
Eike Rathke
1f43a34188 Update language-subtag-registry to 2023-08-02
Change-Id: I61e7e6c0a7010ff6f8db61a72b57a57de3e61c74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157943
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2023-10-13 22:07:27 +02:00
Justin Luth
8b942ed3c3 tdf#141457 sc notebookbar_compact: fix empty Statistics menu
Change-Id: If873da6e5d877a07bc4260fa5832cc29d73f4af5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157946
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-10-13 21:38:19 +02:00
Jim Raykowski
79df80b642 SwNavigator: Fix Indexes tracking
Restores Indexes tracking when the document cursor is in TOX
content which was lost in commit
ca34204a39.

Change-Id: Ib0fed4b7a20b5d08b5c52eef28d13cf0044d87d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157693
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2023-10-13 21:28:48 +02:00
Michael Weghorn
c0a284541f tdf#157696 a11y Translate "CharStrikeout" to IA2 equivalents
The IAccessible2 text attributes specification [1]
has several different "text-line-through-*"
attributes for indicating strikethrough.

With this change in place, NVDA on Windows (with the WIP branches
to switch both LO's winaccessibility and NVDA to the
IAccessible2 text attributes) announces the striked out
text in the tdf#157696 sample document as expected.

For the qt6 VCL plugin on Linux, this is not the
case yet, because Qt's AT-SPI adaptor does not support
the attributes yet; s.a. QTBUG-118106 [2].

Pending qtbase change implementing that: [3]

While the gtk3 VCL plugin reports 2 attributes, e.g.
"strikethrough: single" and "text-decoration: line-through",
the ATK text attribute specification [4] only mentions a
`ATK_TEXT_ATTR_STRIKETHROUGH` that can be either
"true" or "false", and that is also what e.g.
the gtk4-demo "Text View" -> "Markup" example does,
so the suggested Qt change also does this, which means
that just "strikethrough: true" will be reported when
any kind of strikethrough is in place with the qt6 VCL
plugin and both, this LibreOffice change and the
pending Qt Gerrit change applied.

[1] https://wiki.linuxfoundation.org/accessibility/iaccessible2/textattributes
[2] https://bugreports.qt.io/browse/QTBUG-118106
[3] https://codereview.qt-project.org/c/qt/qtbase/+/511758
[4] https://gnome.pages.gitlab.gnome.org/atk/AtkText.html#AtkTextAttribute

Change-Id: Ib4ebba183be233aacfcf33a4fff29b27711d2e1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157939
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-10-13 21:09:15 +02:00
Ankit_Jaipuriar
a97ceaf14e tdf#42982 Improved UNO API error reporting
Change-Id: I62862c8dd83b587e56177afd2ec05af1f567f6ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157201
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-13 20:00:19 +02:00
Balazs Varga
9bc2aede99 Related: tdf#101970 Add missing bits for --without-template flag
Package creation have failed with "--without-template".

Change-Id: I0f6fb4abef8d9500b2901ee58f2c52699f7b4ea3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157936
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
2023-10-13 17:48:10 +02:00
Aron Budea
c4c017d1b8 tdf#147132 tdf#154285 Flatten and check param count of IsMissing fn
Change-Id: I17d79dcedf2b2e1cd45ef2eb82ff5e89a9bb2b46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155028
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-13 17:04:16 +02:00
Stephan Bergmann
27e7a61992 Follow-up on "Make sure __cpp_lib_source_location is consistently defined"
(113e064117).  Mike pointed out that I forgot to
fix the generated code and that
"https://en.cppreference.com/w/cpp/compiler_support/20 lists <version> as
supported since gcc libstdc++ 9, and README.md requires libstdc++ 8.5."

Change-Id: Ic7477e39e334735c4a563195fee335a599a0ef79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157933
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-13 16:46:07 +02:00
Stephan Bergmann
282f9206b7 At least VS 2022 Preview 17.8.0 Preview 3.0 needs the fix too
...from 3c6de7e20e "Fix build against VS 2022
17.7.5"

Change-Id: I36a7d02959c5ad04781c3d484966727c3283cbbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157932
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-13 16:33:07 +02:00
Matt K
b0496a314b tdf#150262 Split Autosum button: refactor to deduplicate
This change refactors the recent checkin that split the
autosum button into a default clickable button.  We just
use the existing function "AutoSum" in place of the copied
code.

Change-Id: I9a0e6fce047165c927746f0f87df4de905d2f8ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155058
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-13 15:30:38 +02:00
Michael Stahl
83c21ed149 add LibreOffice_settings.xml_config-items.fods to document settings.xml
Change-Id: Idede15529ed60e49e08e6e9f986cd198ca4a68a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157930
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-10-13 14:35:21 +02:00
Stephan Bergmann
113e064117 Make sure __cpp_lib_source_location is consistently defined
...following up on 9c5f597fc8 "use
std::source_location instead of std::experimental::source_location".
__cpp_lib_source_location is defined in both <source_location> (but which we can
apparently not rely on here, trying to figure out whether to #include it in the
first place) and <version>, so lets hope that all our toolchains support C++20
<version> by now and #include that.

Change-Id: I7ba41cae60dbbf6b3ec275edb06af66f184daf93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157910
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-13 13:29:10 +02:00
Henry Castro
f96819f135 sc: ui: fix cell bidi layout strings
The default constructor OutputDevice can set the
layout text to "vcl::text::ComplexTextLayoutFlags::BiDiRtl"
for all strings if the UI locale is a RTL locale, however
each cell string can be mixed LTR and RTL.

Set the defaults to auto detect the correct text layout mode.

Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I0c451e8014fd13490db4213adca3d83ea4572819
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157880
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-13 11:27:59 +02:00
Noel Grandin
c4381b39b4 cool#6893 disable undo for editengine when rendering cell text
We don't need undo functionality when performing pure cell text
rendering, shaves some CPU time off

Change-Id: Icfc688122af7e77c874dd984555b2b0951e9e134
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157900
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-13 11:20:57 +02:00
Federico Gallo Herosa
287339e08d tdf#143148: Use pragma once instead of include guards
Replace include guards in favor of #pragma once. First task for beginners

Change-Id: I0ead6e955c953ec0e9113174797ffb8b9938999f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157901
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-10-13 10:59:38 +02:00
Miklos Vajna
7d7ca347fa sw floattable, wrap on all pages: add layout
The anchor text of a floating table is normally wrapped around the table
only on the last page of the table. This compat flag requests to wrap on
all pages instead.

First, disable the SwTextFrame::FormatEmpty() optimization in this case,
so not only the last page has portions inside the text frame.

Second, improve SwTextFrame::FormatAdjust(), so that anchor content from
the last page can flow to previous pages.

Note that having a dedicated SwFlyAtContentFrame::IsWrapOnAllPages()
means that later it'll be possible to do per-frame decision on this if
there is demand for that (this came up on the mailing list, but it's not
something Word would support).

Change-Id: I75df539df859aaa6c7eaaeddb33f004639b1c004
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157902
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-10-13 10:25:26 +02:00