#pragma interface
#endif
-#include "graphics/GraphicsTypes.h"
#include "insets/inset.h"
+#include "graphics/GraphicsTypes.h"
#include "insets/insetgraphicsParams.h"
// We need a signal here to hide an active dialog when we are deleted.
#include "sigc++/signal_system.h"
///
InsetGraphics();
///
- InsetGraphics(InsetGraphics const &, bool same_id = false);
+ InsetGraphics(InsetGraphics const &, string const & filepath,
+ bool same_id = false);
///
~InsetGraphics();
///
///
void draw(BufferView *, LyXFont const &, int, float &, bool) const;
///
- void edit(BufferView *, int, int, unsigned int);
+ void edit(BufferView *, int, int, mouse_button::state);
///
void edit(BufferView * bv, bool front = true);
///
/** Set the inset parameters, used by the GUIndependent dialog.
Return true of new params are different from what was so far.
*/
- bool setParams(InsetGraphicsParams const & params);
+ bool setParams(InsetGraphicsParams const & params,
+ string const & filepath);
/// Get the inset parameters, used by the GUIndependent dialog.
InsetGraphicsParams const & params() const;
bool drawImage() const;
/// Read the inset native format
- void readInsetGraphics(Buffer const * buf, LyXLex & lex);
+ void readInsetGraphics(LyXLex & lex);
/// Read the FigInset file format
- void readFigInset(Buffer const * buf, LyXLex & lex);
+ void readFigInset(LyXLex & lex);
/// Update the inset after parameter change.
- void updateInset() const;
+ void updateInset(string const & filepath) const;
/// Get the status message, depends on the image loading status.
string const statusMessage() const;
/// Create the options for the latex command.