MathMatrixInset * mt = create_multiline(type, cols);
mt->SetStyle(LM_ST_DISPLAY);
mt->SetType(type);
- mt->SetData(p->GetData());
- p->SetData(0); // BUG duda
+ mt->setData(p->GetData());
+ p->setData(0); // BUG duda
delete p;
par = mt;
p = mt;
if (selection) {
if (MathIsActive(t)) {
SelCut();
- static_cast<MathParInset*>(p)->SetData(selarray);
+ static_cast<MathParInset*>(p)->setData(selarray);
} else
SelDel();
}
void MathedCursor::Interpret(string const & s)
{
MathedInset * p = 0;
- latexkeys * l = 0;
+ latexkeys const * l = 0;
MathedTextCodes tcode = LM_TC_INSET;
if (s[0] == '^' || s[0] == '_') {
if (!p) {
lyxerr[Debug::MATHED] << "Macro2 " << s << ' ' << tcode << endl;
if (s == "root") {
- p = new MathRootInset();
+ p = new MathRootInset;
tcode = LM_TC_ACTIVE_INSET;
} else
p = new MathFuncInset(s, LM_OT_UNDEF);
return false;
MathedArray * a = p->GetData();
- p->SetData(0);
+ p->setData(0);
Delete();
if (a) {
cursor->Merge(a);
{
if (macro_mode) {
macro_mode = false;
- latexkeys * l = in_word_set(imacro->GetName());
+ latexkeys const * l = in_word_set(imacro->GetName());
if (!imacro->GetName().empty()
&& (!l || (l && IsMacro(l->token, l->id))) &&
!MathMacroTable::mathMTable.getMacro(imacro->GetName())) {