[Libreoffice-commits] .: patches/dev300

Noel Power noelp at kemper.freedesktop.org
Thu Nov 18 03:31:19 PST 2010


 patches/dev300/writer-navigation-buttons.diff |   50 +-------------------------
 1 file changed, 3 insertions(+), 47 deletions(-)

New commits:
commit b3b7d3a24ea1008e6c41f47020d3f171810d6cbe
Author: Noel Power <noel.power at novell.com>
Date:   Thu Nov 18 11:30:02 2010 +0000

    altrnative fix for n#654039 empty toolbar

diff --git a/patches/dev300/writer-navigation-buttons.diff b/patches/dev300/writer-navigation-buttons.diff
index 24916c6..c0e9f66 100644
--- a/patches/dev300/writer-navigation-buttons.diff
+++ b/patches/dev300/writer-navigation-buttons.diff
@@ -545,15 +545,14 @@ diff --git sw/source/ui/inc/shells.hrc sw/source/ui/inc/shells.hrc
 index 243c4fc..847d322 100644
 --- sw/source/ui/inc/shells.hrc
 +++ sw/source/ui/inc/shells.hrc
-@@ -102,7 +102,10 @@
+@@ -102,7 +102,9 @@
  
  #define RID_MEDIA_TOOLBOX         	(RC_SHELLS_BEGIN + 61)
  
 -#define SHELLS_ACT_END              RID_MEDIA_TOOLBOX
 +#define STR_SHELLNAME_NAVIGATION   (RC_SHELLS_BEGIN +  62)
-+#define RID_NAVIGATION_TOOLBOX     (RC_SHELLS_BEGIN +  63)
 +
-+#define SHELLS_ACT_END              RID_NAVIGATION_TOOLBOX
++#define SHELLS_ACT_END              STR_SHELLNAME_NAVIGATION
  
  #if SHELLS_ACT_END > RC_SHELLS_END
  #error Resource-Id Ueberlauf in #file, #line
@@ -638,7 +637,7 @@ new file mode 100644
 index 0000000..9f3a1ca
 --- /dev/null
 +++ sw/source/ui/shells/navsh.cxx
-@@ -0,0 +1,169 @@
+@@ -0,0 +1,168 @@
 +/*************************************************************************
 + *
 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -712,7 +711,6 @@ index 0000000..9f3a1ca
 +
 +SFX_IMPL_INTERFACE(SwNavigationShell, SwBaseShell, SW_RES(STR_SHELLNAME_NAVIGATION))
 +{
-+  SFX_OBJECTBAR_REGISTRATION(SFX_OBJECTBAR_OBJECT, SW_RES(RID_NAVIGATION_TOOLBOX));
 +}
 +
 +SwNavigationShell::SwNavigationShell(SwView &_rView):
@@ -808,48 +806,6 @@ index 0000000..9f3a1ca
 +      nWhich = aIter.NextWhich();
 +    }
 +}
-diff --git sw/source/ui/shells/shells.src sw/source/ui/shells/shells.src
-index 42b3b00..d9e783d 100644
---- sw/source/ui/shells/shells.src
-+++ sw/source/ui/shells/shells.src
-@@ -1030,6 +1030,37 @@ ToolBox RID_NUM_TOOLBOX
-     };
-     Scroll = TRUE ;
- };
-+
-+
-+ToolBox RID_NAVIGATION_TOOLBOX
-+{
-+  HelpID = HID_NAVIGATION_TOOLBOX ;
-+  Border = TRUE ;
-+  SVLook = TRUE ;
-+  Dockable = TRUE ;
-+  Moveable = TRUE ;
-+  Sizeable = TRUE ;
-+  Closeable = TRUE ;
-+  Zoomable = TRUE ;
-+  LineSpacing = TRUE ;
-+  Customize = TRUE ;
-+  MenuStrings = TRUE ;
-+  Scroll = TRUE ;
-+  ItemList =
-+    {
-+      ToolBoxItem
-+      {
-+	Identifier = FN_NAVIGATION_BACK ;
-+	HelpID = FN_NAVIGATION_BACK ;
-+      };
-+      ToolBoxItem
-+      {
-+	Identifier = FN_NAVIGATION_FORWARD ;
-+	HelpID = FN_NAVIGATION_FORWARD ;
-+      };    
-+    };
-+};
-+
- String STR_SHELLNAME_TEXT
- {
-         Text [ en-US ] = "Text" ;
 diff --git sw/source/ui/shells/textsh1.cxx sw/source/ui/shells/textsh1.cxx
 index f41d28c..760e4d7 100644
 --- sw/source/ui/shells/textsh1.cxx


More information about the Libreoffice-commits mailing list