Commit graph

482087 commits

Author SHA1 Message Date
Douglas Guptill
8a96d90a89 tdf#143148 Use pragma once instead of include guards
Change-Id: Id4b84b13bf6a467d07ba11ca6bd65495b172e606
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144928
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-01-03 14:26:39 +00:00
Miklos Vajna
3585d0414f sw, lok: implement a getCommandValues(Fields)
There was no LOK API to get a list of all fields of a given type where
the name matches a certain prefix.

This is useful in case the API cilent wants to know what previously
inserted refmarks were deleted by the user as part of deleting text
content.

Add a new getCommandValues(".uno:Fields") that returns the names of
matching refmarks. Do not return the refmark text, assuming that would
be updated by the API client anyway.

In practice this is needed by Zotero in case it wants to model its
citations with refmarks.

Change-Id: Ie469253891896aa8ab00d434c9ab116adbe3864b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144985
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-01-03 11:58:27 +00:00
Stephan Bergmann
32c845cb43 Move manual bridgetest_inprocess_java to automatic CustomTarget_uno_test check
Change-Id: I38ae06444adba4eb924a19291f466548ec11b024
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144984
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-03 11:57:27 +00:00
László Németh
d2614337e8 tdf#65535 sw spellDialog.py: add same latency to fix lo-upsan build
The problem reported by Stephan Bergmann:

 FAIL: test_tdf65535 (spellDialog.SpellingAndGrammarDialog)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/tdf/lode/jenkins/workspace/lo_ubsan/sw/qa/uitest/writer_tests4/spellDialog.py", line 237, in test_tdf65535
      self.assertEqual("Bad baad", output_text)
  AssertionError: 'Bad baad' != 'Baad baad'
  - Bad baad
  + Baad baad
  ?   +

Change-Id: Icd656544946f3d6b67fefd9980872bbee6608fab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144964
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2023-01-03 11:25:41 +00:00
László Németh
c9129bd97a tdf#152245 sw change tracking: fix copy from Calc to Writer tables
Pasting Calc tables into Writer tables uses temporary table
deletion, which never occured if change tracking was enabled,
resulting freezing. Fix this by disabling change tracking
during temporarily, also add a limit for other potential cases,
where it's not possible to delete the table.

Regression from commit 05366b8e66
"tdf#60382 sw offapi: add change tracking of table/row deletion".

Change-Id: I57874fa658652b30fc78b267ab49a52d7277a838
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144946
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2023-01-03 09:54:27 +00:00
Stephan Bergmann
88ebc324a5 loplugin:fakebool
Change-Id: I0d03e29e6290a0e7945b80538efa6b0467d37fad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144981
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-03 08:14:47 +00:00
offtkp
a3d79543e0 docx: Preserve w15:appearance SdtPr attribute
Now roundtrips the w15:appearance value which dictates whether there's
an effect when hovering a placeholder.

Change-Id: I3c911a0cfe31e235b9d981bbff0c1bb5827a85ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144845
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-03 08:04:12 +00:00
Dennis Francis
cf9e91f408 sw: prefer view's redline author name...
to expand SwAuthorFieldType. Redline author name is set in
SwXTextDocument::initializeForTiledRendering each time a new view is
created.

Change-Id: I316e0cae4399796682949de14b6d4b924833eb04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134608
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143649
(cherry picked from commit 8be4a713e9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143585
Tested-by: Jenkins
2023-01-03 07:27:10 +00:00
Dennis Francis
68540314ec vcl: Copy the resource kind object itself if...
some of the items in that resource are themselves dictionaries instead
of references.

Change-Id: I427386b14fe5507dfdfc9745dad27a8fceefd929
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143564
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 4cb521b28e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144438
Tested-by: Jenkins
2023-01-03 07:26:25 +00:00
Dennis Francis
c060f44937 vcl: copy /Pattern resources too
Change-Id: I3d99f9083fb67c68ddee24d2d285350230533fda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143563
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit cf923b7f89)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144437
Tested-by: Jenkins
2023-01-03 07:26:03 +00:00
Dennis Francis
e72f77b816 vcl: use /MediaBox origin in the ctm...
of the inner XObject, else the clip polypolygon may clip out partly or
whole contents. Adjusting the clip polypolygon is not straightforward.

Change-Id: If3b208ba850c3579c9e16c15e4fb2f947dad4406
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143561
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit a67dcc248a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144436
Tested-by: Jenkins
2023-01-03 07:25:42 +00:00
Stephan Bergmann
9fdf6b4d83 More verbose unoidl-check errors
Change-Id: Ie9aa57c5fca730c7874a527cbe5a0d463a67a0e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144930
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-03 07:14:15 +00:00
Stephan Bergmann
1ce6ae04f7 -Werror=maybe-uninitialized
(Adding just CPPUNIT_ASSERT wasn't enough to silence the warnings at least for
my GCC 13 trunk build, so also added the redundant initializations.)

