diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-24 12:37:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-25 08:40:00 +0200 |
commit | 271bd3522e1148c0260688a42fd78959225db8cb (patch) | |
tree | 4bed1e26667e9609a0973205420e1e26c666da8b /sc/source/ui/docshell/dbdocimp.cxx | |
parent | 6cb3884898a39f57bcb30b2663a258e3971083fe (diff) |
convert DataAccessDescriptorProperty to scoped enum
Change-Id: Ifb8fb1d28464f0638ec1485d77ad333b1acc667c
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r-- | sc/source/ui/docshell/dbdocimp.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx index 33ca862a8d7b..7c91d1d462a9 100644 --- a/sc/source/ui/docshell/dbdocimp.cxx +++ b/sc/source/ui/docshell/dbdocimp.cxx @@ -88,8 +88,8 @@ void ScDBDocFunc::ShowInBeamer( const ScImportParam& rParam, SfxViewFrame* pFram svx::ODataAccessDescriptor aSelection; aSelection.setDataSource(rParam.aDBName); - aSelection[svx::daCommand] <<= rParam.aStatement; - aSelection[svx::daCommandType] <<= nType; + aSelection[svx::DataAccessDescriptorProperty::Command] <<= rParam.aStatement; + aSelection[svx::DataAccessDescriptorProperty::CommandType] <<= nType; xControllerSelection->select(uno::makeAny(aSelection.createPropertyValueSequence())); } @@ -158,15 +158,15 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, sal_Int32 nListCount = 0; uno::Sequence<uno::Any> aSelection; - if ( pDescriptor && pDescriptor->has(svx::daSelection) ) + if ( pDescriptor && pDescriptor->has(svx::DataAccessDescriptorProperty::Selection) ) { - (*pDescriptor)[svx::daSelection] >>= aSelection; + (*pDescriptor)[svx::DataAccessDescriptorProperty::Selection] >>= aSelection; nListCount = aSelection.getLength(); if ( nListCount > 0 ) { bDoSelection = true; - if ( pDescriptor->has(svx::daBookmarkSelection) ) - bBookmarkSelection = ScUnoHelpFunctions::GetBoolFromAny( (*pDescriptor)[svx::daBookmarkSelection] ); + if ( pDescriptor->has(svx::DataAccessDescriptorProperty::BookmarkSelection) ) + bBookmarkSelection = ScUnoHelpFunctions::GetBoolFromAny( (*pDescriptor)[svx::DataAccessDescriptorProperty::BookmarkSelection] ); if ( bBookmarkSelection ) { // From bookmarks, there's no way to detect if all records are selected. @@ -177,8 +177,8 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, } uno::Reference<sdbc::XResultSet> xResultSet; - if ( pDescriptor && pDescriptor->has(svx::daCursor) ) - xResultSet.set((*pDescriptor)[svx::daCursor], uno::UNO_QUERY); + if ( pDescriptor && pDescriptor->has(svx::DataAccessDescriptorProperty::Cursor) ) + xResultSet.set((*pDescriptor)[svx::DataAccessDescriptorProperty::Cursor], uno::UNO_QUERY); // ImportDoc - also used for Redo ScDocument* pImportDoc = new ScDocument( SCDOCMODE_UNDO ); |