20#include <config_features.h>
26#include <rtl/ustrbuf.hxx>
87 else if(
p->pObj &&
p->pObj->IsFixed()
165 std::unique_ptr<OUString> pTmp;
169 pTmp.reset(
new OUString);
212 p->pOUString =
new OUString( *
n );
219 p->pOUString =
nullptr;
238 *
p->pUShort = sal::static_int_cast< sal_uInt16 >(
ImpGetBool(
p ) );
268 sal_Int32 nArraySize = rStr.getLength() * 2;
273#if !HAVE_FEATURE_SCRIPTING
274 bool bIncIndex =
false;
279 pArray->
AddDim(1, nArraySize);
281 pArray->
AddDim(0, nArraySize - 1);
288 for( sal_Int32
i=0;
i< nArraySize;
i++)
291 sal_uInt8 aByte =
static_cast< sal_uInt8 >( (
i%2) ? ((*pSrc) >> 8) & 0xff : (*pSrc) & 0xff );
294 pArray->
Put(pNew,
i);
305 OUStringBuffer aStrBuf((
nCount + 1) / 2);
307 for( sal_uInt32
i = 0 ;
i <
nCount ;
i++ )
312 aChar = (aTempChar << 8 ) | aChar;
313 aStrBuf.append(aChar);
324 aStrBuf.append(aChar);
327 return aStrBuf.makeStringAndClear();
SbxVariable * Get(sal_uInt32)
static void SetError(ErrCode)
void SetFlag(SbxFlagBits n)
void AddDim(sal_Int32, sal_Int32)
void unoAddDim(sal_Int32, sal_Int32)
void Put(SbxVariable *, const sal_Int32 *)
OUString GetOUString() const
bool PutString(const OUString &)
sal_uInt8 GetByte() const
#define ERRCODE_BASIC_NO_OBJECT
#define ERRCODE_BASIC_CONVERSION
enum SbxBOOL ImpGetBool(const SbxValues *p)
void ImpPutBool(SbxValues *p, sal_Int16 n)
void ImpPutByte(SbxValues *p, sal_uInt8 n)
sal_uInt8 ImpGetByte(const SbxValues *p)
sal_Unicode ImpGetChar(const SbxValues *p)
void ImpPutChar(SbxValues *p, sal_Unicode n)
void ImpPutDecimal(SbxValues *p, SbxDecimal *pDec)
void ImpPutLong(SbxValues *, sal_Int32)
void ImpPutInt64(SbxValues *, sal_Int64)
sal_Int16 ImpGetInteger(const SbxValues *)
void ImpPutUInt64(SbxValues *, sal_uInt64)
void ImpPutCurrency(SbxValues *, const sal_Int64)
sal_Int64 ImpGetInt64(const SbxValues *)
double ImpGetDouble(const SbxValues *)
sal_uInt32 ImpGetULong(const SbxValues *)
void ImpPutSingle(SbxValues *, float)
void ImpPutDouble(SbxValues *, double, bool bCoreString=false)
sal_uInt64 ImpGetUInt64(const SbxValues *)
void ImpPutInteger(SbxValues *, sal_Int16)
void ImpPutULong(SbxValues *, sal_uInt32)
sal_uInt16 ImpGetUShort(const SbxValues *)
double ImpGetDate(const SbxValues *)
sal_Int32 ImpGetLong(const SbxValues *)
float ImpGetSingle(const SbxValues *)
sal_Int64 ImpGetCurrency(const SbxValues *)
void ImpPutDate(SbxValues *, double)
void ImpPutUShort(SbxValues *, sal_uInt16)
SbxDecimal * ImpGetDecimal(const SbxValues *p)
void releaseDecimalPtr(SbxDecimal *&rpDecimal)
OUString GetSbxRes(StringId nId)
OUString ImpGetCoreString(const SbxValues *p)
void ImpPutString(SbxValues *p, const OUString *n)
SbxArray * StringToByteArray(const OUString &rStr)
OUString ImpGetString(const SbxValues *p)
OUString ByteArrayToString(SbxArray *pArr)