#ifndef INSETARGUMENT_H
#define INSETARGUMENT_H
-
+#include "FontInfo.h"
#include "InsetCollapsible.h"
std::string name() const { return name_; }
+ bool docbookargumentbeforemaintag() const { return docbookargumentbeforemaintag_; }
+
+ bool docbookargumentaftermaintag() const { return docbookargumentaftermaintag_; }
+
/// \name Public functions inherited from Inset class
//@{
///
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;
///
///
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(); }
/// \name Public functions inherited from InsetCollapsible class
//@{
///
- InsetLayout::InsetDecoration decoration() const override;
+ InsetDecoration decoration() const override;
///
FontInfo getFont() const override;
///
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