Change-Id: I8ec9e097d4725d22dd90e9278a37768a749e292d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144943
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-01-03 07:13:11 +00:00
Patrick Luby
d118be7ed4 Related: tdf#152703 Eliminate empty window with Skia/Metal while resizing
The window will clear its background in [SalFrameWindow displayIfNeeded]
so when Skia/Metal is enabled, explicitly flush the Skia graphics to the
window during live resizing or else nothing will be drawn until after live
resizing has ended.

Also, when Skia/Metal is enabled, rapidly resizing a window has a noticeable
amount of flicker so don't send any paint events during live resizing. Also,
it appears that most of the LibreOffice layouts do not change their layout
much during live resizing so apply this change when Skia is not enabled to
ensure consistent behavior whether Skia is enabled or not.

Change-Id: If6423faa72529b9de8735e04e69c9511aceb2276
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144979
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-03 07:12:20 +00:00
Ilhan Yesil
ff7e00e12f tdf#148109 Paint background color in listbox
The combobox described in 148109 is indeed a listbox.
If drop down list is not open and only the selected item
is shown without having the focus, the background color
will be paint either it's defined as native control
or not.

Change-Id: I210916fbe07f74aaa5835bf2c88e764b010c6d61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131904
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-01-03 07:03:55 +00:00
Miklos Vajna
3d72e1f014 sw: document SwUndoInsTable
Table autoformat & redlining causes most complications here.

Change-Id: I2639d119bf4cb0baf05919c6de3ce44108b52db1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144965
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-03 07:00:44 +00:00
Szymon Kłos
ac738382d6 jsdialog: fix validation error dialog in Calc
Change-Id: Ie6551e386cd53f6b4bf4cceb6d7bd6170a2072ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143599
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Rashesh Padia <rashesh.padia@collabora.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144951
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2023-01-03 06:36:09 +00:00
Szymon Kłos
cc487218ae deepl: don't introduce new bullets
Used HTML should be free from new line characters and also <ul>
marks so we don't generate new lines.

Change-Id: I02b8f9a9af9f93e8d90a7f4a22ea02c8e1f47651
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143507
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144948
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2023-01-03 06:36:00 +00:00
Szymon Kłos
36de236836 jsdialogs: fix generic color label name
update event was triggering other widget change:
when opened calc and selected shape first time
we saw color text next to other color label

Change-Id: I71670ac1273ce96fafc8d20126d9f32151e96d89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143471
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144950
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2023-01-03 06:06:24 +00:00
Justin Luth
ef3b7b7118 NFC tdf#56258 i18npool NumberingLevel: use ref="en_US"
In preparing to see what improvements can be made to
list defaults, it is helpful to see what customizations
have been made to the US defaults. Those that match
identically were changed to simple refs.

Thanks to https://www.linuxtopia.org/online_books/
linux_tool_guides/the_sed_faq/sedfaq4_013.html
The script there helped to generate sed expressions.

sed -f ref.sed *.xml
----- ref.sed -----
\#<LC_NumberingLevel>#,\#</LC_NumberingLevel># {
    :ack
    N;
    \#</LC_NumberingLevel>#! b ack
    s#<LC_NumberingLevel>\
    <NumberingLevel NumType="4" Prefix=" *" \+Suffix=")" */>\
    <NumberingLevel NumType="4" Prefix=" *" \+Suffix="." */>\
    <NumberingLevel NumType="4" Prefix="(" \+Suffix=")" */>\
    <NumberingLevel NumType="2" Prefix=" *" \+Suffix="." */>\
    <NumberingLevel NumType="0" Prefix=" *" \+Suffix=")" */>\
    <NumberingLevel NumType="1" Prefix=" *" \+Suffix=")" */>\
    <NumberingLevel NumType="1" Prefix="(" \+Suffix=")" */>\
    <NumberingLevel NumType="3" Prefix=" *" \+Suffix="." */>\
  </LC_NumberingLevel>#<LC_NumberingLevel ref="en_US"/>#;
}
-------------------

