[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/libs/kformula
From:       Alfredo Beaumont Sainz <alfredo.beaumont () gmail ! com>
Date:       2006-09-03 16:26:56
Message-ID: 1157300816.923299.14881.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 580476 by abeaumont:

SoC forwardport: Start forwardporting work done during Summer of Code from 1.6
branch to trunk. This is forwardporting of r547994, the libkformula part,
kword part still pending.


 M  +6 -1      FormulaContainer.cpp  
 M  +6 -0      FormulaContainer.h  


--- trunk/koffice/libs/kformula/FormulaContainer.cpp #580475:580476
@@ -529,8 +529,13 @@
 
 bool Container::loadMathML( const QDomDocument &doc, bool oasisFormat )
 {
+    return loadMathML( doc.documentElement(), oasisFormat );
+}
+
+bool Container::loadMathML( const QDomElement &element, bool oasisFormat )
+{
 /*    const ContextStyle& context = document()->getContextStyle();
-    MathML2KFormula filter( doc, context, oasisFormat );
+    MathML2KFormula filter( element, context, oasisFormat );
     filter.startConversion();
     if (filter.m_error) {
         return false;
--- trunk/koffice/libs/kformula/FormulaContainer.h #580475:580476
@@ -193,6 +193,12 @@
     bool loadMathML( const QDomDocument &doc, bool oasisFormat = false );
 
     /**
+     * Load function.
+     * Load the formula from the specified file containing MathML .
+     */
+    bool loadMathML( const QDomElement &element, bool oasisFormat = false );
+
+    /**
      * Loads a formula from the document.
      */
     bool load( const QDomElement &fe );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic