[Libreoffice-commits] .: starmath/source

Lubos Lunak llunak at kemper.freedesktop.org
Thu Aug 18 06:45:05 PDT 2011


 starmath/source/ooxml.cxx |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

New commits:
commit 6d6605dc872609a972a8cb9b2f7c8f28cef718f8
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Thu Aug 18 15:44:10 2011 +0200

    no debug output

diff --git a/starmath/source/ooxml.cxx b/starmath/source/ooxml.cxx
index b7c8092..aea6e09 100644
--- a/starmath/source/ooxml.cxx
+++ b/starmath/source/ooxml.cxx
@@ -90,9 +90,12 @@ bool SmOoxml::ConvertFromStarMath( ::sax_fastparser::FSHelperPtr serializer )
     return true;
 }
 
+// NOTE: This is still work in progress and unfinished, but it already covers a good
+// part of the ooxml math stuff.
+
 void SmOoxml::HandleNode( const SmNode* pNode, int nLevel )
 {
-    fprintf(stderr,"XX %d %d %d\n", nLevel, pNode->GetType(), pNode->GetNumSubNodes());
+//    fprintf(stderr,"XX %d %d %d\n", nLevel, pNode->GetType(), pNode->GetNumSubNodes());
     switch(pNode->GetType())
     {
         case NATTRIBUT:
@@ -253,7 +256,7 @@ void SmOoxml::HandleText( const SmNode* pNode, int /*nLevel*/)
     }
     m_pSerializer->startElementNS( XML_m, XML_t, FSEND );
     SmTextNode* pTemp=(SmTextNode* )pNode;
-    fprintf(stderr, "T %s\n", rtl::OUStringToOString( pTemp->GetText(), RTL_TEXTENCODING_UTF8 ).getStr());
+//    fprintf(stderr, "T %s\n", rtl::OUStringToOString( pTemp->GetText(), RTL_TEXTENCODING_UTF8 ).getStr());
     for(xub_StrLen i=0;i<pTemp->GetText().Len();i++)
     {
 #if 0
@@ -332,7 +335,7 @@ void SmOoxml::HandleFractions( const SmNode* pNode, int nLevel, const char* type
 void SmOoxml::HandleUnaryOperation( const SmUnHorNode* pNode, int nLevel )
 {
     // update HandleMath() when adding new items
-    fprintf(stderr,"UNARY %d\n", pNode->Symbol()->GetToken().eType );
+//    fprintf(stderr,"UNARY %d\n", pNode->Symbol()->GetToken().eType );
     switch( pNode->Symbol()->GetToken().eType )
     {
         default:
@@ -343,7 +346,7 @@ void SmOoxml::HandleUnaryOperation( const SmUnHorNode* pNode, int nLevel )
 
 void SmOoxml::HandleBinaryOperation( const SmBinHorNode* pNode, int nLevel )
 {
-    fprintf(stderr,"BINARY %d\n", pNode->Symbol()->GetToken().eType );
+//    fprintf(stderr,"BINARY %d\n", pNode->Symbol()->GetToken().eType );
     // update HandleMath() when adding new items
     switch( pNode->Symbol()->GetToken().eType )
     {
@@ -386,7 +389,7 @@ void SmOoxml::HandleAttribute( const SmAttributNode* pNode, int nLevel )
 
 void SmOoxml::HandleMath( const SmNode* pNode, int nLevel )
 {
-    fprintf(stderr,"MATH %d\n", pNode->GetToken().eType);
+//    fprintf(stderr,"MATH %d\n", pNode->GetToken().eType);
     switch( pNode->GetToken().eType )
     {
         case TDIVIDEBY:


More information about the Libreoffice-commits mailing list