Age | Commit message (Collapse) | Author |
|
At least since
Change-Id: I52c40acf2024b25b0cd713fd7c91d7e0b59f4663
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 9 11:55:26 2024 +0200
icon choice ctrl: Drop WB_ALIGN_TOP
, it's quite clear that the `WB_ALIGN_LEFT`
is always set, so drop the flag and code paths
only relevant if the flag were not set.
Change-Id: If736ffc386833d3ff188d4174baf36bd2bcca57e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170209
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
The `WB_ALIGN_TOP` flag is never set, last
code path that would have set it (but was
apparently already unused back then) was dropped in
commit 80bf2654d72995f6b13c5addcd7c5e89ec76b0d9
Author: Caolán McNamara <caolanm@redhat.com>
Date: Mon Jun 23 15:34:02 2014 +0100
meChoicePos is always PosLeft, simplify
Change-Id: I40085b0db89484f0d24ecaccf910f4399198294d
Therefore, drop the flag and all related code
altogether.
Change-Id: I52c40acf2024b25b0cd713fd7c91d7e0b59f4663
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170208
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
`SvtIconChoiceCtrl` doesn't override any of these methods,
so there's no need to explicitly call the base class
implementations.
(And `Control` also doesn't implement them, so the
`Window` base class implementations are used anyway.)
Change-Id: I8196a568433416e10c2d0d50fad64b4525577679
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170207
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Change-Id: Iba5a475399589c9e2c4fd485d613f0dedfe0dc44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170215
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
|
|
Change-Id: I799129a3449ebcbb7b7005b933349cd2e6287860
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170185
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
|
|
if ((nIndex != 0 || nLen != text.getLength()) && !skipGlyphSubsets)
seems unlikely to protect us from this:
/opt/rh/devtoolset-12/root/usr/include/c++/12/string_view:239: constexpr const std::basic_string_view<_CharT, _Traits>::value_type& std::basic_string_view<_CharT, _Traits>::operator[](size_type) const [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; const_reference = const char16_t&; size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
coolwsd[16958] ... SIG Fatal signal received: SIGABRT code: 18446744073709551610 for address: 0x7300004e16
SalLayoutGlyphsCache::GetLayoutGlyphs(VclPtr<OutputDevice const>, rtl::OUString const&, int, int, long, vcl::text::TextLayoutCache const*)
/home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/vcl/source/gdi/impglyphitem.cxx:399
GetTextArray(OutputDevice const&, rtl::OUString const&, KernArray&, int, int, bool, vcl::text::TextLayoutCache const*)
/home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/include/rtl/ref.hxx:128
SwFntObj::GetTextSize(SwDrawTextInfo&)
/home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/txtnode/fntcache.cxx:766
SwSubFont::GetTextSize_(SwDrawTextInfo&)
/home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/txtnode/swfont.cxx:1022
SwTextSizeInfo::GetTextSize() const
/home/collabora/jenkins/workspace/build_core_co-24.04_for_online_snapshot/sw/source/core/inc/swfont.hxx:314
blind fix - but seeing a lot of these.
Change-Id: Icb6ca25e4b8c6ef8a5e5b89dfa01b56bb788378d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168539
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
|
|
When pasting content with URL to remote content behind
basic authentication - we ask for user and password.
That dialog didn't have LOKNotifier set. It's new case
because we create the dialog controller and we setup the
window id = 0, later when we run the dialog we did correct
setup of LOKNotifier and id was changed to eg. 7.
Then client had out of sync identifier because we already sent
the old value. Setup the "default" notifier directly in
weld_dialog to avoid that.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7b6ceef722f7f9827b1fb41cc0229b0170693d1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170159
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170192
Tested-by: Jenkins
|
|
Change-Id: I7cecc8a0ced4a9889cf9efd78d7c0341a78c9b4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170195
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
|
|
and
cid#1554729 COPY_INSTEAD_OF_MOVE
Change-Id: I39b5e679ea0adf7d3ab543d828730067aef273f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170191
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
|
|
- rename action: rendered_combobox_entry -> rendered_entry
- change generic get json property callback to more specialized
image getter as it wasn't used anywhere apart of that and we need
image enceded as base64 only not JSON
- add to the full update of icon view "ondemand" property to the entries
with images so LOK client will know it has to download the render
- it will be possible to support HiDPI renders in the future: added TODO
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I83a6e91133f8f9cb03e0bc794b51e1947435fa90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169622
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170160
Tested-by: Jenkins
|
|
Paragraph tag is a possible parent element for the Figure tag.
Figure tag and (any structure element) may have a value of “inline”
as a placement attribute and thus, may be a child of a Paragraph tag.
Change-Id: Ie1e0221976dbcfbae9ff01b1c9b76dd2d2e7edcb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170015
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
|
|
since:
commit 5b57fe250108a9ea30b87e40e306af8a79043354
Date: Sun Mar 31 00:07:58 2024 +0900
vcl: clean-up and refactor GraphicFilter::ImportUnloadedGraphic
Change-Id: Iea3438863df4ac23860cea403d1633a1d3892970
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170099
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
|
|
Change-Id: I3234bce1f3b71f10529d5874552566d7abcb3a95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170077
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
|
|
Change-Id: Ie85947371df087495a80179e4e0f2f660877e368
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166277
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
|
|
Change-Id: I69c1cf65415546811777ec3df914db3596887db6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166276
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
|
|
It's not really needed - it sets values to defaults, which are
already set.
Change-Id: If61edace7975cd438d86ee9774535c0f14868fd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166275
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
|
|
Change-Id: I844d0bfcdb5b16d0e6e06499ceac2add0e26bb9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170046
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
|
|
Change-Id: I991ea6869a22476d793bf301183ccc984d411a49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170020
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
|
|
- Remove code duplication - Z decompress with a helper function.
- Split up the code to make it better readable.
- Default status to ERRCODE_GRFILTER_FILTERERROR and only return
ERRCODE_NONE on success.
Change-Id: I27c1ba6198120c66d5348702a6af1ffbfa7c5031
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166274
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
|
|
Change-Id: Ia56514e83e09c6747f582117e77de89f69495862
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170034
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
|
|
Change-Id: I37126d2d77a7a80168bd5ab08fa26e8eabfa22cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170055
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
|
|
Some operations, like DrawViewShell::Activate, trigger FuDraw::ForcePointer.
The latter may call SdrView::PickAnything to test if the pointer is over an
object. In SdrMarkView::CheckSingleSdrObjectHit, the bound rectangle of the
object is tested first, which doesn't need the object's deep processing. If
the point in in the rectangle, the object is processed further, which may
render the object. The hit test is performed using a tolerance.
Commit 56a1f9bea2f1b64dee4111ec6671caf42ef63c91 (sd: extend test to check
the PDF pages aren't rendered when loaded, 2020-03-26) made sure that the
rendering doesn't happen in the LOK mode. In that mode, the mouse position
is unchanged from the values set in the ImplFrameData ctor. Previously it
was enough for the test, that the initial position was [-1, -1], which made
the point outside of the bounding rectangle of the objects. But an upcoming
fix for the map mode calculations makes tolerance large enough to consider
the point inside the rectangle, which triggers rendering and fails the test.
This change makes the default position [-32767, -32737], which should be
reliably outside of the tested rectangle.
Change-Id: Ie1142729448f7ac3c628880140f123cde66b404e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170005
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
|
|
Don't include the header when building without
`--enable-cpdb`, as the code there is CPDB-specific.
This prepares for Biswadeep's pending Gerrit change series
starting at [1] that implements CPDB support using
the CPDB C API, and includes the corresponding
header. (See CI failure [2] due to missing headers
when not building CPDB without this change in place.)
[1] https://gerrit.libreoffice.org/c/core/+/168633/5
[2] https://ci.libreoffice.org/job/gerrit_linux_gcc_release/168688/consoleFull#1916232175cd06c086-ffd7-48da-8ce2-d58b9387379c
Change-Id: I8b5395d2ad45d50c63c2dbdd0a5459890fc6f6a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170001
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Change-Id: Id187ef0b7d1d705dfc45a806fc6db459a278fdcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170000
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|
|
Limiting the contour wrapping polygon to only opaque pixels
causes clipping of any shadows or other semi-transaprent
areas in the image. So, instead of testing for fully opaque
pixels, treat pixels that are not fully transparent as opaque.
Also, tdf#161833 would cause semi-transparent pixels to be
treated as fully transparent pixels when calculating the wrap
contour for an image. To force the correct contour when loading
a document, force the contour to be recalculated by ignoring
the saved polygon if the contour is set to "recreate on edit".
Change-Id: Ibe256f54e1c82de30c2b7d5b92a69344b4a7ba10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169745
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
|
|
(soffice:40467): Gtk-CRITICAL **: 11:08:58.517: gtk_assistant_set_page_has_padding: assertion 'child != NULL' failed
(soffice:40467): Gtk-WARNING **: 11:59:34.471: ../../../gtk/gtkcontainer.c:1348: container class 'GtkHeaderBar' has no child property named 'expand'
Regression from 2f3f1170a7ae8bb06c6cd66a8ba3eb85cc63c2ac
Resave with newer Glade version
Change-Id: I9fd86af43149f2ea6bd25e63c1c04360fdae0bcf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169987
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
|
|
and
cid#1607649 Copy-paste error
Change-Id: I9b0bfc1b2403ecaa514b6086bc5a4c37b0fdf7ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169981
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
|
|
The previous `if (bSelected)` body a little bit further
up in `SvxIconChoiceCtrl_Impl::PaintEntry` already
has
rRenderContext.DrawRect(CalcFocusRect(pEntry));
to draw a border around the selected entry.
One border is enough, so don't draw another one
using
`vcl::RenderTools::DrawSelectionBackground`
(pass false instead of true for the `bDrawBorder` param).
For the gen and the Qt-based VCL plugins that use
Cairo rendering by default, this avoids the
additional misplaced and not properly cleared selection
rectangle.
See tdf#144981 comment 6 for where the problematic
handling in the Cairo rendering path is, but which also
mentions that changing this would break other things.
For then gen VCL plugin using Skia (`SAL_FORCESKIA=1`)
or on Windows, I see no visual change for either the
"Hyperlink" dialog (Ctrl+K) or the "Page Style" dialog
(Alt+Shift+P) in Writer with this change in place while
moving focus between entries.
On Windows, when moving focus out of the icon choice
control (into the tab page), the border now remains
black on all sides instead of being partially black
(at least the top border) and partially blue (at least
the bottom border), so it's more consistent there as well
now.
Change-Id: I6db415344e9276ce89d41c6b40fb93fc38ddf9a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169972
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
* Drop superfluous check at the start. (Loop will
just do nothing if there are no elements.)
* Use range-based for.
Change-Id: Idbe0ba67268cf76d38b27fcf94e59eb8abd5f566
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169971
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Since
commit 35775e291d6570b29dc0120e4839c720152b5149
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 12:34:57 2024 +0200
tdf#161853 Drop now unused SvxIconChoiceCtrl_Impl::SelectRect etc.
, that flag is never set, so there's no need to check
for that. Drop it.
Change-Id: Ibc2efdfc9b54c19bb90c2e71cc80e0cb4a0321a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169970
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
This mechanism to manually sort the entries by setting
a link/pointer to the neighbours isn't actually used, so
drop the code to maintain a linked list.
See
Change-Id: I44eceb41866bb6d99ccea032f98637a42dabc9ee
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Wed Jul 3 10:44:46 2024 +0200
tdf#161853 Drop always null SvxIconChoiceCtrl_Impl::pHead
Change-Id: Ib939145999725232d803103dc1fd0b49fa2d425a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169916
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
Unused since:
Change-Id: I4a412389669f9cbc6701b7ed78bd45f838e13590
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Wed Jul 3 10:34:20 2024 +0200
tdf#161853 Drop unused SvxIconChoiceCtrl_Impl::{Set,Find}EntryPredecessor
Change-Id: I3688c74d0cdf01c68913767f6aa214c54ab719cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169915
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
With
Change-Id: I13ae34ffc51972bef746e53fcd46e65ea9fbf82c
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Wed Jul 3 10:38:56 2024 +0200
tdf#161853 Drop unused SvxIconChoiceCtrl_Impl::InitPredecessors
in place, it can be seen that `SvxIconChoiceCtrl_Impl::pHead`
is always nullptr as it's initialized to that and never
assigned a different value afterwards.
Therefore, drop it and all related code.
Drop the now unused `bKeepPredecessors` param
from `SvxIconChoiceCtrl_Impl::Arrange` and
`SvxIconChoiceCtrl_Impl::ImpArrange`.
(Use `git show --ignore-space change` to more clearly
see the "actual changes").
Change-Id: I44eceb41866bb6d99ccea032f98637a42dabc9ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169914
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
Unused since:
Change-Id: I4a412389669f9cbc6701b7ed78bd45f838e13590
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Wed Jul 3 10:34:20 2024 +0200
tdf#161853 Drop unused SvxIconChoiceCtrl_Impl::{Set,Find}EntryPredecessor
Change-Id: I13ae34ffc51972bef746e53fcd46e65ea9fbf82c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169913
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Both methods are unused since:
Change-Id: I926b03a0f2054c21f8ab96eeee0083156443d2c0
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Wed Jul 3 10:17:41 2024 +0200
tdf#161853 Drop unused SvxIconChoiceCtrl_Impl::SetEntryPos
Further cleanup will be done in following commits.
Change-Id: I4a412389669f9cbc6701b7ed78bd45f838e13590
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169912
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Unused since:
Change-Id: I63ab1272140a0d5386538e6b749ba0f652f49c38
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Wed Jul 3 10:15:27 2024 +0200
tdf#161853 Drop SvxIconViewFlags::POS_MOVED
Change-Id: I926b03a0f2054c21f8ab96eeee0083156443d2c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169911
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
The flag is never set, so there's no need to
check or clear it either.
Change-Id: I63ab1272140a0d5386538e6b749ba0f652f49c38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169910
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
The flag is never set, so there's no need to
check or clear it either.
The only method setting it
(`SvxIconChoiceCtrl_Impl::LockEntryPos`) was dropped in
commit 18d18c8a5646868a8229dea9ffe3f46888c2bad5
Author: Joseph Powers <jpowers27@cox.net>
Date: Sat Jul 23 07:16:14 2011 -0700
unusedcode.easy: svxIconChoiceCtrl_Impl
Doing List cleanup, I ran into SaveSelection() and decided to delete it.
While I was in the class, I went ahead and cleanup them all up.
, but that method was already unused by then.
Drop the flag and related code.
Change-Id: I9b886f3a63444d502ef8c488437889a2b05e065a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169909
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
It's initialized to true and since
Change-Id: I0c6f191017b13fffee57d1e5eba1c03c05736ee2
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Wed Jul 3 09:09:22 2024 +0200
tdf#161853 icon choice ctrl: Drop WB_SMART_ARRANGE handling
, the value never changes, so drop it and simplify
accordingly.
Change-Id: I05007727e29a7884165fa25c668f139a96b7c4c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169905
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
That flag is unused since `OApplicationIconControl`
was ported away from using `SvtIconChoiceCtrl` in
commit fd2ea8e03510c6a99ec8be6228b7422f6c5b182b
Date: Wed Aug 19 14:59:33 2020 +0100
weld OApplicationSwapWindow
, so drop it.
Change-Id: I0c6f191017b13fffee57d1e5eba1c03c05736ee2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169904
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
Since
commit af9413cb4ad49c0b4854c08cc2804644220755ae
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 11:53:27 2024 +0200
tdf#161853 icon choice ctrl: Drop support for non-single selection modes
, the `IconChoiceFlags::DownDeselect` and `IconChoiceFlags::DownCtrl`
flags are never set, so `SvxIconChoiceCtrl_Impl::MouseButtonUp`
wouldn't effectively do anything.
Drop it and the now unused flags.
Also drop the `SvtIconChoiceCtrl` override for
`Control::MouseButtonUp`.
Change-Id: I06808726389f31a426cba36e627b4305fb362bee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169903
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Since
commit af9413cb4ad49c0b4854c08cc2804644220755ae
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 11:53:27 2024 +0200
tdf#161853 icon choice ctrl: Drop support for non-single selection modes
, `SvxIconChoiceCtrl_Impl::bHighlightFramePressed` is always
false, so drop it and the corresponding handling.
This also means that the `bKeepHighlightFlags` param
for `SvxIconChoiceCtrl_Impl::SetEntryHighlightFrame`
is now unused, so drop that as well.
Change-Id: I278318b2bda14b06339a375b683a49f8594e2e34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169902
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Previously, DrawingLayer would apply RTL flags in the case of RTL text,
but it would not clear them in the case of LTR text.
In certain situations, it is possible for Writer to draw the contents of
a text box while the VCL output device is configured for RTL output. As
a result, whether DrawingLayer correctly drew LTR text as LTR would
depend on the order that text was rendered. This issue would manifest as
text boxes appearing to spontaneously mirror themselves while zooming
and scrolling through Writer documents containing RTL text.
This change updates the relevant portion of DrawingLayer to also clear
the RTL flags in the case of LTR text.
Change-Id: I3a75561d08cdf3ee6c74b8f6e62f75a1dfcf165e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169942
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
|
|
Support for anything except single selection mode was dropped
in
Change-Id: I0acde664d695571e9058b9829ad02745a4abaad2
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 11:53:27 2024 +0200
tdf#161853 icon choice ctrl: Drop support for non-single selection modes
, so the selection count will usually be 1.
The only use is in `SvxIconChoiceCtrl_Impl::GetFirstSelectedEntry`,
and should it be possible for no entry to be selected,
that will still return `nullptr` anyway.
Change-Id: I46562b448b59ba7013ff2e98cfba5925347e01a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169886
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
`SvtIconChoiceCtrl` and its implementation class,
`SvxIconChoiceCtrl_Impl`, is only used in `VerticalTabControl`.
That one sets the `WB_HIGHLIGHTFRAME` bit, so the code path
using the asynchronous handling in
`SvxIconChoiceCtrl_Impl::CallSelectHandler` never gets used.
The comment in there also explains that this should happen
synchronously in case of single-select mode, which is by now
the only implemented mode.
Therefore, drop the asynchronous handling altogether.
Change-Id: I238f3bb26b590df32f6dc7e67c402b2fb1762a62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169879
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
That bit is never set, so drop it.
Change-Id: Iffa13bd0a679505bdc47bc3fb5d828969ac9eb1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169878
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
`SvxIconChoiceCtrl_Impl::SelectRect` is unused since:
Change-Id: Ifd60c030b91636acc58298f0e7b97b69c1312be1
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 12:02:05 2024 +0200
tdf#161853 Simplify SvxIconChoiceCtrl_Impl::SetCursor_Impl
Drop it, and drop the `GetHotSpot` helper that was only
used by it.
Also drop `SvxIconChoiceCtrl_Impl::aCurSelectionRect`
that is by now only written to, but never read.
Change-Id: I1fb833acce1d4a0d96c45bca2eda2d5969baff77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169877
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
Unused since:
Change-Id: Ifd60c030b91636acc58298f0e7b97b69c1312be1
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 12:02:05 2024 +0200
tdf#161853 Simplify SvxIconChoiceCtrl_Impl::SetCursor_Impl
Change-Id: I770e859e1bfd3610413f125cbfa3de0a9be4e66a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169876
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|
|
`SvxIconChoiceCtrl_Impl::AddSelectedRect` is unused since
Change-Id: Ifd60c030b91636acc58298f0e7b97b69c1312be1
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 12:02:05 2024 +0200
tdf#161853 Simplify SvxIconChoiceCtrl_Impl::SetCursor_Impl
That means that no rects are ever added to
`SvxIconChoiceCtrl_Impl::aSelectedRectList`, so drop
it and the methods to manage its content.
Change-Id: Ia2221ab2d4e8319e8fd103c7e4e02c4fdf5926fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169875
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
|
|
Unused since:
Change-Id: I0acde664d695571e9058b9829ad02745a4abaad2
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Tue Jul 2 11:53:27 2024 +0200
tdf#161853 icon choice ctrl: Drop support for non-single selection modes
Also drop the now unused `SvxIconChoiceCtrl_Impl::pAnchor`.
Change-Id: I70351b1ad37a691ba18bf981972f97ab981cbe1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169874
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
|