I'm answering my own mail here. Sorry! But I'm asking another question. 

In Buffer::readInset() am I allowed the following code?

        string tmptok = lex.GetString();

        ...
        // The old InsetInfo
        } else if (tmptok == "Info") {
                Inset * inset = new InsetNote;
                // A temporary function, identical to InsetInfo::Read, to be
                // removed when LYX_FORMAT has moved on sufficiently.
                inset->ReadInfo(this, lex);
                par->InsertInset(pos, inset, font);
                ++pos;

        // The new InsetNote
        } else if (tmptok == "Note") {
                Inset * inset = new InsetNote;
                // the conventional Read statement
                inset->Read(this, lex);
                par->InsertInset(pos, inset, font);
                ++pos;
        } ...


> I guess that this means that I have to define a change in the LyX file
> format? I'll start by giving the inset the name "Note" rather than "Info",
> but how/where do I explain what to do with "old-style" Infos?

Reply via email to