summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/TableCopyHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 12:37:28 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commit271bd3522e1148c0260688a42fd78959225db8cb (patch)
tree4bed1e26667e9609a0973205420e1e26c666da8b /dbaccess/source/ui/misc/TableCopyHelper.cxx
parent6cb3884898a39f57bcb30b2663a258e3971083fe (diff)
convert DataAccessDescriptorProperty to scoped enum
Change-Id: Ifb8fb1d28464f0638ec1485d77ad333b1acc667c
Diffstat (limited to 'dbaccess/source/ui/misc/TableCopyHelper.cxx')
-rw-r--r--dbaccess/source/ui/misc/TableCopyHelper.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/dbaccess/source/ui/misc/TableCopyHelper.cxx b/dbaccess/source/ui/misc/TableCopyHelper.cxx
index 1b14e462b7c9..527072d59c04 100644
--- a/dbaccess/source/ui/misc/TableCopyHelper.cxx
+++ b/dbaccess/source/ui/misc/TableCopyHelper.cxx
@@ -140,37 +140,37 @@ void OTableCopyHelper::pasteTable( const svx::ODataAccessDescriptor& _rPasteData
OUString sSrcDataSourceName = _rPasteData.getDataSource();
OUString sCommand;
- _rPasteData[ daCommand ] >>= sCommand;
+ _rPasteData[ DataAccessDescriptorProperty::Command ] >>= sCommand;
Reference<XConnection> xSrcConnection;
- if ( _rPasteData.has(daConnection) )
+ if ( _rPasteData.has(DataAccessDescriptorProperty::Connection) )
{
- OSL_VERIFY( _rPasteData[daConnection] >>= xSrcConnection );
+ OSL_VERIFY( _rPasteData[DataAccessDescriptorProperty::Connection] >>= xSrcConnection );
}
Reference< XResultSet > xResultSet;
- if ( _rPasteData.has(daCursor) )
+ if ( _rPasteData.has(DataAccessDescriptorProperty::Cursor) )
{
- OSL_VERIFY( _rPasteData[ daCursor ] >>= xResultSet );
+ OSL_VERIFY( _rPasteData[ DataAccessDescriptorProperty::Cursor ] >>= xResultSet );
}
Sequence< Any > aSelection;
- if ( _rPasteData.has( daSelection ) )
+ if ( _rPasteData.has( DataAccessDescriptorProperty::Selection ) )
{
- OSL_VERIFY( _rPasteData[ daSelection ] >>= aSelection );
- OSL_ENSURE( _rPasteData.has( daBookmarkSelection ), "OTableCopyHelper::pasteTable: you should specify BookmarkSelection, too, to be on the safe side!" );
+ OSL_VERIFY( _rPasteData[ DataAccessDescriptorProperty::Selection ] >>= aSelection );
+ OSL_ENSURE( _rPasteData.has( DataAccessDescriptorProperty::BookmarkSelection ), "OTableCopyHelper::pasteTable: you should specify BookmarkSelection, too, to be on the safe side!" );
}
bool bBookmarkSelection( true );
- if ( _rPasteData.has( daBookmarkSelection ) )
+ if ( _rPasteData.has( DataAccessDescriptorProperty::BookmarkSelection ) )
{
- OSL_VERIFY( _rPasteData[ daBookmarkSelection ] >>= bBookmarkSelection );
+ OSL_VERIFY( _rPasteData[ DataAccessDescriptorProperty::BookmarkSelection ] >>= bBookmarkSelection );
}
OSL_ENSURE( bBookmarkSelection, "OTableCopyHelper::pasteTable: working with selection-indicies (instead of bookmarks) is error-prone, and thus deprecated!" );
sal_Int32 nCommandType = CommandType::COMMAND;
- if ( _rPasteData.has(daCommandType) )
- _rPasteData[daCommandType] >>= nCommandType;
+ if ( _rPasteData.has(DataAccessDescriptorProperty::CommandType) )
+ _rPasteData[DataAccessDescriptorProperty::CommandType] >>= nCommandType;
insertTable( sSrcDataSourceName, xSrcConnection, sCommand, nCommandType,
xResultSet, aSelection, bBookmarkSelection,