diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-09-25 19:56:52 +0900 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-09-29 20:13:26 +0000 |
commit | 663e26f24f1fa1abadc37838983bebd7407d65f8 (patch) | |
tree | 27217b4520199f2fb3eff00d3c02b223563cad44 /starmath/source/visitors.cxx | |
parent | 38d61128467aedc2935443be21c38168f5e00df6 (diff) |
tdf#53472, tdf#102268: Reimplement "intd"
This reverts its original implementation introduced with
93e6291c29d547c0c29c6e43b2ca4b36a3e8506f partially, and
improves the patch proposed at 746633bd0315939fd5e0b50c90692d356d2ed678
(but reverted at e265ea36df02310881e959a031b74578b323bfa5).
Change-Id: If0aa5b985cac45a1cd9ea87bae293243af9d12b2
Reviewed-on: https://gerrit.libreoffice.org/29271
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'starmath/source/visitors.cxx')
-rw-r--r-- | starmath/source/visitors.cxx | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 0c3b0caaef0e..d9de2bed20a2 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -141,16 +141,6 @@ void SmDefaultingVisitor::Visit( SmRootSymbolNode* pNode ) DefaultVisit( pNode ); } -void SmDefaultingVisitor::Visit( SmDynIntegralNode* pNode ) -{ - DefaultVisit( pNode ); -} - -void SmDefaultingVisitor::Visit( SmDynIntegralSymbolNode* pNode ) -{ - DefaultVisit( pNode ); -} - void SmDefaultingVisitor::Visit( SmRectangleNode* pNode ) { DefaultVisit( pNode ); @@ -393,11 +383,6 @@ void SmDrawingVisitor::Visit( SmRootNode* pNode ) DrawChildren( pNode ); } -void SmDrawingVisitor::Visit(SmDynIntegralNode* pNode) -{ - DrawChildren( pNode ); -} - void SmDrawingVisitor::Visit( SmVerticalBraceNode* pNode ) { DrawChildren( pNode ); @@ -436,22 +421,6 @@ void SmDrawingVisitor::Visit( SmRootSymbolNode* pNode ) mrDev.DrawRect( aBar ); } -void SmDrawingVisitor::Visit( SmDynIntegralSymbolNode* pNode ) -{ - if ( pNode->IsPhantom( ) ) - return; - - // draw integral-sign itself - DrawSpecialNode( pNode ); - - //! the rest of this may not be needed at all - - // this should be something like: - // instead of just drawing the node, take some information about the body. - // This is also how SmRootSymbol does it (probably by means of SmRootNode) - // NEXT: Check out SmRootNode -} - void SmDrawingVisitor::Visit( SmPolyLineNode* pNode ) { if ( pNode->IsPhantom( ) ) @@ -1444,39 +1413,6 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmRootNode* pNode ) } -void SmCaretPosGraphBuildingVisitor::Visit( SmDynIntegralNode* pNode ) -{ - //! To be changed: Integrals don't have args. - SmNode *pBody = pNode->Body(); //Body of the root - assert(pBody); - - SmCaretPosGraphEntry *left, - *right, - *bodyLeft, - *bodyRight; - - //Get left and save it - assert(mpRightMost); - left = mpRightMost; - - //Create body left - bodyLeft = mpGraph->Add( SmCaretPos( pBody, 0 ), left ); - left->SetRight( bodyLeft ); - - //Create right - right = mpGraph->Add( SmCaretPos( pNode, 1 ) ); - - //Visit body - mpRightMost = bodyLeft; - pBody->Accept( this ); - bodyRight = mpRightMost; - bodyRight->SetRight( right ); - right->SetLeft( bodyRight ); - - mpRightMost = right; -} - - /** Build SmCaretPosGraph for SmPlaceNode * Consider this a single character. */ @@ -1621,12 +1557,6 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmRootSymbolNode* ) //Do nothing } -void SmCaretPosGraphBuildingVisitor::Visit( SmDynIntegralSymbolNode* ) -{ - //Do nothing -} - - void SmCaretPosGraphBuildingVisitor::Visit( SmRectangleNode* ) { //Do nothing @@ -1870,20 +1800,6 @@ void SmCloningVisitor::Visit( SmRootSymbolNode* pNode ) CloneNodeAttr( pNode, pResult ); } -void SmCloningVisitor::Visit( SmDynIntegralNode* pNode ) -{ - SmDynIntegralNode* pClone = new SmDynIntegralNode( pNode->GetToken( ) ); - CloneNodeAttr( pNode, pClone ); - CloneKids( pNode, pClone ); - pResult = pClone; -} - -void SmCloningVisitor::Visit( SmDynIntegralSymbolNode* pNode ) -{ - pResult = new SmDynIntegralSymbolNode( pNode->GetToken( ) ); - CloneNodeAttr( pNode, pResult ); -} - void SmCloningVisitor::Visit( SmRectangleNode* pNode ) { pResult = new SmRectangleNode( pNode->GetToken( ) ); @@ -2443,17 +2359,6 @@ void SmNodeToTextVisitor::Visit( SmRootSymbolNode* ) { } -void SmNodeToTextVisitor::Visit( SmDynIntegralNode* pNode ) -{ - SmNode *pBody = pNode->Body(); - Append( "intd" ); - LineToText( pBody ); -} - -void SmNodeToTextVisitor::Visit( SmDynIntegralSymbolNode* ) -{ -} - void SmNodeToTextVisitor::Visit( SmRectangleNode* ) { } |