]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinfo.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetinfo.C
index 2a03b97462471627d743a154559cb60d61894c43..3c58a89091a6712664fb6cd0b797b7019277fab9 100644 (file)
@@ -81,16 +81,18 @@ void InsetInfo::draw(Painter & pain, LyXFont const & f,
        LyXFont font(f);
        
        /* Info-insets are never LaTeX, so just correct the font */
-       font.setLatex(LyXFont::OFF);
-
+       font.setLatex(LyXFont::OFF).setColor(LColor::note);
+       
        // Draw as "Note" in a yellow box
        x += 1;
        pain.fillRectangle(int(x), baseline - ascent(pain, font) + 1,
                           width(pain, font) - 2,
-                          ascent(pain, font) + descent(pain, font) - 2);
+                          ascent(pain, font) + descent(pain, font) - 2,
+                          LColor::notebg);
        pain.rectangle(int(x), baseline - ascent(pain, font) + 1,
                       width(pain, font) - 2,
-                      ascent(pain, font) + descent(pain, font) - 2);
+                      ascent(pain, font) + descent(pain, font) - 2,
+                      LColor::noteframe);
        
        pain.text(int(x + 2), baseline, _("Note"), font);
        x +=  width(pain, font) - 1;
@@ -131,7 +133,13 @@ void InsetInfo::Read(LyXLex & lex)
       
 
 int InsetInfo::Latex(ostream &,
-                    signed char /*fragile*/, bool /*free_spc*/) const
+                    bool /*fragile*/, bool /*free_spc*/) const
+{
+       return 0;
+}
+
+
+int InsetInfo::Ascii(ostream &) const
 {
        return 0;
 }