Home
last modified time | relevance | path

Searched refs:pCode (Results 1 – 25 of 26) sorted by relevance

12

/trunk/main/sc/source/core/data/
H A Dcell2.cxx417 if ((!pCode->GetCodeError() || pCode->GetCodeError() == errDoubleRef) && in GetValue()
436 if ((!pCode->GetCodeError() || pCode->GetCodeError() == errDoubleRef) && in GetString()
465 pCode->Reset(); in GetMatrixOrigin()
466 ScToken* t = static_cast<ScToken*>(pCode->GetNextReferenceRPN()); in GetMatrixOrigin()
630 sal_uInt16 nErr = pCode->GetCodeError(); in GetErrCode()
638 sal_uInt16 nErr = pCode->GetCodeError(); in GetRawError()
646 pCode->Reset(); in HasOneReference()
647 ScToken* p = static_cast<ScToken*>(pCode->GetNextReferenceRPN()); in HasOneReference()
648 if( p && !pCode->GetNextReferenceRPN() ) // nur eine! in HasOneReference()
681 pCode->Reset(); in HasRefListExpressibleAsOneReference()
[all …]
H A Dcell.cxx626 pCode( NULL ), in ScFormulaCell()
656 pCode( NULL ), in ScFormulaCell()
688 pCode( pArr ? new ScTokenArray( *pArr ) : new ScTokenArray ), in ScFormulaCell()
711 if( pCode->GetLen() && !pCode->GetCodeError() && !pCode->GetCodeLen() ) in ScFormulaCell()
713 ScCompiler aComp( pDocument, aPos, *pCode); in ScFormulaCell()
720 pCode->Reset(); in ScFormulaCell()
721 if ( pCode->GetNextOpCodeRPN( ocSubTotal ) ) in ScFormulaCell()
756 pCode = (rCell.pCode) ? rCell.pCode->Clone() : NULL; in ScFormulaCell()
759 pCode->ReadjustRelative3DReferences( rCell.aPos, aPos ); in ScFormulaCell()
764 if ( pCode->GetCodeError() && !pDocument->IsClipboard() && pCode->GetLen() ) in ScFormulaCell()
[all …]
H A Dcolumn3.cxx972 ScTokenArray* pCode = pCell->GetCode(); in lcl_AddCode() local
973 if (pCode) in lcl_AddCode()
975 const formula::FormulaToken* pToken = pCode->First(); in lcl_AddCode()
979 pToken = pCode->Next(); in lcl_AddCode()
/trunk/main/sc/source/core/tool/
H A Drangenam.cxx55 …: pCode( NULL ), nIndex( n ), bModified( sal_False ), mnMaxRow(-1), mnMaxCol(-1), aRangeNameScope(… in ScRangeData()
66 pCode ( NULL ), in ScRangeData()
80 pCode = aComp.CompileString( rSymbol ); in ScRangeData()
81 if( !pCode->GetCodeError() ) in ScRangeData()
83 pCode->Reset(); in ScRangeData()
84 FormulaToken* p = pCode->GetNextReference(); in ScRangeData()
95 pCode->DelRPN(); in ScRangeData()
104 pCode = new ScTokenArray(); in ScRangeData()
115 pCode ( new ScTokenArray( rArr ) ), in ScRangeData()
125 if( !pCode->GetCodeError() ) in ScRangeData()
[all …]
H A Dtoken.cxx1279 if ( pCode && nLen == 1 ) in ImplGetReference()
1281 const FormulaToken* pToken = pCode[0]; in ImplGetReference()
1349 pp = p->pCode = new FormulaToken*[ nLen ]; in Clone()
1350 memcpy( pp, pCode, nLen * sizeof( ScToken* ) ); in Clone()
1366 FormulaToken** p2 = pCode; in Clone()
1378 *pp = p->pCode[ nIdx ]; in Clone()
1415 t = pCode[i]; in MergeArray()
1528 t = pCode[i]; in MergeArray()
1572 pCode[i] = NULL; in MergeArray()
1582 if (!pCode || !nLen) in MergeRangeReference()
[all …]
/trunk/main/formula/source/core/api/
H A Dtoken.cxx333 FormulaToken* t = pCode[ nIndex++ ]; in GetNextReference()
354 FormulaToken* t = pCode[ nIndex++ ]; in GetNextColRowName()
384 if( pCode ) in GetNextReferenceOrName()
388 FormulaToken* t = pCode[ nIndex++ ]; in GetNextReferenceOrName()
410 if( pCode ) in GetNextName()
414 FormulaToken* t = pCode[ nIndex++ ]; in GetNextName()
424 if( pCode ) in GetNextDBArea()
428 FormulaToken* t = pCode[ nIndex++ ]; in GetNextDBArea()
449 if( pCode && nIndex < nLen ) in Next()
450 return pCode[ nIndex++ ]; in Next()
[all …]
H A DFormulaCompiler.cxx802 && pArr->pCode[ pArr->nIndex-1 ]->GetOpCode() == ocColRowName ) in GetToken()
1167 FormulaToken** pCode1 = pCode - 1; in RangeLine()
1171 FormulaToken** pCode2 = pCode - 1; in RangeLine()
1355 (pCode2 - pCode1 != 1) || (pCode - pCode2 != 1) || in MergeRangeReference()
1367 --pCode, --pc; in MergeRangeReference()
1388 pCode = pData; in CompileTokenArray()
1780 *pCode++ = p; in PutCode()
1790 *pCode++ = p; in PutCode()
/trunk/main/basic/source/comp/
H A Dcodegen.cxx368 T readParam( sal_uInt8*& pCode ) in readParam() argument
373 nOp1 |= *pCode++ << ( i * 8); in readParam()
377 PCodeBufferWalker( sal_uInt8* pCode, T nBytes ): m_nBytes( nBytes ), m_pCode( pCode ) in PCodeBufferWalker() argument
382 sal_uInt8* pCode = m_pCode; in visitBuffer() local
383 if ( !pCode ) in visitBuffer()
385 sal_uInt8* pEnd = pCode + m_nBytes; in visitBuffer()
388 for( ; pCode < pEnd; ) in visitBuffer()
390 SbiOpcode eOp = (SbiOpcode)(*pCode++); in visitBuffer()
397 nOp1 = readParam( pCode ); in visitBuffer()
399 pCode += sizeof( T ); in visitBuffer()
[all …]
/trunk/main/basic/source/runtime/
H A Druntime.cxx556 pCode = in SbiRuntime()
728 sal_uInt32 nPC = ( pCode - (const sal_uInt8* )pImg->GetCode() ); in Step()
732 SbiOpcode eOp = (SbiOpcode ) ( *pCode++ ); in Step()
740 nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24; in Step()
746 nOp1 = *pCode++; nOp1 |= *pCode++ << 8; nOp1 |= *pCode++ << 16; nOp1 |= *pCode++ << 24; in Step()
747 nOp2 = *pCode++; nOp2 |= *pCode++ << 8; nOp2 |= *pCode++ << 16; nOp2 |= *pCode++ << 24; in Step()
778 pErrCode = pCode; in Step()
793 pCode = pError; in Step()
1050 p->pCode = pc; in PushGosub()
1063 pCode = p->pCode; in PopGosub()
H A Dstep1.cxx163 pCode = (const sal_uInt8*) pImg->GetCode() + nOp1; in StepJUMP()
200 PushGosub( pCode + 5 * nOp1 ); in StepONJUMP()
205 nOp1 = (sal_uInt32) ( (const char*) pCode - pImg->GetCode() ) + 5 * --n; in StepONJUMP()
213 PushGosub( pCode ); in StepGOSUB()
216 pCode = (const sal_uInt8*) pImg->GetCode() + nOp1; in StepGOSUB()
350 const sal_uInt8* p = pCode; in StepERRHDL()
352 pError = pCode; in StepERRHDL()
353 pCode = p; in StepERRHDL()
375 pCode = pMod->FindNextStmnt( pErrCode, n1, n2, sal_True, pImg ); in StepRESUME()
378 pCode = pErrStmnt; in StepRESUME()
H A Dstep0.cxx1191 pCode = pRestart; in StepINPUT()
1407 pRestart = pCode; in StepRESTART()
H A Dstep2.cxx857 pStmnt = pCode - 9; in StepSTMNT()
871 const sal_uInt8* p = pMod->FindNextStmnt( pCode, n1, n2 ); in StepSTMNT()
/trunk/main/basic/source/classes/
H A Dimage.cxx37 pCode = NULL; in SbiImage()
60 delete[] pCode; in Clear()
64 pCode = NULL; in Clear()
184 pCode = new char[ nLen ]; in Load()
186 r.Read( pCode, nCodeSize ); in Load()
191 pLegacyPCode = pCode; in Load()
195 pCode = (char*)aLegacyToNew.GetBuffer(); in Load()
334 if( pCode && SbiGood( r ) ) in Save()
340 … PCodeBuffConvertor< sal_uInt32, sal_uInt16 > aNewToLegacy( (sal_uInt8*)pCode, nCodeSize ); in Save()
347 r.Write( pCode, nCodeSize ); in Save()
[all …]
/trunk/main/bridges/source/cpp_uno/msvc_win32_intel/
H A Dexcept.cxx227 unsigned char * pCode = (unsigned char *)somecode; in ObjectFunction() local
229 OSL_ENSURE( (void *)this == (void *)pCode, "### unexpected!" ); in ObjectFunction()
232 *pCode++ = 0x68; in ObjectFunction()
233 *(void **)pCode = this; in ObjectFunction()
234 pCode += sizeof(void *); in ObjectFunction()
236 *pCode++ = 0xe9; in ObjectFunction()
237 *(sal_Int32 *)pCode = ((unsigned char *)fpFunc) - pCode - sizeof(sal_Int32); in ObjectFunction()
/trunk/main/basic/source/inc/
H A Dcodegen.hxx59 static sal_uInt32 calcNewOffSet( sal_uInt8* pCode, sal_uInt16 nOffset );
60 static sal_uInt16 calcLegacyOffSet( sal_uInt8* pCode, sal_uInt32 nOffset );
77 …PCodeBuffConvertor( sal_uInt8* pCode, T nSize ): m_nSize( nSize ), m_pStart( pCode ), m_pCnvtdBuf… in PCodeBuffConvertor() argument
H A Dimage.hxx45 char* pCode; // Code-Image member in SbiImage
82 const char* GetCode() const { return pCode; } in GetCode()
H A Druntime.hxx129 const sal_uInt8* pCode; // Return-Pointer member
300 const sal_uInt8* pCode; // aktueller Code-Pointer member in SbiRuntime
/trunk/main/sc/inc/
H A Dcell.hxx291 ScTokenArray* pCode; // The (new) token array member in ScFormulaCell
431 ScTokenArray* GetCode() const { return pCode; } in GetCode()
481 inline sal_Bool IsHyperLinkCell() const { return pCode && pCode->IsHyperLink(); } in IsHyperLinkCell()
494 ScTokenArray* pCode; member in ScDetectiveRefIter
H A Drangenam.hxx69 ScTokenArray* pCode; member in ScRangeData
121 ScTokenArray* GetCode() { return pCode; } in GetCode()
/trunk/main/sc/source/ui/unoobj/
H A Dtokenuno.cxx148 ScTokenArray* pCode = aCompiler.CompileString( aFormula ); in parseFormula() local
149 (void)ScTokenConversion::ConvertToTokenSequence( *pDoc, aRet, *pCode ); in parseFormula()
150 delete pCode; in parseFormula()
/trunk/main/sc/source/ui/docshell/
H A Ddocfunc.cxx972 ScTokenArray* pCode = new ScTokenArray; in lcl_ScDocFunc_CreateTokenArrayXML() local
973 pCode->AddString( rText ); in lcl_ScDocFunc_CreateTokenArrayXML()
975 pCode->AddString( rFormulaNmsp ); in lcl_ScDocFunc_CreateTokenArrayXML()
976 return pCode; in lcl_ScDocFunc_CreateTokenArrayXML()
988 ScTokenArray* pCode; in InterpretEnglishString() local
991 pCode = lcl_ScDocFunc_CreateTokenArrayXML( rText, rFormulaNmsp, eGrammar ); in InterpretEnglishString()
998 pCode = aComp.CompileString( rText ); in InterpretEnglishString()
1000 pNewCell = new ScFormulaCell( pDoc, rPos, pCode, eGrammar, MM_NONE ); in InterpretEnglishString()
1001 delete pCode; // Zell-ctor hat das TokenArray kopiert in InterpretEnglishString()
3844 … ScTokenArray* pCode = lcl_ScDocFunc_CreateTokenArrayXML( rString, rFormulaNmsp, eGrammar ); in EnterMatrix() local
[all …]
H A Dexternalrefmgr.cxx144 const ScTokenArray* pCode = pCell->GetCode(); in operator ()() local
145 if (!pCode->HasOpCode( ocExternalRef)) in operator ()()
1834 ScTokenArray* pCode = pRangeData->GetCode(); in getRangeNameTokens() local
1835 for (FormulaToken* pToken = pCode->First(); pToken; pToken = pCode->Next()) in getRangeNameTokens()
H A Dimpex.cxx1658 ScTokenArray* pCode = aComp.CompileString( aText ); in Sylk2Doc() local
1664 nRefRow, aMark, EMPTY_STRING, pCode ); in Sylk2Doc()
1669 pDoc, aPos, pCode, eGrammar, MM_NONE); in Sylk2Doc()
1672 delete pCode; // ctor/InsertMatrixFormula did copy TokenArray in Sylk2Doc()
/trunk/main/formula/inc/formula/
H A Dtokenarray.hxx70 FormulaToken** pCode; // Token code array member in formula::FormulaTokenArray
129 FormulaToken** GetArray() const { return pCode; } in GetArray()
/trunk/main/sc/source/ui/view/
H A Dviewfun2.cxx220 ScTokenArray* pCode = ((ScFormulaCell*)pCell)->GetCode(); in lcl_IsAutoSumData() local
221 if ( pCode && pCode->GetOuterFuncOpCode() == ocSum ) in lcl_IsAutoSumData()
223 if ( pCode->GetAdjacentExtendOfOuterFuncRefs( nExtend, in lcl_IsAutoSumData()

12