#include "vspace.h"
#include "insets/BoundingBox.h"
+struct FD_Graphics;
+
///
class InsetGraphics : public Inset {
public:
+ ///
+ InsetGraphics();
///
int ascent(Painter &, LyXFont const &) const;
///
///
void Edit(BufferView *, int, int, unsigned int);
///
- unsigned char Editable() const;
+ EDITABLE Editable() const;
///
- void Write(ostream &) const;
+ void Write(std::ostream &) const;
///
void Read(LyXLex & lex);
/** returns the number of rows (\n's) of generated tex code.
- fragile != 0 means, that the inset should take care about
+ fragile == true means, that the inset should take care about
fragile commands by adding a \protect before.
*/
- int Latex(ostream &, signed char fragile) const;
- ///
- int Latex(string & file, signed char fragile) const;
+ int Latex(std::ostream &, bool fragile, bool free_spc) const;
///
- int Linuxdoc(string & /*file*/) const;
+ int Linuxdoc(std::ostream &) const;
///
- int DocBook(string & /*file*/) const;
+ int DocBook(std::ostream &) const;
+
/// Updates needed features for this inset.
void Validate(LaTeXFeatures & features) const;
///
Inset * Clone() const;
+ /// Set the graphics file
+ void graphicsFile(string const & f) {
+ graphicsfile = f;
+ }
+ /// Get the graphics file
+ string const & graphicsFile() const {
+ return graphicsfile;
+ }
private:
+ ///
+ FD_Graphics * form;
///
string graphicsfile;
///