Commit Graph
496599 Commits
Author SHA1 Message Date
Bayram Çiçek 9bbb02bcd7 tdf#161502: change Structure label of Function Wizard dialog
- label "Structure:" changed to "Content:"
- this change also removes the duplicated "Structure" text from the dialog which makes the UX better

Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: I6d70e019b80d4ef0d7207b62e1d0aa6d1f0a3b73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168161
Tested-by: Pedro Silva <pedro.silva@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pedro Silva <pedro.silva@collabora.com>
(cherry picked from commit dc3e624b52e43bb197417b5d9339890afe7c5379)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168612
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
2024-06-11 19:52:30 +02:00
Xisco Fauli e4e2c7ca00 postgresql: Upgrade to 14.12 (master only)
Postgres 13 will reach the EOL in November 13, 2025
https://www.postgresql.org/support/versioning/ so upgrade it
now after the creation of the libreoffice-24-8 branch towards
LibreOffice 25.2

Downloaded from https://ftp.postgresql.org/pub/source/v14.12/postgresql-14.12.tar.bz2

Change-Id: I1f78f682ef14b486a98912ed23a08163d819837e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168687
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-11 18:33:09 +02:00
Armin Le Grand (allotropia) 290c8f6e04 ITEM: Change SfxItemSet to use unordered_set
With all the changes done for Items we can now do deeper
basic changes to the ItemSet itself with manageable risk.

I already did https://gerrit.libreoffice.org/c/core/+/166455
aka 'ITEM: Add measurements for SfxItemSet usages' to
get some statistical information about the fill/usage grade
of the ItemSet's fixed PtrArray to SfxPoolItems, check
that out to get an own picture.

Those results show that an average usage is between some
extremes ranging from 0% to 50%, but when using more checks
and using multiple files/interactions/edits in all
applications we end up with around typical 12%-19% of that
array used, the rest is nullptr's.

Thus I thought about one of the initial ideas of this
series of changes (ITEM), to use a std::unordered_map
(A) instead of that fixed array of SfxPoolItem Ptr's (B).
Tthat again was for a complete type-based rewrite, which
I once did a POC, but the code cannot be adapted to that,
just too much work.

Those are very different in architecture, (B) is done
since a long time (since ever), but as pointed out above,
(A) is now possible. There are many aspects to it, let's
grep some:

Speed (iterate): (A) and (B) are both linear. (A) has
less entries, but may touch different mem areas
(buckets). (B) is linear, but many empty spaces which
are usually uselessly iterated.

Speed (access Item by WhichID): (A) is hashed by
WhichID, so mostly linear for unordered_set/hash.
(B) is in a linear array, but has to calculate the
offset for each WhichID access.

So I guess speed will mostly equal out.

Memory: (A) will be dynamically allocated (buckets),
but stl is highly optimized and may even re-use areas,
has to provide some extra info but will need less
places for Items since it's dynamic and can start empty.
(B) will be allocated once (except AllItemSet) and may
even be 'derived' to the ItemSet (SfxItemSetFixed), but
has to allocate all space at once.

I can go in lots of more detail here, but due to the
results of the statistics I just made a test now,
including measuring some results (will include in
gerrit, not here). I used two pro versions for that.
That way I have some data now.

Result is:
- It is now possible to do this, it runs stable :-)
- Speed: As expected, mostly no change
- Memory: Depending on usage, 0% to 25% less,
  usually around 8-10%

Side effects:
- SfxAllItemSet could be done without WhichRanges,
  thus without expensive 'merges'
- SfxItemSetFixed is not needed. While the idea is
  good, it needs a lot of extra stuff
- Access to Items is linear if set
- WhichRanges: Still needed, but for vaildity
  checking/filtering of ItemSet content
- WhichRanges: Worth to think about if these are
  needed at all, probably just exist for historical
  reasons since allocation/number of added Items
  was never ever dynamic -> just not allocatable

Putting the current version on gerrit, may still
trigger some UTs (checked SW/SC/SD...)

