}
-InsetCollapsable::InsetCollapsable(Buffer const & buf,
- CollapseStatus status)
- : InsetText(buf), status_(status),
+InsetCollapsable::InsetCollapsable(Buffer const & buf)
+ : InsetText(buf), status_(Inset::Open),
openinlined_(false), autoOpen_(false), mouse_hover_(false)
{
DocumentClass const & dc = buf.params().documentClass();
class InsetCollapsable : public InsetText {
public:
///
- InsetCollapsable(Buffer const &, CollapseStatus status = Inset::Open);
+ InsetCollapsable(Buffer const &);
///
InsetCollapsable(InsetCollapsable const & rhs);
///
docstring floatName(std::string const & type, BufferParams const &) const;
///
virtual void resetParagraphsFont();
-
+ ///
+ mutable CollapseStatus status_;
private:
/// cache for the layout_. Make sure it is in sync with the document class!
InsetLayout const * layout_;
docstring labelstring_;
///
mutable Box button_dim;
- ///
- mutable CollapseStatus status_;
/// a substatus of the Open status, determined automatically in metrics
mutable bool openinlined_;
/// the inset will automatically open when the cursor is inside
namespace lyx {
InsetERT::InsetERT(Buffer const & buf, CollapseStatus status)
- : InsetCollapsable(buf, status)
-{}
+ : InsetCollapsable(buf)
+{
+ status_ = status;
+}
InsetERT::~InsetERT()
InsetFlex::InsetFlex(Buffer const & buf, string const & layoutName)
- : InsetCollapsable(buf, Collapsed), name_(layoutName)
+ : InsetCollapsable(buf), name_(layoutName)
{
// again, because now the name is initialized
setLayout(buf.params().documentClassPtr());
+ status_= Collapsed;
}
InsetInfo::InsetInfo(Buffer const & buf, string const & name)
- : InsetCollapsable(buf, Collapsed), type_(UNKNOWN_INFO), name_()
+ : InsetCollapsable(buf), type_(UNKNOWN_INFO), name_()
{
setAutoBreakRows(true);
setInfo(name);
+ status_ = Collapsed;
}
"!*()-=+|;:'\"`,<.>/?QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm";
InsetListings::InsetListings(Buffer const & buf, InsetListingsParams const & par)
- : InsetCollapsable(buf, par.status())
-{}
+ : InsetCollapsable(buf)
+{
+ status_ = par.status();
+}
InsetListings::~InsetListings()