Lines Matching refs:aData
212 aData.eType = SbxEMPTY; in SbxValue()
227 case SbxINTEGER: n |= SbxBYREF; aData.pInteger = (sal_Int16*) p; break; in SbxValue()
228 case SbxULONG64: n |= SbxBYREF; aData.pULong64 = (SbxUINT64*) p; break; in SbxValue()
230 case SbxCURRENCY: n |= SbxBYREF; aData.pLong64 = (SbxINT64*) p; break; in SbxValue()
231 case SbxLONG: n |= SbxBYREF; aData.pLong = (sal_Int32*) p; break; in SbxValue()
232 case SbxSINGLE: n |= SbxBYREF; aData.pSingle = (float*) p; break; in SbxValue()
234 case SbxDOUBLE: n |= SbxBYREF; aData.pDouble = (double*) p; break; in SbxValue()
235 case SbxSTRING: n |= SbxBYREF; aData.pOUString = (::rtl::OUString*) p; break; in SbxValue()
238 case SbxBOOL: n |= SbxBYREF; aData.pUShort = (sal_uInt16*) p; break; in SbxValue()
239 case SbxULONG: n |= SbxBYREF; aData.pULong = (sal_uInt32*) p; break; in SbxValue()
240 case SbxCHAR: n |= SbxBYREF; aData.pChar = (xub_Unicode*) p; break; in SbxValue()
241 case SbxBYTE: n |= SbxBYREF; aData.pByte = (sal_uInt8*) p; break; in SbxValue()
242 case SbxINT: n |= SbxBYREF; aData.pInt = (int*) p; break; in SbxValue()
244 aData.pObj = (SbxBase*) p; in SbxValue()
246 aData.pObj->AddRef(); in SbxValue()
249 aData.pDecimal = (SbxDecimal*) p; in SbxValue()
251 aData.pDecimal->addRef(); in SbxValue()
258 memset( &aData, 0, sizeof( SbxValues ) ); in SbxValue()
259 aData.eType = SbxDataType( n ); in SbxValue()
269 aData.eType = SbxNULL; in SbxValue()
274 aData = r.aData; in SbxValue()
276 switch( aData.eType ) in SbxValue()
279 if( aData.pOUString ) in SbxValue()
280 aData.pOUString = new ::rtl::OUString( *aData.pOUString ); in SbxValue()
283 if( aData.pObj ) in SbxValue()
284 aData.pObj->AddRef(); in SbxValue()
287 if( aData.pDecimal ) in SbxValue()
288 aData.pDecimal->addRef(); in SbxValue()
304 if( IsFixed() && (aData.eType == SbxOBJECT) in operator =()
305 && aData.pObj && ( aData.pObj->GetType() == (SbxARRAY | SbxBYTE) ) in operator =()
306 && (r.aData.eType == SbxSTRING) ) in operator =()
314 if( r.IsFixed() && (r.aData.eType == SbxOBJECT) in operator =()
315 && r.aData.pObj && ( r.aData.pObj->GetType() == (SbxARRAY | SbxBYTE) ) in operator =()
316 && (aData.eType == SbxSTRING) ) in operator =()
331 aNew.eType = aData.eType; in operator =()
334 aNew.eType = SbxDataType( r.aData.eType & 0x0FFF ); in operator =()
356 if( aData.eType == SbxOBJECT ) in ~SbxValue()
358 if( aData.pObj && aData.pObj != this ) in ~SbxValue()
365 aData.pObj->ReleaseRef(); in ~SbxValue()
368 else if( aData.eType == SbxDECIMAL ) in ~SbxValue()
370 releaseDecimalPtr( aData.pDecimal ); in ~SbxValue()
377 switch( aData.eType ) in Clear()
384 delete aData.pOUString; aData.pOUString = NULL; in Clear()
387 if( aData.pObj ) in Clear()
389 if( aData.pObj != this ) in Clear()
396 aData.pObj->ReleaseRef(); in Clear()
398 aData.pObj = NULL; in Clear()
402 if( aData.eType == SbxDECIMAL ) in Clear()
403 releaseDecimalPtr( aData.pDecimal ); in Clear()
406 aData.pData = NULL; break; in Clear()
442 SbxDataType t = SbxDataType( p->aData.eType & 0x0FFF ); in TheRealValue()
446 SbxObject* pObj = PTR_CAST(SbxObject,p->aData.pObj); in TheRealValue()
459 ((SbxValue*) pObj)->aData.eType == SbxOBJECT && in TheRealValue()
460 ((SbxValue*) pObj)->aData.pObj == pObj ) in TheRealValue()
478 SbxArray* pArray = PTR_CAST(SbxArray,p->aData.pObj); in TheRealValue()
489 SbxDimArray* pDimArray = PTR_CAST(SbxDimArray,p->aData.pObj); in TheRealValue()
498 SbxValue* pVal = PTR_CAST(SbxValue,p->aData.pObj); in TheRealValue()
536 case SbxVARIANT: rRes = p->aData; break; in Get()
537 case SbxINTEGER: rRes.nInteger = ImpGetInteger( &p->aData ); break; in Get()
538 case SbxLONG: rRes.nLong = ImpGetLong( &p->aData ); break; in Get()
539 case SbxSALINT64: rRes.nInt64 = ImpGetInt64( &p->aData ); break; in Get()
540 case SbxSALUINT64: rRes.uInt64 = ImpGetUInt64( &p->aData ); break; in Get()
541 case SbxSINGLE: rRes.nSingle = ImpGetSingle( &p->aData ); break; in Get()
542 case SbxDOUBLE: rRes.nDouble = ImpGetDouble( &p->aData ); break; in Get()
543 case SbxCURRENCY:rRes.nLong64 = ImpGetCurrency( &p->aData ); break; in Get()
544 case SbxDECIMAL: rRes.pDecimal = ImpGetDecimal( &p->aData ); break; in Get()
545 case SbxDATE: rRes.nDouble = ImpGetDate( &p->aData ); break; in Get()
548 ImpGetBool( &p->aData ) ); in Get()
550 case SbxCHAR: rRes.nChar = ImpGetChar( &p->aData ); break; in Get()
551 case SbxBYTE: rRes.nByte = ImpGetByte( &p->aData ); break; in Get()
552 case SbxUSHORT: rRes.nUShort = ImpGetUShort( &p->aData ); break; in Get()
553 case SbxULONG: rRes.nULong = ImpGetULong( &p->aData ); break; in Get()
555 case SbxSTRING: p->aPic = ImpGetString( &p->aData ); in Get()
557 case SbxCoreSTRING: p->aPic = ImpGetCoreString( &p->aData ); in Get()
561 rRes.nInt = (int) ImpGetInteger( &p->aData ); in Get()
563 rRes.nInt = (int) ImpGetLong( &p->aData ); in Get()
568 rRes.nUInt = (int) ImpGetUShort( &p->aData ); in Get()
570 rRes.nUInt = (int) ImpGetULong( &p->aData ); in Get()
574 if( p->aData.eType == SbxOBJECT ) in Get()
575 rRes.pObj = p->aData.pObj; in Get()
583 if( p->aData.eType == rRes.eType ) in Get()
584 rRes = p->aData; in Get()
724 case SbxINTEGER: ImpPutInteger( &p->aData, rVal.nInteger ); break; in GET()
725 case SbxLONG: ImpPutLong( &p->aData, rVal.nLong ); break; in GET()
726 case SbxSALINT64: ImpPutInt64( &p->aData, rVal.nInt64 ); break; in GET()
727 case SbxSALUINT64: ImpPutUInt64( &p->aData, rVal.uInt64 ); break; in GET()
728 case SbxSINGLE: ImpPutSingle( &p->aData, rVal.nSingle ); break; in GET()
729 case SbxDOUBLE: ImpPutDouble( &p->aData, rVal.nDouble ); break; in GET()
730 case SbxCURRENCY: ImpPutCurrency( &p->aData, rVal.nLong64 ); break; in GET()
731 case SbxDECIMAL: ImpPutDecimal( &p->aData, rVal.pDecimal ); break; in GET()
732 case SbxDATE: ImpPutDate( &p->aData, rVal.nDouble ); break; in GET()
733 case SbxBOOL: ImpPutBool( &p->aData, rVal.nInteger ); break; in GET()
734 case SbxCHAR: ImpPutChar( &p->aData, rVal.nChar ); break; in GET()
735 case SbxBYTE: ImpPutByte( &p->aData, rVal.nByte ); break; in GET()
736 case SbxUSHORT: ImpPutUShort( &p->aData, rVal.nUShort ); break; in GET()
737 case SbxULONG: ImpPutULong( &p->aData, rVal.nULong ); break; in GET()
739 case SbxSTRING: ImpPutString( &p->aData, rVal.pOUString ); break; in GET()
742 ImpPutInteger( &p->aData, (sal_Int16) rVal.nInt ); in GET()
744 ImpPutLong( &p->aData, (sal_Int32) rVal.nInt ); in GET()
749 ImpPutUShort( &p->aData, (sal_uInt16) rVal.nUInt ); in GET()
751 ImpPutULong( &p->aData, (sal_uInt32) rVal.nUInt ); in GET()
755 if( !p->IsFixed() || p->aData.eType == SbxOBJECT ) in GET()
758 if( p->aData.eType == SbxOBJECT && p->aData.pObj == rVal.pObj ) in GET()
765 p->aData.pObj = rVal.pObj; in GET()
768 if( p->aData.pObj && p->aData.pObj != p ) in GET()
779 p->aData.pObj->AddRef(); in GET()
786 if( p->aData.eType == rVal.eType ) in GET()
787 p->aData = rVal; in GET()
792 p->aData.eType = SbxNULL; in GET()
822 SbxDataType eTargetType = SbxDataType( aData.eType & 0x0FFF ); in PutStringExt()
900 aData.pDecimal = new SbxDecimal( rAutomationDec ); in PutDecimal()
901 aData.pDecimal->addRef(); in PutDecimal()
902 aData.eType = SbxDECIMAL; in PutDecimal()
968 return ( (GetFlags() & SBX_FIXED) | (aData.eType & SbxBYREF) ) != 0; in PUT()
998 if( aData.pOUString ) in ImpIsNumeric()
1000 ::rtl::OUString s( *aData.pOUString ); in ImpIsNumeric()
1022 return SbxDataType( aData.eType & 0x0FFF ); in GetType()
1027 return aData.eType; in GetFullType()
1033 if( ( t == SbxEMPTY && aData.eType == SbxVOID ) in SetType()
1034 || ( aData.eType == SbxEMPTY && t == SbxVOID ) ) in SetType()
1046 if( ( t & 0x0FFF ) != ( aData.eType & 0x0FFF ) ) in SetType()
1055 switch( aData.eType ) in SetType()
1058 delete aData.pOUString; in SetType()
1061 if( aData.pObj && aData.pObj != this ) in SetType()
1072 aData.pObj->ReleaseRef(); in SetType()
1078 memset( &aData, 0, sizeof( SbxValues ) ); in SetType()
1079 aData.eType = t; in SetType()
1088 if( ( aData.eType & 0x0FFF ) == eTo ) in Convert()
1104 if( aData.eType == SbxNULL ) in Convert()
1627 aData.eType = SbxDataType( nType ); in LoadData()
1632 r >> aData.nInteger; break; in LoadData()
1634 r >> aData.nLong; break; in LoadData()
1644 aData.nSingle = 0.0F; in LoadData()
1647 aData.nSingle = (float) d; in LoadData()
1657 if( ImpScan( aVal, aData.nDouble, t, NULL ) != SbxERR_OK ) in LoadData()
1659 aData.nDouble = 0.0; in LoadData()
1666 r >> aData.nULong64.nHigh >> aData.nULong64.nLow; in LoadData()
1672 r >> aData.nLong64.nHigh >> aData.nLong64.nLow; in LoadData()
1680 aData.pOUString = new ::rtl::OUString( aVal ); in LoadData()
1682 aData.pOUString = NULL; // JSM 22.09.1995 in LoadData()
1687 r >> aData.nUShort; break; in LoadData()
1695 aData.pObj = NULL; in LoadData()
1698 aData.pObj = SbxBase::Load( r ); in LoadData()
1699 return sal_Bool( aData.pObj != NULL ); in LoadData()
1701 aData.pObj = this; in LoadData()
1710 aData.nChar = c; in LoadData()
1714 r >> aData.nByte; break; in LoadData()
1716 r >> aData.nULong; break; in LoadData()
1723 r >> aData.nLong, aData.eType = SbxLONG; in LoadData()
1725 r >> aData.nInt; in LoadData()
1734 r >> aData.nULong, aData.eType = SbxULONG; in LoadData()
1736 r >> (sal_uInt32&)aData.nUInt; in LoadData()
1744 r >> aData.nLong; in LoadData()
1751 memset (&aData,0,sizeof(aData)); in LoadData()
1753 aData.eType = SbxNULL; in LoadData()
1762 sal_uInt16 nType = sal::static_int_cast< sal_uInt16 >(aData.eType); in StoreData()
1768 r << aData.nInteger; break; in StoreData()
1770 r << aData.nLong; break; in StoreData()
1773 ((SbxValue*)this)->aData.eType = (SbxDataType)( ( nType & 0xF000 ) | SbxDOUBLE ); in StoreData()
1775 ((SbxValue*)this)->aData.eType = (SbxDataType)nType; in StoreData()
1783 r << aData.nULong64.nHigh << aData.nULong64.nLow; in StoreData()
1789 r << aData.nLong64.nHigh << aData.nLong64.nLow; in StoreData()
1793 if( aData.pOUString ) in StoreData()
1795 r.WriteByteString( *aData.pOUString, RTL_TEXTENCODING_ASCII_US ); in StoreData()
1805 r << aData.nUShort; break; in StoreData()
1808 if( aData.pObj ) in StoreData()
1810 if( PTR_CAST(SbxValue,aData.pObj) != this ) in StoreData()
1813 return aData.pObj->Store( r ); in StoreData()
1823 char c = sal::static_int_cast< char >(aData.nChar); in StoreData()
1828 r << aData.nByte; break; in StoreData()
1830 r << aData.nULong; break; in StoreData()
1834 r << n << (sal_Int32)aData.nInt; in StoreData()
1840 r << n << (sal_uInt32)aData.nUInt; in StoreData()
1848 r << aData.nLong; in StoreData()