I did not like that functionality at ItemSet that
hands out a vector of the set items for cases where
to avoid iterating and deleting items at the same
time at an ItemSet, so changed to using a local
vector of remembered WhichIDs and deleting after
the iterator is done. I also saw some strange
usages of SfxItemIter in sw which i will have to
check.

Since there are still problems with UTs which I can
not reproduce locally I have now added asserts to
the case that an ItemSet gets changed with still
having active SfxItemIter(s). That is always an
error, but with the architecture of that fixed
array of ItemPtrs did not have devastating effects
(purely by coincidence).
With that asserts, UTs run well in SC and SD, but
in SW I get 11 (eleven!) asserts from the UTs, all
of them from 'ITEM: SfxItemSet ClearItem' BTW.
I guess these have to be fixed before thinking
about this change...

Good news is that all 11 cases were the same in SW,
in SwHistorySetAttrSet::SwHistorySetAttrSet which
does some strange things using two SfxItemIter in
parallel. Thus SW UTs are also clear and I see no
more errors caused by ItemSets being changed while
SfxItemIters are alive.
Bad news is that I still have errors to hunt...

NOTE: Have now cleaned all UTs, this showed that
there are some unexpected side-effects of the Items
being processed in another order when SfxItemIter
is used, also found one case where a
WhichRangesContainer is constructed for a
SfxItemSet using the set items from another ItemSet
and SfxItemIter to do so. There *might* be more
cases not covered by UTs.

NOTE: While speed stays the same and mem is reduced
up to 25% (see measurements in 1st comment) another
*important* aspect is that this frees the way for
using ItemSets *without* WhichRanges - these are
necessary mainly to create that fixed array of
pointers to the Items in a *manageable* size. With
a dynamic structure like unordered_set there is
in principle *no need* anymore to use WhichRanges
to pre-define the Items a Set could hold. There
is one exception: We have cases where one ItemSet
is set at another one with defined WhichRanges to
*filter* the contained Items - these would have to
be identified. This is a rare case and we would have
to check cases where an ItemSet gets set at another
ItemSet. This would be as if all ItemSets would be
AllItemSets in principle - much easier for everyone.

NOTE: Waited for 24.8 split just to not take
unnecessary risks.

