mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 14:58:36 +00:00
Small cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30542 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6ee13aa2ac
commit
58182c5860
@ -191,7 +191,7 @@ void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
InsetGraphicsParams p = params();
|
||||
if (!cmd.argument().empty())
|
||||
string2params(to_utf8(cmd.argument()), buffer(), p);
|
||||
editGraphics(p, buffer());
|
||||
editGraphics(p);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -895,10 +895,9 @@ InsetGraphicsParams const & InsetGraphics::params() const
|
||||
}
|
||||
|
||||
|
||||
void InsetGraphics::editGraphics(InsetGraphicsParams const & p,
|
||||
Buffer const & buffer) const
|
||||
void InsetGraphics::editGraphics(InsetGraphicsParams const & p) const
|
||||
{
|
||||
formats.edit(buffer, p.filename,
|
||||
formats.edit(buffer(), p.filename,
|
||||
formats.getFormatFromFile(p.filename));
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ private:
|
||||
///
|
||||
bool showInsetDialog(BufferView * bv) const;
|
||||
///
|
||||
void editGraphics(InsetGraphicsParams const &, Buffer const &) const;
|
||||
void editGraphics(InsetGraphicsParams const &) const;
|
||||
///
|
||||
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
|
||||
///
|
||||
|
@ -19,8 +19,6 @@
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class Buffer;
|
||||
class BufferView;
|
||||
class CompletionList;
|
||||
class CursorSlice;
|
||||
class Dimension;
|
||||
|
Loading…
Reference in New Issue
Block a user