Kaydet (Commit) 180a0688 authored tarafından heiko tietze's avatar heiko tietze Kaydeden (comit) Heiko Tietze

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: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
Tested-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
üst 8712344c
......@@ -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>
......
......@@ -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 */
......
......@@ -445,6 +445,11 @@ interface BaseText
StateMethod = NoState ;
]
SID_SELECTALL // status(final|play)
[
ExecMethod = ExecMove ;
StateMethod = NoState ;
]
FN_SELECT_SENTENCE // status(final|play)
[
ExecMethod = ExecMove ;
StateMethod = NoState ;
......
......@@ -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
()
[
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment