X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetArgument.h;h=37805ce3355bec9df2c14bb3280419fa40ba3ffe;hb=3588f2f69675df8dbf829800b0ed6e4a455c68b4;hp=46157bd7451d98fbc66bb49cb631c3251e62de95;hpb=8480d1dd9af6f3d403ea42e2b891d38dd3ce2509;p=lyx.git diff --git a/src/insets/InsetArgument.h b/src/insets/InsetArgument.h index 46157bd745..37805ce335 100644 --- a/src/insets/InsetArgument.h +++ b/src/insets/InsetArgument.h @@ -30,30 +30,38 @@ public: InsetArgument(Buffer *); /// Outputting the parameter of a LaTeX command - int latexArgument(odocstream &, OutputParams const &, + void latexArgument(otexstream &, OutputParams const &, bool optional) const; + + /// \name Public functions inherited from Inset class + //@{ /// bool hasSettings() const { return false; } - -private: - /// code of the inset + /// InsetCode lyxCode() const { return ARG_CODE; } /// - docstring name() const { return from_ascii("OptArg"); } - /// Standard LaTeX output -- short-circuited - int latex(odocstream &, OutputParams const &) const; - /// Standard plain text output -- short-circuited - int plaintext(odocstream &, OutputParams const &) const; - /// Standard DocBook output -- short-circuited - int docbook(odocstream &, OutputParams const &) const; - /// Standard XHTML output -- short-circuited - docstring xhtml(XHTMLStream &, OutputParams const &) const; - /// Write out to the .lyx file + docstring layoutName() const { return from_ascii("Argument"); } + /// + void latex(otexstream &, OutputParams const &) const { } + /// + int plaintext(odocstream &, OutputParams const &) const { return 0; } + /// + int docbook(odocstream &, OutputParams const &) const { return 0; } + /// + docstring xhtml(XHTMLStream &, OutputParams const &) const + { return docstring(); }; + /// void write(std::ostream & os) const; - /// should paragraph indendation be ommitted in any case? + /// bool neverIndent() const { return true; } + //@} + +protected: + /// \name Protected functions inherited from Inset class + //@{ /// Inset * clone() const { return new InsetArgument(*this); } + //@} };