Lines Matching refs:pNode
772 void SmXMLExport::ExportLine(const SmNode *pNode, int nLevel) in ExportLine() argument
774 ExportExpression(pNode, nLevel); in ExportLine()
777 void SmXMLExport::ExportBinaryHorizontal(const SmNode *pNode, int nLevel) in ExportBinaryHorizontal() argument
779 ExportExpression(pNode, nLevel); in ExportBinaryHorizontal()
782 void SmXMLExport::ExportUnaryHorizontal(const SmNode *pNode, int nLevel) in ExportUnaryHorizontal() argument
784 ExportExpression(pNode, nLevel); in ExportUnaryHorizontal()
787 void SmXMLExport::ExportExpression(const SmNode *pNode, int nLevel) in ExportExpression() argument
790 sal_uLong nSize = pNode->GetNumSubNodes(); in ExportExpression()
793 if (nSize > 1 || (pNode && pNode->GetType() == NEXPRESSION)) in ExportExpression()
799 if (const SmNode *pTemp = pNode->GetSubNode(i)) in ExportExpression()
817 void SmXMLExport::ExportBinaryVertical(const SmNode *pNode, int nLevel) in ExportBinaryVertical() argument
819 DBG_ASSERT(pNode->GetNumSubNodes()==3,"Bad Fraction"); in ExportBinaryVertical()
821 ExportNodes(pNode->GetSubNode(0), nLevel); in ExportBinaryVertical()
822 ExportNodes(pNode->GetSubNode(2), nLevel); in ExportBinaryVertical()
825 void SmXMLExport::ExportTable(const SmNode *pNode, int nLevel) in ExportTable() argument
829 sal_uInt16 nSize = pNode->GetNumSubNodes(); in ExportTable()
835 if (nSize >= 1 && pNode->GetSubNode(nSize-1)->GetNumSubNodes() == 0) in ExportTable()
844 if (const SmNode *pTemp = pNode->GetSubNode(i)) in ExportTable()
861 void SmXMLExport::ExportMath(const SmNode *pNode, int /*nLevel*/) in ExportMath() argument
863 const SmMathSymbolNode *pTemp = static_cast<const SmMathSymbolNode *>(pNode); in ExportMath()
875 void SmXMLExport::ExportText(const SmNode *pNode, int /*nLevel*/) in ExportText() argument
878 const SmTextNode *pTemp = static_cast<const SmTextNode *>(pNode); in ExportText()
879 switch (pNode->GetToken().eType) in ExportText()
920 void SmXMLExport::ExportSubSupScript(const SmNode *pNode, int nLevel) in ExportSubSupScript() argument
935 pLSub = pNode->GetSubNode(LSUB+1); in ExportSubSupScript()
936 pLSup = pNode->GetSubNode(LSUP+1); in ExportSubSupScript()
943 if (NULL != (pCSub = pNode->GetSubNode(CSUB+1)) in ExportSubSupScript()
944 && NULL != (pCSup = pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
949 else if (NULL != (pCSub = pNode->GetSubNode(CSUB+1))) in ExportSubSupScript()
954 else if (NULL != (pCSup = pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
960 ExportNodes(pNode->GetSubNode(0), nLevel+1); //Main Term in ExportSubSupScript()
968 pSub = pNode->GetSubNode(RSUB+1); in ExportSubSupScript()
969 pSup = pNode->GetSubNode(RSUP+1); in ExportSubSupScript()
1011 if (NULL != (pSub = pNode->GetSubNode(RSUB+1)) && in ExportSubSupScript()
1012 NULL != (pSup = pNode->GetSubNode(RSUP+1))) in ExportSubSupScript()
1017 else if (NULL != (pSub = pNode->GetSubNode(RSUB+1))) in ExportSubSupScript()
1022 else if (NULL != (pSup = pNode->GetSubNode(RSUP+1))) in ExportSubSupScript()
1028 if (NULL != (pCSub = pNode->GetSubNode(CSUB+1)) in ExportSubSupScript()
1029 && NULL != (pCSup=pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
1034 else if (NULL != (pCSub = pNode->GetSubNode(CSUB+1))) in ExportSubSupScript()
1039 else if (NULL != (pCSup = pNode->GetSubNode(CSUP+1))) in ExportSubSupScript()
1044 ExportNodes(pNode->GetSubNode(0), nLevel+1); //Main Term in ExportSubSupScript()
1060 void SmXMLExport::ExportBrace(const SmNode *pNode, int nLevel) in ExportBrace() argument
1063 const SmNode *pLeft=pNode->GetSubNode(0); in ExportBrace()
1064 const SmNode *pRight=pNode->GetSubNode(2); in ExportBrace()
1068 (pNode->GetScaleMode() == SCALE_HEIGHT)) in ExportBrace()
1087 if (pNode->GetScaleMode() == SCALE_HEIGHT) in ExportBrace()
1097 if (NULL != (pTemp = pNode->GetSubNode(1))) in ExportBrace()
1103 if (pNode->GetScaleMode() == SCALE_HEIGHT) in ExportBrace()
1112 void SmXMLExport::ExportRoot(const SmNode *pNode, int nLevel) in ExportRoot() argument
1114 if (pNode->GetSubNode(0)) in ExportRoot()
1118 ExportNodes(pNode->GetSubNode(2), nLevel+1); in ExportRoot()
1119 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportRoot()
1125 ExportNodes(pNode->GetSubNode(2), nLevel+1); in ExportRoot()
1129 void SmXMLExport::ExportOperator(const SmNode *pNode, int nLevel) in ExportOperator() argument
1137 SmTextNode *pTemp = (SmTextNode *)pNode->GetSubNode(0); in ExportOperator()
1143 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportOperator()
1144 ExportNodes(pNode->GetSubNode(1), nLevel+1); in ExportOperator()
1147 void SmXMLExport::ExportAttributes(const SmNode *pNode, int nLevel) in ExportAttributes() argument
1151 if (pNode->GetToken().eType == TUNDERLINE) in ExportAttributes()
1158 else if (pNode->GetToken().eType != TOVERSTRIKE) in ExportAttributes()
1166 ExportNodes(pNode->GetSubNode(1), nLevel+1); in ExportAttributes()
1167 switch (pNode->GetToken().eType) in ExportAttributes()
1200 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportAttributes()
1213 void SmXMLExport::ExportFont(const SmNode *pNode, int nLevel) in ExportFont() argument
1225 while (lcl_HasEffectOnMathvariant( (eNodeType = pNode->GetToken().eType) )) in ExportFont()
1242 if (pNode->GetNumSubNodes() > 1 && pNode->GetSubNode(1) && in ExportFont()
1243 lcl_HasEffectOnMathvariant( pNode->GetSubNode(1)->GetToken().eType)) in ExportFont()
1245 pNode = pNode->GetSubNode(1); in ExportFont()
1251 switch (pNode->GetToken().eType) in ExportFont()
1314 const SmFontNode *pFontNode = static_cast<const SmFontNode *>(pNode); in ExportFont()
1411 if (pNode->GetNumSubNodes() > 1) //or in the future is a node that in ExportFont()
1420 ExportExpression(pNode, nLevel); in ExportFont()
1424 ExportNodes(pNode->GetSubNode(0), nLevel+1); in ExportFont()
1431 void SmXMLExport::ExportVerticalBrace(const SmNode *pNode, int nLevel) in ExportVerticalBrace() argument
1439 switch (pNode->GetToken().eType) in ExportVerticalBrace()
1450 DBG_ASSERT(pNode->GetNumSubNodes()==3,"Bad Vertical Brace"); in ExportVerticalBrace()
1458 ExportNodes(pNode->GetSubNode(0), nLevel); in ExportVerticalBrace()
1459 ExportNodes(pNode->GetSubNode(1), nLevel); in ExportVerticalBrace()
1461 ExportNodes(pNode->GetSubNode(2), nLevel); in ExportVerticalBrace()
1464 void SmXMLExport::ExportMatrix(const SmNode *pNode, int nLevel) in ExportMatrix() argument
1467 const SmMatrixNode *pMatrix = static_cast<const SmMatrixNode *>(pNode); in ExportMatrix()
1473 if (const SmNode *pTemp = pNode->GetSubNode(i++)) in ExportMatrix()
1481 void SmXMLExport::ExportNodes(const SmNode *pNode, int nLevel) in ExportNodes() argument
1483 if (!pNode) in ExportNodes()
1485 switch(pNode->GetType()) in ExportNodes()
1488 ExportTable(pNode, nLevel); in ExportNodes()
1493 ExportExpression(pNode, nLevel); in ExportNodes()
1496 ExportLine(pNode, nLevel); in ExportNodes()
1499 ExportText(pNode, nLevel); in ExportNodes()
1506 const SmTextNode *pTemp = static_cast< const SmTextNode * >(pNode); in ExportNodes()
1513 ExportText(pNode, nLevel); in ExportNodes()
1539 ExportMath(pNode, nLevel); in ExportNodes()
1544 ExportMath(pNode, nLevel); in ExportNodes()
1547 ExportBinaryHorizontal(pNode, nLevel); in ExportNodes()
1550 ExportUnaryHorizontal(pNode, nLevel); in ExportNodes()
1553 ExportBrace(pNode, nLevel); in ExportNodes()
1556 ExportBinaryVertical(pNode, nLevel); in ExportNodes()
1559 ExportSubSupScript(pNode, nLevel); in ExportNodes()
1562 ExportRoot(pNode, nLevel); in ExportNodes()
1565 ExportOperator(pNode, nLevel); in ExportNodes()
1568 ExportAttributes(pNode, nLevel); in ExportNodes()
1571 ExportFont(pNode, nLevel); in ExportNodes()
1574 ExportVerticalBrace(pNode, nLevel); in ExportNodes()
1577 ExportMatrix(pNode, nLevel); in ExportNodes()
1580 ExportBlank(pNode, nLevel); in ExportNodes()
1589 sal_uLong nSize = pNode->GetNumSubNodes(); in ExportNodes()
1591 if (SmNode *pTemp = pNode->GetSubNode(i)) in ExportNodes()