- /// hold parameters settable from the GUI
- struct Params {
- Params();
- ~Params();
- /// the filename
- lyx::support::FileName filename;
- /// the current template used
- string templatename;
- /// The name of the tempfile used for manipulations.
- string tempname;
- /// how the inset is displayed by LyX
- lyx::graphics::DisplayType display;
- /// The scale of the displayed graphic (If shown).
- unsigned int lyxscale;
- };
+ InsetExternalParams();
+
+ void write(Buffer const &, std::ostream &) const;
+ bool read(Buffer const &, LyXLex &);
+
+ /// The name of the tempfile used for manipulations.
+ support::FileName const & tempname() const { return tempname_(); }
+
+ /// The template currently in use.
+ void settemplate(std::string const &);
+ std::string const & templatename() const { return templatename_; }
+
+ /// The external file.
+ support::DocFileName filename;
+ /// How the inset is to be displayed by LyX.
+ external::DisplayType display;
+ /// The scale of the displayed graphic (if shown).
+ unsigned int lyxscale;
+
+ external::ClipData clipdata;
+ external::ExtraData extradata;
+ external::ResizeData resizedata;
+ external::RotationData rotationdata;
+
+ /** if \c true, simply output the filename, maybe wrapped in a
+ * box, rather than generate and display the image etc.
+ */
+ bool draft;
+
+private:
+ external::TempName tempname_;
+ std::string templatename_;
+};
+
+
+class RenderBase;