]> 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 d5d54a6a5bc4f52803eaa19a3765bb72f5bd750c..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;
        ///
@@ -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;
        ///
@@ -131,6 +138,10 @@ private:
        docstring docbooktagtype_;
        /// DocBook attributes.
        docstring docbookattr_;
+       ///
+       bool docbookargumentbeforemaintag_ = false;
+       ///
+       bool docbookargumentaftermaintag_ = false;
 
 protected:
        /// \name Protected functions inherited from Inset class