#include "Inset.h"
#include "ExternalTransforms.h"
+#include "EmbeddedFiles.h"
#include "support/FileName.h"
#include "support/Translator.h"
std::string const & templatename() const { return templatename_; }
/// The external file.
- support::DocFileName filename;
+ EmbeddedFile filename;
/// How the inset is to be displayed by LyX.
external::DisplayType display;
/// The scale of the displayed graphic (if shown).
///
virtual ~InsetExternal();
///
- virtual Inset::Code lyxCode() const { return EXTERNAL_CODE; }
+ virtual InsetCode lyxCode() const { return EXTERNAL_CODE; }
///
virtual EDITABLE editable() const { return IS_EDITABLE; }
///
- bool metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const;
///
void draw(PainterInfo & pi, int x, int y) const;
///
void edit(Cursor & cur, bool left);
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ /// external file can be embedded
+ void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
+ ///
+ void updateEmbeddedFile(Buffer const &, EmbeddedFile const &);
protected:
InsetExternal(InsetExternal const &);