Change-Id: I75b0ac1d8a4495a3ee93c1117bdf618702785990
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166972
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2024-06-11 17:26:42 +02:00
Michael Stahl 48659fa6cf (related: tdf#161215) sw: layout: fix another floating table loop
The full bugdoc loops; text frame 3160 (on which a floating table is
anchored) is split, immediately joined, and split again...

SwTextFrame::IsEmptyWithSplitFly() has a wrong condition that compares
document coordinates with relative position inside the frame; try to use
the confusing SwRectFnSet to compare instead, which prevents this frame
from splitting because it actually fits into its upper.

Another problem in that function is that it checks RES_PAGEDESC but not
RES_BREAK; try to fix that too.

(regression from commit 16b5b21d36)

Change-Id: I94251b7443e51303b28d14f0597b0bf782142480
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168668
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-06-11 17:14:50 +02:00
Xisco Fauli 373bb35740 CppunitTest_sw_odfimport: add assert
Change-Id: I8a9ccb490fdd717538e368f73fefca425f94b405
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168673
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-11 17:03:59 +02:00
Xisco Fauli 1bcd3df23c dbaccess: use createTempCopy instead of doing it in make
Change-Id: Ib1e550dbe5ea74827562e3706c4a310171df77af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168675
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-11 16:23:22 +02:00
Stephan Bergmann dc01a6e7ef Some missing "block untrusted referer links" for form controls
...where "Referer" is now passed in as an additional property, so that the
relevant objects can decide whether to obtain graphics while loading a document

Change-Id: Ie3dabc574861713212b906a0d7793f438a7d50a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168674
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-06-11 16:09:34 +02:00
Tomaž Vajngerl 46c261603f annot: document new annotation classes and methods
Change-Id: I71d1055a30e0e8eedcd8fa71b47e74e90f1aac93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168595
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-11 14:44:37 +02:00
Tomaž Vajngerl f55cfda525 annot: don't render objects marked as annotation in PDF export
Objects that are marked as annotation shouldn't be rendered to the
PDF document. Those should be written to the PDF as annotations
(if output of annotations is enabled in the PDF export options).

Change-Id: I60650b5a64dc52da6d32d8ac92441e4b21900126
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168574
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-06-11 14:44:27 +02:00
Tomaž Vajngerl 2efd36571f annot: add custom selection overlay for the annotation object
Make annotation objects selection similar like it was with the
old annotationg tags.

Change-Id: I0623ddf56274dc996ed9dd16096256e03ad65270
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168523
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-06-11 14:44:18 +02:00
Xisco Fauli ac2db9b472 tdf#160877: call lcl_getRDF since graph-names can change
partially revert 3750d0533e
"sw: paragraph-sign: get graph-names only once"

Change-Id: I7f99679f4a361acdd841037b782421a53350dbbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168477
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-11 13:06:53 +02:00
Tomaž Vajngerl 5a3f8809fe annot: change include to forward declaration
Change-Id: Ibf35554b707254fa5f901e3137adb28ba46a98ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168515
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-11 12:49:26 +02:00
Tomaž Vajngerl 7235eec702 annot: make annotation pop-up window working again
The code to open AnnotatationWindow was removed in the previous
change as it needed to be changed to make it work with annotation
(sdr) object.

Change-Id: Ic75e4fca6b46359f29762bc4735a76204aeb90f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168514
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-06-11 12:49:15 +02:00
Tomaž Vajngerl 2dc9d587cb annot: update annotation position, size, text when those change
Change-Id: I345f4c714ed4ca0c8277e0aedf5ea4b5cd70ea70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168513
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-06-11 12:49:05 +02:00
Tomaž Vajngerl c89131d1c6 annot: Add tests for annotations - insert, delete, undo/redo
Change-Id: Ie9d88c15af13fb481bb48c838b3b0ef2f41f11e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168512
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-11 12:48:58 +02:00
Tomaž Vajngerl e17c56bfc7 annot: new Annotation sdr object, replacing annotation tags
Previously the annotations are shown as annotation (smart) tags,
which just mark in the document the existence of an annotation at
a certain position. For PDF support the annotations can be more
complex, so they can show many forms of vector graphic, ink,
bitmaps, text boxes,... and for this a normal tag is not enough.

This change moves the annotations from simple tag to use the sdr
objects, so any SdrObject can be created as an annotation. The
previous tag annotations are using SdrObject (actually SdrRect)
subclass AnnotationObject and the code that previouslly worked
with the tag annotations has been adapted.

The (PDFium based) PDF import has been changed to use subclasses
of the SdrObjects for the PDF annotations.

Change-Id: I4746b85b5b679499e470987e61ed356397e56bf9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168485
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-11 12:48:48 +02:00
Christian Lohmaier 4c179c1e62 bump product version to 25.2.0.0.alpha0+
Change-Id: I56a7aa68ad934dc7fb7f1fc1e3f95bdb78ca120f
2024-06-11 12:41:26 +02:00
Christian Lohmaier 798b43c4ef Update git submodules
* Update translations from branch 'master'
  to 0d53fb56250d16d87e001ef05b52d289dff5b1df
  - update translations for master / 24.8.0 beta1
    
    and force-fix errors using pocheck
    
    Change-Id: I92f8e74d5cf8127e8f85e83c600472b6b84c97ed
2024-06-11 12:25:02 +02:00
Balazs Varga 5c9040c165 tdf#161496 - Fix single ocPush tokens in LET function Name values
If the Name - Name Value pairs contains already an ocPush result
no need to interpret, so the Calculation parameter can reuse it.

Change-Id: I55465d674eb31aea7c3123c889250c9fa127f1fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168661
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2024-06-11 12:23:56 +02:00
Miklos Vajna 013300c751 tdf#161443 DOCX import, table style: handle para border in table cell paras
Open the bugdoc, the in-table paragraphs have some top and bottom
paragraph borders in Word, not in Writer -- because the cell and
paragraph UNO object both have a property named TopBorder as mentioned
in commit 39c54c0ef8 (tdf#161443 DOCX
import, table style: fix para border leaking into cell border,
2024-06-07).

The previous fix avoided the problem that the unwanted border affects,
the cell, but re-routing the property to affect the in-table paragraph
were not done.

Fix the problem by adding 3 new meta-properties with a "Para" prefix for
all 4 border locations (top/left/bottom/right), this way the paragraph
borders defined in a table style can affect the in-table paragraphs, but
not the table cells.

Apart from the border itself, this also affected the border spacing,
which means that the position of all text inside and below the table is
now also correct. Unfortunately this also means we need to move away
from the constexpr frozen container that is only suitable for a limited
number of items:
sw/source/writerfilter/dmapper/PropertyIds.cxx:394:6: error: ‘constexpr’ evaluation operation count exceeds limit of 33554432 (use ‘-fconstexpr-ops-limit=’ to increase the limit)
Returning to std::unordered_map is good enough for our needs.

Change-Id: I478f274800a1d0b200f10226438ab4cfd4957b74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168659
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-06-11 12:09:51 +02:00
Xisco Fauli 19e9e49bda python3: upgrade to 3.9.19
Downloaded from https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tar.xz

* python-3.8-msvc-sdk.patch.1 is no longer needed

* Comment out deprecated warnings for now:
C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/pyuno/source/module/pyuno_util.cxx(42): error C2220: the following warning is treated as an error
C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/pyuno/source/module/pyuno_util.cxx(42): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
C:/cygwin64/home/tdf/jenkins/workspace/gerrit_windows/pyuno/source/module/pyuno_util.cxx(64): warning C4996: 'PyUnicode_AsUnicode': deprecated in 3.3

Change-Id: Iaa358ffaaea63cf6ec47914759d0469e70e1cc65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168551
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-06-11 11:48:44 +02:00
Xisco Fauli 3f686bfe0e nss: upgrade to 3.101
Downloaded from https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_101_RTM/src/nss-3.101-with-nspr-4.35.tar.gz

Change-Id: I8314faf1af069a5dc438f0d53f327ae2193ca59d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168663
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-06-11 11:44:59 +02:00
Tibor Nagy efb805eb24 tdf#159897 docx import: fix broken hyperlink
If the ScreenTip contains quotation marks, the link will be incorrect

Change-Id: I10f5039144c71bf5105cbd4dd9e82076a4d92fc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168648
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
2024-06-11 11:27:31 +02:00
Regina Henschel 567dbcf687 tdf#161327 Interpret angle units in dr3d:end-angle ..
.. and draw:rotation in <draw:hatch> element.

ODF 1.1 has not specified the syntax of datatype 'angle'. Since ODF 1.2
it is specified as double with unit "deg", "grad" or "rad", or without
unit. The unit-less value is specified to be in degrees. But OOo, AOO
and all LO versions had written the value unit-less in 1/10th of a
degree in some cases.

To fix it, LibreOffic will be enabled to read units. When then the
active versions are able to read units, starting with the then actual
version, LibreOffice will write angles with unit 'deg'.

This has already be done for gradients, see tdf#89475. This patch
starts the first step to make LibreOffice able to read units for
dr3d:end-angle (UNO D3DEndAngle) and for draw:rotation (UNO
FillHatch.Angle). I have not found further cases of writing 1/10deg.

The patch still writes unit-less 1/10th of a degree for export to
ODF 1.3 and earlier. When it is time to write unit degree or when
LibreOffice supports the next ODF versions, some places need to be
adapted. They are marked.

The converter convertAngle is renamed to convert10thDegAngle() to
indicate, that it is special. The parts, which were specific to
gradients are moved to the gradients, so that it is now usable for
dr3d:angle and draw:rotation too.

I intend to write next a patch that enables LibreOffice to read angle
units for cases where LibreOffice already writes unit-less values in
degree. That is not so urgent, but to bring LibreOffice nearer to ODF,
reading angle units should be implemented nevertheless.

The file xmlbahdl.hxx is moved from xmloff/source/style to xmloff/inc
to have access to it from xmloff/source/draw.

Change-Id: I8ffc2735f8bcfefb86efa80eb05f900c32403f31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168336
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2024-06-11 10:29:17 +02:00
Jaume Pujantell a2b6ce5d21 lok: sw: do not add a table style on insert dialog
This brings the default beahivour of the insert table dialog closer
to the behaviour of the uno command, where a table is inserted
without a table style and with visible borders.

Change-Id: Ifcadbce78c0623aec91fd9320bf90a87efc16448
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168183
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit a17e087e26774c4e33d371322fbef426cd387639)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168610
Tested-by: Jenkins
2024-06-11 09:41:14 +02:00
Stephan Bergmann 2f2a43f041 Update git submodules
* Update helpcontent2 from branch 'master'
  to 1522a9b569d146c27d7fcaf06fc5a4cb18256088
  - Fix syntax error
    
    ...introduced in 1658fb55defb5a08d3adbd7637745f8a62c58f89 "Update
    Basic/Python TOC with Calc samples"
    
    Change-Id: I5be787dfc60bef363757143171484020de7f1288
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168657
    Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
    Tested-by: Jenkins
