]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetArgument.h
Reset InsetArgument language after passthru status change
[lyx.git] / src / insets / InsetArgument.h
index 0a5d00037966216410bbee395df294cf38798860..86de5b1ca115ca5173fcc5e331920d1bfe4792b2 100644 (file)
@@ -29,6 +29,9 @@ 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;
@@ -81,11 +84,16 @@ public:
        ///
        void setButtonLabel();
        //@}
+       ///
+       void addToToc(DocIterator const & dit, bool output_active,
+                     UpdateType utype, TocBackend & backend) const; //override
 
 private:
        ///
        docstring toolTip(BufferView const & bv, int, int) const;
        ///
+       void fixParagraphLanguage(Language const *);
+       ///
        std::string name_;
        ///
        docstring labelstring_;
@@ -105,6 +113,8 @@ private:
        bool pass_thru_;
        ///
        docstring pass_thru_chars_;
+       /// The type of Toc this is the caption of, empty otherwise.
+       std::string caption_of_toc_;
 
 protected:
        /// \name Protected functions inherited from Inset class
@@ -115,6 +125,8 @@ protected:
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        Inset * clone() const { return new InsetArgument(*this); }
+       /// Is the content of this inset part of the immediate (visible) text sequence?
+       bool isPartOfTextSequence() const { return false; }
        //@}
 };