]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.h
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / InsetGraphics.h
index 2c601567b7ab2b594ab7cc367c0a75b1069321af..d2ab83f32b11985457aa28415617c4eab2fbeb75 100644 (file)
@@ -48,15 +48,6 @@ public:
        ///
        static std::string params2string(InsetGraphicsParams const &,
                                          Buffer const &);
-       /// Saves the list of currently used groups in the document.
-       static void getGraphicsGroups(Buffer const &, std::set<std::string> &);
-       /// Returns parameters of a given graphics group (except filename).
-       static std::string getGroupParams(Buffer const &,
-                                               std::string const &);
-       /** Synchronize all Graphics insets of the group.
-           Both groupId and params are taken from argument.
-       */
-       static void unifyGraphicsGroups(Buffer const &, std::string const &);
 
        /** Set the inset parameters, used by the GUIndependent dialog.
            Return true of new params are different from what was so far.
@@ -104,7 +95,7 @@ private:
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///
-       void addToToc(ParConstIterator const &) const;
+       void addToToc(DocIterator const &);
        ///
        docstring contextMenu(BufferView const & bv, int x, int y) const;
        /// Force inset into LTR environment if surroundings are RTL?
@@ -132,6 +123,22 @@ private:
        boost::scoped_ptr<RenderGraphic> const graphic_;
 };
 
+namespace graphics {
+
+       /// Saves the list of currently used groups in the document.
+       void getGraphicsGroups(Buffer const &, std::set<std::string> &);
+
+       /// Returns parameters of a given graphics group (except filename).
+       std::string getGroupParams(Buffer const &, std::string const &);
+
+       /** Synchronize all Graphics insets of the group.
+           Both groupId and params are taken from argument.
+       */
+       void unifyGraphicsGroups(Buffer const &,        std::string const &);
+       InsetGraphics * getCurrentGraphicsInset(Cursor const &);
+
+}
+
 } // namespace lyx
 
 #endif // INSET_GRAPHICS_H