// -*- C++ -*-
/* This file is part of*
- * ======================================================
+ * ======================================================
*
* LyX, The Document Processor
*
- * Copyright (C) 1995 Matthias Ettrich
- * Copyright (C) 1996-1998 The LyX Team.
+ * Copyright 1995 Matthias Ettrich
+ * Copyright 1995-2000 The LyX Team.
*
- *======================================================*/
+ * ====================================================== */
-#ifndef _INSET_LATEXCOMMAND_H
-#define _INSET_LATEXCOMMAND_H
+#ifndef INSET_LATEXCOMMAND_H
+#define INSET_LATEXCOMMAND_H
#ifdef __GNUG__
#pragma interface
///
InsetCommand();
///
+ explicit
InsetCommand(string const & name, string const & arg = string(),
string const & opt = string());
///
- ~InsetCommand();
+ int ascent(Painter &, LyXFont const &) const;
///
- int Ascent(LyXFont const &font) const;
+ int descent(Painter &, LyXFont const &) const;
///
- int Descent(LyXFont const &font) const;
+ int width(Painter &, LyXFont const &) const;
///
- int Width(LyXFont const &font) const;
+ void draw(Painter &, LyXFont const &, int baseline, float & x) const;
///
- void Draw(LyXFont, LyXScreen &scr, int baseline, float &x);
- ///
- void Write(FILE *file);
+ void Write(std::ostream &) const;
/// Parse the command.
- void scanCommand(string const &cmd);
+ void scanCommand(string const & cmd);
/// Will not be used when lyxf3
- void Read(LyXLex &lex);
+ void Read(LyXLex & lex);
///
- virtual int Latex(FILE *file, signed char fragile);
+ virtual int Latex(std::ostream &,
+ bool fragile, bool free_spc) const;
///
- virtual int Latex(string &file, signed char fragile);
+ int Ascii(std::ostream &) const;
///
- virtual int Linuxdoc(string &file);
+ virtual int Linuxdoc(std::ostream &) const;
///
- virtual int DocBook(string &file);
+ virtual int DocBook(std::ostream &) const;
///
- Inset* Clone();
+ Inset * Clone() const;
///
Inset::Code LyxCode() const
{
/// Build the complete LaTeX command
string getCommand() const;
///
- string const &getCmdName() const {
+ string const & getCmdName() const {
return command;
}
///
- string const &getOptions() const {
+ string const & getOptions() const {
return options;
}
///
- string const &getContents() const {
+ string const & getContents() const {
return contents;
}
///