Commit Graph
24427 Commits
Author SHA1 Message Date
Noel Grandin d62a29c705 simplify EmbeddedObjectContainer::CreateEmbeddedObject
dont need the variant that passes extra params, we already take that param

but convert that extra parameter from a pointer to a std::optional,
because some of the call sites pass a temporary OUString, and taking
the address of a temporary is a no-no.

Change-Id: I4d55f01a14230f5c64a052a143666a08bfcbf704
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191021
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-16 15:01:59 +02:00
Kurt Nordback f3e728aead tdf#167941 - Chart style file is not supported in OOXML
Implement chart style file export, beginning to use the document
model data rather than hard-coded text. Also add a simple test
that style data round-trips OOXML -> LO -> OOXML properly.

This uses oox structures in docmodel. That will be fixed in a
subsequent commit.

Change-Id: Icc0ef5b212cc32c8c84b51529bc4cf05ab54636c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190586
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2025-09-16 09:20:37 +02:00
Noel Grandin b3c7eaf9d3 removed unused DrawModeFlags
DrawModeFlags::BlackGradient is dead since
  commit e7b460f919
  Author: Noel Grandin <noel.grandin@collabora.co.uk>
  Date:   Sat Aug 30 15:23:11 2025 +0200
  BitmapEx->Bitmap in canvas

DrawModeFlags::WhiteText is dead since
  commit 81994cb2b8
  Author: Noel Grandin <noelgrandin@gmail.com>
  Date:   Fri Apr 16 20:33:10 2021 +0200
  Convert internal vcl bitmap formats transparency->alpha (II)

Change-Id: I3405962f1293f0f2ea9619e009bf048fc2c35c95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190999
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-16 08:05:28 +02:00
Noel Grandin 7278030b92 remove unused DrawModeFlags
DrawModeFlags::BlackBitmap is dead since
  commit e7b460f919
  Author: Noel Grandin <noel.grandin@collabora.co.uk>
  Date:   Sat Aug 30 15:23:11 2025 +0200
  BitmapEx->Bitmap in canvas

DrawModeFlags::WhiteBitmap is dead since
  commit 81994cb2b8
  Author: Noel Grandin <noelgrandin@gmail.com>
  Date:   Fri Apr 16 20:33:10 2021 +0200
  Convert internal vcl bitmap formats transparency->alpha (II)

Change-Id: I933d5416300850e624c3b438d00d986c787e0a05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190977
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-15 21:48:14 +02:00
Maya Stephens d7d9253739 Add hyperlink dialog document tab to online
We hide a lot more than on other tabs. The main idea is to allow
bookmarks to be linked to, but this does add other behaviour.
For example, linking to a shape using 'Shape 1|drawingobject' to
link to a shape. When I tested this in online, this behaviour was
very inconsistant and slow, although this could be related to
document size.

Change-Id: I6a6a696443a677cc54aa4a62594b4b6c6aa4d114
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190895
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 5d24fdffdf2246042732fb3bfe3e6d779abbcb85)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190990
Tested-by: Jenkins
2025-09-15 20:54:58 +02:00
Heiko Tietze f6f3f2cb61 Resolves tdf#168420 - Vertical tabs not working for Slide Properties
Change-Id: I6290ebfc06811c7a7fa40b26425f590f40ed8c7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190973
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2025-09-15 17:04:35 +02:00
Noel Grandin d35a23cbda EmbeddedUpdate should not use the css namespace
that is for the UNO API stuff, using it just makes the code harder to read

Change-Id: I01ac7672aa993842a889cdb8bcc05137efc80ee0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190938
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-15 13:34:35 +02:00
Miklos Vajna d80498bee5 svx: prefix members of GraphCtrlUserCall
See tdf#94879 for motivation.

Change-Id: I0558dc09ac310b2ade7a39c23bcb22d356e5142d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190939
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-09-15 11:00:01 +02:00
Caolán McNamara 830a06afe2 Resolves: tdf#168306 set current line width at popup time
Change-Id: I82c8151566459d1429cd3b4517b43ace3fbeca60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190934
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-14 22:02:58 +02:00
Caolán McNamara f4e2563012 Resolves: tdf#156739 implement dnd for menu/toolbar customization pages
dubious as a regression, but can be done now regardless

