Lines Matching refs:p
36 enum SbxBOOL ImpGetBool( const SbxValues* p ) in ImpGetBool() argument
39 switch( +p->eType ) in ImpGetBool()
46 nRes = p->nChar ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
48 nRes = p->nByte ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
51 nRes = p->nInteger ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
54 nRes = p->nUShort ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
56 nRes = p->nLong ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
58 nRes = p->nULong ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
60 nRes = p->nSingle ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
63 nRes = p->nDouble ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
68 if( p->pDecimal ) in ImpGetBool()
69 p->pDecimal->getDouble( dVal ); in ImpGetBool()
74 nRes = p->nInt64 ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
76 nRes = p->uInt64 ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
78 nRes = !!p->nULong64 ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
81 nRes = !!p->nLong64 ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
86 if ( p->pOUString ) in ImpGetBool()
88 if( p->pOUString->equalsIgnoreAsciiCase( SbxRes( STRING_TRUE ) ) ) in ImpGetBool()
90 else if( !p->pOUString->equalsIgnoreAsciiCase( SbxRes( STRING_FALSE ) ) ) in ImpGetBool()
97 if( ImpScan( *p->pOUString, n, t, &nLen ) == SbxERR_OK ) in ImpGetBool()
99 if( nLen == p->pOUString->getLength() ) in ImpGetBool()
113 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpGetBool()
124 nRes = *p->pChar ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
126 nRes = *p->pByte ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
129 nRes = *p->pInteger ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
131 nRes = *p->pLong ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
133 nRes = *p->pULong ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
136 nRes = *p->pUShort ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
138 nRes = ( *p->pSingle != 0 ) ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
141 nRes = ( *p->pDouble != 0 ) ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
143 nRes = ( *p->pnInt64 ) ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
145 nRes = ( *p->puInt64 ) ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
147 nRes = !!*p->pULong64 ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
150 nRes = !!*p->pLong64 ? SbxTRUE : SbxFALSE; break; in ImpGetBool()
158 void ImpPutBool( SbxValues* p, sal_Int16 n ) in ImpPutBool() argument
162 switch( +p->eType ) in ImpPutBool()
165 p->nChar = (xub_Unicode) n; break; in ImpPutBool()
167 p->nByte = (sal_uInt8) n; break; in ImpPutBool()
170 p->nInteger = n; break; in ImpPutBool()
172 p->nLong = n; break; in ImpPutBool()
174 p->nULong = (sal_uInt32) n; break; in ImpPutBool()
177 p->nUShort = (sal_uInt16) n; break; in ImpPutBool()
179 p->nSingle = n; break; in ImpPutBool()
182 p->nDouble = n; break; in ImpPutBool()
184 p->nInt64 = n; break; in ImpPutBool()
186 p->uInt64 = n; break; in ImpPutBool()
188 p->nULong64.Set( (sal_uInt32)n ); break; in ImpPutBool()
191 p->nLong64.Set( (sal_Int32)n ); break; in ImpPutBool()
194 ImpCreateDecimal( p )->setInt( (sal_Int16)n ); in ImpPutBool()
200 if ( !p->pOUString ) in ImpPutBool()
201 p->pOUString = new ::rtl::OUString( SbxRes( n ? STRING_TRUE : STRING_FALSE ) ); in ImpPutBool()
203 *p->pOUString = SbxRes( n ? STRING_TRUE : STRING_FALSE ); in ImpPutBool()
208 SbxValue* pVal = PTR_CAST(SbxValue,p->pObj); in ImpPutBool()
216 *p->pChar = (xub_Unicode) n; break; in ImpPutBool()
218 *p->pByte = (sal_uInt8) n; break; in ImpPutBool()
221 *p->pInteger = (sal_Int16) n; break; in ImpPutBool()
224 *p->pUShort = (sal_uInt16) n; break; in ImpPutBool()
226 *p->pLong = n; break; in ImpPutBool()
228 *p->pULong = (sal_uInt32) n; break; in ImpPutBool()
230 *p->pSingle = n; break; in ImpPutBool()
233 *p->pDouble = n; break; in ImpPutBool()
235 *p->pnInt64 = n; break; in ImpPutBool()
237 *p->puInt64 = n; break; in ImpPutBool()
239 p->pULong64->Set( (sal_uInt32)n ); break; in ImpPutBool()
242 p->pLong64->Set( (sal_Int32)n ); break; in ImpPutBool()