#include "InsetMathRef.h"
#include "bufferview_funcs.h"
-#include "LyXText.h"
+#include "Text.h"
#include "Buffer.h"
#include "BufferParams.h"
//lyxerr << "sizeof InsetMath: " << sizeof(InsetMath) << endl;
//lyxerr << "sizeof MetricsInfo: " << sizeof(MetricsInfo) << endl;
//lyxerr << "sizeof InsetMathChar: " << sizeof(InsetMathChar) << endl;
- //lyxerr << "sizeof LyXFont: " << sizeof(LyXFont) << endl;
+ //lyxerr << "sizeof Font: " << sizeof(Font) << endl;
initMath();
setDefaults();
}
{}
-auto_ptr<InsetBase> InsetMathHull::doClone() const
+auto_ptr<Inset> InsetMathHull::doClone() const
{
- return auto_ptr<InsetBase>(new InsetMathHull(*this));
+ return auto_ptr<Inset>(new InsetMathHull(*this));
}
}
-InsetBase * InsetMathHull::editXY(Cursor & cur, int x, int y)
+Inset * InsetMathHull::editXY(Cursor & cur, int x, int y)
{
if (use_preview_) {
edit(cur, true);
docstring old = label(r);
if (str != old) {
cur.bv().buffer()->changeRefsIfUnique(old, str,
- InsetBase::REF_CODE);
+ Inset::REF_CODE);
label(r, str);
}
break;
string str = os.str();
// insert this text
- LyXText * lt = view_->cursor().innerText();
+ Text * lt = view_->cursor().innerText();
string::const_iterator cit = str.begin();
string::const_iterator end = str.end();
for (; cit != end; ++cit)
void InsetMathHull::handleFont2(Cursor & cur, docstring const & arg)
{
recordUndo(cur);
- LyXFont font;
+ Font font;
bool b;
bv_funcs::string2font(to_utf8(arg), font, b);
if (font.color() != Color::inherit) {
}
-InsetBase::Code InsetMathHull::lyxCode() const
+Inset::Code InsetMathHull::lyxCode() const
{
return MATH_CODE;
}