[Libreoffice-bugs] [Bug 33201] UI: Highlight (not select) current row and column in spreadsheet

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jul 17 21:45:00 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=33201

--- Comment #45 from Eike Rathke <erack at redhat.com> ---
(In reply to Heiko Tietze from comment #42)
> Sounds like a good enhancement. We should make it optional in both on/off
> and color. Tools > Options > Calc > View: "[x] Highlight col/row <Blue>"
> (default color ideally taken from the system theme).
Marked selection is already blue, so that should be something different.

> shortcut. Perhaps alt+space
No, because Alt+Space opens the window menu in at least GNOME and other window
managers.


(In reply to Heiko Tietze from comment #44)
> Was looking into the code but it seems to be a tricky thing. We could use
> either ScOutputData::DrawBackground() or ScOutputData::DrawGrid()
Anything ScOutputData would be wrong because it's not related to data at all,
nor styles. It also wouldn't be a background.

Take a look at ScTabView::MarkRows() and ScTabView::MarkColumns(), which are
called for .uno:SelectRow and .uno:SelectColumn, it would be almost the same
(without the actual mark and selection of course) and should be a
HighlightOverlay added to the OverlayManager, similar to the SelectionOverlay
that is updated from InitBlockMode() as ScGridWindow::UpdateSelectionOverlay(),
e.g. like UpdateHighlightOverlay() and so on. They could share a great portion
of code.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210717/f99b8f75/attachment.htm>


More information about the Libreoffice-bugs mailing list