X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetgraphics.h;h=92849ae22907c33eafbcf17ed8e94a05a569cd67;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=27de01f9afebf1bcd6640d75ba46bf9a446cd171;hpb=ba5e47f1a92c3688d16f76f654fd3768672ebb50;p=lyx.git diff --git a/src/insets/insetgraphics.h b/src/insets/insetgraphics.h index 27de01f9af..92849ae229 100644 --- a/src/insets/insetgraphics.h +++ b/src/insets/insetgraphics.h @@ -21,9 +21,13 @@ #include "vspace.h" #include "insets/BoundingBox.h" +struct FD_Graphics; + /// class InsetGraphics : public Inset { public: + /// + InsetGraphics(); /// int ascent(Painter &, LyXFont const &) const; /// @@ -36,22 +40,23 @@ public: /// 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(std::ostream &, bool fragile, bool free_spc) const; /// - int Latex(string & file, signed char fragile) const; + int Ascii(std::ostream &) 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; @@ -60,7 +65,17 @@ public: /// 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; ///