]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetgraphics.h
index 9db4f94b78041952e6fe4d6791fff4023cc2548b..ac380bffc46564d9f8b3fb5dd26c4139161a7f67 100644 (file)
@@ -7,6 +7,8 @@
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1995-2001 the LyX Team.
  *
+ * \author Baruch Even
+ * \author Herbert Voss <voss@lyx.org>
  * ====================================================== */
 
 #ifndef INSET_GRAPHICS_H
@@ -52,6 +54,8 @@ public:
        ///
        void edit(BufferView *, int, int, unsigned int);
        ///
+       void edit(BufferView * bv, bool front = true);
+       ///
        EDITABLE editable() const;
        ///
        void write(Buffer const *, std::ostream &) const;
@@ -69,7 +73,7 @@ public:
        ///
        int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int docBook(Buffer const *, std::ostream &) const;
+       int docbook(Buffer const *, std::ostream &) const;
 
        /** Tell LyX what the latex features you need i.e. what latex packages
            you need to be included.
@@ -96,6 +100,11 @@ public:
        SigC::Signal0<void> hideDialog;
 
 private:
+       /// Read the inset native format
+       void readInsetGraphics(Buffer const * buf, LyXLex & lex);
+       /// Read the FigInset file format
+       void readFigInset(Buffer const * buf, LyXLex & lex);
+       
        /// Update the inset after parameter change.
        void updateInset() const;
        /// Get the status message, depends on the image loading status.
@@ -108,8 +117,10 @@ private:
        mutable boost::shared_ptr<GraphicsCacheItem> cacheHandle;
        /// is the pixmap initialized?
        mutable bool imageLoaded;
-       ///
+       /// the parameters
        InsetGraphicsParams params;
+       /// holds the entity name that defines the graphics location (SGML).
+       string const graphic_label;
 };
 
 #endif