ooo-build r14560 - in branches/ooo-build-3-0: . patches/vba



Author: noelpwer
Date: Thu Nov 20 14:13:53 2008
New Revision: 14560
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14560&view=rev

Log:
2008-11-20  Noel Power <noel power novell com>

        * patches/vba/enhanced-form-userform-controls.diff: n#447015



Modified:
   branches/ooo-build-3-0/ChangeLog
   branches/ooo-build-3-0/patches/vba/enhanced-form-userform-controls.diff

Modified: branches/ooo-build-3-0/patches/vba/enhanced-form-userform-controls.diff
==============================================================================
--- branches/ooo-build-3-0/patches/vba/enhanced-form-userform-controls.diff	(original)
+++ branches/ooo-build-3-0/patches/vba/enhanced-form-userform-controls.diff	Thu Nov 20 14:13:53 2008
@@ -1331,7 +1331,7 @@
  
  
  using namespace ::com::sun::star;
-@@ -42,6 +51,60 @@ using ::rtl::OUString;
+@@ -42,6 +51,67 @@ using ::rtl::OUString;
  namespace xmlscript
  {
  
@@ -1345,13 +1345,14 @@
 +
 +    if ( xFac.is() && xBinding.is() )
 +    {
-+         Reference< beans::XPropertySet > xConvertor( xFac->createInstance( OUSTR( "com.sun.star.table.CellAddressConversion" )), uno::UNO_QUERY );  
-+        Reference< beans::XPropertySet > xBindable( xBinding->getValueBinding(), UNO_QUERY );
-+        if ( xBindable.is() )
++        try
 +        {
-+            table::CellAddress aAddress; 
-+	    try
++            Reference< beans::XPropertySet > xConvertor( xFac->createInstance( OUSTR( "com.sun.star.table.CellAddressConversion" )), uno::UNO_QUERY );  
++            Reference< beans::XPropertySet > xBindable( xBinding->getValueBinding(), UNO_QUERY );
++            if ( xBindable.is() )
 +            {
++                table::CellAddress aAddress; 
++
 +                xBindable->getPropertyValue( OUSTR("BoundCell") ) >>= aAddress; 
 +                xConvertor->setPropertyValue( OUSTR("Address"), makeAny( aAddress ) );
 +                rtl::OUString sAddress;
@@ -1362,29 +1363,35 @@
 +                OSL_TRACE( "*** Bindable value %s", rtl::OUStringToOString( sAddress, RTL_TEXTENCODING_UTF8 ).getStr() ); 
 +               
 +            }
-+            catch( Exception& e )
-+            {
-+            }
++        }
++        catch( uno::Exception& )
++        {
 +        }
 +    }
 +    Reference< form::binding::XListEntrySink > xEntrySink( _xProps, UNO_QUERY );
 +    if ( xEntrySink.is() )
 +    {
-+        Reference< beans::XPropertySet > xListSource( xEntrySink->getListEntrySource(), UNO_QUERY );
-+        if ( xListSource.is() )
++        try
 +        {
-+            Reference< beans::XPropertySet > xConvertor( xFac->createInstance( OUSTR( "com.sun.star.table.CellRangeAddressConversion" )), uno::UNO_QUERY );  
++            Reference< beans::XPropertySet > xListSource( xEntrySink->getListEntrySource(), UNO_QUERY );
++            if ( xListSource.is() )
++            {
++                Reference< beans::XPropertySet > xConvertor( xFac->createInstance( OUSTR( "com.sun.star.table.CellRangeAddressConversion" )), uno::UNO_QUERY );  
 +
-+            table::CellRangeAddress aAddress; 
-+            xListSource->getPropertyValue( OUSTR( "CellRange" ) ) >>= aAddress;
++                table::CellRangeAddress aAddress; 
++                xListSource->getPropertyValue( OUSTR( "CellRange" ) ) >>= aAddress;
 +
-+            rtl::OUString sAddress;
-+            xConvertor->setPropertyValue( OUSTR("Address"), makeAny( aAddress ) );
-+            xConvertor->getPropertyValue( OUSTR("PersistentRepresentation") ) >>= sAddress;
-+            OSL_TRACE("**** cell range source list %s",
-+                rtl::OUStringToOString( sAddress, RTL_TEXTENCODING_UTF8 ).getStr() ); 
-+            if ( sAddress.getLength() > 0 );
-+                rModel.addAttribute( OUSTR(XMLNS_DIALOGS_PREFIX ":source-cell-range"), sAddress );
++                rtl::OUString sAddress;
++                xConvertor->setPropertyValue( OUSTR("Address"), makeAny( aAddress ) );
++                xConvertor->getPropertyValue( OUSTR("PersistentRepresentation") ) >>= sAddress;
++                OSL_TRACE("**** cell range source list %s",
++                    rtl::OUStringToOString( sAddress, RTL_TEXTENCODING_UTF8 ).getStr() ); 
++                if ( sAddress.getLength() > 0 );
++                    rModel.addAttribute( OUSTR(XMLNS_DIALOGS_PREFIX ":source-cell-range"), sAddress );
++            }
++        }
++        catch( uno::Exception& )
++        {
 +        }
 +    }
 +



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]