#ifndef INSETBOX_H
#define INSETBOX_H
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
#include "Length.h"
{
public:
///
- InsetBoxParams(std::string const &);
+ explicit InsetBoxParams(std::string const &);
///
void write(std::ostream & os) const;
///
Length separation;
///
Length shadowsize;
+ ///
+ std::string framecolor;
+ ///
+ std::string backgroundcolor;
};
///////////////////////////////////////////////////////////////////////
-class InsetBox : public InsetCollapsable
+class InsetBox : public InsetCollapsible
{
public:
///
///
void metrics(MetricsInfo &, Dimension &) const;
///
- DisplayType display() const { return Inline; }
- ///
ColorCode backgroundColor(PainterInfo const &) const;
///
+ LyXAlignment contentAlignment() const;
+ ///
bool allowParagraphCustomization(idx_type = 0) const { return !forcePlainLayout(); }
///
bool allowMultiPar() const;
///
bool forcePlainLayout(idx_type = 0) const;
///
+ bool needsCProtection(bool const maintext = false,
+ bool const fragile = false) const;
+ ///
bool neverIndent() const { return true; }
///
bool inheritFont() const { return false; }
int plaintext(odocstringstream & ods, OutputParams const & op,
size_t max_length = INT_MAX) const;
///
- int docbook(odocstream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
///
std::string contextMenuName() const;
//@}
- /// \name Public functions inherited from InsetCollapsable class
+ /// \name Public functions inherited from InsetCollapsible class
//@{
///
void setButtonLabel();