///
bool isOpen() const { return geometry() != ButtonOnly; }
///
- bool inlined() const { return decoration() == Minimalistic|| decoration() == Conglomerate; }
- ///
CollapseStatus status() const;
/** Of the old CollapseStatus we only keep the values
* Open and Collapsed.
* -------------+-------------------------------
* Classic | *) TopButton, <--x) ButtonOnly
* | LeftButton
- * Minimalistic | NoButton NoButton
+ * Minimalistic | ButtonOnly NoButton
* Conglomerate | SubLabel Corners
* ---------------------------------------------
* *) toggled by openinlined_
Conglomerate
};
/// Default looks
- virtual Decoration decoration() const { return Classic; }
+ virtual Decoration decoration() const;
///
enum Geometry {
TopButton,
///
bool setMouseHover(bool mouse_hover);
///
+ virtual Color_color backgroundColor() const {return layout_.bgcolor; }
+
int latex(Buffer const &, odocstream &,
OutputParams const &) const;
///
mutable bool openinlined_;
/// the inset will automatically open when the cursor is inside
mutable bool autoOpen_;
- ///
- mutable Dimension textdim_;
/// changes color when mouse enters/leaves this inset
bool mouse_hover_;
};