X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetgraphics.C;h=39c3b19e6323e5b8b25ac6f5e452403e1ab85b92;hb=6bba977f42b0cde753ac2ffd26f3f9c6b32ba0b6;hp=dd591b24522174529acae38fb4a273736b386f04;hpb=c6150425e56563ab9bb311b5785efc5e9d4928da;p=features.git diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index dd591b2452..39c3b19e63 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -138,7 +138,7 @@ void InsetGraphics::draw(Painter & pain, LyXFont const & font, { // This will draw the graphics. As for now we only draw a // placeholder rectangele. - pain.rectangle(x, baseline - ascent(pain, font), + pain.rectangle(int(x), baseline - ascent(pain, font), width(pain, font), ascent(pain, font) + descent(pain, font)); } @@ -171,7 +171,7 @@ Inset::EDITABLE InsetGraphics::Editable() const } -void InsetGraphics::Write(ostream & os) const +void InsetGraphics::Write(Buffer const *, ostream & os) const { // The question on the file format is still open. // Suggestions? @@ -181,7 +181,7 @@ void InsetGraphics::Write(ostream & os) const } -void InsetGraphics::Read(LyXLex & /*lex*/) +void InsetGraphics::Read(Buffer const *, LyXLex & /*lex*/) { // For now we only use a static file... graphicsfile = "testfile.xpm"; @@ -191,7 +191,7 @@ void InsetGraphics::Read(LyXLex & /*lex*/) } -int InsetGraphics::Latex(ostream & os, +int InsetGraphics::Latex(Buffer const *, ostream & os, bool /*fragile*/, bool/*fs*/) const { // MISSING: We have to decide how to do the order of the options @@ -334,19 +334,19 @@ int InsetGraphics::Latex(ostream & os, } -int InsetGraphics::Ascii(ostream &) const +int InsetGraphics::Ascii(Buffer const *, ostream &) const { return 0; } -int InsetGraphics::Linuxdoc(ostream &) const +int InsetGraphics::Linuxdoc(Buffer const *, ostream &) const { return 0; } -int InsetGraphics::DocBook(ostream &) const +int InsetGraphics::DocBook(Buffer const *, ostream &) const { return 0; }