2024-06-11 08:34:25 +02:00
Andras Timar 7199583067 LOK: do not use deprecated .uno:BackColor
.uno:BackColor was deprecated in
be3d34b5d6 
which changed the label to 
"Character Highlighting Color (deprecated - use CharBackColor)"
We do not want this label to appear in LOK based product.
The corresponding online patch set:
https://github.com/CollaboraOnline/online/pull/9225

Change-Id: Ieb780d278cd45bf82a2b4acee0abd17af2dc71eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168519
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit db27cd2246cfc54abd94885ce5edbdca69688af0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168616
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2024-06-11 06:37:01 +02:00
Michael Weghorn 7d334ba746 tdf#158914 sc a11y: Remember new cell text again
commit 5f9a955042
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Jun 7 13:03:19 2024 +0200

        tdf#158914 sc a11y: Send TEXT_CHANGED event when text changes

had made sending a `AccessibleEventId::VALUE_CHANGED` event
conditional on the cell having a *numerical* value.

Assigning the new string to `m_strCurCellValue`
should always happen independent of this, though,
as this is the string value, not the numerical
value.

Thanks to Patrick Luby for noting the difference
in [1].

[1] https://gerrit.libreoffice.org/c/core/+/167961/comment/1af95eb6_7db33e0b/

Change-Id: I1d1da2caeb7f2199251599313ec4412d7b6e47b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168635
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-11 03:15:43 +02:00
Justin Luth 852cd51125 tdf#57414 tdf#160769 autorecovery: keep open docs in RecoveryList
This reverts parts of the LO 24.2 patches commited for bug 57414.

