3 * \file InsetArgument.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Martin Vermeer
9 * Full author contact details are available in file CREDITS.
16 #include "InsetCollapsable.h"
23 * InsetArgument. Used to insert a short version of sectioning header etc.
24 * automatically, or other optional LaTeX arguments
26 class InsetArgument : public InsetCollapsable
30 InsetArgument(Buffer *);
32 /// Outputting the parameter of a LaTeX command
33 void latexArgument(otexstream &, OutputParams const &,
36 /// \name Public functions inherited from Inset class
39 bool hasSettings() const { return false; }
41 InsetCode lyxCode() const { return ARG_CODE; }
43 docstring layoutName() const { return from_ascii("Argument"); }
45 void latex(otexstream &, OutputParams const &) const { }
47 int plaintext(odocstream &, OutputParams const &) const { return 0; }
49 int docbook(odocstream &, OutputParams const &) const { return 0; }
51 docstring xhtml(XHTMLStream &, OutputParams const &) const
52 { return docstring(); };
54 void write(std::ostream & os) const;
56 bool neverIndent() const { return true; }
60 /// \name Protected functions inherited from Inset class
63 Inset * clone() const { return new InsetArgument(*this); }
70 #endif // INSETOPTARG_H