diff options
author | heiko tietze <tietze.heiko@gmail.com> | 2019-04-08 14:35:46 +0200 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2019-05-03 18:22:58 +0200 |
commit | 180a0688127fc2d3ee337a0c6e38fb573231f3b3 (patch) | |
tree | b79d2fa778f11f2a2e48f94c0853908e091484b6 /sw | |
parent | 8712344cf4c31f020ec9bc47f43994869d64ac08 (diff) |
Resolves: tdf#124552 - Sentence selection UNO action
UNO command SelectSentence / FN_SELECT_SENTENCE added
executing SelSentence()
Change-Id: Idcd528cf2915b30a59a9916dcff14d60d01dcd74
Reviewed-on: https://gerrit.libreoffice.org/70411
Tested-by: Jenkins
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sw')
-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 |
4 files changed, 28 insertions, 0 deletions
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; |