There were lots more vocal people than I expected
that want the crash-recovery to restore their session state.

Since there is no working alternative to trigger a session save,
just revert the bits that made the RecoveryList clean
(as I and other users had requested)
and revert back to the original, historic behaviour.

This means that now the following files will again be recovered:
- saved documents (opened from file URL)
- read-only documents (opened from file URL)
- files that were opened, but never modified (opened from file URL)
- files from now-potentially-unavailable disks/servers/temp-dirs
   - recovery will attempt to access those file URLs

At least one benefit remains:
- new, unmodified documents will not be in the RecoveryList

Maybe I'll look into a session save option for 25.2.

Change-Id: I2477f194bf94f14620d284728027846ec5b6119e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168650
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2024-06-11 02:17:28 +02:00
Andrea Gelmini 2254c41626 Fix typo
Change-Id: I65fa0676119a2e52e23acddc564143cd1e519df1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168647
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-06-11 01:40:14 +02:00
Justin Luth 468b17bd06 NFC docxattributeoutput loop: skip if empty, exit early if duplicate
No need to loop through all of the textboxes
if the rName.isEmpty() since that is never accepted as a duplicate.
As soon as a valid duplicate is found,
we can quit search the rest.

Change-Id: I785c2cf4cc619fc45fc2b95f492fe1b5ff0f1a55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168582
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-06-11 00:50:03 +02:00
Balazs Varga db153afbac tdf#161457 - Fix autofilter result is wrong when cells contain
formatted rounded values.

