34 Commits
Author SHA1 Message Date
Sahil Gautam 767638ae57 tdf#151144 move 'Iterative References' frame to the right part of dlg
The `Tools > Options > Calc > Calculate` dialog tab page had a lot
of controls on the left half and very few on the right. This looked
unbalanced, since a lot of empty space was left on the right half.
Moving 'Iterative References' frame to the right side fixes this as
it covers quite a lot of that empty space making both halves less
unbalanced.

Change-Id: I98d484f71553cbdb5448ec13125329b4ce396871
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198331
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-04-20 17:40:39 +02:00
Sahil Gautam cb0000d742 tdf#151144 move OpenCL checkbox under 'CPU Threading Settings'
Change-Id: I1ef81a5de901f58d09eef95053cba83627b4b264
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198330
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2026-04-08 20:30:29 +02:00
Sahil Gautam d81d50be93 fix: tdf#167395 make lock work with hierarchies of dates
Most of the work is done in two helper functions MarkCheckedMembers
and UpdateVisibleMembers. The first one goes over all the visible
members in the autofilter dropdown and marks them in the internal
representation maMembers. Then the second one updates the visible
members in the dropdown based on user action i.e. search, or lock
check/uncheck.

Change-Id: I0f96eb2cfadf0934c6319ec6a239346a8d5483bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201098
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2026-03-16 14:59:56 +01:00
Sahil Gautam cf3bc0d74f Related: tdf#167395 don't disable the date entries unnecessarily
When the search string doesn't match any entry in the autofilter,
nothing is shown, but as the user presses backspace one character at a
time, at some point the search string matches some entries. But if those
entries are dates, they are shown as disabled, which is a bug.

Change-Id: I78efae6c8c312072c155757d596a0dce25dd9cb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201585
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2026-03-16 14:59:33 +01:00
Sahil Gautam 7d63f9fc61 Related: tdf#167395 refactor shared code into UpdateVisibleMembers
Change-Id: I40631c229d73ea4e0be55f087a396f179714adf4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201097
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2026-03-16 14:59:02 +01:00
Sahil Gautam 3c47aa01cc Related: tdf#167395 pass lowercase search text to loadSearchedMembers
This is for consistency. `SearchEditTimeoutHdl` also calls this
function and it passes the search text in lowercase, whereas
`LockCheckedHdl` passes the text as is depending on the internal
`.lowercase(...)` call. Since we only need the lowercase version of
the search text, we might as well make it consistent.

Change-Id: I84d165747bc9a91c5f7b75ef48509a1f9b2d5982
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201096
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2026-03-16 14:58:45 +01:00
Sahil Gautam f591aae910 Related: tdf#167395 add MarkCheckedMembers to mark checked entries
We have an iterator over the checked entries, MarkCheckedMembers maps
the visible & checked entries to maMembers (the internal vector of
members).

Change-Id: Ic5d882d8f65b886a9c8b81c1e53b7817383dfbf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201095
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2026-03-16 14:58:37 +01:00
Sahil Gautam 26c15c6f6b Related: tdf#167395 avoid crash by skipping the code when mbHasDates
This is part of the fix, the reason why it exists as a separate commit
is to make it easy to review. This patch only moves code by one
indentation level & having it with the "fix" would make the "fix" hard
to review.

Change-Id: I62338c41f4a056157d071cb5b3b7f3ba00deb46b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201094
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2026-03-16 14:58:26 +01:00
Sahil Gautam cace9f14e5 chore: git ignore gdb.txt file
With `set logging enabled on`, gdb prints the console to a file in the
cwd named `gdb.txt`

Change-Id: Ia1135d89134f0598ad3f288358e928ac70e5a749
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201584
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2026-03-16 14:58:18 +01:00
Sahil Gautam 32eba1359e tdf#170496 use dark checkered pattern in gallery in dark mode
Change-Id: I713cea8ddfeae77ce5fd88d7555011ca379ed592
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200793
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-03-06 06:34:22 +01:00
Sahil Gautam ef1acd9cba fix: don't use set_buildable_name with LOKit as it crashes
JSWidget::set_buildable_name isn't handled on the online side, it has
an assert(false) which is reached because of changes introduced in
commit f04247351a

