summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2019-01-23 10:20:23 +0100
committerHeiko Tietze <tietze.heiko@gmail.com>2019-02-18 12:27:20 +0100
commit16bd9c99b8116f36e4f0825860e699d79cdf0d58 (patch)
treede7d4e3c183571d73a01bf7c0a5864ccb52b9e49 /sc
parent47819ba0534ce1893d5cb835c98147feacdf9faf (diff)
Resolves tdf#121596 - Include a key combination to insert thin spaces
uno:InsertNarrowNobreakSpace/ FN_INSERT_NNBSP added and asigned to shift+alt+space Change-Id: I20dd4159bc35ee378bee75af9734b1f25dfd8b1a Reviewed-on: https://gerrit.libreoffice.org/66776 Tested-by: Jenkins Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/global.hxx1
-rw-r--r--sc/sdi/editsh.sdi1
-rw-r--r--sc/source/ui/view/editsh.cxx3
-rw-r--r--sc/uiconfig/scalc/menubar/menubar.xml1
4 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 38406014c4a8..7acf8ec84a91 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -67,6 +67,7 @@ const sal_Unicode CHAR_LRM = 0x200E;
const sal_Unicode CHAR_RLM = 0x200F;
const sal_Unicode CHAR_NBHY = 0x2011;
const sal_Unicode CHAR_ZWNBSP = 0x2060;
+const sal_Unicode CHAR_NNBSP = 0x202F; //NARROW NO-BREAK SPACE
#define MINDOUBLE 1.7e-307
#define MAXDOUBLE 1.7e307
diff --git a/sc/sdi/editsh.sdi b/sc/sdi/editsh.sdi
index f854fe897191..23393e660a0f 100644
--- a/sc/sdi/editsh.sdi
+++ b/sc/sdi/editsh.sdi
@@ -93,6 +93,7 @@ interface TableText
FN_INSERT_SOFT_HYPHEN [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
FN_INSERT_HARDHYPHEN [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
FN_INSERT_HARD_SPACE [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
+ FN_INSERT_NNBSP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_INSERT_RLM [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_INSERT_LRM [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_INSERT_ZWSP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index d815cb19090d..1ca775cc4fb9 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -631,6 +631,9 @@ void ScEditShell::Execute( SfxRequest& rReq )
case FN_INSERT_HARD_SPACE:
lclInsertCharacter( pTableView, pTopView, CHAR_NBSP );
break;
+ case FN_INSERT_NNBSP:
+ lclInsertCharacter( pTableView, pTopView, CHAR_NNBSP );
+ break;
case SID_INSERT_RLM:
lclInsertCharacter( pTableView, pTopView, CHAR_RLM );
break;
diff --git a/sc/uiconfig/scalc/menubar/menubar.xml b/sc/uiconfig/scalc/menubar/menubar.xml
index 5aa7b4f8aae5..e9b93c238740 100644
--- a/sc/uiconfig/scalc/menubar/menubar.xml
+++ b/sc/uiconfig/scalc/menubar/menubar.xml
@@ -259,6 +259,7 @@
<menu:menuitem menu:id=".uno:InsertNonBreakingSpace"/>
<menu:menuitem menu:id=".uno:InsertHardHyphen"/>
<menu:menuitem menu:id=".uno:InsertSoftHyphen"/>
+ <menu:menuitem menu:id=".uno:InsertNarrowNobreakSpace"/>
<menu:menuitem menu:id=".uno:InsertZWSP"/>
<menu:menuitem menu:id=".uno:InsertZWNBSP"/>
<menu:menuitem menu:id=".uno:InsertLRM"/>