Change-Id: I67bc322cd63e65b5347b3e54651e3618d09a99b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190917
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-09-14 12:12:25 +02:00
Noel Grandin 02db8e7392 pretty up EmbeddedObjectContainer a little
Change-Id: I69f29310da41ccc7ae619529fd503bd5ce55d6bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190886
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-12 20:58:10 +02:00
Heiko Tietze 2a388d6f21 Resolves tdf#167964 - Wrong icon for "Events" in customize dialog
Change-Id: I99475b9e339be972fd33eff5dd86da8a1b7011a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190890
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2025-09-12 20:39:59 +02:00
Heiko Tietze 61778e24a2 Resolves tdf#167968 - Wrong icon for "Indents" in section dialog
Change-Id: Ie2027436477bf49bb7e7485d84eca2b770234c7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190887
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2025-09-12 18:06:29 +02:00
Michael Weghorn 7d40ccfe19 rust_uno: Define + use valid log areas (loplugin:sallogareas)
As described in include/sal/log.hxx, log areas may not
contain "_", and they need to be defined:

> For all the other macros, the given area argument must be non-null and must
> match the regular expression
>
> @verbatim
>   <area> ::= <segment>("."<segment>)*
> @endverbatim
>
> with
>
> @verbatim
>   <segment> ::= [0-9a-z]+
> @endverbatim
>
> For a list of areas used see @ref sal_log_areas "SAL debug areas". Whenever
> you use a new log area, add it to the file include/sal/log-areas.dox .

This fixes errors like the following ones seen for a --enable-rust-uno
build with clang plugins enabled:

    /home/michi/development/git/libreoffice/rust_uno/uno_bootstrap.cxx:38:14: error: unknown log area 'rust_uno' (check or extend include/sal/log-areas.dox) [loplugin:sallogareas]
       38 |     SAL_INFO("rust_uno", "Initializing UNO component context for Rust binding");
          |              ^

    /home/michi/development/git/libreoffice/codemaker/source/rustmaker/cpproduce.cxx:1011:14: error: unknown log area 'codemaker' (check or extend include/sal/log-areas.dox) [loplugin:sallogareas]
     1011 |     SAL_INFO("codemaker", "Struct member " << member.name << " UNO type: " << unoType);
          |              ^

Change-Id: I4ac11fc343f340488d15607cc7262ca57b6a4850
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190847
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-09-12 13:56:23 +02:00
Caolán McNamara dedf0c1bcb cid#1659918 Data race condition
and

cid#1660133 Data race condition
cid#1660238 Data race condition
etc.

Change-Id: Ic0278e430c62abda92e8ce0e590a4726a4488b30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190791
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-12 09:37:43 +02:00
Caolán McNamara 9b74900076 ofz#442383407 Integer-overflow
Change-Id: I96c62fd03a6c7b4c5e1ddaa62df4bb577fbdb8ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190812
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-09-11 18:14:53 +02:00
Tomaž Vajngerl 0b18630a51 vcl: cursor invalidation for form controls
Form controls need to send cursor invalidation when, to make it
possible to show the cursor in online, when we are editing an edit
box in the document.

Change-Id: I17c74b8183ba8caf06898019908bf0c2879d49d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189178
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190804
Tested-by: Jenkins
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
2025-09-11 15:43:17 +02:00
Noel Grandin f61bfec15d loplugin:unusedmethods
Change-Id: Iffab96d7383925d706bfb92495c6340698d8aa62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190793
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-11 11:53:07 +02:00
Noel Grandin 581c52dad2 BitmapAlphaClampFilter is dead since
since
    commit e7b460f919
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Sat Aug 30 15:23:11 2025 +0200
    BitmapEx->Bitmap in canvas

Change-Id: Ie156403a9e7e8dc7cd1299b16a96db52b76e9607
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190763
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-10 21:19:03 +02:00
Michael Weghorn 58f4241207 vcl a11y: Require OAccessible for AccessibleBrowseBox parent
Switch parent param in the AccessibleBrowseBox ctor
from the abstract XAccessible UNO interface to the
more concrete OAccessible.
Adjust calling code to make clear it's always an
OAccessible that gets passed.

Change-Id: I1e0b4c4b075d5f0926c85b431e1fbc10334bea85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190769
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-09-10 20:48:30 +02:00
Michael Weghorn 89bb4bf32f vcl a11y: Return OAccessible in misc AccessibleBrowseBox methods
Return more concrete OAccessible instead of the abstract XAccessible
UNO interface.