Change-Id: Ie4942d0f38e2c8bbb784b0f7132f3c6da0d89bc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200610
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-03-03 09:31:32 +01:00
Sahil Gautam ee612f2c1b add whether partHasComments to the writer partInfo
Change-Id: Ia33910fbcf6609188299a9fbfb781f0b03322683
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199739
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2026-02-25 14:49:06 +01:00
Sahil Gautam dd345d5af0 chore: use unique context labels for the widgets
The below patch added `sidebargradients.ui` and it seems like this
file was based off `sidebarcellappearance.ui` as some widgets had
the exact same contexts as in `sidebarcellappearance.ui`. This broke
the builds due to duplication of `msgctxt` in the `.pot` translation
files.

https://gerrit.libreoffice.org/c/core/+/192043
I90b4f5368a552eb9ba399337a39e79455ea99fe6

Change-Id: I0f8e24aa52a2a77b87b2b685d22d7474736927af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200053
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2026-02-25 14:48:50 +01:00
Sahil Gautam d0038ca58e tdf#169839 Call ColorConfig_Impl::SetupTheme before showing the restartdlg
UI Theming are disabled by default so when the user enables it in the
Appearance dialog, we need to call `ColorConfig_Impl::SetupTheme()`
using an `EditableColorConfig` wrapper because `SetupTheme` loads the
colors from the registry into the static `ThemeColors` object which
is then used to query the newly loaded colors in various parts of the
application (where the widget drawing happens).

This automatically happens when the user presses on `Apply` as that
calls `SvxAppearanceTabPage::Reset` which creates a new instance of
`EditableColorConfig` which indirectly calls `SetupTheme`.

