/trunk/main/formula/source/core/api/ |
H A D | FormulaCompiler.cxx | 806 pToken = pArr->Next(); in GetToken() 807 while( pToken && pToken->GetOpCode() == ocSpaces ) in GetToken() 817 if( !pToken ) in GetToken() 887 PutCode( pToken ); in Factor() 1121 PutCode( pToken ); in Factor() 1139 PutCode(pToken); in Factor() 1230 PutCode( pToken ); in PostOpLine() 1254 while (pToken->GetOpCode() == ocMul || pToken->GetOpCode() == ocDiv) in MulDivLine() 1268 while (pToken->GetOpCode() == ocAdd || pToken->GetOpCode() == ocSub) in AddSubLine() 1296 while (pToken->GetOpCode() >= ocEqual && pToken->GetOpCode() <= ocGreaterEqual) in CompareLine() [all …]
|
/trunk/main/sc/source/core/tool/ |
H A D | reftokenhelper.cxx | 138 StackVar eType = pToken->GetType(); in getRangeFromToken() 139 switch (pToken->GetType()) in getRangeFromToken() 237 ScSharedTokenRef pToken; in getTokensFromRangeList() local 239 aTokens.push_back(pToken); in getTokensFromRangeList() 246 switch (pToken->GetType()) in isRef() 261 switch (pToken->GetType()) in isExternalRef() 274 if (!isRef(pToken)) in intersects() 320 join(rTokens, pToken); in operator ()() 452 rTokens.push_back(pToken); in join() 461 join(rTokens, pToken); in join() [all …]
|
H A D | chartlis.cxx | 289 ScSharedTokenRef pToken; in SetRangeList() local 290 ScRefTokenHelper::getTokenFromRange(pToken, rRange); in SetRangeList() 291 mpTokens->push_back(pToken); in SetRangeList() 302 void operator() (const ScSharedTokenRef& pToken) in operator ()() argument 304 if (!ScRefTokenHelper::isRef(pToken)) in operator ()() 307 bool bExternal = ScRefTokenHelper::isExternalRef(pToken); in operator ()() 310 sal_uInt16 nFileId = pToken->GetIndex(); in operator ()() 327 ScRefTokenHelper::getRangeFromToken(aRange, pToken, bExternal); in operator ()() 402 ScSharedTokenRef pToken; in UpdateChartIntersecting() local 403 ScRefTokenHelper::getTokenFromRange(pToken, rRange); in UpdateChartIntersecting() [all …]
|
H A D | parclass.cxx | 293 const formula::FormulaToken* pToken, sal_uInt16 nParameter) in GetParameterType() argument 295 OpCode eOp = pToken->GetOpCode(); in GetParameterType() 299 return GetExternalParameterType( pToken, nParameter); in GetParameterType() 334 ScParameterClassification::GetExternalParameterType( const formula::FormulaToken* pToken, in GetExternalParameterType() argument 341 String aFuncName( ScGlobal::pCharClass->upper( pToken->GetExternal())); in GetExternalParameterType()
|
/trunk/main/oox/source/xls/ |
H A D | formulaparser.cxx | 78 processTokens( pToken, pToken + rTokens.getLength() ); in finalizeTokenArray() 308 while( (pToken < pTokenEnd) && (pToken->OpCode == OPCODE_SPACES) ) ++pToken; in isEmptyParameter() 309 if( (pToken < pTokenEnd) && (pToken->OpCode == OPCODE_MISSING) ) ++pToken; in isEmptyParameter() 310 while( (pToken < pTokenEnd) && (pToken->OpCode == OPCODE_SPACES) ) ++pToken; in isEmptyParameter() 318 while( (pToken < pTokenEnd) && (pToken->OpCode == OPCODE_SPACES) ) ++pToken; in getSingleToken() 320 if( pToken < pTokenEnd ) pSingleToken = pToken++; in getSingleToken() 322 while( (pToken < pTokenEnd) && (pToken->OpCode == OPCODE_SPACES) ) ++pToken; in getSingleToken() 331 ++pToken; in skipParentheses() 335 pToken = skipParentheses( pToken, pTokenEnd ); in skipParentheses() 341 return (pToken < pTokenEnd) ? (pToken + 1) : pTokenEnd; in skipParentheses() [all …]
|
/trunk/main/sc/source/ui/unoobj/ |
H A D | chart2uno.cxx | 185 void push_back( FormulaToken* pToken ) in push_back() 187 maTokens.push_back( pToken ); in push_back() 1116 ScSharedTokenRef pToken = *itr; in lcl_addUpperLeftCornerIfMissing() local 1117 switch (pToken->GetType()) in lcl_addUpperLeftCornerIfMissing() 1174 pToken = *itr; in lcl_addUpperLeftCornerIfMissing() 1175 switch (pToken->GetType()) in lcl_addUpperLeftCornerIfMissing() 1212 if (nFileId != pToken->GetIndex() || aExtTabName != pToken->GetString()) in lcl_addUpperLeftCornerIfMissing() 1228 if (nFileId != pToken->GetIndex() || aExtTabName != pToken->GetString()) in lcl_addUpperLeftCornerIfMissing() 1265 pToken = *itr; in lcl_addUpperLeftCornerIfMissing() 1266 switch (pToken->GetType()) in lcl_addUpperLeftCornerIfMissing() [all …]
|
H A D | linkuno.cxx | 1509 ScExternalRefCache::TokenRef pToken; in setCellValue() local 1513 pToken.reset(new FormulaDoubleToken(fVal)); in setCellValue() 1515 pToken.reset(new FormulaStringToken(aVal)); in setCellValue() 1520 mpTable->setCell(static_cast<SCCOL>(nCol), static_cast<SCROW>(nRow), pToken); in setCellValue() 1530 … FormulaToken* pToken = mpTable->getCell(static_cast<SCCOL>(nCol), static_cast<SCROW>(nRow)).get(); in getCellValue() local 1531 if (!pToken) in getCellValue() 1535 switch (pToken->GetType()) in getCellValue() 1539 double fVal = pToken->GetDouble(); in getCellValue() 1545 OUString aVal = pToken->GetString(); in getCellValue()
|
/trunk/main/idl/source/cmptools/ |
H A D | lex.cxx | 208 SvToken * pToken = new SvToken(); in FillTokenList() local 209 aTokList.Insert( pToken, LIST_APPEND ); in FillTokenList() 212 if( !MakeToken( *pToken ) ) in FillTokenList() 215 *pToken = SvToken(); in FillTokenList() 218 pToken->SetLine( p->GetLine() ); in FillTokenList() 219 pToken->SetColumn( p->GetColumn() ); in FillTokenList() 223 else if( pToken->IsComment() ) in FillTokenList() 224 *pToken = SvToken(); in FillTokenList() 225 else if( pToken->IsEof() ) in FillTokenList() 229 pToken = new SvToken(); in FillTokenList() [all …]
|
/trunk/main/forms/source/xforms/xpathlib/ |
H A D | xpathlib.cxx | 405 char* pToken = pString; in parseDuration() local 406 while(pToken[0] != 0) in parseDuration() 408 switch(pToken[0]) { in parseDuration() 410 pToken[0] = 0; in parseDuration() 412 pString = ++pToken; in parseDuration() 415 pToken[0] = 0; in parseDuration() 420 pString = ++pToken; in parseDuration() 423 pToken[0] = 0; in parseDuration() 428 pToken[0] = 0; in parseDuration() 433 pToken[0] = 0; in parseDuration() [all …]
|
/trunk/main/sc/source/core/data/ |
H A D | conditio.cxx | 245 if ( pToken->GetOpCode() == ocPush ) in ScConditionEntry() 247 if ( pToken->GetType() == svDouble ) in ScConditionEntry() 249 nVal1 = pToken->GetDouble(); in ScConditionEntry() 255 aStrVal1 = pToken->GetString(); in ScConditionEntry() 269 if ( pToken->GetOpCode() == ocPush ) in ScConditionEntry() 273 nVal2 = pToken->GetDouble(); in ScConditionEntry() 279 aStrVal2 = pToken->GetString(); in ScConditionEntry() 329 nVal1 = pToken->GetDouble(); in Compile() 335 aStrVal1 = pToken->GetString(); in Compile() 366 nVal2 = pToken->GetDouble(); in Compile() [all …]
|
H A D | validat.cxx | 596 const FormulaToken* pToken = mrTokArr.NextNoSpaces(); in Next() local 597 while( pToken && (pToken->GetOpCode() == ocSep) ) in Next() 598 pToken = mrTokArr.NextNoSpaces(); in Next() 600 mbOk = !pToken || (pToken->GetType() == formula::svString); in Next() 601 const String* pString = (mbOk && pToken) ? &pToken->GetString() : NULL; in Next()
|
H A D | cell2.cxx | 691 FormulaToken* pToken(pCode->NextRPN()); in HasRefListExpressibleAsOneReference() local 693 while (pToken) in HasRefListExpressibleAsOneReference() 695 if (lcl_isReference(*pToken)) in HasRefListExpressibleAsOneReference() 697 aReferences.push_back(dynamic_cast<ScToken*>(pToken)); in HasRefListExpressibleAsOneReference() 698 pToken = pCode->NextRPN(); in HasRefListExpressibleAsOneReference() 702 if (pToken->IsFunction()) in HasRefListExpressibleAsOneReference() 704 pFunction = pToken; in HasRefListExpressibleAsOneReference()
|
/trunk/main/sc/source/ui/docshell/ |
H A D | externalrefmgr.cxx | 255 aCell.mxToken = pToken; in setCell() 602 if (!pToken) in getCellRangeData() 637 if (!pToken) in getCellRangeData() 773 TokenRef pToken; in setCellRangeData() local 784 if (pToken) in setCellRangeData() 1641 if (pToken) in getSingleRefToken() 1654 return pToken; in getSingleRefToken() 1663 return pToken; in getSingleRefToken() 1672 return pToken; in getSingleRefToken() 1692 return pToken; in getSingleRefToken() [all …]
|
/trunk/main/sc/inc/ |
H A D | reftokenhelper.hxx | 55 …static bool getRangeFromToken(ScRange& rRange, const ScSharedTokenRef& pToken, bool bExternal = fa… 62 static void getTokenFromRange(ScSharedTokenRef& pToken, const ScRange& rRange); 66 static bool SC_DLLPUBLIC isRef(const ScSharedTokenRef& pToken); 67 static bool SC_DLLPUBLIC isExternalRef(const ScSharedTokenRef& pToken); 69 …LPUBLIC intersects(const ::std::vector<ScSharedTokenRef>& rTokens, const ScSharedTokenRef& pToken); 71 …c void SC_DLLPUBLIC join(::std::vector<ScSharedTokenRef>& rTokens, const ScSharedTokenRef& pToken); 73 static bool getDoubleRefDataFromToken(ScComplexRefData& rData, const ScSharedTokenRef& pToken);
|
/trunk/main/svl/source/misc/ |
H A D | inettype.cxx | 1145 sal_Char const * pToken = p; in parse() local 1152 if (p == pToken) in parse() 1154 rType = ByteString(pToken, sal::static_int_cast< xub_StrLen >(p - pToken)); in parse() 1163 pToken = p; in parse() 1170 if (p == pToken) in parse() 1173 pToken, sal::static_int_cast< xub_StrLen >(p - pToken)); in parse() 1197 if (p == pToken) in parse() 1199 rType = UniString(pToken, sal::static_int_cast< xub_StrLen >(p - pToken)); in parse() 1208 pToken = p; in parse() 1215 if (p == pToken) in parse() [all …]
|
/trunk/main/l10ntools/source/ |
H A D | cfgmerge.cxx | 395 int CfgParser::ExecuteAnalyzedToken( int nToken, char *pToken ) in ExecuteAnalyzedToken() argument 398 ByteString sToken( pToken ); in ExecuteAnalyzedToken() 546 int CfgParser::Execute( int nToken, char * pToken ) in Execute() argument 549 ByteString sToken( pToken ); in Execute() 554 return ExecuteAnalyzedToken( CFG_TOKEN_PACKAGE, pToken ); in Execute() 556 return ExecuteAnalyzedToken( CFG_TOKEN_COMPONENT, pToken ); in Execute() 558 return ExecuteAnalyzedToken( CFG_TOKEN_TEMPLATE, pToken ); in Execute() 560 return ExecuteAnalyzedToken( CFG_TOKEN_OORNAME, pToken ); in Execute() 562 return ExecuteAnalyzedToken( CFG_TOKEN_OORNAME, pToken ); in Execute() 564 return ExecuteAnalyzedToken( CFG_TOKEN_OORVALUE, pToken ); in Execute() [all …]
|
/trunk/main/formula/source/ui/dlg/ |
H A D | structpg.cxx | 60 SvLBoxEntry* pParent, sal_uLong nPos, IFormulaToken* pToken ) in InsertStaticEntry() argument 62 …SvLBoxEntry* pEntry = InsertEntry( rText, rEntryImg, rEntryImg, pParent, sal_False, nPos, pToken ); in InsertStaticEntry() 171 IFormulaToken * pToken=(IFormulaToken *)pEntry->GetUserData(); in GetFunctionEntry() local 172 if(pToken!=NULL) in GetFunctionEntry() 174 if ( !(pToken->isFunction() || pToken->getArgumentCount() > 1 ) ) in GetFunctionEntry() 180 return pToken; in GetFunctionEntry()
|
/trunk/main/autodoc/source/parser_i/idoc/ |
H A D | docu_pe2.cxx | 501 DT_TextToken * pToken = dynamic_cast< DT_TextToken* >(&let_drNewToken); in SetCurSinceAtTagVersion_OOo() local 502 if (pToken == 0) in SetCurSinceAtTagVersion_OOo() 509 sVersion(pToken->GetText()); in SetCurSinceAtTagVersion_OOo() 533 DT_TextToken * pToken = dynamic_cast< DT_TextToken* >(&let_drNewToken); in SetCurSinceAtTagVersion_Number() local 534 if (pToken == 0) in SetCurSinceAtTagVersion_Number() 550 sVersion(pToken->GetText()); in SetCurSinceAtTagVersion_Number() 597 pToken = dynamic_cast< DT_TextToken* >(&let_drNewToken); in AddDocuToken2SinceAtTag() local 598 if (pToken != 0) in AddDocuToken2SinceAtTag() 600 sValue = sHelp() << sValue << pToken->GetText() << c_str; in AddDocuToken2SinceAtTag()
|
/trunk/main/xmloff/source/transform/ |
H A D | MetaTContext.cxx | 99 XMLTokenEnum *pToken = aMetaTokens; in EndElement() local 100 while( *pToken != XML_TOKEN_END ) in EndElement() 102 const OUString& rToken = GetXMLToken( *pToken ); in EndElement() 107 if( XML_KEYWORD == *pToken ) in EndElement() 128 if( XML_KEYWORD == *pToken ) in EndElement() 131 pToken++; in EndElement()
|
/trunk/main/writerfilter/source/ooxml/ |
H A D | OOXMLFastTokenHandler.cxx | 51 struct tokenmap::token * pToken = in getToken() local 56 if (pToken != NULL) in getToken() 57 nResult = pToken->nToken; in getToken() 112 struct tokenmap::token * pToken = in getTokenFromUTF8() local 117 if (pToken != NULL) in getTokenFromUTF8() 118 nResult = pToken->nToken; in getTokenFromUTF8()
|
/trunk/main/oox/inc/oox/xls/ |
H A D | formulaparser.hxx | 79 void processTokens( const ApiToken* pToken, const ApiToken* pTokenEnd ); 80 …const ApiToken* processParameters( const FunctionInfo& rFuncInfo, const ApiToken* pToken, cons… 82 bool isEmptyParameter( const ApiToken* pToken, const ApiToken* pTokenEnd ) const; 83 const ApiToken* getSingleToken( const ApiToken* pToken, const ApiToken* pTokenEnd ) const; 84 const ApiToken* skipParentheses( const ApiToken* pToken, const ApiToken* pTokenEnd ) const; 85 …const ApiToken* findParameters( ParameterPosVector& rParams, const ApiToken* pToken, const Api…
|
/trunk/main/sc/source/filter/excel/ |
H A D | xilink.cxx | 414 ScExternalRefCache::TokenRef pToken(new formula::FormulaDoubleToken(b ? 1.0 : 0.0)); in LoadCachedValues() local 415 pCacheTable->setCell(rAddr.mnCol, rAddr.mnRow, pToken); in LoadCachedValues() 421 ScExternalRefCache::TokenRef pToken(new formula::FormulaDoubleToken(f)); in LoadCachedValues() local 422 pCacheTable->setCell(rAddr.mnCol, rAddr.mnRow, pToken); in LoadCachedValues() 428 ScExternalRefCache::TokenRef pToken(new formula::FormulaDoubleToken(fError)); in LoadCachedValues() local 429 pCacheTable->setCell(rAddr.mnCol, rAddr.mnRow, pToken); in LoadCachedValues() 435 ScExternalRefCache::TokenRef pToken(new formula::FormulaStringToken(rStr)); in LoadCachedValues() local 436 pCacheTable->setCell(rAddr.mnCol, rAddr.mnRow, pToken); in LoadCachedValues()
|
/trunk/main/sc/source/ui/miscdlgs/ |
H A D | anyrefdg.cxx | 214 const ScToken* pToken = static_cast<const ScToken*>(pScTokA->GetNextReference()); in ShowFormulaReference() local 218 while(pToken!=NULL) in ShowFormulaReference() 220 sal_Bool bDoubleRef=(pToken->GetType()==formula::svDoubleRef); in ShowFormulaReference() 223 if(pToken->GetType()==formula::svSingleRef || bDoubleRef) in ShowFormulaReference() 228 ScComplexRefData aRef( pToken->GetDoubleRef() ); in ShowFormulaReference() 235 ScSingleRefData aRef( pToken->GetSingleRef() ); in ShowFormulaReference() 244 pToken = static_cast<const ScToken*>(pScTokA->GetNextReference()); in ShowFormulaReference()
|
/trunk/main/autodoc/source/exes/adc_uni/ |
H A D | adc_cl.cxx | 468 pToken = aIncludedCommands.CutToken(); in load_IncludedCommands() local 471 if ( strncmp(pToken, "-I:", 3) != 0 ) in load_IncludedCommands() 474 aTransmit() << pToken; in load_IncludedCommands() 480 load_IncludedCommands(out, pToken+3); in load_IncludedCommands()
|
/trunk/main/sw/source/ui/index/ |
H A D | cnttab.cxx | 2844 if(pToken->sCharStyleName.Len()) in IMPL_LINK() 2845 aCharStyleLB.SelectEntry(pToken->sCharStyleName); in IMPL_LINK() 2853 if(pToken->eTokenType == TOKEN_CHAPTER_INFO) in IMPL_LINK() 2856 switch(pToken->nChapterFormat) in IMPL_LINK() 2885 if(pToken->eTokenType == TOKEN_ENTRY_NO) in IMPL_LINK() 2913 aFillCharCB.SetText(pToken->cTabFillChar); in IMPL_LINK() 2938 aEntryNoPB.Enable(TOKEN_ENTRY_NO != pToken->eTokenType ); in IMPL_LINK() 2942 aEntryPB.Enable(TOKEN_ENTRY_TEXT != pToken->eTokenType && in IMPL_LINK() 2953 aPageNoPB.Enable(TOKEN_PAGE_NUMS != pToken->eTokenType && in IMPL_LINK() 2963 TOKEN_LINK_END != pToken->eTokenType); in IMPL_LINK() [all …]
|