]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_extern.C
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_extern.C
index ff48405a759a6c1f085654645991dd54f1d8e8f7..6751dd405ad13aeaaf37ed8732dc9f88e34d0fce 100644 (file)
@@ -639,12 +639,12 @@ void extractDiff(MathArray & ar)
 
                // collect function, let jt point behind last used item
                MathArray::iterator jt = it + 1; 
-               int n = 1; 
+               //int n = 1; 
                MathArray & numer = f->cell(0);
                if (numer.size() > 1 && numer.at(1)->asScriptInset()) {
                        // this is something like  d^n f(x) / d... or  d^n / d...
                        // FIXME
-                       n = 1;  
+                       //n = 1;        
                        if (numer.size() > 2) 
                                diff->cell(0) = MathArray(numer.begin() + 2, numer.end());
                        else
@@ -688,6 +688,8 @@ void extractDiff(MathArray & ar)
        lyxerr << "\nDiffs to: " << ar << "\n";
 }
 
+
+
 //
 // combine searches
 //
@@ -711,11 +713,11 @@ void write(MathArray const & dat, WriteStream & wi)
        MathArray ar = dat;
        extractStrings(ar);
        for (MathArray::const_iterator it = ar.begin(); it != ar.end(); ++it) {
-               wi.firstitem = (it == ar.begin());
+               wi.firstitem() = (it == ar.begin());
                MathInset const * p = it->nucleus();
                if (it + 1 != ar.end()) {
                        if (MathScriptInset const * q = asScript(it)) {
-                               q->write(p, wi);
+                               q->write2(p, wi);
                                ++it;
                                continue;
                        } 
@@ -740,7 +742,7 @@ void octavize(MathArray const & dat, OctaveStream & os)
                MathInset const * p = it->nucleus();
                if (it + 1 != ar.end()) {
                        if (MathScriptInset const * q = asScript(it)) {
-                               q->octavize(p, os);
+                               q->octavize2(p, os);
                                ++it;   
                                continue;
                        }
@@ -758,7 +760,7 @@ void maplize(MathArray const & dat, MapleStream & os)
                MathInset const * p = it->nucleus();
                if (it + 1 != ar.end()) {
                        if (MathScriptInset const * q = asScript(it)) {
-                               q->maplize(p, os);
+                               q->maplize2(p, os);
                                ++it;   
                                continue;
                        }
@@ -782,7 +784,7 @@ void mathmlize(MathArray const & dat, MathMLStream & os)
                        MathInset const * p = it->nucleus();
                        if (it + 1 != ar.end()) {
                                if (MathScriptInset const * q = asScript(it)) {
-                                       q->mathmlize(p, os);
+                                       q->mathmlize2(p, os);
                                        ++it;   
                                        continue;
                                }