But when the user presses `Ok` directly, `SvxAppearanceTabPage::Reset`
isn't called, thus the restart dialog shows up with unreadable
buttons as the color of the buttons changed (because of how color
loading is implemented) but the button text being the same as the
last theme (because `SetupTheme` wasn't called). Therefore we call
`SetupTheme` to make sure that this case doesn't happen.

Change-Id: I3939d5ccca36905e3416b10b55c6e7be09efe7e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197700
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
2026-01-21 09:15:54 +01:00
Sahil Gautam a034a2bce6 Related tdf#167395: Add comments, make variable names readable
Change-Id: I3774e68549a86757912a78df6807aa11f8b3b97e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195064
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2025-12-11 13:21:41 +01:00
Sahil Gautam 4ea90e8942 Related tdf#167395: Remove unnecessary variable mbChecked
`mbMarked` is enough to determine which autofilter entries
are checked and should be locked when lock is toggled.

Change-Id: I1c85e07d69340a131a9e3b7d31def29aa6c6daaa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195063
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2025-12-11 13:21:30 +01:00
Sahil Gautam 3a51cd8cb3 Related tdf#167395: Formatting change
Change-Id: I77dd10f00c2a7d99034a97378b38379cf4eb4be5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195062
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2025-12-11 13:21:12 +01:00
Sahil Gautam b3fc9d9280 Related tdf#167395: Use descriptive variable name for returned value
Change-Id: Iac01f5632e1601aac63955db45b92e13cfca1e9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195061
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2025-12-11 13:21:03 +01:00
Sahil Gautam 3f4c2bd3e3 Related tdf#167395: Break out of the loop after the entry has been found
autofilter represents multiple instances of an entry as a single entry
in the filter popup for obvious reasons, so we need not loop over all
the entries to find other instances of the current entry.

Change-Id: I72b2c7bd141615ac0c50927dfa7784f9b569e9ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195060
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2025-12-11 13:20:48 +01:00
Sahil Gautam 4adef808cb sc: add uno command to select a comment in the navigator
Change-Id: I11916b11b5e13a5a0e8379f7ba361e8729c4f101
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192818
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
2025-10-28 14:12:37 +01:00
Sahil Gautam 9eb3f5d540 tdf#151144 add opencl controls to calc > calculate tab page
Change-Id: If2e42ba1a10fe289b691d4973ff524ded8f00daa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187559
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
Tested-by: Jenkins
2025-10-11 14:42:49 +02:00
Sahil Gautam ceb2254bb6 tdf#151144 replace threading/opencl labels with a generic calculation label
Change-Id: Ia23237f324e59a4ebee7b8fb17770856bb5d31ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191423
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
Tested-by: Jenkins
2025-10-11 14:39:31 +02:00
Sahil Gautam 6af18367f0 tdf#151144 remove opencl tab page
Change-Id: I3b50fff0c32becbd9b5b79d02c6921129adae009
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191422
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
2025-10-11 14:38:49 +02:00
Sahil Gautam 15f7be5f73 add uno command to select a comment in the navigator
Change-Id: Ifa79b2357af28f25810049cc5af4773914387d67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189057
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
Tested-by: Jenkins
2025-08-15 10:26:52 +02:00
Sahil Gautam 0881a030e1 improve code readability
Change-Id: I014ee9ba4483147593df069578c17ac0a7ebc184
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189497
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
2025-08-13 12:33:24 +02:00
Sahil Gautam 8fe92e9a17 refactor SwViewShell::GetReplacementBitmapSplit(bool)
Change-Id: I69365d0488078f268a2b23b7c4fbb2b9d4479ae9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189446
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-13 10:27:53 +02:00
Sahil Gautam 4b2f775d8d don't use the SLOT_ID directly, rather get it from a static getter
+ also mention the SLOT_ID for easier grepability

Change-Id: I91a4e148bccd31529c374edd64bac43db96f21bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188948
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
2025-08-06 14:16:14 +02:00
Sahil Gautam f8090e84e9 remove unneccessary getter for a public static member variable
Change-Id: Ief1ec41a89f4ca155bf8ab298ec39165cfeaacba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188913
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2025-08-05 12:58:35 +02:00
Sahil Gautam 2cd8914f91 spelling correction 'section -> selection'
Change-Id: Ie0ae470291e781f1976e4af3146a8484c9c6d5f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188738
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-08-01 13:00:32 +02:00
Sahil Gautam 14aea75381 tdf#123159 code cleanup in ScDocShell::Execute(SID_OPEN_HYPERLINK)
Change-Id: I74f39d9774251d93158ebbcffdc8682f72c484a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188621
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
Tested-by: Jenkins
2025-07-31 22:56:17 +02:00
Sahil Gautam fe5518051d tdf#123159 don't show 'open hyperlink' in context menu unneccessarily
14396a5361 extended
.uno:OpenHyperlinkOnCursor to open all the hyperlinks in the current
cell if not in edit mode (to make hyperlinks keyboard accessible), but
i forgot to add `SID_OPEN_HYPERLINK` entry to `ScDocShell::GetState()`
which caused this bug.

now we check for both the cases if the cell has hyperlink(s) or not
and disable the slot if it doesn't so that we don't re-run the logic
in the execute function unneccessary.

Change-Id: I378996d776903ab53d6370d19ace9d3c730f3e85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188620
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
2025-07-31 22:55:54 +02:00
Sahil Gautam 6ece875046 calc: add parameters to .uno:InsertFunction
+ move the formula insertion logic from sidebar to the uno command
+ use the unoCommand with parameters in the sidebar code

Change-Id: Ib211b9829e39bdd6dcc6d0e1f2afac6671fa1c8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188221
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
2025-07-29 00:07:10 +02:00
Sahil Gautam d641ed812c tdf#167315 remove slide control buttons from impress notebookbar home tab
buttons such as duplicate slides and insert new slide belong to the
insert tab and the layout dropdown button belogs to the layout tab. this
patch doesn't add back layout dropdown button as the sidebar already
provides that functionality and we plan to later add preview dropdowns
for such controls.

Change-Id: Idef33133e2699bbfd913e303a4d92591f5a22c16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187369
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Sahil Gautam <sahil.gautam@collabora.com>
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
2025-07-09 10:19:05 +02:00
Sahil Gautam f4f588775b use 'r' prefix for elements passed by reference instead of 'a'
Change-Id: I3ab8d0a4346f7706c532880e00dfeb079e92c651
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186804
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil.gautam@collabora.com>
2025-06-23 09:31:52 +02:00