/* This file is part of
- * ======================================================
+ * ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-1999 The LyX Team.
*
- * ======================================================*/
+ * ====================================================== */
#include <config.h>
#pragma implementation
#endif
-#include "definitions.h"
#include "insetlatex.h"
#include "lyxdraw.h"
scr.fillRectangle(gc_lighted, int(x), baseline - Ascent(font) +1 ,
Width(font) - 2, Ascent(font) + Descent(font) -2);
- scr.drawRectangle(gc_foot,int(x), baseline - Ascent(font) + 1,
+ scr.drawRectangle(gc_foot, int(x), baseline - Ascent(font) + 1,
Width(font)-2, Ascent(font)+Descent(font)-2);
scr.drawString(font, contents, baseline, int(x+2));
}
-int InsetLatex::Latex(FILE * file, signed char /*fragile*/)
+int InsetLatex::Latex(FILE * file, signed char /*fragile*/, bool /*fs*/)
{
fprintf(file, "%s", contents.c_str());
return 0;
}
-int InsetLatex::Latex(string & file, signed char /*fragile*/)
+int InsetLatex::Latex(string & file, signed char /*fragile*/, bool /*fs*/)
+{
+ file += contents;
+ return 0;
+}
+
+
+int InsetLatex::Ascii(string & file)
{
file += contents;
return 0;
}
-Inset * InsetLatex::Clone()
+InsetLatex * InsetLatex::Clone() const
{
InsetLatex * result = new InsetLatex(contents);
return result;