]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetArgument.h
Completion: handle undo in insets' insertCompletion methods
[features.git] / src / insets / InsetArgument.h
index d77f3ca65e27c1e0ddf8fcc47961a7abf02cd351..34f4309cb0c5fefa842fe4033442a25d4a7817f1 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef INSETARGUMENT_H
 #define INSETARGUMENT_H
 
-
+#include "FontInfo.h"
 #include "InsetCollapsible.h"
 
 
@@ -39,6 +39,10 @@ public:
 
        std::string name() const { return name_; }
 
+       bool docbookargumentbeforemaintag() const { return docbookargumentbeforemaintag_; }
+
+       bool docbookargumentaftermaintag() const { return docbookargumentaftermaintag_; }
+
        /// \name Public functions inherited from Inset class
        //@{
        ///
@@ -47,6 +51,9 @@ public:
        InsetCode lyxCode() const override { return ARG_CODE; }
        ///
        docstring layoutName() const override { return from_ascii("Argument"); }
+
+       /// Initialize the members of this inset when inserted in \c par.
+       void init(Paragraph const & par);
        /// Update the label string of this inset
        void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
        ///
@@ -54,7 +61,7 @@ public:
        ///
        int plaintext(odocstringstream &, OutputParams const &, size_t) const override { return 0; }
        ///
-       void docbook(XMLStream &, OutputParams const &) const override { return; }
+       void docbook(XMLStream & xs, OutputParams const &) const override;
        ///
        docstring xhtml(XMLStream &, OutputParams const &) const override
                { return docstring(); }
@@ -78,7 +85,7 @@ public:
        /// \name Public functions inherited from InsetCollapsible class
        //@{
        ///
-       InsetLayout::InsetDecoration decoration() const override;
+       InsetDecoration decoration() const override;
        ///
        FontInfo getFont() const override;
        ///
@@ -125,6 +132,16 @@ private:
        std::string caption_of_toc_;
        /// Specific line break macro
        std::string newline_cmd_;
+       /// DocBook tag for this argument, if any (otherwise, NONE).
+       docstring docbooktag_;
+       /// Type of DocBook tag (controls how new lines are inserted around this argument).
+       docstring docbooktagtype_;
+       /// DocBook attributes.
+       docstring docbookattr_;
+       ///
+       bool docbookargumentbeforemaintag_ = false;
+       ///
+       bool docbookargumentaftermaintag_ = false;
 
 protected:
        /// \name Protected functions inherited from Inset class