]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetArgument.h
Enable dissolve in undefined Flex inset context menu
[lyx.git] / src / insets / InsetArgument.h
index 3e200e3b1c173bc1dfbecd74b7b35fe8364f42d3..2bd0578f28cee35284fa14e77bb6b7c54669f856 100644 (file)
@@ -13,7 +13,7 @@
 #define INSETARGUMENT_H
 
 
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
 
 
 namespace lyx {
@@ -23,12 +23,15 @@ namespace lyx {
  * InsetArgument. Used to insert a short version of sectioning header etc.
  * automatically, or other optional LaTeX arguments
  */
-class InsetArgument : public InsetCollapsable
+class InsetArgument : public InsetCollapsible
 {
 public:
        ///
        InsetArgument(Buffer *, std::string const &);
 
+       ///
+       InsetArgument const * asInsetArgument() const { return this; }
+
        /// Outputting the parameter of a LaTeX command
        void latexArgument(otexstream & os, OutputParams const & runparams_in,
                           docstring const & ldelim, docstring const & rdelim,
@@ -53,7 +56,7 @@ public:
        ///
        int docbook(odocstream &, OutputParams const &) const { return 0; }
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const 
+       docstring xhtml(XHTMLStream &, OutputParams const &) const
                { return docstring(); }
        ///
        void write(std::ostream & os) const;
@@ -66,9 +69,11 @@ public:
        ///
        bool isPassThru() const { return pass_thru_; }
        ///
+       bool isTocCaption() const { return is_toc_caption_; }
+       ///
        bool resetFontEdit() const { return false; }
        //@}
-       /// \name Public functions inherited from InsetCollapsable class
+       /// \name Public functions inherited from InsetCollapsible class
        //@{
        ///
        InsetLayout::InsetDecoration decoration() const;
@@ -89,6 +94,8 @@ private:
        ///
        docstring toolTip(BufferView const & bv, int, int) const;
        ///
+       void fixParagraphLanguage(Language const *);
+       ///
        std::string name_;
        ///
        docstring labelstring_;
@@ -108,6 +115,8 @@ private:
        bool pass_thru_;
        ///
        docstring pass_thru_chars_;
+       /// Does this argument provide content for the TOC?
+       bool is_toc_caption_;
        /// The type of Toc this is the caption of, empty otherwise.
        std::string caption_of_toc_;