Small cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30542 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-07-13 13:53:58 +00:00
parent 6ee13aa2ac
commit 58182c5860
3 changed files with 4 additions and 7 deletions

View File

@ -191,7 +191,7 @@ void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
InsetGraphicsParams p = params(); InsetGraphicsParams p = params();
if (!cmd.argument().empty()) if (!cmd.argument().empty())
string2params(to_utf8(cmd.argument()), buffer(), p); string2params(to_utf8(cmd.argument()), buffer(), p);
editGraphics(p, buffer()); editGraphics(p);
break; break;
} }
@ -895,10 +895,9 @@ InsetGraphicsParams const & InsetGraphics::params() const
} }
void InsetGraphics::editGraphics(InsetGraphicsParams const & p, void InsetGraphics::editGraphics(InsetGraphicsParams const & p) const
Buffer const & buffer) const
{ {
formats.edit(buffer, p.filename, formats.edit(buffer(), p.filename,
formats.getFormatFromFile(p.filename)); formats.getFormatFromFile(p.filename));
} }

View File

@ -87,7 +87,7 @@ private:
/// ///
bool showInsetDialog(BufferView * bv) const; bool showInsetDialog(BufferView * bv) const;
/// ///
void editGraphics(InsetGraphicsParams const &, Buffer const &) const; void editGraphics(InsetGraphicsParams const &) const;
/// ///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
/// ///

View File

@ -19,8 +19,6 @@
namespace lyx { namespace lyx {
class Buffer;
class BufferView;
class CompletionList; class CompletionList;
class CursorSlice; class CursorSlice;
class Dimension; class Dimension;