// -*- C++ -*-
/* This file is part of*
- * ======================================================
+ * ======================================================
*
* LyX, The Document Processor
*
* Copyright (C) 1995 Matthias Ettrich
- * Copyright (C) 1996-1998 The LyX Team.
+ * Copyright (C) 1996-1999 The LyX Team.
*
- *======================================================*/
+ * ====================================================== */
-#ifndef _INSET_LATEXCOMMAND_H
-#define _INSET_LATEXCOMMAND_H
+#ifndef INSET_LATEXCOMMAND_H
+#define INSET_LATEXCOMMAND_H
#ifdef __GNUG__
#pragma interface
///
InsetCommand();
///
- InsetCommand(LString const & name, LString const & arg = LString(),
- LString const & opt = LString());
+ InsetCommand(string const & name, string const & arg = string(),
+ string const & opt = string());
///
- ~InsetCommand();
+ int Ascent(LyXFont const & font) const;
///
- int Ascent(LyXFont const &font) const;
+ int Descent(LyXFont const & font) const;
///
- int Descent(LyXFont const &font) const;
+ int Width(LyXFont const & font) const;
///
- int Width(LyXFont const &font) const;
+ void Draw(LyXFont, LyXScreen & scr, int baseline, float & x);
///
- void Draw(LyXFont, LyXScreen &scr, int baseline, float &x);
- ///
- void Write(FILE *file);
+ void Write(ostream &);
/// Parse the command.
- void scanCommand(LString 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(ostream &, signed char fragile);
///
- virtual int Latex(LString &file, signed char fragile);
+ virtual int Latex(string & file, signed char fragile);
///
- virtual int Linuxdoc(LString &file);
+ virtual int Linuxdoc(string & file);
///
- virtual int DocBook(LString &file);
+ virtual int DocBook(string & file);
///
- Inset* Clone();
+ Inset * Clone() const;
///
Inset::Code LyxCode() const
{
confusion with lyxinset::getLabel(int), but I've seen that
it wasn't. I hope you never confuse again both methods. (ale)
*/
- virtual LString getScreenLabel() const
+ virtual string getScreenLabel() const
{
return getCommand();
}
/// Build the complete LaTeX command
- LString getCommand() const;
+ string getCommand() const;
///
- LString const &getCmdName() const {
+ string const & getCmdName() const {
return command;
}
///
- LString const &getOptions() const {
+ string const & getOptions() const {
return options;
}
///
- LString const &getContents() const {
+ string const & getContents() const {
return contents;
}
///
- void setCmdName(LString const & n) {
+ void setCmdName(string const & n) {
command = n;
}
///
- void setOptions(LString const & o) {
+ void setOptions(string const & o) {
options = o;
}
///
- virtual void setContents(LString const & c) {
+ virtual void setContents(string const & c) {
contents = c;
}
protected:
///
- LString command;
+ string command;
///
- LString options;
+ string options;
///
- LString contents;
+ string contents;
};
#endif