Tag: cws_src680_dba24d User: fs Date: 2007-11-08 21:30:22+0000 Modified: dba/dbaccess/source/ui/uno/copytablewizard.cxx
Log: some resource ids for the strings which are to be put into a resource (which happens in CWS dba24lms) File Changes: Directory: /dba/dbaccess/source/ui/uno/ ======================================= File [changed]: copytablewizard.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/uno/copytablewizard.cxx?r1=1.1.2.1&r2=1.1.2.2 Delta lines: +16 -18 --------------------- --- copytablewizard.cxx 2007-11-08 14:18:16+0000 1.1.2.1 +++ copytablewizard.cxx 2007-11-08 21:30:20+0000 1.1.2.2 @@ -4,9 +4,9 @@ * * $RCSfile: copytablewizard.cxx,v $ * - * $Revision: 1.1.2.1 $ + * $Revision: 1.1.2.2 $ * - * last change: $Author: fs $ $Date: 2007/11/08 14:18:16 $ + * last change: $Author: fs $ $Date: 2007/11/08 21:30:20 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -399,7 +399,7 @@ ) throw IllegalArgumentException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "The destination database does not support views." ) ), - // TODO: resource + // TODO: resource: STR_CTW_NO_VIEWS_SUPPORT *this, 1 ); @@ -435,8 +435,8 @@ if ( _newPrimaryKey.IsPresent && !OCopyTableWizard::supportsPrimaryKey( m_xDestConnection ) ) throw IllegalArgumentException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "The destination database does not support primary keys" ) ), - // TODO: resource + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "The destination database does not support primary keys." ) ), + // TODO: resource: STR_CTW_NO_PRIMARY_KEY_SUPPORT *this, 1 ); @@ -592,7 +592,7 @@ { throw IllegalArgumentException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "no data access descriptor found, or no data access descriptor able to provide all necessary information" ) ), - // TODO: resource + // TODO: resource: STR_CTW_INVALID_DATA_ACCESS_DESCRIPTOR *const_cast< CopyTableWizard* >( this ), _nArgPos + 1 ); @@ -638,8 +638,8 @@ break; default: throw IllegalArgumentException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Only tables and queries are supported at the moment" ) ), - // TODO: resource + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Only tables and queries are supported at the moment." ) ), + // TODO: resource: STR_CTW_ONLY_TABLES_AND_QUERIES_SUPPORT *const_cast< CopyTableWizard* >( this ), 1 ); @@ -872,7 +872,7 @@ { ::dbtools::throwGenericSQLException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "The copy source's result set must support bookmarks." ) ), - // TODO: resource + // TODO: resource: STR_CTW_COPY_SOURCE_NEEDS_BOOKMARKS *const_cast< CopyTableWizard* >( this ) ); } @@ -1021,7 +1021,7 @@ default: { ::rtl::OUString aMessage( RTL_CONSTASCII_USTRINGPARAM( "Unsupported source column type ($type$) at column position $pos$." ) ); - // TODO: resource + // TODO: resource: STR_CTW_UNSUPPORTED_COLUMN_TYPE aMessage.replaceAt( aMessage.indexOfAsciiL( "$type$", 6 ), 6, ::rtl::OUString::valueOf( aSourceColTypes[ nSourceColumn ] ) ); aMessage.replaceAt( aMessage.indexOfAsciiL( "$pos$", 5 ), 5, ::rtl::OUString::valueOf( nSourceColumn ) ); @@ -1130,8 +1130,8 @@ if ( _rArguments.getLength() != 2 ) throw IllegalArgumentException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "expecting 2 parameters" ) ), - // TODO: resource + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Illegal number of initialization parameters." ) ), + // TODO: resource: STR_CTW_ILLEGAL_PARAMETER_COUNT *this, 1 ); @@ -1141,17 +1141,15 @@ Reference< XPropertySet > xSourceDescriptor( impl_ensureDataAccessDescriptor_throw( _rArguments, 0, m_xSourceConnection ) ); m_xSourceObject = impl_extractSourceObject_throw( xSourceDescriptor, m_nCommandType ); - Reference< XPropertySet > xDestDescriptor( impl_ensureDataAccessDescriptor_throw( _rArguments, 1, m_xDestConnection ) ); - (void)xDestDescriptor; + impl_ensureDataAccessDescriptor_throw( _rArguments, 1, m_xDestConnection ); } catch( const RuntimeException& ) { throw; } catch( const IllegalArgumentException& ) { throw; } catch( const Exception& ) { - // TODO: try to handle those errors with the document's error handler? throw WrappedTargetException( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "error while obtaining a connection" ) ), - // TODO: resource + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "An error occured during initialization." ) ), + // TODO: resource: STR_CTW_ERROR_DURING_INITIALIZATION *this, ::cppu::getCaughtException() ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
