diff options
author | Martin van Zijl <martin.vanzijl@gmail.com> | 2020-06-06 15:57:54 +1200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-11-18 13:55:59 +0100 |
commit | a6e1647612cc3d39e8a6e44c9365ccecb1da2fe6 (patch) | |
tree | f829fd2cba346dc8f0c01b90ced05da884d6accf /sc/inc | |
parent | 87946f2cfb2626d648ca4df2b0a5d026626e24f5 (diff) |
tdf#34686 calc: add option to disable paste with enter key
Change-Id: Ie20a8931a16f6609ac5be23032a0b2e3a7ad1784
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95627
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/inputopt.hxx | 3 | ||||
-rw-r--r-- | sc/inc/sc.hrc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/inputopt.hxx b/sc/inc/inputopt.hxx index 4cff5d14cf48..52811ee93c5c 100644 --- a/sc/inc/inputopt.hxx +++ b/sc/inc/inputopt.hxx @@ -38,6 +38,7 @@ private: bool bTextWysiwyg; bool bReplCellsWarn; bool bLegacyCellSelection; + bool bEnterPasteMode; public: ScInputOptions(); @@ -68,6 +69,8 @@ public: bool GetReplaceCellsWarn() const { return bReplCellsWarn; } void SetLegacyCellSelection(bool bSet) { bLegacyCellSelection = bSet; } bool GetLegacyCellSelection() const { return bLegacyCellSelection; } + void SetEnterPasteMode(bool bSet) { bEnterPasteMode = bSet; } + bool GetEnterPasteMode() const { return bEnterPasteMode; } }; // CfgItem for input options diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc index b493545ec810..e80825624dea 100644 --- a/sc/inc/sc.hrc +++ b/sc/inc/sc.hrc @@ -113,6 +113,8 @@ // misc: #define SID_LINKS (SC_VIEW_START + 60) #define SID_INSERT_SMATH (SC_VIEW_START + 63) +// Put this here since all available slots for "SC_INPUT" are taken +#define SID_SC_INPUT_ENTER_PASTE_MODE (SC_VIEW_START + 64) #define SID_MIRROR_VERTICAL (SC_VIEW_START + 65) #define SID_MIRROR_HORIZONTAL (SC_VIEW_START + 66) #define SID_CELL_FORMAT_RESET (SC_VIEW_START + 67) |