autoOpen_ = mi.base.bv->cursor().isInside(this);
FontInfo tmpfont = mi.base.font;
- getDrawFont(mi.base.font);
+ mi.base.font = layout_.font;
mi.base.font.realize(tmpfont);
switch (geometry()) {
pi.background_color = backgroundColor();
FontInfo tmpfont = pi.base.font;
- getDrawFont(pi.base.font);
+ pi.base.font = layout_.font;
pi.base.font.realize(tmpfont);
// Draw button first -- top, left or only
}
-void InsetCollapsable::getDrawFont(FontInfo & font) const
-{
- font = layout_.font;
-}
-
-
bool InsetCollapsable::getStatus(Cursor & cur, FuncRequest const & cmd,
FuncStatus & flag) const
{
}
-void InsetCollapsable::setLabelFont(FontInfo const & font)
-{
- layout_.labelfont = font;
-}
-
-
-void InsetCollapsable::setLabelColor(ColorCode code)
-{
- layout_.labelfont.setColor(code);
-}
-
-
docstring InsetCollapsable::floatName(string const & type, BufferParams const & bp) const
{
FloatList const & floats = bp.getTextClass().floats();
///
virtual void setButtonLabel() {}
///
- void setLabelFont(FontInfo const & f);
- ///
- void setLabelColor(ColorCode code);
- ///
bool isOpen() const { return geometry() != ButtonOnly; }
///
CollapseStatus status() const;
docstring floatName(std::string const & type, BufferParams const &) const;
///
virtual void resetParagraphsFont();
- ///
- virtual void getDrawFont(FontInfo &) const;
protected:
///