]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetArgument.h
Check path of Qt tools if qtchooser is detected
[lyx.git] / src / insets / InsetArgument.h
index f45c0ea0ad06200b8450a9be0a955ec744fa6e83..d5cae98cb05ddac36c78f627434e875313431c76 100644 (file)
@@ -9,8 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef INSETOPTARG_H
-#define INSETOPTARG_H
+#ifndef INSETARGUMENT_H
+#define INSETARGUMENT_H
 
 
 #include "InsetCollapsable.h"
@@ -27,36 +27,92 @@ class InsetArgument : public InsetCollapsable
 {
 public:
        ///
-       InsetArgument(Buffer *);
+       InsetArgument(Buffer *, std::string const &);
 
        /// Outputting the parameter of a LaTeX command
        void latexArgument(otexstream &, OutputParams const &,
-                       bool optional) const;
+                          docstring const&, docstring const &,
+                          docstring const &) const;
+
+       std::string name() const { return name_; }
+
+       /// \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("Argument"); }
-       /// Standard LaTeX output -- short-circuited
-       void latex(otexstream &, 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"); }
+       /// Update the label string of this inset
+       void updateBuffer(ParIterator const &, UpdateType);
+       ///
+       void latex(otexstream &, OutputParams const &) const { }
+       ///
+       int plaintext(odocstringstream &, OutputParams const &, size_t) 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?
+       ///
+       void read(Lexer & lex);
+       ///
        bool neverIndent() const { return true; }
        ///
+       std::string contextMenuName() const;
+       ///
+       bool isPassThru() const { return pass_thru_; }
+       ///
+       bool resetFontEdit() const { return false; }
+       //@}
+       /// \name Public functions inherited from InsetCollapsable class
+       //@{
+       ///
+       InsetLayout::InsetDecoration decoration() const;
+       ///
+       FontInfo getFont() const;
+       ///
+       FontInfo getLabelfont() const;
+       ///
+       void setButtonLabel();
+       //@}
+
+private:
+       ///
+       docstring toolTip(BufferView const & bv, int, int) const;
+       ///
+       std::string name_;
+       ///
+       docstring labelstring_;
+       ///
+       docstring tooltip_;
+       ///
+       FontInfo font_;
+       ///
+       FontInfo labelfont_;
+       ///
+       std::string decoration_;
+       ///
+       bool pass_thru_;
+       ///
+       docstring pass_thru_chars_;
+
+protected:
+       /// \name Protected functions inherited from Inset class
+       //@{
+       ///
+       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       ///
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       ///
        Inset * clone() const { return new InsetArgument(*this); }
+       //@}
 };
 
 
 } // namespace lyx
 
-#endif // INSETOPTARG_H
+#endif // INSETARGUMENT_H