#define INSETARGUMENT_H
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
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:
///
///
docstring layoutName() const { return from_ascii("Argument"); }
/// Update the label string of this inset
- void updateBuffer(ParIterator const &, UpdateType);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
///
void latex(otexstream &, OutputParams const &) const { }
///
int plaintext(odocstringstream &, OutputParams const &, size_t) const { return 0; }
///
- int docbook(odocstream &, OutputParams const &) const { return 0; }
+ void docbook(XMLStream &, OutputParams const &) const { return; }
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const
+ docstring xhtml(XMLStream &, OutputParams const &) const
{ return docstring(); }
///
void write(std::ostream & os) const;
///
bool isPassThru() const { return pass_thru_; }
///
+ bool isFreeSpacing() const { return free_spacing_; }
+ ///
+ 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;
/// Effective pass-thru setting (inherited or local)
bool pass_thru_;
///
+ bool free_spacing_;
+ ///
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_;
+ /// Specific line break macro
+ std::string newline_cmd_;
protected:
/// \name Protected functions inherited from Inset class