----- ref2.sed -----
\#<LC_NumberingLevel>#,\#</LC_NumberingLevel># {
    :ack
    N;
    \#</LC_NumberingLevel>#! b ack
    s#<LC_NumberingLevel>\
    <NumberingLevel Prefix=" " \+NumType="4" Suffix=")" */>\
    <NumberingLevel Prefix=" " \+NumType="4" Suffix="." */>\
    <NumberingLevel Prefix="(" \+NumType="4" Suffix=")" */>\
    <NumberingLevel Prefix=" " \+NumType="2" Suffix="." */>\
    <NumberingLevel Prefix=" " \+NumType="0" Suffix=")" */>\
    <NumberingLevel Prefix=" " \+NumType="1" Suffix=")" */>\
    <NumberingLevel Prefix="(" \+NumType="1" Suffix=")" */>\
    <NumberingLevel Prefix=" " \+NumType="3" Suffix="." */>\
  </LC_NumberingLevel>#<LC_NumberingLevel ref="en_US"/>#;
}
--------------------


Change-Id: I85d8a8ed095f19d08b035d7f2c4e2cd94ff08c76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144890
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
2023-01-02 22:53:58 +00:00
Noel Grandin
5244e7cab7 split OutputDevice::CreateMask method
to make it easier to understand, very little of the code is shared
between the nTol == 0 and the nTol != 0 cases.

Also flatten the code structure a little.

Change-Id: I601b9046a6678a5dcf2176dbfe565a9a4e7299d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144962
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-02 20:23:10 +00:00
Caolán McNamara
cc4ead451c Resolves: tdf#150339 two arguments called "Color"
from around:

commit 780d83771a
Date:   Mon Nov 4 17:17:58 2019 +0100

    jsdialogs: .uno:Color with string argument

and:

commit 1144712bb9
Date:   Mon Oct 28 10:19:50 2019 +0100

    jsdialogs: make possible to set .uno:BackgroundColor in Writer

