]> git.lyx.org Git - features.git/blobdiff - src/insets/insetgraphics.h
fix lyxalgo.h, dra pagebreak with text on line, change the math_deco_search a bit
[features.git] / src / insets / insetgraphics.h
index 3225df6132d6793ccbd8224d62e27cd4a161a97b..a6521e0e6ded56c4fdd8458782026d2772d14783 100644 (file)
 #include "vspace.h"
 #include "insets/BoundingBox.h"
 
+struct FD_Graphics;
+
 ///
 class InsetGraphics : public Inset {
 public:
+       ///
+       InsetGraphics();
        ///
        int ascent(Painter &, LyXFont const &) const;
        ///
@@ -46,19 +50,11 @@ public:
         fragile commands by adding a \protect before.
         */
        int Latex(ostream &, signed char fragile, bool free_spc) const;
-#ifndef USE_OSTREAM_ONLY
-       ///
-       int Latex(string & file, signed char fragile, bool free_spc) const;
-       ///
-       int Linuxdoc(string & /*file*/) const;
-       ///
-       int DocBook(string & /*file*/) const;
-#else
        ///
        int Linuxdoc(ostream &) const;
        ///
        int DocBook(ostream &) const;
-#endif
+
        /// Updates needed features for this inset.
        void Validate(LaTeXFeatures & features) const;
 
@@ -67,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;
        ///