[Libreoffice-commits] core.git: officecfg/registry sw/inc sw/sdi sw/source

heiko tietze (via logerrit) logerrit at kemper.freedesktop.org
Fri May 3 16:24:14 UTC 2019


 officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu |    5 ++
 sw/inc/cmdid.h                                                      |    2 +
 sw/sdi/_textsh.sdi                                                  |    5 ++
 sw/sdi/swriter.sdi                                                  |   17 ++++++++++
 sw/source/uibase/shells/txtcrsr.cxx                                 |    4 ++
 5 files changed, 33 insertions(+)

New commits:
commit 180a0688127fc2d3ee337a0c6e38fb573231f3b3
Author:     heiko tietze <tietze.heiko at gmail.com>
AuthorDate: Mon Apr 8 14:35:46 2019 +0200
Commit:     Heiko Tietze <tietze.heiko at gmail.com>
CommitDate: Fri May 3 18:22:58 2019 +0200

    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 at gmail.com>
    Tested-by: Maxim Monastirsky <momonasmon at gmail.com>

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;


More information about the Libreoffice-commits mailing list