Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 07/24/2013 01:15 PM, Samuel Mehrbrodt wrote:
Hi Joel,

can you send a patch of your current modifications?
Maybe then someone could help you.

Sure - I actually made quite a bit more progress last night thanks to dtardon but it still needs work - attached is what I've done so far.

What needs done:
1. Currently as you can see if you go to view -> toolbars -> changes is that the buttons just have the text of the buttons not icons - how do I go about replacing the text with the appropriate icons?

2. Currently I haven't figured out how to do "Accept All" and "Reject All" buttons which would be a nice thing to include.


Help is appreciated. Thanks!


Best,
Joel
From abae53ea99a5e82dada9358f182367a74b5751fc Mon Sep 17 00:00:00 2001
From: Joel Madero <jmadero.dev@gmail.com>
Date: Wed, 24 Jul 2013 14:15:56 -0700
Subject: [PATCH] fdo#47677 - Add New Toolbar

This is the first patch which will add a toolbar for tracking changes so that users can easily turn 
on/off and accept/reject changes.

        modified:   officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
        modified:   officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
        modified:   officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
        modified:   officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu
        modified:   officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
        modified:   sc/UIConfig_scalc.mk
        modified:   sw/UIConfig_swriter.mk

        sc/uiconfig/scalc/toolbar/changes.xml
        sw/uiconfig/swriter/toolbar/changes.xml

Change-Id: Ib65e746d25c298a70f9dcb9f8996e055a2a99094
---
 .../org/openoffice/Office/UI/CalcWindowState.xcu   |   11 +++++++++++
 .../openoffice/Office/UI/WriterFormWindowState.xcu |   11 +++++++++++
 .../Office/UI/WriterGlobalWindowState.xcu          |   13 ++++++++++++-
 .../Office/UI/WriterReportWindowState.xcu          |   11 +++++++++++
 .../org/openoffice/Office/UI/WriterWindowState.xcu |   11 +++++++++++
 sc/UIConfig_scalc.mk                               |    1 +
 sw/UIConfig_swriter.mk                             |    1 +
 7 files changed, 58 insertions(+), 1 deletion(-)

diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
index 4b201a1..ad3268a 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
@@ -183,6 +183,17 @@
           <value>true</value>
         </prop>
       </node>
+      <node oor:name="private:resource/toolbar/changes" oor:op="replace">
+        <prop oor:name="UIName" oor:type="xs:string">
+          <value xml:lang="en-US">Changes</value>
+        </prop>
+        <prop oor:name="Docked" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+        <prop oor:name="Visible" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+      </node>
       <node oor:name="private:resource/toolbar/formcontrols" oor:op="replace">
         <prop oor:name="UIName" oor:type="xs:string">
           <value xml:lang="en-US">Form Controls</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
index 7514f1d..bb91c9b 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
@@ -269,6 +269,17 @@
           <value>true</value>
         </prop>
       </node>
+      <node oor:name="private:resource/toolbar/changes" oor:op="replace">
+        <prop oor:name="UIName" oor:type="xs:string">
+          <value xml:lang="en-US">Changes</value>
+        </prop>
+        <prop oor:name="Docked" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+        <prop oor:name="Visible" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+      </node>
       <node oor:name="private:resource/toolbar/formcontrols" oor:op="replace">
         <prop oor:name="UIName" oor:type="xs:string">
           <value xml:lang="en-US">Form Controls</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
index 665d500..4aaaf1d 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
@@ -289,6 +289,17 @@
           <value>true</value>
         </prop>
       </node>
+      <node oor:name="private:resource/toolbar/changes" oor:op="replace">
+        <prop oor:name="UIName" oor:type="xs:string">
+          <value xml:lang="en-US">Changes</value>
+        </prop>
+        <prop oor:name="Docked" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+        <prop oor:name="Visible" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+      </node>
       <node oor:name="private:resource/toolbar/formcontrols" oor:op="replace">
         <prop oor:name="UIName" oor:type="xs:string">
           <value xml:lang="en-US">Form Controls</value>
@@ -716,4 +727,4 @@
       </node>
     </node>
   </node>
-</oor:component-data>
+</oor:component-data>
\ No newline at end of file
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu
index 5f347a4..b1669f9 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.xcu
@@ -266,6 +266,17 @@
           <value>true</value>
         </prop>
       </node>
+      <node oor:name="private:resource/toolbar/changes" oor:op="replace">
+        <prop oor:name="UIName" oor:type="xs:string">
+          <value xml:lang="en-US">Changes</value>
+        </prop>
+        <prop oor:name="Docked" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+        <prop oor:name="Visible" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+      </node>
       <node oor:name="private:resource/toolbar/formcontrols" oor:op="replace">
         <prop oor:name="UIName" oor:type="xs:string">
           <value xml:lang="en-US">Form Controls</value>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
index 2c3d9c3..c940403 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
@@ -289,6 +289,17 @@
           <value>true</value>
         </prop>
       </node>
+      <node oor:name="private:resource/toolbar/changes" oor:op="replace">
+        <prop oor:name="UIName" oor:type="xs:string">
+          <value xml:lang="en-US">Changes</value>
+        </prop>
+        <prop oor:name="Docked" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+        <prop oor:name="Visible" oor:type="xs:boolean">
+          <value>false</value>
+        </prop>
+      </node>
       <node oor:name="private:resource/toolbar/formcontrols" oor:op="replace">
         <prop oor:name="UIName" oor:type="xs:string">
           <value xml:lang="en-US">Form Controls</value>
diff --git a/sc/UIConfig_scalc.mk b/sc/UIConfig_scalc.mk
index f14e8dc..25de89c 100644
--- a/sc/UIConfig_scalc.mk
+++ b/sc/UIConfig_scalc.mk
@@ -28,6 +28,7 @@ $(eval $(call gb_UIConfig_add_toolbarfiles,modules/scalc,\
        sc/uiconfig/scalc/toolbar/arrowshapes \
        sc/uiconfig/scalc/toolbar/basicshapes \
        sc/uiconfig/scalc/toolbar/calloutshapes \
+       sc/uiconfig/scalc/toolbar/changes \
        sc/uiconfig/scalc/toolbar/colorbar \
        sc/uiconfig/scalc/toolbar/drawbar \
        sc/uiconfig/scalc/toolbar/drawobjectbar \
diff --git a/sw/UIConfig_swriter.mk b/sw/UIConfig_swriter.mk
index 9a770d3..b464586 100644
--- a/sw/UIConfig_swriter.mk
+++ b/sw/UIConfig_swriter.mk
@@ -23,6 +23,7 @@ $(eval $(call gb_UIConfig_add_toolbarfiles,modules/swriter,\
        sw/uiconfig/swriter/toolbar/basicshapes \
        sw/uiconfig/swriter/toolbar/bezierobjectbar \
        sw/uiconfig/swriter/toolbar/calloutshapes \
+       sw/uiconfig/swriter/toolbar/changes \
        sw/uiconfig/swriter/toolbar/colorbar \
        sw/uiconfig/swriter/toolbar/drawbar \
        sw/uiconfig/swriter/toolbar/drawingobjectbar \
-- 
1.7.9.5


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.