summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorSumit Chauhan <sumitcn25@gmail.com>2019-05-22 01:19:21 +0530
committerSzymon Kłos <szymon.klos@collabora.com>2019-06-10 19:18:22 +0200
commitc473c5b462f33df439b4b62b394c5d7811a05c7c (patch)
treea5a59b3dbf3fede8a2015c1765ef39f91f804c3c /officecfg
parentd85499381177bbd050ed85f66f4386d5f41db237 (diff)
Using registrymodifications.xcu for storing customized uiitem data
This patch store and render the GtkToolButton/GtkMenuButton of notebookbar*.ui show/hide property in registrymodifications.xcu. The patch also gives a solution to copy the notebookbar*.ui file in user directory from share directory provided file is absent in user directory.The patch also uses libxml2 library and write i.e change the property of uiitem(GtkToolButton/GtkMenuButton) in notebookbar*.ui files present in user directory. Change-Id: I518f37fc858250a04fafd2a4475e3ed03185f6ff Reviewed-on: https://gerrit.libreoffice.org/72698 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/ToolbarMode.xcu70
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/UI/ToolbarMode.xcs11
2 files changed, 81 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/ToolbarMode.xcu b/officecfg/registry/data/org/openoffice/Office/UI/ToolbarMode.xcu
index 28b38336294c..98f3cafc33ae 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/ToolbarMode.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/ToolbarMode.xcu
@@ -178,6 +178,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -206,6 +211,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -234,6 +244,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -265,6 +280,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -410,6 +430,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -438,6 +463,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -466,6 +496,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -494,6 +529,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -614,6 +654,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -642,6 +687,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -670,6 +720,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -734,6 +789,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -793,6 +853,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
@@ -824,6 +889,11 @@
<value>
</value>
</prop>
+ <prop oor:name="UIItemProperties">
+ <value oor:separator=";">
+ UIItemID , propertyName , propertyValue;
+ </value>
+ </prop>
<prop oor:name="Sidebar">
<value>Arrow</value>
</prop>
diff --git a/officecfg/registry/schema/org/openoffice/Office/UI/ToolbarMode.xcs b/officecfg/registry/schema/org/openoffice/Office/UI/ToolbarMode.xcs
index f97ec55e2dc8..b8c69f354398 100644
--- a/officecfg/registry/schema/org/openoffice/Office/UI/ToolbarMode.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/UI/ToolbarMode.xcs
@@ -64,6 +64,17 @@
<desc>List of visible toolbars activated by user.</desc>
</info>
</prop>
+ <prop oor:name="UIItemProperties" oor:type="oor:string-list" oor:nillable="false">
+ <info>
+ <desc>
+ List of context descriptors. Each context descriptor is a string that contains three comma
+ separated values (note that values are case sensitive):
+ 1. UIItemID - contains the ID of uiitem(GtkToolButton/GtkMenuItem) of notebookbar
+ 2. propertyName - contains the value of attibute(name) of property node.
+ 3. propertyValue - cotains the value of property node.
+ </desc>
+ </info>
+ </prop>
<prop oor:name="Sidebar" oor:type="xs:string" oor:nillable="false">
<info>
<desc>