]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
read the Changelog, preparing for prerelease
[lyx.git] / src / insets / insetgraphics.h
index 27de01f9afebf1bcd6640d75ba46bf9a446cd171..56ccddef932bdb46bdf9d8fb8c346f77481a170d 100644 (file)
 #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,21 @@ 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(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;
 
@@ -60,7 +63,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;
        ///