LibreOffice Module sc (master)  1
Public Member Functions | Protected Types | Protected Attributes | List of all members
XclImpCachedValue Class Reference

This class stores one cached value of a cached value list (used for instance in CRN, EXTERNNAME, tArray). More...

#include <xihelper.hxx>

Public Member Functions

 XclImpCachedValue (const XclImpCachedValue &)=delete
 delete copy constructor More...
 
const XclImpCachedValueoperator= (const XclImpCachedValue &)=delete
 delete copy-assignment operator More...
 
 XclImpCachedValue (XclImpStream &rStrm)
 Creates a cached value and reads contents from stream and stores it with its array address. More...
 
virtual ~XclImpCachedValue ()
 
sal_uInt8 GetType () const
 Returns the type of the cached value (EXC_CACHEDVAL_*). More...
 
const OUString & GetString () const
 Returns the cached string value, if this value is a string, else an empty string. More...
 
double GetValue () const
 Returns the cached number, if this value has number type, else 0.0. More...
 
bool GetBool () const
 Returns the cached Boolean value, if this value has Boolean type, else false. More...
 
sal_uInt8 GetXclError () const
 Returns the cached Calc error code, if this value has Error type, else 0. More...
 
FormulaError GetScError () const
 Returns the cached Calc error code, if this value has Error type, else 0. More...
 

Protected Types

typedef ::std::unique_ptr< const ScTokenArrayScTokenArrayPtr
 

Protected Attributes

OUString maStr
 
double mfValue
 Cached value is a string. More...
 
ScTokenArrayPtr mxTokArr
 Cached value is a double. More...
 
sal_uInt8 mnBoolErr
 Cached value is a formula or error code or Boolean. More...
 
sal_uInt8 mnType
 Boolean value or Excel error code. More...
 

Detailed Description

This class stores one cached value of a cached value list (used for instance in CRN, EXTERNNAME, tArray).

Definition at line 299 of file xihelper.hxx.

Member Typedef Documentation

typedef ::std::unique_ptr< const ScTokenArray > XclImpCachedValue::ScTokenArrayPtr
protected

Definition at line 324 of file xihelper.hxx.

Constructor & Destructor Documentation

XclImpCachedValue::XclImpCachedValue ( const XclImpCachedValue )
delete

delete copy constructor

XclImpCachedValue::XclImpCachedValue ( XclImpStream rStrm)
explicit
XclImpCachedValue::~XclImpCachedValue ( )
virtual

Definition at line 805 of file xihelper.cxx.

Member Function Documentation

bool XclImpCachedValue::GetBool ( ) const
inline

Returns the cached Boolean value, if this value has Boolean type, else false.

Definition at line 317 of file xihelper.hxx.

References EXC_CACHEDVAL_BOOL, mnBoolErr, and mnType.

FormulaError XclImpCachedValue::GetScError ( ) const

Returns the cached Calc error code, if this value has Error type, else 0.

Definition at line 809 of file xihelper.cxx.

References EXC_CACHEDVAL_ERROR, XclTools::GetScErrorCode(), mnBoolErr, and mnType.

const OUString& XclImpCachedValue::GetString ( ) const
inline

Returns the cached string value, if this value is a string, else an empty string.

Definition at line 313 of file xihelper.hxx.

References maStr.

sal_uInt8 XclImpCachedValue::GetType ( ) const
inline

Returns the type of the cached value (EXC_CACHEDVAL_*).

Definition at line 311 of file xihelper.hxx.

References mnType.

double XclImpCachedValue::GetValue ( ) const
inline

Returns the cached number, if this value has number type, else 0.0.

Definition at line 315 of file xihelper.hxx.

References mfValue.

sal_uInt8 XclImpCachedValue::GetXclError ( ) const
inline

Returns the cached Calc error code, if this value has Error type, else 0.

Definition at line 319 of file xihelper.hxx.

References EXC_CACHEDVAL_ERROR, EXC_ERR_NA, mnBoolErr, and mnType.

const XclImpCachedValue& XclImpCachedValue::operator= ( const XclImpCachedValue )
delete

delete copy-assignment operator

Member Data Documentation

OUString XclImpCachedValue::maStr
protected

Definition at line 326 of file xihelper.hxx.

Referenced by GetString(), and XclImpCachedValue().

double XclImpCachedValue::mfValue
protected

Cached value is a string.

Definition at line 327 of file xihelper.hxx.

Referenced by GetValue(), and XclImpCachedValue().

sal_uInt8 XclImpCachedValue::mnBoolErr
protected

Cached value is a formula or error code or Boolean.

Definition at line 329 of file xihelper.hxx.

Referenced by GetBool(), GetScError(), GetXclError(), and XclImpCachedValue().

sal_uInt8 XclImpCachedValue::mnType
protected

Boolean value or Excel error code.

Definition at line 330 of file xihelper.hxx.

Referenced by GetBool(), GetScError(), GetType(), GetXclError(), and XclImpCachedValue().

ScTokenArrayPtr XclImpCachedValue::mxTokArr
protected

Cached value is a double.

Definition at line 328 of file xihelper.hxx.

Referenced by XclImpCachedValue().


The documentation for this class was generated from the following files: