]> 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 aa9dc9d6cf19fd46101fbe3ea3a0f11e6e8b765a..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
@@ -36,6 +38,8 @@ public:
        ///
        InsetGraphics();
        ///
+       InsetGraphics(InsetGraphics const &, bool same_id = false);
+       ///
        ~InsetGraphics();
        ///
        int ascent(BufferView *, LyXFont const &) const;
@@ -50,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;
@@ -67,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.
@@ -94,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.
@@ -106,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