summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc
diff options
context:
space:
mode:
authorPrintf Debugging <printfdebugging@gmail.com>2024-05-03 22:18:13 +0530
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2024-05-13 13:24:19 +0200
commit3eb427b31e624af9b2fe2bd68fee859d3d76a661 (patch)
tree412d7a29ce766fe5dc39703c8b5881b13e2c8a57 /sc/source/ui/inc
parent0ce15b8a86f950b0ee84a51c901f4261b64e7cf9 (diff)
Resolves tdf#63374 and tdf#160908
Show edit highlight only when arrow keys won't commit. Use shorter UI label. Edit mode can be activated in two major ways, in which arrow keys behave differently. a) F2 | double_click | edit > Cell Edit Mode, in which case, the arrow keys either move the caret "|" or "reference cell frame". b) just start typing on the cell, in which case, pressing arrow keys commit the change. Edit highlight should be shown in case "a" to differentiate between the two. If the cell has some background color, or multiselection, then highlight is not shown. Change-Id: I710aa641cd47e8ca279dd8bd0e3b4e857d1b0c40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167092 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r--sc/source/ui/inc/viewdata.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index 673ab2407bb9..7c79bb91d65f 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -329,6 +329,7 @@ private:
bool bPagebreak:1; // Page break preview mode
bool bSelCtrlMouseClick:1; // special selection handling for ctrl-mouse-click
bool bMoveArea:1;
+ bool bEditHighlight:1;
bool bGrowing;
sal_Int16 nFormulaBarLines; // Visible lines in the formula bar
@@ -569,6 +570,9 @@ public:
bool IsOutlineMode () const { return maOptions.GetOption(VOPT_OUTLINER); }
bool IsThemedCursor () const { return maOptions.GetOption(VOPT_THEMEDCURSOR); }
+ bool GetEditHighlight() const { return bEditHighlight; }
+ void SetEditHighlight(bool bNewHighlight) { bEditHighlight = bNewHighlight; }
+
/// Force page size for PgUp/PgDown to overwrite the computation based on m_aVisArea.
void ForcePageUpDownOffset(tools::Long nTwips) { m_nLOKPageUpDownOffset = nTwips; }
tools::Long GetPageUpDownOffset() const { return m_nLOKPageUpDownOffset; }