View | Details | Raw Unified | Return to issue 119514
Collapse All | Expand All

(-)sc/source/filter/excel/xlpivot.cxx (-2 / +12 lines)
Lines 91-99 Link Here
91
void XclPCItem::SetError( sal_uInt16 nError )
91
void XclPCItem::SetError( sal_uInt16 nError )
92
{
92
{
93
    meType = EXC_PCITEM_ERROR;
93
    meType = EXC_PCITEM_ERROR;
94
    //! TODO convert error to string
95
    maText.Erase();
94
    maText.Erase();
96
    mnError = nError;
95
    mnError = nError;
96
    switch( nError )
97
    {
98
    case 0x00: maText = String::CreateFromAscii("#NULL!"); break;
99
    case 0x07: maText = String::CreateFromAscii("#DIV/0!"); break;
100
    case 0x0F: maText = String::CreateFromAscii("#VALUE!" ); break;
101
    case 0x17: maText = String::CreateFromAscii("#REF!"); break;
102
    case 0x1D: maText = String::CreateFromAscii("#NAME?"); break;
103
    case 0x24: maText = String::CreateFromAscii("#NUM!" ); break;
104
    case 0x2A: maText = String::CreateFromAscii("#N/A"); break;
105
    default: break;
106
    }
97
}
107
}
98
108
99
void XclPCItem::SetBool( bool bValue )
109
void XclPCItem::SetBool( bool bValue )
Lines 130-136 Link Here
130
140
131
const String* XclPCItem::GetText() const
141
const String* XclPCItem::GetText() const
132
{
142
{
133
    return (meType == EXC_PCITEM_TEXT) ? &maText : 0;
143
    return (meType == EXC_PCITEM_TEXT || meType == EXC_PCITEM_ERROR) ? &maText : NULL;
134
}
144
}
135
145
136
const double* XclPCItem::GetDouble() const
146
const double* XclPCItem::GetDouble() const

Return to issue 119514