Change-Id: I8a54e5f206fcff601770376a3fdeff1e737a72a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190768
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-09-10 20:48:23 +02:00
Michael Weghorn 8bda88cede vcl a11y: Merge AccessibleBrowseBox::{implG,g}etTable
Change-Id: I40609ad0d0e4e2779ba24c8854c22d80c0a65c2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190766
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-09-10 20:48:12 +02:00
Michael Weghorn 346939479f vcl a11y: Merge AccessibleBrowseBox::{implG,g}etHeaderBar
Change-Id: I9628421ec379abc48fb3163419722af876617b03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190765
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-09-10 20:48:06 +02:00
Michael Weghorn 86bf2e50fc tdf#152519 Distinguish cursor/anchor for IM selection
The Selection class is used in either of two ways for
text selection:

1) Selection::Min() reports the selection anchor
   and Selection::Max() reports the cursor position.

2) Selection::Min() reports the smaller of the two
   indices mentioned in 1), and Selection::Max() returns
   the greater one.

vcl::Window::GetSurroundingTextSelection and its
overrides are used for input method handling and
were so far implementing either of the semantics.
Adjust those that were so far using 2) to 1), which
will allow distinguishing between the cursor and
the selection anchor in the input method logic in
the platform/VCL plugin implementations.

(SalInstanceEntry::get_position is another non-IM related
example already relying on Edit::GetSelection implementing
the behavior as described in 1).)

Calling Selection::Normalize can be used to transform
an object using the 1) semantics into 2).
Currently, ImplHandleSalSurroundingTextRequest (in
vcl/source/window/winproc.cxx) - which uses
vcl::Window::GetSurroundingTextSelection - does this,
so this commit shouldn't result in any change in
behavior by itself yet.

This commit prepares for porting
QtWidget::inputMethodQuery/lcl_retrieveSurrounding
from using a11y API to using SalEvent::SurroundingTextRequest,
similar to what

    commit ce5e41ab99
    Author: Caolán McNamara <caolanm@redhat.com>
    Date:   Sun Oct 25 15:14:56 2020 +0000

        Related: tdf#137620 use existing SalEvent::SurroundingTextRequest

did for gtk3.

This commit will help to keep distinguishing
Qt::ImCursorPosition and Qt::ImAnchorPosition in
QtWidget::inputMethodQuery/lcl_retrieveSurrounding.

Change-Id: I46fdff87e84fbbe62f9b60b50376b6123d59fdac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190744
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-09-10 20:45:10 +02:00
Xisco Fauli 6fc54eea2f crashreport: avoid crash in InspectorTextPanel
define FN_HIGHLIGHT_CHAR_DF in sfx2 like the
other spotlight slots and rename it accordingly

Seen in https://crashreport.libreoffice.org/stats/crash_details/a6200006-147e-4829-9293-93de0487133b

Since
commit 0d0e5c72e6
Author: Karthik <me@karthikreddy.org>
Date:   Mon Mar 10 13:34:39 2025 +0530

    tdf#160194 Add 3 checkboxes in Style InspectorPanel


Change-Id: I108fcbf39c8f6879258c9804f7f5a15313d259ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190684
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-09 17:07:54 +02:00
Maya Stephens 07fd215222 Hide hyperlink dialog fields based on selection
Hides the name field in all cases except writer text or draw text, as these seem to be the only types of text that can store link names.
Hides text field for non-text links, such as shapes or images.
If a shell does not set the properties m_showText or m_showName, deafult values to true, to avoid regressions for unimplemented shells.

Change-Id: I228dc7f9d65c5cb17717afb79feb515376cd4d31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189885
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190678
Tested-by: Jenkins
2025-09-09 15:52:12 +02:00
Caolán McNamara aa46db406f Resolves: tdf#152129 Save/IsChanged for the SvxRectCTL
looks to me that we should make this behave like other controls
and generally set the m_eDefRP when explicitly asked to save
so that "Reset" resets back to that saved value.

And then we can check if the control is "changed" by comparison
of m_eDefRP vs m_eRP and use that to apply the properties.

Change-Id: Icef87fb7e3dd653267e6882f4e8d22adb3e0ff68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190694
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-09 14:03:45 +02:00
Noel Grandin a80777836b tdf#168303 Option button has a rectangular border around it
regression from
    commit 8126025906
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Sat Aug 9 19:29:08 2025 +0200
    BitmapEx->Bitmap in various icons

The old BitmapEx::Replace methods had the odd behaviour that
they left the alpha layer alone, so we need to replicate that
in Bitmap::Replace

