+2003-03-02 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * buffer.C (readInset): remove compability code for old Figure and
+ InsetInfo insets
+
2003-03-02 Lars Gullik Bjønnes <larsbj@gullik.net>
* buffer.C: ws changes
+ (readInset):
+
* BufferView_pimpl.C: ditto
* author.C: ditto
* buffer.h: ditto
inset = new InsetParent(inscmd, *this);
}
} else {
- bool alreadyread = false;
if (tmptok == "Quotes") {
inset = new InsetQuotes;
} else if (tmptok == "External") {
inset = new InsetFormulaMacro;
} else if (tmptok == "Formula") {
inset = new InsetFormula;
- } else if (tmptok == "Figure") { // Backward compatibility
-// inset = new InsetFig(100, 100, *this);
- inset = new InsetGraphics;
} else if (tmptok == "Graphics") {
inset = new InsetGraphics;
- } else if (tmptok == "Info") {// backwards compatibility
- inset = new InsetNote(this,
- lex.getLongString("\\end_inset"),
- true);
- alreadyread = true;
} else if (tmptok == "Note") {
inset = new InsetNote(params);
} else if (tmptok == "Include") {
inset = new InsetFloatList;
}
- if (inset && !alreadyread) inset->read(this, lex);
+ if (inset)
+ inset->read(this, lex);
}
if (inset) {
+2003-03-02 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * insetnote.[Ch] (InsetNote): remove unused constructor
+
2003-02-28 Alfredo Braunstein <abraunst@libero.it>
* insetgraphics.C: added include "format.h"
2003-02-26 Alfredo Braunstein <abraunst@libero.it>
* insetgraphics.C (draw)
- * insetinclude.C (draw): Eliminate also the other argument (owner
+ * insetinclude.C (draw): Eliminate also the other argument (owner
inset inset) in the call to PreviewImage::image
2003-02-25 Alfredo Braunstein <abraunst@libero.it>
* Makefile.am: add new files.
2003-02-21 Angus Leeming <leeming@lyx.org>
-
+
* updatableinset.h (setView, view): remove.
* inset.h (view, cache): to be replaced by these.
child document is under version control.
2003-02-17 André Pönitz <poenitz@gmx.net>
-
+
* insetbib.[Ch]: Adjust access to bibkeys
2003-02-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
2003-01-12 Michael Schmitt <michael.schmitt@teststep.org>
- * insetgraphics.C (draw, width): Fix spacing around graphics inset
+ * insetgraphics.C (draw, width): Fix spacing around graphics inset
2002-12-17 Juergen Vigna <jug@lyx.org>
2002-12-17 Alfredo Braunstein <abraunst@libero.it>
- * insettext.C (lfunMouseRelease): hackish solution to the "double
- menu open" bug
+ * insettext.C (lfunMouseRelease): hackish solution to the "double
+ menu open" bug
2002-12-08 Lars Gullik Bjønnes <larsbj@gullik.net>
}
-// This constructor is used for reading old InsetInfo
-InsetNote::InsetNote(Buffer const * buf, string const & contents,
- bool collapsed)
- : InsetCollapsable(buf->params, collapsed)
-{
- init();
-
- Paragraph * par = inset.paragraph();
- LyXFont font(LyXFont::ALL_INHERIT, buf->params.language);
-
- // Since XForms doesn't support RTL, we can assume that old notes
- // in RTL documents are written in English.
- if (font.language()->RightToLeft())
- font.setLanguage(default_language);
-
- lyx::pos_type pos = 0;
- buf->insertStringAsLines(par, pos, font, rtrim(contents, "\n"));
-}
-
-
string const InsetNote::editMessage() const
{
return _("Opened Note Inset");
InsetNote(InsetNote const &, bool same_id = false);
///
Inset * clone(Buffer const &, bool same_id = false) const;
- /// constructor with initial contents
- InsetNote(Buffer const *, string const & contents, bool collapsed);
///
string const editMessage() const;
///