#include "inset.h"
#include "LString.h"
+#include "dimension.h"
/** Used for error messages from LaTeX runs.
public:
///
explicit
- InsetError(string const &, bool same_id = false);
+ InsetError(string const &);
///
~InsetError();
///
virtual dispatch_result localDispatch(FuncRequest const & cmd);
///
- void dimension(BufferView *, LyXFont const &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const;
///
- void draw(BufferView *, LyXFont const &, int, float &) const;
+ void draw(PainterInfo & pi, int x, int y) const;
///
void write(Buffer const *, std::ostream &) const {}
///
void read(Buffer const *, LyXLex &) {}
///
- int latex(Buffer const *, std::ostream &, LatexRunParams const &,
- bool, bool) const { return 0; }
+ int latex(Buffer const *, std::ostream &,
+ LatexRunParams const &) const { return 0; }
///
int ascii(Buffer const *, std::ostream &, int) const { return 0; }
///
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- Inset * clone(Buffer const &, bool same_id = false) const {
- return new InsetError(contents, same_id);
+ Inset * clone() const {
+ return new InsetError(contents);
}
///
Inset::Code lyxCode() const { return Inset::ERROR_CODE; }
private:
///
string contents;
+ ///
+ mutable Dimension dim_;
};
#endif