Change-Id: Ic304178fb9a45750a887bee2493546bc497eeb06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190649
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-08 11:41:27 +02:00
Miklos Vajna de44e7966d svx: prefix members of GraphCtrl
See tdf#94879 for motivation.

Change-Id: I6284736a206255842d8f54699db4db9881497a38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190651
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-09-08 09:44:42 +02:00
Julien Nabet 47276f39b3 Rename PDFWriter::DrawBitmapEx to PDFWriter::DrawBitmap
Following the BitmapEx removal

Change-Id: I7f6ed00f81500cc9e81e93fd8f9c6af19a4d5f90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190636
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2025-09-07 12:23:29 +02:00
Caolán McNamara 0c72ae925e cid#1665283 Variable copied when it could be moved
and

cid#1665282 Variable copied when it could be moved
cid#1665279 Variable copied when it could be moved
cid#1665278 Variable copied when it could be moved
cid#1665276 Variable copied when it could be moved
cid#1665275 Variable copied when it could be moved
cid#1665257 Variable copied when it could be moved

Change-Id: I222860c6385693610b95f4d674d4d0da59e75a5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190635
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-09-06 12:36:30 +02:00
Caolán McNamara 653fbde736 cid#1665272 Uninitialized scalar variable
Change-Id: I1930f0941994cac6d5a987595a591d1e0a00d050
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190633
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-09-06 12:35:42 +02:00
Noel Grandin 45a80756a9 document the weirdness of PixelFormat::N32_BPP
Change-Id: I6e648e0152474c027f63bbf4079148f45fa005be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190629
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-06 12:06:24 +02:00
Noel Grandin 7a1e4bcdbd remove now unused parts of BitmapEx
Change-Id: Ic644e8c4e2dc4e14583e7c633af3dc9b0fe7bce9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190623
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-06 09:19:14 +02:00
Justin Luth 11cd6b2fbc tdf#100287 svx dialog: sync "first header" with "first footer"
When either the header OR the footer wants different first content,
then (by design) the application applies it to both of them.
(True for Writer only - not true for Calc!!!)

It is also important (for the user experience) that either one
is able to stop using first content altogether (for Writer only).

This was already working to some extent,
but the user experience was not consistent or predictable.

Specifically, the improvements with this patch:
-provide an appropriate "default" value when turning on a H/F.
-always visually match the most recent "first content" choice.
-in Calc, simply visiting the H/F no longer turns on first page.

The prior situation was very "fickle",
and "first content" could be affected
without the user even touching that box (for both Writer and Calc).

The underlying reason this patch can work is because of
SvxHFPage::SvxHFPage SetExchangeSupport().
That causes SfxTabDialogController::DeactivatePage
to update the m_xExampleSet which is then passed
to SvxHFPage::ActivatePage.
Thus the active tab knows about all the dialog's current settings.

Since Reset() calls ActivatePage,
it was safe to move the initialization out of Reset.

make -srj1 UITest_calc_tests8 \
    UITEST_TEST_NAME=tdf144940.tdf144940.test_tdf144940 \
    SAL_USE_VCLPLUGIN=gen

Change-Id: Icd6084ca50d244317c807266f04c85dadbba2bb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190606
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2025-09-06 03:31:33 +02:00
Noel Grandin 6d0e5ddede remove BitmapEx
all use-sites have been converted to Bitmap

Change-Id: I1a8842217a266eef100bd387ab013b004e532256
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190618
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 19:45:45 +02:00
Noel Grandin a65a224c2b use less BitmapEx in Bitmap
we want Bitmap to be independant of BitmapEx

Change-Id: I47dc1e62f5575a75fd2e9e78085146b079c49187
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190616
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 16:55:12 +02:00
Noel Grandin c6fc4b1bee drop BitmapEx support in dibtools
now that all the call sites can use Bitmap

Change-Id: I7013da15eb18e200db389d6139c3ba65b162aac4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190614
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 15:17:27 +02:00
Noel Grandin 57092d1877 BitmapEx->Bitmap in vcl/qa/
This means some of the tests are now testing Bitmap, even
though the test name is "BitmapExTest", but the tests are
useful, and we are going to retire BitmapEx soon.

One of the unit tests needed tweaking, because Bitmap
uses pre-multiplied alpha, which means the color
information is lost when alpha==0

Change-Id: Ie1040d309c33645982d058271b36d8dc601fd03f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190612
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 14:17:46 +02:00
Noel Grandin fc124142eb BitmapEx->Bitmap in various comments
leftovers from earlier conversions

