-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calc: Implement column row highlight feature #11014
Conversation
84283b8
to
6f8e8d4
Compare
To make this patch work we need this core patch : https://gerrit.libreoffice.org/c/core/+/180703 @pedropintosilva can you please help us here to add icon for I am looking into the web but haven't got anything solid yet... |
We need to create one that follows the same visual language as the others |
I commented in the core patch. It should be done more on online side (core only sends on/off). I guess something from this folder would help: https://github.com/CollaboraOnline/online/blob/master/browser/src/canvas/sections/OtherViewCellCursorSection.ts |
If there is a setting on the core side, we can save the toggle state on the core side. If there isn't a setting for this, then we may need to add one. Core side can be used to send only the toggle state, as Szymon suggested. For the drawing when toggle is on we can:
We need to test this with frozen panes, scrolled sheet, merged cells and hidden cells i think. Please let me know if this helps. Thank you. |
8d5655d
to
80d51ed
Compare
80d51ed
to
51bc4cb
Compare
Does that work after we used reference marks for formula selection?
I fear we need some update after we switch sheet, change cell selected (but I only looked at code) |
51bc4cb
to
1e40238
Compare
I works with formulas. Screencast.from.2025-02-03.16-50-56.webm |
83b551f
to
f311972
Compare
we can also load old value on app load, this can be done in UIManager, similar to other things:
|
f311972
to
dc78bc2
Compare
browser/src/docdispatcher.ts
Outdated
@@ -456,6 +456,12 @@ class Dispatcher { | |||
// https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft | |||
L.DomUtil.get('spreadsheet-tab-scroll').scrollLeft = 100000; | |||
}; | |||
this.actionsMap['.uno:ViewColumnRowHighlighting'] = function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please notice we don't use .uno
in dispatch commands to avoid confusion
06f2520
to
553ccf3
Compare
browser/src/docdispatcher.ts
Outdated
this.actionsMap['columnrowhighlight'] = function () { | ||
var newState = !app.map.uiManager.getHighlightMode(); | ||
app.map.uiManager.setHighlightMode(newState); | ||
if (newState) $('#colrowhighlight').addClass('selected'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these 2 lines shouldn't be needed (adding css class)
setHighlightMode should fire commandstatechange which will inform button about state change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good :) thanks
553ccf3
to
13dd66d
Compare
Signed-off-by: Gülşah Köse <[email protected]> Change-Id: I985b2fa7e4f59c44ca8cba00666959ff8c18d236
Signed-off-by: Darshan-upadhyay1110 <[email protected]> Change-Id: I35367e3763aa79624ec4e5ce887dc8380afd8d17
13dd66d
to
b37e08c
Compare
Change-Id: I985b2fa7e4f59c44ca8cba00666959ff8c18d236
Summary
TODO
Checklist
make prettier-write
and formatted the code.make check
make run
and manually verified that everything looks okay