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"
20 * InsetOptArg. Used to insert a short version of sectioning header etc.
21 * automatically, or other optional LaTeX arguments
23 class InsetOptArg : public InsetCollapsable {
25 InsetOptArg(BufferParams const &);
27 InsetOptArg(InsetOptArg const &);
28 /// make a duplicate of this inset
29 virtual std::auto_ptr<InsetBase> clone() const;
31 InsetOld::Code lyxCode() const { return InsetOld::OPTARG_CODE; }
32 /// return an message upon editing
33 std::string const editMessage() const;
35 /// Standard LaTeX output -- short-circuited
36 int latex(Buffer const &, std::ostream &,
37 OutputParams const &) const;
38 /// Outputting the optional parameter of a LaTeX command
39 int latexOptional(Buffer const &, std::ostream &,
40 OutputParams const &) const;
41 /// Write out tothe .lyx file
42 void write(Buffer const & buf, std::ostream & os) const;
45 #endif // INSETOPTARG_H