diff options
-rw-r--r-- | officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu | 5 | ||||
-rw-r--r-- | sw/inc/cmdid.h | 2 | ||||
-rw-r--r-- | sw/sdi/_textsh.sdi | 5 | ||||
-rw-r--r-- | sw/sdi/swriter.sdi | 17 | ||||
-rw-r--r-- | sw/source/uibase/shells/txtcrsr.cxx | 4 |
5 files changed, 33 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu index 56512b9ece26..568a093e3ea4 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu @@ -2077,6 +2077,11 @@ <value xml:lang="en-US">Select Word</value> </prop> </node> + <node oor:name=".uno:SelectSentence" oor:op="replace"> + <prop oor:name="Label" oor:type="xs:string"> + <value xml:lang="en-US">Select Sentence</value> + </prop> + </node> <node oor:name=".uno:NumberFormatStandard" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">Number Format: Standard</value> diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h index 30b0f44b0e23..9e4794dc7c3a 100644 --- a/sw/inc/cmdid.h +++ b/sw/inc/cmdid.h @@ -698,6 +698,8 @@ #define SID_JUMP_TO_SPECIFIC_PAGE (FN_SELECTION + 92) #define SID_TRACK_CHANGES_BAR (FN_SELECTION + 93) /* shows/hides track changes bar */ +#define FN_SELECT_SENTENCE (FN_SELECTION + 94) /* select paragraph*/ + // QUERY-Block #define FN_TXTATR_INET (FN_QUERY +29) /* INet-Attribut */ diff --git a/sw/sdi/_textsh.sdi b/sw/sdi/_textsh.sdi index b1615db79a55..e90b752eec17 100644 --- a/sw/sdi/_textsh.sdi +++ b/sw/sdi/_textsh.sdi @@ -449,6 +449,11 @@ interface BaseText ExecMethod = ExecMove ; StateMethod = NoState ; ] + FN_SELECT_SENTENCE // status(final|play) + [ + ExecMethod = ExecMove ; + StateMethod = NoState ; + ] // Goto - Methods diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index 5f1ae9e9e09e..9ccc84af77ff 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -5077,6 +5077,23 @@ SfxVoidItem SelectWord FN_SELECT_WORD GroupId = SfxGroupId::Navigator; ] +SfxVoidItem SelectSentence FN_SELECT_SENTENCE +() +[ + AutoUpdate = FALSE, + FastCall = TRUE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = FALSE, + ToolBoxConfig = FALSE, + GroupId = SfxGroupId::Navigator; +] + SfxVoidItem SendAbstractToStarImpress FN_ABSTRACT_STARIMPRESS () [ diff --git a/sw/source/uibase/shells/txtcrsr.cxx b/sw/source/uibase/shells/txtcrsr.cxx index f080cf845c9d..43f0690ba609 100644 --- a/sw/source/uibase/shells/txtcrsr.cxx +++ b/sw/source/uibase/shells/txtcrsr.cxx @@ -154,6 +154,10 @@ void SwTextShell::ExecMove(SfxRequest &rReq) case FN_SELECT_WORD: bRet = rSh.SelNearestWrd(); break; + case FN_SELECT_SENTENCE: + rSh.SelSentence( nullptr ); + bRet = true; + break; case SID_SELECTALL: rSh.SelAll(); bRet = true; |