Revert "Fix #119514#:Item lists are incorrectly imported"

This reverts commit 2d3f9fb978.
This commit is contained in:
Xisco Fauli
2013-03-27 01:18:50 +01:00
parent 2d3f9fb978
commit 664dd908af
3 changed files with 4 additions and 14 deletions

View File

@@ -86,19 +86,9 @@ void XclPCItem::SetInteger( sal_Int16 nValue )
void XclPCItem::SetError( sal_uInt16 nError ) void XclPCItem::SetError( sal_uInt16 nError )
{ {
meType = EXC_PCITEM_ERROR; meType = EXC_PCITEM_ERROR;
//! TODO convert error to string
maText = rtl::OUString(); maText = rtl::OUString();
mnError = nError; mnError = nError;
switch( nError )
{
case 0x00: maText = "#NULL!"; break;
case 0x07: maText = "#DIV/0!"; break;
case 0x0F: maText = "#VALUE!"; break;
case 0x17: maText = "#REF!"; break;
case 0x1D: maText = "#NAME?"; break;
case 0x24: maText = "#NUM!"; break;
case 0x2A: maText = "#N/A"; break;
default: break;
}
} }
void XclPCItem::SetBool( bool bValue ) void XclPCItem::SetBool( bool bValue )
@@ -135,7 +125,7 @@ bool XclPCItem::IsEmpty() const
const rtl::OUString* XclPCItem::GetText() const const rtl::OUString* XclPCItem::GetText() const
{ {
return (meType == EXC_PCITEM_TEXT || meType == EXC_PCITEM_ERROR) ? &maText : NULL; return (meType == EXC_PCITEM_TEXT) ? &maText : 0;
} }
const double* XclPCItem::GetDouble() const const double* XclPCItem::GetDouble() const