SvxColorItem Color SID_ATTR_CHAR_COLOR
(SfxStringItem Color SID_ATTR_COLOR_STR, SvxColorItem Color SID_ATTR_CHAR_COLOR,...
               ^^^^^                                  ^^^^^

rename the most recently added to "ColorString"

Change-Id: I9e00be60c768af124be7df800df4b26df83b5267
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144866
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-01-02 19:04:31 +00:00
Miklos Vajna
a178a2ac6d sw UI: fix crash on inserting a fieldmark inside a fieldmark
Inserting a fieldmark using .uno:TextFormField, then entering into that
fieldmark using the cursor, finally doing in insertion again using
.uno:TextFormField resulted in a crash.

The problem is that lcl_SetFieldMarks() uses 3
IDocumentContentOperations().InsertString() calls to insert the field
start/separator/end, but right after inserting the field start we
already create an sw::InsertText hint, which works with an inconsistent
string (the start is already inserted but not the separator / end).

Fix the problem by just not allowing the insertion of fieldmarks inside
fieldmarks on the UI: these are meant to be read-only for the user, so
fieldmark insertion is OK to be not working, as long as a clear error
message is provided.

An alternative approach would be to insert the inner fieldmark in a way
similar to how import filters can do it, but that would be more work.

Change-Id: I7d1a7c638b179fd9149ccdc47215329e3433b6e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144947
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-01-02 18:26:32 +00:00
Tor Lillqvist
91526a2f53 Use std synchronisation APIs instead of a pipe
The immediate reason for this is that pipes are broken in the
Emscripten runtime, see
https://github.com/emscripten-core/emscripten/issues/13214. But if we
can drop the use of a pipe for other platforms, too, why not.

Without this, when attemting to run Collabora Online as WASM, I get:
Aborted(Assertion failed: nRet == 1, at: .../vcl/headless/svpinst.cxx,538,DoYield)

It is quite possible that the code could be simplified drastically. I
only replaced the use of a pipe with hopefully equivalent use of a
queue, a condition variable, and a mutex.

Change-Id: I9259ba36afeabce6474a1aec827d01bcbbd4412b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144944
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins
2023-01-02 17:57:16 +00:00
Andrea Gelmini
777df29e30 Fix typo
Change-Id: Ieae98c993d8e67d07e03c5ed13d8e11a0541f30d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144955
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-01-02 14:14:29 +00:00
Andrea Gelmini
3b7c9049c6 Fix typo
Change-Id: I670b264e19de78064b8a590c309820013a032479
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144954
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-01-02 14:13:50 +00:00
Andrea Gelmini
75b8f7693c Fix typo
Change-Id: I06b51dc7435c1c534c9f9d9b67ea2c54c7f5f1c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144953
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-01-02 14:13:05 +00:00
Justin Luth
cd7f8d895a tdf#151704 sw: don't give random height to text frame
This was introduced forever ago with
commit 6c3ae34e32
Author: Frank Meies on Tue Nov 20 15:24:54 2001 +0000
    Chg: Vertical Formatting - Growing frames

But why?
Assuming that anything that NEEDED to set a proper height
has done so by now. The commit suggests it was added to
handle vertical layouts.

If this exploratory patch causes problems
(and it very well might since this is a really generic spot)
then perhaps it can be limited to verical layout situations?

Change-Id: Ib6e4a45379e670fd343a2e2d87879e6bb52afebf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144787
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-02 13:31:09 +00:00
Tomaž Vajngerl
958d4667e3 oox: add ThemeExport that exports a svx::Theme into theme.xml file
Adds ThemeExport that takes a svx::Theme as input and exports that
into a theme.xml file in the OOXML document. Currently supports
exporting of color schemes and font schemes. Format schemes are
hard-coded for now. The ThemeExport isn't yet used in any actual
export functionality.

Change-Id: I5ca9c256da65be77e7192be7d66c73d26d78ebd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143996
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-01-02 12:44:45 +00:00
Mike Kaganski
8637355231 Only call getDocumentLocation once
Change-Id: I0d611e5170b392a6f2b78fda51e48cd1a3287fa7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144909
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-02 12:23:35 +00:00
Miklos Vajna
773baa5360 sw: prefix members of FormFieldsEnumWrapper, FramesEnumeration, ...
... ListGalleriesEnumWrapper and SwVbaListTemplate

See tdf#94879 for motivation.

Change-Id: Ib7fd42f4cc1f1ee6ade2d81c379deb571b40e128
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144929
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-01-02 11:47:46 +00:00
Mike Kaganski
672e519556 Avoid reinterpret_cast
Change-Id: I52b1f3d9fb0a3476ac1649ebc05c71aa8f2ce99e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144908
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-02 11:07:18 +00:00
Bogdan B
de419b94b3 Remove unused imports from pyuno/demo and pyuno/qa
Change-Id: I777eb19059030d2c1ce870b5839b541cbc7e90d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142520
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-01-02 09:37:00 +00:00
Regina Henschel
cbf30153a5 tdf#125885 Conversion WordArt to Fontwork in docx import
docx has the information, that a shape is a WordArt shape, after the
text content. So in import of such file there is already a frame
attached to the shape, which makes it impossible to set it into text
path mode.

The patch detects that it should be a WordArt shape. It transfers the
text from frame to shape, removes the frame and then sets the shape
into text path mode.

WordArt in OOXML has the same closed set of types as we have for MS
binary import. But MS Word can combine them with arbitrary shapes. The
patch does only convert rectangles.

The text is copied from frame to the shape as string. Thus it looses
all styles. But our Fontwork cannot use different styles for
portions of text, so I think that is acceptable.

Fontwork uses not the styles of the text but styles set at the shape.
The patch copies the styles from the first not empty run. That should
give sufficient results in most cases. These text styles are set at
the shape, which will result in a paragraph style referenced by the
draw:text-style-name attribute of the draw:custom-shape element in ODF.

The patch does not yet include export to docx. The current 'restore
old shape' on resave to docx is lost. ToDo: Patch for export.

Change-Id: I880ee7c7616db50524032e4b1443730a2d0a7361
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143615
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-02 08:19:37 +00:00
Caolán McNamara
54cb5990e6 tdf#150707 xmloff/source/style/xmlexppr.cxx:907: no prop type specified
warning seen on saving very simple writer document.

maybe since:

commit 91f649a119
Date:   Thu Dec 9 08:43:27 2021 +0100

    ODP import/export: refer to theme from shape text color

    Refer to the 12 pre-defined colors by name + don't write the attribute
    for the case when there is no theme.

Change-Id: I4a7d21a7bab1ee77336ed6a5de8862fbab9be177
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144870
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-01-02 08:18:42 +00:00
Radhey Parekh
745898eb2a tdf#70423 Remove txtimport break in 10k chars line
This patch fixes the tdf#70423 which is an unexpected line break for
~10k characters. The fix consists of removing part of the code that
creates a new paragraph when reaching ~10k characters. The limit was
not exactly 10k characters, because the code tried to break at space
character when reaching around 10k-100 characters.

A test is also created, which can be checked by invoking:

    make CPPUNIT_TEST_NAME="testTdf70423" -sr CppunitTest_sw_txtimport

The test checks that there should be exactly 1 paragraph with 30k
characters inside it.

Change-Id: Ic37c2b6eb89b52b533e34dd117b9635b9608bab2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121548
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-01-02 07:36:05 +00:00
Julien Nabet
44ed45cc67 Remove "sl" autocorr entries that correct to itself
Change-Id: I6b501a1159c7c022cf8da7bd5310fb97efe55093
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144920
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-02 04:44:19 +00:00
Bogdan B
06468a15d5 Remove unused imports from compilerplugins/clang
Change-Id: I923ace7bedf022d49222e71c96c7e4c20f90e6cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142521
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-01-02 04:39:16 +00:00
Tomaž Vajngerl
312100003f sw: read theme from OOXML file and set it to the draw page
This change extends writerfilter to use oox::ThemeFragmentHandler
to read the theme properties, and sets that to the one and only
draw page of a Writer document.

This change also removes ThemeTable and replaces it with the
ThemeHandler, which takes theme font data from svx::Theme
instead.

In addition, a test has been writen, which loads a document with
a theme, and asserts the draw page has the theme and the theme
properties currently supported.

Change-Id: Iff0048cd21ea030ac55287707852acc463ec3cb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143699
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-01-01 23:35:17 +00:00
Tomaž Vajngerl
d5a71bc6a2 oox: add support for importing font scheme into a svx::Theme
Change-Id: I862256a17ce84c85174678f3fd03c8ef6661f2c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143995
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-01-01 23:34:32 +00:00
Julien Nabet
ec1acb4502 tdf#152785: typo "disabte" instead of "dissabte" for Saturday in occitan
Refs:
1) https://locongres.org/oc/aplicacions/dicodoc-oc/dicodoc-recerca?option=com_dicodoc&view=search&Itemid=168&type=fr-oc&dic%5B%5D=BASIC&dic%5B%5D=LAUS&dic%5B%5D=LAGA&q=samedi&q2=&submit=Cercar
2) https://en.wiktionary.org/wiki/Appendix:Days_of_the_week

