summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/dbdocimp.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-06-05 13:23:11 +0000
committerNiklas Nebel <nn@openoffice.org>2001-06-05 13:23:11 +0000
commit5ab392b8c426a34cd0a679b0400b171592d77128 (patch)
treeea105387739f07029c2b10a6c75f6c35ac037ed2 /sc/source/ui/docshell/dbdocimp.cxx
parentb283bebe0e2c03d186b729c3673788814c97ff7a (diff)
#87775# DoImportUno: Selection is now Sequence<Any>
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r--sc/source/ui/docshell/dbdocimp.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx
index 5adb9913b6c4..d497a2050770 100644
--- a/sc/source/ui/docshell/dbdocimp.cxx
+++ b/sc/source/ui/docshell/dbdocimp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbdocimp.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: sab $ $Date: 2001-02-14 15:31:48 $
+ * last change: $Author: nn $ $Date: 2001-06-05 14:23:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -161,7 +161,7 @@ BOOL ScDBDocFunc::DoImportUno( const ScAddress& rPos,
aImParam.bImport = TRUE;
uno::Reference<sdbc::XResultSet> xResSet;
- uno::Sequence<sal_Int32> aSelection;
+ uno::Sequence<uno::Any> aSelection;
rtl::OUString aStrVal;
const beans::PropertyValue* pPropArray = aArgs.getConstArray();
@@ -206,8 +206,9 @@ BOOL ScDBDocFunc::DoImportUno( const ScAddress& rPos,
long nSelLen = aSelection.getLength();
for (i = 0; i < nSelLen; i++)
{
- long nEntry = aSelection[i];
- aList.Insert( (void*)nEntry, LIST_APPEND );
+ sal_Int32 nEntry;
+ if ( aSelection[i] >>= nEntry )
+ aList.Insert( (void*)nEntry, LIST_APPEND );
}
BOOL bAddrInsert = FALSE; //!???