+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
#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"
using std::pair;
using std::endl;
using std::vector;
+using std::getline;
namespace {
using std::vector;
using std::istringstream;
+using std::getline;
MathArrayInset::MathArrayInset(int m, int n)
// 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
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;
}
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;
}
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;
}
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;
}
void MathLimitOpInset::write(WriteStream & os) const
{
- scripts_.write(int_.nucleus(), os);
+ scripts_.write2(int_.nucleus(), os);
os << core_ << "d" << diff_;
}
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;
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();
}
-void MathScriptInset::maplize(MathInset const * nuc, MapleStream & os) const
+void MathScriptInset::maplize2(MathInset const * nuc, MapleStream & os) const
{
if (nuc)
os << nuc;
}
-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();
}
-void MathScriptInset::octavize(MathInset const * nuc, OctaveStream & os) const
+void MathScriptInset::octavize2(MathInset const * nuc, OctaveStream & os) const
{
if (nuc)
os << nuc;
///
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