[ooo-build-commit] .: patches/mono

Noel Power noelp at kemper.freedesktop.org
Wed Aug 18 10:10:01 PDT 2010


 patches/mono/component-support/examples/complextoolbar/MyProtocolHandler.cs   |    9 +++++++--
 patches/mono/component-support/examples/complextoolbar/monocomplextoolbar.oxt |binary
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 91bc2e03fd06518881bf2859bb77eb3102eeccfc
Author: Noel Power <noel.power at novell.com>
Date:   Wed Aug 18 18:10:52 2010 +0100

    fix some more bugs
    
    * patches/mono/component-support/examples/complextoolbar/MyProtocolHandler.cs:
    * patches/mono/component-support/examples/complextoolbar/monocomplextoolbar.oxt:

diff --git a/patches/mono/component-support/examples/complextoolbar/MyProtocolHandler.cs b/patches/mono/component-support/examples/complextoolbar/MyProtocolHandler.cs
index a0a60c0..a26aafa 100644
--- a/patches/mono/component-support/examples/complextoolbar/MyProtocolHandler.cs
+++ b/patches/mono/component-support/examples/complextoolbar/MyProtocolHandler.cs
@@ -94,7 +94,7 @@ public class MyProtocolHandler : uno.util.WeakBase, XDispatchProvider, XInitiali
     // XDispatchProvider
     public XDispatch queryDispatch( URL aURL, String sTargetFrameName, int nSearchFlags )
     {
-        Console.WriteLine( "***  MyProtocolHandler.queryDispatch ( URL.Protocol ) " + aURL.Protocol + " URL.Path " + aURL.Path );
+        Console.WriteLine( "***  here MyProtocolHandler.queryDispatch ( URL.Protocol ) " + aURL.Protocol + " URL.Path " + aURL.Path );
         XDispatch xRet = null ;
         if ( mxFrame == null )
             return null;
@@ -108,6 +108,12 @@ public class MyProtocolHandler : uno.util.WeakBase, XDispatchProvider, XInitiali
             try 
             {
                xView = (XSpreadsheetView )xCtrl;
+            }
+            catch ( System.Exception )
+            {
+            }
+            try 
+            {
                xCursor = ( XTextViewCursorSupplier )xCtrl;
             }
             catch ( System.Exception )
@@ -116,7 +122,6 @@ public class MyProtocolHandler : uno.util.WeakBase, XDispatchProvider, XInitiali
             if ( xCursor == null && xView == null )
                 // ohne ein entsprechendes Dokument funktioniert der Handler nicht
                 return xRet;
-            
 
             if ( aURL.Path == "Command1" ||
                  aURL.Path == "Command2" ||
diff --git a/patches/mono/component-support/examples/complextoolbar/monocomplextoolbar.oxt b/patches/mono/component-support/examples/complextoolbar/monocomplextoolbar.oxt
index 9546342..5282429 100644
Binary files a/patches/mono/component-support/examples/complextoolbar/monocomplextoolbar.oxt and b/patches/mono/component-support/examples/complextoolbar/monocomplextoolbar.oxt differ


More information about the ooo-build-commit mailing list