Tag: cws_dev300_dba31b
User: oj      
Date: 2008-08-20 07:28:44+0000
Modified:
   dba/connectivity/source/commontools/CommonTools.cxx
   dba/connectivity/source/commontools/TIndexes.cxx
   dba/connectivity/source/commontools/TKeys.cxx

Log:
 #i53067# localize str

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: CommonTools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/CommonTools.cxx?r1=1.26&r2=1.26.56.1
Delta lines:  +2 -5
-------------------
--- CommonTools.cxx     2008-04-10 07:50:45+0000        1.26
+++ CommonTools.cxx     2008-08-20 07:28:41+0000        1.26.56.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: CommonTools.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.26.56.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -223,9 +223,6 @@
                                break;
                        default:
                                ;
-//                             throw( CannotConvertException( 
::rtl::OUString::createFromAscii("TYPE is not supported!"), Reference< 
XInterface > (),
-//                                                                             
   aDestinationClass, FailReason::TYPE_NOT_SUPPORTED, 0 ) );
-
                }
                return aRes;
        }

File [changed]: TIndexes.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/TIndexes.cxx?r1=1.12&r2=1.12.56.1
Delta lines:  +11 -3
--------------------
--- TIndexes.cxx        2008-04-10 07:56:54+0000        1.12
+++ TIndexes.cxx        2008-08-20 07:28:42+0000        1.12.56.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: TIndexes.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.56.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -64,6 +64,10 @@
 
 sdbcx::ObjectType OIndexesHelper::createObject(const ::rtl::OUString& _rName)
 {
+    Reference< XConnection> xConnection = m_pTable->getConnection();
+    if ( !xConnection.is() )
+        return NULL;
+
        sdbcx::ObjectType xRet;
        ::rtl::OUString aName,aQualifier;
        sal_Int32 nLen = _rName.indexOf('.');
@@ -133,6 +137,9 @@
 // XAppend
 sdbcx::ObjectType OIndexesHelper::appendObject( const ::rtl::OUString& 
_rForName, const Reference< XPropertySet >& descriptor )
 {
+    Reference< XConnection> xConnection = m_pTable->getConnection();
+    if ( !xConnection.is() )
+        return NULL;
        if ( m_pTable->isNew() )
         return cloneDescriptor( descriptor );
 
@@ -211,7 +218,8 @@
 // XDrop
 void OIndexesHelper::dropObject(sal_Int32 /*_nPos*/,const ::rtl::OUString 
_sElementName)
 {
-       if(!m_pTable->isNew())
+    Reference< XConnection> xConnection = m_pTable->getConnection();
+       if( xConnection.is() && !m_pTable->isNew())
        {
                ::rtl::OUString aName,aSchema;
                sal_Int32 nLen = _sElementName.indexOf('.');

File [changed]: TKeys.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/TKeys.cxx?r1=1.13&r2=1.13.30.1
Delta lines:  +7 -3
-------------------
--- TKeys.cxx   2008-06-06 13:17:27+0000        1.13
+++ TKeys.cxx   2008-08-20 07:28:42+0000        1.13.30.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: TKeys.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.30.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -140,6 +140,9 @@
 // XAppend
 sdbcx::ObjectType OKeysHelper::appendObject( const ::rtl::OUString& _rForName, 
const Reference< XPropertySet >& descriptor )
 {
+    Reference< XConnection> xConnection = m_pTable->getConnection();
+    if ( !xConnection.is() )
+        return NULL;
        if ( m_pTable->isNew() )
     {
                Reference< XPropertySet > xNewDescriptor( cloneDescriptor( 
descriptor ) );
@@ -263,7 +266,8 @@
 // XDrop
 void OKeysHelper::dropObject(sal_Int32 _nPos,const ::rtl::OUString 
_sElementName)
 {
-       if ( !m_pTable->isNew() )
+    Reference< XConnection> xConnection = m_pTable->getConnection();
+       if ( xConnection.is() && !m_pTable->isNew() )
        {
                ::rtl::OUString aSql    = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ALTER TABLE "));
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to