mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
inset configurability: ERT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19702 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bb0f26bc05
commit
612af5c5f0
@ -75,4 +75,15 @@ InsetLayout Note:Shaded
|
|||||||
EndFont
|
EndFont
|
||||||
End
|
End
|
||||||
|
|
||||||
|
InsetLayout ERT
|
||||||
|
LabelString ERT
|
||||||
|
Font
|
||||||
|
Color latex
|
||||||
|
Family typewriter
|
||||||
|
EndFont
|
||||||
|
LabelFont
|
||||||
|
Color latex
|
||||||
|
Size Small
|
||||||
|
EndFont
|
||||||
|
End
|
||||||
|
|
||||||
|
@ -53,11 +53,7 @@ using std::string;
|
|||||||
void InsetERT::init()
|
void InsetERT::init()
|
||||||
{
|
{
|
||||||
setButtonLabel();
|
setButtonLabel();
|
||||||
Font font(Font::ALL_SANE);
|
setLabelFont(layout_.labelfont);
|
||||||
font.decSize();
|
|
||||||
font.decSize();
|
|
||||||
font.setColor(Color::latex);
|
|
||||||
setLabelFont(font);
|
|
||||||
text_.current_font.setLanguage(latex_language);
|
text_.current_font.setLanguage(latex_language);
|
||||||
text_.real_current_font.setLanguage(latex_language);
|
text_.real_current_font.setLanguage(latex_language);
|
||||||
}
|
}
|
||||||
@ -66,6 +62,7 @@ void InsetERT::init()
|
|||||||
InsetERT::InsetERT(BufferParams const & bp, CollapseStatus status)
|
InsetERT::InsetERT(BufferParams const & bp, CollapseStatus status)
|
||||||
: InsetCollapsable(bp, status)
|
: InsetCollapsable(bp, status)
|
||||||
{
|
{
|
||||||
|
setLayout(bp);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -413,6 +410,7 @@ void InsetERT::draw(PainterInfo & pi, int x, int y) const
|
|||||||
Font tmpfont = pi.base.font;
|
Font tmpfont = pi.base.font;
|
||||||
getDrawFont(pi.base.font);
|
getDrawFont(pi.base.font);
|
||||||
pi.base.font.realize(tmpfont);
|
pi.base.font.realize(tmpfont);
|
||||||
|
const_cast<InsetERT &>(*this).setButtonLabel();
|
||||||
InsetCollapsable::draw(pi, x, y);
|
InsetCollapsable::draw(pi, x, y);
|
||||||
pi.base.font = tmpfont;
|
pi.base.font = tmpfont;
|
||||||
}
|
}
|
||||||
@ -428,8 +426,7 @@ bool InsetERT::showInsetDialog(BufferView * bv) const
|
|||||||
void InsetERT::getDrawFont(Font & font) const
|
void InsetERT::getDrawFont(Font & font) const
|
||||||
{
|
{
|
||||||
font = Font(Font::ALL_INHERIT, latex_language);
|
font = Font(Font::ALL_INHERIT, latex_language);
|
||||||
font.setFamily(Font::TYPEWRITER_FAMILY);
|
font.realize(layout_.font);
|
||||||
font.setColor(Color::latex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user