#include "RenderButton.h"
#include "MailInset.h"
#include "Counters.h"
+#include "EmbeddedFiles.h"
#include "support/FileName.h"
~InsetInclude();
/// Override these InsetButton methods if Previewing
- bool metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo & pi, int x, int y) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///
void updateLabels(Buffer const & buffer, ParIterator const &);
+ /// child document can be embedded
+ void registerEmbeddedFiles(Buffer const &, EmbeddedFiles &) const;
protected:
InsetInclude(InsetInclude const &);
///
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
private:
- virtual std::auto_ptr<Inset> doClone() const;
+ virtual Inset * clone() const;
/** Slot receiving a signal that the external file has changed
* and the preview should be regenerated.