InsetFormula::InsetFormula(string const & s)
: InsetFormulaBase(mathed_parse(s))
{
- Metrics();
+ metrics();
}
int InsetFormula::latex(ostream & os, bool fragile, bool) const
{
- par()->Write(os, fragile);
+ par()->write(os, fragile);
return 1;
}
int InsetFormula::ascii(ostream & os, int) const
{
- par()->Write(os, false);
+ par()->write(os, false);
return 1;
}
void InsetFormula::read(LyXLex & lex)
{
par(mathed_parse(lex));
- Metrics();
+ metrics();
}
MathInset::workwidth = bv->workWidth();
Painter & pain = bv->painter();
- Metrics();
+ metrics();
int w = par()->width();
int h = par()->height();
int a = par()->ascent();
}
-void InsetFormula::Metrics() const
+void InsetFormula::metrics() const
{
- const_cast<MathInset *>(par_)->Metrics(display() ? LM_ST_DISPLAY : LM_ST_TEXT);
+ const_cast<MathInset *>(par_)->metrics(display() ? LM_ST_DISPLAY : LM_ST_TEXT);
}
vector<string> const InsetFormula::getLabelList() const
int x;
int y;
mathcursor->GetPos(x, y);
- if (par()->GetType() == LM_OT_SIMPLE)
+ if (par()->getType() == LM_OT_SIMPLE)
par()->mutate(LM_OT_EQUATION);
else
par()->mutate(LM_OT_SIMPLE);
//string outfile = lyx::tempName("maple.out");
string outfile = "/tmp/lyx2" + arg + ".out";
ostringstream os;
- par()->WriteNormal(os);
+ par()->writeNormal(os);
string code = os.str().c_str();
string script = "lyx2" + arg + " '" + code + "' " + outfile;
lyxerr << "calling: " << script << endl;
ifstream is(outfile.c_str());
par(mathed_parse(is));
- Metrics();
+ metrics();
}
bool InsetFormula::display() const
{
- return par_->GetType() != LM_OT_SIMPLE;
+ return par_->getType() != LM_OT_SIMPLE;
}
void InsetFormula::validate(LaTeXFeatures & features) const
{
- par()->Validate(features);
+ par()->validate(features);
}
bool InsetFormula::insetAllowed(Inset::Code code) const
int InsetFormula::width(BufferView *, LyXFont const &) const
{
- Metrics();
+ metrics();
return par()->width();
}