diff options
author | Daniel Rentz <dr@openoffice.org> | 2002-08-15 08:29:12 +0000 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2002-08-15 08:29:12 +0000 |
commit | 73b2cd61f9ee66918e76393425c5f075f4d3c679 (patch) | |
tree | da5c2eac270dfa389d9efaa36a58e80b92e12c16 /sc/source/ui/dbgui/asciiopt.cxx | |
parent | c5a1dc53955eecee3cef582c55a87dc429997d7d (diff) |
#101677# accessibility for CSV import
Diffstat (limited to 'sc/source/ui/dbgui/asciiopt.cxx')
-rw-r--r-- | sc/source/ui/dbgui/asciiopt.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx index d6c4500f1e2d..1a096a72ac8e 100644 --- a/sc/source/ui/dbgui/asciiopt.cxx +++ b/sc/source/ui/dbgui/asciiopt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: asciiopt.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: dr $ $Date: 2002-08-01 12:48:29 $ + * last change: $Author: dr $ $Date: 2002-08-15 09:28:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -172,24 +172,22 @@ void ScAsciiOptions::SetColInfo( USHORT nCount, const xub_StrLen* pStart, const } -void ScAsciiOptions::SetColumnInfo( const ScCsvExtColPosVec& rColPosVec, const ScCsvExtColTypeVec& rColTypeVec ) +void ScAsciiOptions::SetColumnInfo( const ScCsvExpDataVec& rDataVec ) { - DBG_ASSERT( rColPosVec.size() == rColTypeVec.size(), "ScAsciiOptions::SetColInfo - vector sizes not equal" ); - delete[] pColStart; pColStart = NULL; delete[] pColFormat; pColFormat = NULL; - nInfoCount = static_cast< sal_uInt16 >( rColPosVec.size() ); + nInfoCount = static_cast< sal_uInt16 >( rDataVec.size() ); if( nInfoCount ) { pColStart = new xub_StrLen[ nInfoCount ]; pColFormat = new sal_uInt8[ nInfoCount ]; for( sal_uInt16 nIx = 0; nIx < nInfoCount; ++nIx ) { - pColStart[ nIx ] = rColPosVec[ nIx ]; - pColFormat[ nIx ] = rColTypeVec[ nIx ]; + pColStart[ nIx ] = rDataVec[ nIx ].mnIndex; + pColFormat[ nIx ] = rDataVec[ nIx ].mnType; } } } |