[Libreoffice-commits] core.git: include/sfx2 officecfg/registry svx/sdi sw/sdi sw/source sw/uiconfig

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Wed Dec 25 23:14:49 UTC 2019


 include/sfx2/sfxsids.hrc                                            |    2 -
 officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu |    8 ++++
 svx/sdi/svx.sdi                                                     |   17 ++++++++++
 sw/sdi/_basesh.sdi                                                  |    6 +++
 sw/source/uibase/shells/basesh.cxx                                  |    3 +
 sw/uiconfig/sglobal/menubar/menubar.xml                             |    1 
 sw/uiconfig/swriter/menubar/menubar.xml                             |    1 
 7 files changed, 37 insertions(+), 1 deletion(-)

New commits:
commit ef6e2b50376ada302958bc982e3dd73d2e0821ca
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Sun Dec 1 11:00:28 2019 +0100
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu Dec 26 00:14:17 2019 +0100

    Add accessibility check to the Writer menu
    
    Change-Id: I7e4c3267288b238583822489c8098e64319dda16
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85819
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
    Tested-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc
index f7d77257350c..69b68db67fbc 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -432,7 +432,7 @@ class SvxSearchItem;
 // Used for redaction
 #define SID_SHAPE_NAME                      (SID_SFX_START + 808)
     // FREE: SID_SFX_START + 809
-    // FREE: SID_SFX_START + 810
+#define SID_ACCESSIBILITY_CHECK             (SID_SFX_START + 810)
 #define SID_ASYNCHRON                       (SID_SFX_START + 811)
 
 // default-ids for configuration
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
index 40ca50889208..584c0d0b7146 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
@@ -2926,6 +2926,14 @@
           <value>1</value>
         </prop>
       </node>
+      <node oor:name=".uno:AccessibilityCheck" oor:op="replace">
+        <prop oor:name="Label" oor:type="xs:string">
+          <value xml:lang="en-US">~Accessibility Check...</value>
+        </prop>
+        <prop oor:name="Properties" oor:type="xs:int">
+          <value>1</value>
+        </prop>
+      </node>
       <node oor:name=".uno:StylesMenu" oor:op="replace">
         <prop oor:name="Label" oor:type="xs:string">
           <value xml:lang="en-US">Styl~es</value>
diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi
index 9d1d9cbc8747..c2ceb08f7c0c 100644
--- a/svx/sdi/svx.sdi
+++ b/svx/sdi/svx.sdi
@@ -12201,3 +12201,20 @@ SfxVoidItem SpellCheckApplySuggestion SID_SPELLCHECK_APPLY_SUGGESTION
     ToolBoxConfig = FALSE,
     GroupId = SfxGroupId::Format;
 ]
+
+SfxVoidItem AccessibilityCheck SID_ACCESSIBILITY_CHECK
+()
+[
+    AutoUpdate = FALSE,
+    FastCall = FALSE,
+    ReadOnlyDoc = TRUE,
+    Toggle = FALSE,
+    Container = FALSE,
+    RecordAbsolute = FALSE,
+    RecordPerSet;
+
+    AccelConfig = FALSE,
+    MenuConfig = FALSE,
+    ToolBoxConfig = FALSE,
+    GroupId = SfxGroupId::Modify;
+]
diff --git a/sw/sdi/_basesh.sdi b/sw/sdi/_basesh.sdi
index ef4dd4413a1a..9726bcd44f81 100644
--- a/sw/sdi/_basesh.sdi
+++ b/sw/sdi/_basesh.sdi
@@ -586,4 +586,10 @@ interface BaseTextSelection
         ExecMethod = Execute;
         StateMethod = GetState;
     ]
+
+    SID_ACCESSIBILITY_CHECK
+    [
+        ExecMethod = ExecDlg;
+        DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
+    ]
 }
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 07ba572b15d2..d7f19331e1f7 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -2676,6 +2676,9 @@ void SwBaseShell::ExecDlg(SfxRequest &rReq)
             }
         }
         break;
+        case SID_ACCESSIBILITY_CHECK:
+        {}
+        break;
         default:OSL_FAIL("wrong Dispatcher (basesh.cxx)");
     }
     if(!bDone)
diff --git a/sw/uiconfig/sglobal/menubar/menubar.xml b/sw/uiconfig/sglobal/menubar/menubar.xml
index 7c5df550f5bf..e74fcb8f60ec 100644
--- a/sw/uiconfig/sglobal/menubar/menubar.xml
+++ b/sw/uiconfig/sglobal/menubar/menubar.xml
@@ -715,6 +715,7 @@
         </menu:menupopup>
       </menu:menu>
       <menu:menuitem menu:id=".uno:WordCountDialog" menu:style="text"/>
+      <menu:menuitem menu:id=".uno:AccessibilityCheck"/>
       <menu:menuseparator/>
       <menu:menu menu:id=".uno:AutoFormatMenu">
         <menu:menupopup>
diff --git a/sw/uiconfig/swriter/menubar/menubar.xml b/sw/uiconfig/swriter/menubar/menubar.xml
index bdfd44675517..b76352de27b9 100644
--- a/sw/uiconfig/swriter/menubar/menubar.xml
+++ b/sw/uiconfig/swriter/menubar/menubar.xml
@@ -723,6 +723,7 @@
         </menu:menupopup>
       </menu:menu>
       <menu:menuitem menu:id=".uno:WordCountDialog"/>
+      <menu:menuitem menu:id=".uno:AccessibilityCheck"/>
       <menu:menuseparator/>
       <menu:menu menu:id=".uno:AutoFormatMenu">
         <menu:menupopup>


More information about the Libreoffice-commits mailing list