Lines Matching refs:pNode
774 void SmXMLExport::ExportLine(const SmNode *pNode, int nLevel) in ExportLine() argument
776 ExportExpression(pNode, nLevel); in ExportLine()
779 void SmXMLExport::ExportBinaryHorizontal(const SmNode *pNode, int nLevel) in ExportBinaryHorizontal() argument
781 ExportExpression(pNode, nLevel); in ExportBinaryHorizontal()
784 void SmXMLExport::ExportUnaryHorizontal(const SmNode *pNode, int nLevel) in ExportUnaryHorizontal() argument
786 ExportExpression(pNode, nLevel); in ExportUnaryHorizontal()
789 void SmXMLExport::ExportExpression(const SmNode *pNode, int nLevel) in ExportExpression() argument
792 sal_uLong nSize = pNode->GetNumSubNodes(); in ExportExpression()
795 if (nSize > 1 || (pNode && pNode->GetType() == NEXPRESSION)) in ExportExpression()
801 if (const SmNode *pTemp = pNode->GetSubNode(i)) in ExportExpression()
819 void SmXMLExport::ExportBinaryVertical(const SmNode *pNode, int nLevel) in ExportBinaryVertical() argument
821 DBG_ASSERT(pNode->GetNumSubNodes()==3,"Bad Fraction"); in ExportBinaryVertical()
823 ExportNodes(pNode->GetSubNode(0), nLevel); in ExportBinaryVertical()
824 ExportNodes(pNode->GetSubNode(2), nLevel); in ExportBinaryVertical()
827 void SmXMLExport::ExportTable(const SmNode *pNode, int nLevel) in ExportTable() argument
831 sal_uInt16 nSize = pNode->GetNumSubNodes(); in ExportTable()
837 if (nSize >= 1 && pNode->GetSubNode(nSize-1)->GetNumSubNodes() == 0) in ExportTable()
846 if (const SmNode *pTemp = pNode->GetSubNode(i)) in ExportTable()
863 void SmXMLExport::ExportMath(const SmNode *pNode, int /*nLevel*/) in ExportMath() argument
865 const SmMathSymbolNode *pTemp = static_cast<const SmMathSymbolNode *>(pNode); in ExportMath()
877 void SmXMLExport::ExportText(const SmNode *pNode, int /*nLevel*/) in ExportText() argument
880 const SmTextNode *pTemp = static_cast<const SmTextNode *>(pNode); in ExportText()
881 switch (pNode->GetToken().eType) in ExportText()
922 void SmXMLExport::ExportSubSupScript(const SmNode *pNode, int nLevel) in ExportSubSupScript() argument
937 pLSub = pNode->GetSubNode(LSUB+1); in ExportSubSupScript()
938 pLSup = pNode->GetSubNode(LSUP+1); in ExportSubSupScript()
945 if (NULL != (pCSub = pNode->GetSubNode(CSUB+1)) in ExportSubSupScript()
946 && NULL != (pCSup = pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
951 else if (NULL != (pCSub = pNode->GetSubNode(CSUB+1))) in ExportSubSupScript()
956 else if (NULL != (pCSup = pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
962 ExportNodes(pNode->GetSubNode(0), nLevel+1); //Main Term in ExportSubSupScript()
970 pSub = pNode->GetSubNode(RSUB+1); in ExportSubSupScript()
971 pSup = pNode->GetSubNode(RSUP+1); in ExportSubSupScript()
1013 if (NULL != (pSub = pNode->GetSubNode(RSUB+1)) && in ExportSubSupScript()
1014 NULL != (pSup = pNode->GetSubNode(RSUP+1))) in ExportSubSupScript()
1019 else if (NULL != (pSub = pNode->GetSubNode(RSUB+1))) in ExportSubSupScript()
1024 else if (NULL != (pSup = pNode->GetSubNode(RSUP+1))) in ExportSubSupScript()
1030 if (NULL != (pCSub = pNode->GetSubNode(CSUB+1)) in ExportSubSupScript()
1031 && NULL != (pCSup=pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
1036 else if (NULL != (pCSub = pNode->GetSubNode(CSUB+1))) in ExportSubSupScript()
1041 else if (NULL != (pCSup = pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
1046 ExportNodes(pNode->GetSubNode(0), nLevel+1); //Main Term in ExportSubSupScript()
1062 void SmXMLExport::ExportBrace(const SmNode *pNode, int nLevel) in ExportBrace() argument
1065 const SmNode *pLeft=pNode->GetSubNode(0); in ExportBrace()
1066 const SmNode *pRight=pNode->GetSubNode(2); in ExportBrace()
1070 (pNode->GetScaleMode() == SCALE_HEIGHT)) in ExportBrace()
1089 if (pNode->GetScaleMode() == SCALE_HEIGHT) in ExportBrace()
1099 if (NULL != (pTemp = pNode->GetSubNode(1))) in ExportBrace()
1105 if (pNode->GetScaleMode() == SCALE_HEIGHT) in ExportBrace()
1114 void SmXMLExport::ExportRoot(const SmNode *pNode, int nLevel) in ExportRoot() argument
1116 if (pNode->GetSubNode(0)) in ExportRoot()
1120 ExportNodes(pNode->GetSubNode(2), nLevel+1); in ExportRoot()
1121 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportRoot()
1127 ExportNodes(pNode->GetSubNode(2), nLevel+1); in ExportRoot()
1131 void SmXMLExport::ExportOperator(const SmNode *pNode, int nLevel) in ExportOperator() argument
1139 SmTextNode *pTemp = (SmTextNode *)pNode->GetSubNode(0); in ExportOperator()
1145 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportOperator()
1146 ExportNodes(pNode->GetSubNode(1), nLevel+1); in ExportOperator()
1149 void SmXMLExport::ExportAttributes(const SmNode *pNode, int nLevel) in ExportAttributes() argument
1153 if (pNode->GetToken().eType == TUNDERLINE) in ExportAttributes()
1160 else if (pNode->GetToken().eType != TOVERSTRIKE) in ExportAttributes()
1168 ExportNodes(pNode->GetSubNode(1), nLevel+1); in ExportAttributes()
1169 switch (pNode->GetToken().eType) in ExportAttributes()
1202 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportAttributes()
1215 void SmXMLExport::ExportFont(const SmNode *pNode, int nLevel) in ExportFont() argument
1227 while (lcl_HasEffectOnMathvariant( (eNodeType = pNode->GetToken().eType) )) in ExportFont()
1244 if (pNode->GetNumSubNodes() > 1 && pNode->GetSubNode(1) && in ExportFont()
1245 lcl_HasEffectOnMathvariant( pNode->GetSubNode(1)->GetToken().eType)) in ExportFont()
1247 pNode = pNode->GetSubNode(1); in ExportFont()
1253 switch (pNode->GetToken().eType) in ExportFont()
1286 const SmFontNode *pFontNode = static_cast<const SmFontNode *>(pNode); in ExportFont()
1383 if (pNode->GetNumSubNodes() > 1) //or in the future is a node that in ExportFont()
1392 ExportExpression(pNode, nLevel); in ExportFont()
1396 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportFont()
1403 void SmXMLExport::ExportVerticalBrace(const SmNode *pNode, int nLevel) in ExportVerticalBrace() argument
1411 switch (pNode->GetToken().eType) in ExportVerticalBrace()
1422 DBG_ASSERT(pNode->GetNumSubNodes()==3,"Bad Vertical Brace"); in ExportVerticalBrace()
1430 ExportNodes(pNode->GetSubNode(0), nLevel); in ExportVerticalBrace()
1431 ExportNodes(pNode->GetSubNode(1), nLevel); in ExportVerticalBrace()
1433 ExportNodes(pNode->GetSubNode(2), nLevel); in ExportVerticalBrace()
1436 void SmXMLExport::ExportMatrix(const SmNode *pNode, int nLevel) in ExportMatrix() argument
1439 const SmMatrixNode *pMatrix = static_cast<const SmMatrixNode *>(pNode); in ExportMatrix()
1445 if (const SmNode *pTemp = pNode->GetSubNode(i++)) in ExportMatrix()
1453 void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel) in ExportNodes() argument
1455 if (!pNode) in ExportNodes()
1457 switch(pNode->GetType()) in ExportNodes()
1460 ExportTable(pNode, nLevel); in ExportNodes()
1465 ExportExpression(pNode, nLevel); in ExportNodes()
1468 ExportLine(pNode, nLevel); in ExportNodes()
1471 ExportText(pNode, nLevel); in ExportNodes()
1478 const SmTextNode *pTemp = static_cast< const SmTextNode * >(pNode); in ExportNodes()
1485 ExportText(pNode, nLevel); in ExportNodes()
1511 ExportMath(pNode, nLevel); in ExportNodes()
1516 ExportMath(pNode, nLevel); in ExportNodes()
1519 ExportBinaryHorizontal(pNode, nLevel); in ExportNodes()
1522 ExportUnaryHorizontal(pNode, nLevel); in ExportNodes()
1525 ExportBrace(pNode, nLevel); in ExportNodes()
1528 ExportBinaryVertical(pNode, nLevel); in ExportNodes()
1531 ExportSubSupScript(pNode, nLevel); in ExportNodes()
1534 ExportRoot(pNode, nLevel); in ExportNodes()
1537 ExportOperator(pNode, nLevel); in ExportNodes()
1540 ExportAttributes(pNode, nLevel); in ExportNodes()
1543 ExportFont(pNode, nLevel); in ExportNodes()
1546 ExportVerticalBrace(pNode, nLevel); in ExportNodes()
1549 ExportMatrix(pNode, nLevel); in ExportNodes()
1552 ExportBlank(pNode, nLevel); in ExportNodes()
1561 sal_uLong nSize = pNode->GetNumSubNodes(); in ExportNodes()
1563 if (SmNode *pTemp = pNode->GetSubNode(i)) in ExportNodes()