Change-Id: Ia6df2a70eb1eed25dbdcc45654a6466177f0ddfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190610
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-05 11:18:39 +02:00
Noel Grandin c8d666c1ef drop BitmapEx method in BitmapFilter
since we can use Bitmap now

Change-Id: I8711511e1194792de088a0093680b8e577be6a8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190603
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 09:16:28 +02:00
Noel Grandin d00361bbb9 loplugin:unusedmethods
Change-Id: I89922f71f6bc7120410a8710e51240dd548f0fd7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190578
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-04 17:59:37 +02:00
Noel Grandin aba63efcdb converting the SalGraphics backend from BitmapEx->Bitmap (3)
pass a single SalBitmap in drawTransformedBitmap

Change-Id: Iacb67804e47867f4ab85b394b14f052807925b75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190498
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-04 17:06:46 +02:00
Noel Grandin 7f35303c31 remove setters from MetaAction classes
to make it obvious these are constructed once and then (mostly) not changed

Change-Id: Iebba987736755bdb0974c9adf9cd333ac004c574
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190584
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-04 17:06:26 +02:00
Noel Grandin 8472f70312 create_render_virtual_device is unused
since
    commit 3275aca2e8
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Thu Aug 21 17:14:36 2025 +0200
    tdf#167812 Calc in Dark mode: font dropdown shows white rectangles (GTK3)

Change-Id: I88078d712d82e41deaa4995eeb9ba6b6c66bc25e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190577
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-04 15:03:09 +02:00
Noel Grandin 06cc9c200a MenuButton::SetDelayMenu is unused
since
    commit d925df3929
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Sat Jul 26 10:11:50 2025 +0200
    tdf#130857 weld: Drop unused weld::MenuToggleButton

Change-Id: I82003551b0c8f61cb3d4e930935fa675ef770eb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190576
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-04 14:04:41 +02:00
Kurt Nordback 33bbf0bd20 tdf#167941 - Chart style file is not supported in OOXML
Parse the style*.xml file in the OOXML package, and store the imported
styles in XChartDocument via a new XChartStyle. Some areas are yet to be
fleshed out, but the intent here is to get a review of the general approach
and architecture. This includes no work on the export side (or the UI and
application of styles to a chart, which is a separate but related project).

Change-Id: I9d5b9f5aa44fb7944b2d971edc26e04dc2256c7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189531
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2025-09-03 16:54:45 +02:00
Noel Grandin 9a7a93122e we have not used 1-bit bitmaps internally for a while
Change-Id: If5a15fb7cc5198a898da0ca44557befa88c70a7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190536
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-03 16:34:50 +02:00
László Németh 45ec7bd761 tdf#168251 cui offapi xmloff sw glyph scaling: extend UNO/UX/ODF
Add new paragraph justification options "Minimum glyph scaling"
and "Maximum glyph scaling" to improve typography, like DTP software
do, allowing to typeset visually better paragraphs, especially narrow
columns without unacceptably big word spacing.

* Add spin boxes to Alignment in paragraph formatting dialog window;

* Store properties in paragraph model:

  css::style::ParagraphProperties::ParaPropScaleWidthMinimum

  css::style::ParagraphProperties::ParaPropScaleWidthMaximum

  Note: desired glyph scaling is already supported by ODF/UNO,
  see css::style::CharacterProperties::CharScaleWidth.

* Implement visual layout of minimum and maximum glyph scaling,
  limited by the available extra word spacing and letter spacing,
  too.

  Note: last line can exceed the paragraph width, because minimum
  glyph scaling, also minimum letter scaling of the last line
  haven't been applied there, yet.

* Add ODF import/export (loext:text-scale-maximum and
  loext:text-scale-minimum, where style:text-scale is for the
  desired text scaling).

* Add ODF unit test.

Note: hyphenated lines, lines with multiple portions haven't
been using custom glyph scaling, yet.

Note: resolution of glyph scaling is 1 percent, which will
avoid of overgeneration of font types using variable fonts.

Change-Id: I9b4576dde4303437b64e37202c47f888f94c3f67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190534
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2025-09-03 15:22:37 +02:00
Noel Grandin 2c179e7225 BitmapEx->Bitmap in some of the OutputDevice::Draw methods
now that most of the client code is using Bitmap

Change-Id: I9370f388afba5d3ad1628d42309fa70ab44f7812
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190499
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-03 12:36:43 +02:00