]> git.lyx.org Git - features.git/commitdiff
changes from Angus
authorAndré Pönitz <poenitz@gmx.net>
Tue, 20 Nov 2001 16:05:17 +0000 (16:05 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 20 Nov 2001 16:05:17 +0000 (16:05 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3053 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/formula.C
src/mathed/math_arrayinset.C
src/mathed/math_extern.C
src/mathed/math_limitopinset.C
src/mathed/math_scriptinset.C
src/mathed/math_scriptinset.h

index 898bd45f37380c0078cd453323b2a8f0339af971..7097cebff215141d4a699fecdd9457bc61b0334e 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-19  Angus Leeming  <a.leeming@ic.ac.uk>
+
+        * formula.C:
+        * math_arrayinset.C: add using std::getline directive.
+
 2001-11-20 André Pönitz  <poenitz@gmx.net>
        
        * formulabase.C: fix mouse positioning using the cursor
index e1127d46a19265a13218dfcae529c53799188321..bc70649fb34a5e5a4823b756f7553cf45d577f60 100644 (file)
@@ -31,7 +31,6 @@
 #include "gettext.h"
 #include "debug.h"
 #include "lyx_gui_misc.h"
-#include "lyxtext.h"
 #include "support/LOstream.h"
 #include "support/LAssert.h"
 #include "support/lyxlib.h"
@@ -51,6 +50,7 @@ using std::istream;
 using std::pair;
 using std::endl;
 using std::vector;
+using std::getline;
 
 
 namespace {
index 862e3b41738ed7fd423ba35700c1f5e3330a5765..4c0490af7fd92751a8b9690f835fcbf4cbc5c9ae 100644 (file)
@@ -11,6 +11,7 @@
 
 using std::vector;
 using std::istringstream;
+using std::getline;
 
 
 MathArrayInset::MathArrayInset(int m, int n)
index 4cf321c2b6d5aa67b279b82efdbf0f98dca65260..3d7593540d69da3fd93073cfd2271dd3bba611a9 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
@@ -717,7 +717,7 @@ void write(MathArray const & dat, WriteStream & wi)
                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;
                        } 
@@ -742,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;
                        }
@@ -760,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;
                        }
@@ -784,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;
                                }
index ee5460e7c94f368e02cd4b1632a0512c87809a6f..f43fbb971fa2965e55ae8b4d5345119b2dc6e25a 100644 (file)
@@ -20,7 +20,7 @@ MathInset * MathLimitOpInset::clone() const
 
 void MathLimitOpInset::write(WriteStream & os) const
 {
-       scripts_.write(int_.nucleus(), os);
+       scripts_.write2(int_.nucleus(), os);
        os << core_ << "d" << diff_;
 }
 
index b403760e0bd81f10530dfce04a5fc752444f3366..2de23d00eeb90d6b3d72bd30dce5d4acce5fb193 100644 (file)
@@ -315,11 +315,11 @@ bool MathScriptInset::idxLastDown(idx_type & idx, pos_type & pos) const
 void MathScriptInset::write(WriteStream & os) const
 {  
        //lyxerr << "unexpected call to MathScriptInset::write()\n";
-       write(0, os);
+       write2(0, os);
 }
 
 
-void MathScriptInset::write(MathInset const * nuc, WriteStream & os) const
+void MathScriptInset::write2(MathInset const * nuc, WriteStream & os) const
 {
        if (nuc) {
                os << nuc;
@@ -346,11 +346,11 @@ void MathScriptInset::write(MathInset const * nuc, WriteStream & os) const
 void MathScriptInset::normalize(NormalStream & os) const
 {  
        //lyxerr << "unexpected call to MathScriptInset::normalize()\n";
-       normalize(0, os);
+       normalize2(0, os);
 }
 
 
-void MathScriptInset::normalize(MathInset const * nuc, NormalStream & os) const
+void MathScriptInset::normalize2(MathInset const * nuc, NormalStream & os) const
 {
        bool d = hasDown() && down().data_.size();
        bool u = hasUp() && up().data_.size();
@@ -372,7 +372,7 @@ void MathScriptInset::normalize(MathInset const * nuc, NormalStream & os) const
 }
 
 
-void MathScriptInset::maplize(MathInset const * nuc, MapleStream & os) const
+void MathScriptInset::maplize2(MathInset const * nuc, MapleStream & os) const
 {
        if (nuc)
                os << nuc;
@@ -383,7 +383,7 @@ void MathScriptInset::maplize(MathInset const * nuc, MapleStream & os) const
 }
 
 
-void MathScriptInset::mathmlize(MathInset const * nuc, MathMLStream & os) const
+void MathScriptInset::mathmlize2(MathInset const * nuc, MathMLStream & os) const
 {
        bool d = hasDown() && down().data_.size();
        bool u = hasUp() && up().data_.size();
@@ -409,7 +409,7 @@ void MathScriptInset::mathmlize(MathInset const * nuc, MathMLStream & os) const
 }
 
 
-void MathScriptInset::octavize(MathInset const * nuc, OctaveStream & os) const
+void MathScriptInset::octavize2(MathInset const * nuc, OctaveStream & os) const
 {
        if (nuc)
                os << nuc;
index 6ecf64f4dba71a02e0eaa755ba1762f085e86727..45920dbc73590baf2b861dabd5600e5b99c6086e 100644 (file)
@@ -85,16 +85,17 @@ public:
        ///
        void ensure(bool up);
 
+       // call these methods ...2 to make compaq cxx in anal mode happy...
        /// suppresses empty braces if necessary
-       void write(MathInset const * nuc, WriteStream & os) const;
-       ///
-       void normalize(MathInset const * nuc, NormalStream & os) const;
+       virtual void write2(MathInset const * nuc, WriteStream & os) const;
+       /// 
+       virtual void normalize2(MathInset const * nuc, NormalStream & os) const;
        ///
-       void octavize(MathInset const * nuc, OctaveStream & os) const;
+       virtual void octavize2(MathInset const * nuc, OctaveStream & os) const;
        ///
-       void maplize(MathInset const * nuc, MapleStream & os) const;
+       virtual void maplize2(MathInset const * nuc, MapleStream & os) const;
        ///
-       void mathmlize(MathInset const * nuc, MathMLStream & os) const;
+       virtual void mathmlize2(MathInset const * nuc, MathMLStream & os) const;
 
 public:
        /// returns x offset for main part