]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetArgument.h
Context menu item to add unknown branch (rest of #7643)
[lyx.git] / src / insets / InsetArgument.h
index 46157bd7451d98fbc66bb49cb631c3251e62de95..37805ce3355bec9df2c14bb3280419fa40ba3ffe 100644 (file)
@@ -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); }
+       //@}
 };