]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
changelogs
[lyx.git] / src / insets / insetgraphics.h
index a51ca6e2e7953b6f73bf4ce057e6eeee8850d338..0fe0c6daff43712ada94c14974f578ae933ff2ed 100644 (file)
@@ -29,8 +29,6 @@ public:
        ///
        InsetGraphics();
        ///
-       InsetGraphics(InsetGraphics const &);
-       ///
        ~InsetGraphics();
        ///
        void metrics(MetricsInfo &, Dimension &) const;
@@ -65,9 +63,6 @@ public:
        /// returns LyX code associated with the inset. Used for TOC, ...)
        InsetOld::Code lyxCode() const { return InsetOld::GRAPHICS_CODE; }
 
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-
        /** Set the inset parameters, used by the GUIndependent dialog.
            Return true of new params are different from what was so far.
        */
@@ -79,17 +74,16 @@ public:
        void draw(PainterInfo & pi, int x, int y) const;
        ///
        void edit(LCursor & cur, bool left);
+       ///
+       void editGraphics(InsetGraphicsParams const &, Buffer const &) const;
 protected:
+       InsetGraphics(InsetGraphics const &);
        ///
-       DispatchResult priv_dispatch(LCursor & cur, FuncRequest const & cmd);
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
 private:
-       ///
        friend class InsetGraphicsMailer;
 
-       /** This method is connected to the graphics loader, so we are
-        *  informed when the image has been loaded.
-        */
-       void statusChanged() const;
+       virtual std::auto_ptr<InsetBase> doClone() const;
 
        /// Read the inset native format
        void readInsetGraphics(LyXLex & lex, std::string const & bufpath);
@@ -98,6 +92,10 @@ private:
        std::string const statusMessage() const;
        /// Create the options for the latex command.
        std::string const createLatexOptions() const;
+       /// Create length values for docbook export.
+       std::string const toDocbookLength(LyXLength const & len) const;
+       /// Create the atributes for docbook export.
+       std::string const createDocBookAttributes() const;
        /// Convert the file if needed, and return the location of the file.
        std::string const prepareFile(Buffer const & buf, OutputParams const &) const;