like this since the beginning 5b7b4e8114
"
INTEGRATION: CWS locales23 (1.1.2); FILE ADDED
2007/04/25 19:14:54 er 1.1.2.1: #i76044# add Occitan_France (oc_FR) locale data; contributed by Bruno Gallart <bgallart@ooo>
"

Thank you to quentinantonin@free.fr for having spotted this + provided refs!

Change-Id: I8b81e561885bc2e1eea6c5f88a3924ea58141791
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144926
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-01-01 21:42:43 +00:00
Eike Rathke
cf8cfee9d4 Resolves: tdf#151886 Use default locale with English function names again
Automatically switching to en-US locale when using English
function names caused too much confusion. There also might be the
possibility that the '.' dot decimal separator clashes with the
inline array column separator in some locales.

A proper solution would make this user-specified and if set also
adjust the separators to the common English ones. For now keep the
default locale again as it previously was the case.

Change-Id: Ic4712c6609c14f35cf0d1d842ac7443806a6e115
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144924
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2023-01-01 20:26:05 +00:00
Noel Grandin
efda8aa8ee remove dead code
this code has been dead for some time, no need to keep it anymore.

Change-Id: I9c553fa7460bda5331f5908311783207bf88be17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144927
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-01 20:24:51 +00:00
Mike Kaganski
ab81b5e097 Fix no-pch build on Windows
Change-Id: If4eadc1987bb7015d2a7d3a6fb3c25a57158b248
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144899
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-01 16:09:17 +00:00
Mike Kaganski
f1151648b3 Avoid unneeded initialization, and use URLZONE ids
Change-Id: I8c6f31865b992fab0739fbefed5d39f21d0fa664
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144904
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-01-01 16:03:10 +00:00
Julien Nabet
7b7e339206 Remove "vi" autocorr entries that correct to itself
Change-Id: I684bdb18209f2f3fa75adb77bdbe27a4645e5b75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144922
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-01 15:50:43 +00:00
Julien Nabet
bdaf40b10c Remove "pt" autocorr entries that correct to itself
Change-Id: I6c08829a71deb5fae1d986946efd91aec28fe342
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144919
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-01 15:46:53 +00:00
Julien Nabet
3151cb3f2c Remove "pt-PT" autocorr entries that correct to itself
Change-Id: I3702ce12cd62c0b4c2d7ee4a4af2640e3db76bef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144918
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-01 15:46:27 +00:00
Julien Nabet
36b41e69f6 Remove "nl-BE" autocorr entries that correct to itself
Change-Id: Iad59d47f3b34a7d7e16fd7c5ecb02b2bd7d3fab5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144917
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-01 15:45:41 +00:00
Julien Nabet
1f1559229e Remove "mn" autocorr entries that correct to itself
Change-Id: Ib5a3ef8066517ac79101a409aedc78a764979a2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144916
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-01-01 15:45:05 +00:00