Filtered formatted values were not sorted with the rounded values
but with the original values and the duplicated values caused wrong
filter results.

Regression from commit: 2d1df9f3dc
(tdf#117276 sc: Show hidden filter elements as inactive elements)

Change-Id: I7540ba5fa98e6bbe0b014448bf2449432261d542
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168592
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2024-06-10 23:42:24 +02:00
László Németh b285cf49df tdf#157833 tdf#155692 sw: fix hit area to resize row/col
Fix 1) missing or too narrow hit area (tdf#157833),
and 2) not recognized click inside hit area (tdf#155692).

It was impossible or very hard to resize text table
columns and rows using the mouse:

1) Double arrow, i.e. "resize row/col" mouse pointer shows
the hit area of text table row/column borders. This was
missing or was very narrow with normal zoom, because of an
obsolete constant for low resolution displays.
Change this constant used in IsSame() with scale-dependent
values to support the same hit area on different zoom levels
and with different screen resolutions.

2) Especially on bigger zoom, "resize row/col" mouse pointer,
i. e. the visible hit area didn't guarantee drag & drop any
more because of too small hit area in pixels in the svruler
code base: clicking on not exactly center of the hit area
resulted selection of cells or the cell content instead of
drag & drop the border, violating WYSIWYG. Enlarge the default
1 pixel to 5 pixels to cover the whole hit area. Note:
only for resizing table borders inside the document, not on
the horizontal and vertical rulers.

Change-Id: I398a0de782040b0ad18835658ed625117a6e0e06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168605
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-06-10 23:22:20 +02:00
Xisco Fauli 4cd4be3e7c poppler: Upgrade to 24.06.0
Downloaded from https://poppler.freedesktop.org/poppler-24.06.0.tar.xz

Change-Id: I6b679ae014edd7a9897eed39a6e91c63251cc016
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168642
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-06-10 21:56:23 +02:00
Rafael Lima dc243f0122 tdf#161204 Improve visibility of outline in the selection overlay
As discussed in the design meeting, this patch adds an internal white outline to the selection overlay to provide better contrast.

FTR: This is the same approach used by other office suites (Excel, OnlyOffice, etc).

Change-Id: I9b279ebfa9efbd2b5d9894b94ebda653c3dba6e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168538
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2024-06-10 19:20:30 +02:00
Alain Romedenne 34f2a655f3 Update git submodules
* Update helpcontent2 from branch 'master'
  to 1658fb55defb5a08d3adbd7637745f8a62c58f89
  - Update Basic/Python TOC with Calc samples
    
    Change-Id: I1ce9b023b0e90dae868cc323af3e9d0296a66bdc
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168534
    Tested-by: Jean-Pierre Ledure <jp@ledure.be>
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
    Tested-by: Jenkins
2024-06-10 18:51:06 +02:00
Noel Grandin 5fe53e6b2e tdf#144208 speedup doc with lots of redline(4)
exit early in DelBookmarks if the redlines are not in the range we need
to fix

Change-Id: I4e558835ec2a5bd6a92b2da29a94db16e52064ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168640
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-10 18:39:41 +02:00
Andreas Heinisch 2b6caa40d6 tdf#160321 - Added missing VB test
Change-Id: I4019599aa9d7803a63e4270b06841915ea428392
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168637
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2024-06-10 17:50:33 +02:00
Caolán McNamara ed5bac73c8 Related: tdf#161430 add test case to guard against its return
Change-Id: Ia2b12ab696632a4f08fd4c20472646dcfd9058c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168634
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-06-10 17:50:22 +02:00
Jonathan Clark 976b16b1c6 tdf#152024 Diacritics cut off at top and bottom of paragraph
This change fixes issues causing Writer to clip paragraphs at the ascent
of the top line, and descent of the last line, of a paragraph. This
issue caused certain diacritics to render incompletely, or not at all.

Change-Id: I99a3a25335f8b1d798fc8a55ff42d5c78749fca4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168557
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-06-10 17:11:32 +02:00
Caolán McNamara 2b68dadb84 drop unused suppressions
Change-Id: Ibaf8856839e134432297b96e1d68f5ecd484335c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168631
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-06-10 17:05:14 +02:00
Caolán McNamara edf7f296f1 fix Gtk-WARNING **: Could not load image 'res/unlocked.png'
use icon-name instead of pixbuf

Change-Id: Ibb0a09047ada6ac3301ca0a40dbeb25351c41ed1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168609
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-06-10 16:55:15 +02:00
Caolán McNamara d52d82140e fix GLib-GObject-CRITICAL **: invalid cast from 'GtkImage' to 'GtkLabel'
Change-Id: I29024237cc2d92d16433cf432f87e2b42107a487
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168630
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-06-10 15:18:38 +02:00
Caolán McNamara aa6993e35c add test for hyphenation related crash
of:

commit f050103c33
Date:   Fri Jun 7 20:14:15 2024 +0100

    stale hyphenation data after skipping blanks

Change-Id: I9743d67b49db054968e9f13c5fc6a13136953733
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168606
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-06-10 15:04:33 +02:00
29525b020c android-viewer translated using Weblate
Japanese currently translated at 82.7% (96 of 116 strings)

Change-Id: I823d969cd027cbdd3778c5ca6887722831d01fbf

android-viewer translated using Weblate

Hebrew currently translated at 99.1% (115 of 116 strings)

Change-Id: I610c1282074f709b2b08baf6303cd70e2eef19c1
Co-authored-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Co-authored-by: Weblate <noreply@documentfoundation.org>
Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/he/
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/ja/
Translation: android-viewer/android-strings
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168567
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-06-10 14:00:45 +02:00
Andreas Heinisch 84e8758d42 tdf#160321 - Don't execute jump statement if the expression is out of range
Don't execute On expression GoSub Statement; On expression GoTo
Statement if the expression lies out of range.

Change-Id: I5c1de25918b5e812d7ec82034f8d56351374d56a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165960
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2024-06-10 13:52:00 +02:00
Noel Grandin 18ef391582 loplugin:ostr in sw/../uibase
Change-Id: I4f4284b55d481caa006743688e6d83cc3c713b5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168601
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-10 12:15:17 +02:00
Caolán McNamara d25de4a046 silence unknown property 'HyphNoLastWord'... etc warnings
warn: linguistic:3688232:3688232:linguistic/source/lngprophelp.cxx:636: unknown property 'HyphNoLastWord'
warn: linguistic:3688232:3688232:linguistic/source/lngprophelp.cxx:636: unknown property 'HyphKeepType'
warn: linguistic:3688232:3688232:linguistic/source/lngprophelp.cxx:636: unknown property 'HyphKeep'
Change-Id: I4f99961e17bd4e0f90925b8530e25729d964d42e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168600
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-06-10 12:04:17 +02:00
Noel Grandin 3c41e71449 loplugin:ostr in sw/qa/extras
Change-Id: Ia11b13ec7ed2402e717a4e64e7c7e4aa0b41d70f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168598
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-10 10:35:00 +02:00
Julien Nabet 71e905b62b Related tdf#134193: declare right-to-left in Math.xcs
Change-Id: I4341f8dd84a17b4f8dd9da2e4f031ed38590d881
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168568
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-06-10 09:56:25 +02:00