#ifndef INSET_GRAPHICS_H
#define INSET_GRAPHICS_H
+#include <set>
#include "Inset.h"
#include "InsetGraphicsParams.h"
///
static std::string params2string(InsetGraphicsParams const &,
Buffer const &);
+
/** Set the inset parameters, used by the GUIndependent dialog.
Return true of new params are different from what was so far.
*/
bool setParams(InsetGraphicsParams const & params);
+ InsetGraphicsParams getParams() const { return params_;}
+
private:
///
InsetGraphics(InsetGraphics const &);
- ///
- void setBuffer(Buffer & buffer);
///
bool isLabeled() const { return true; }
void metrics(MetricsInfo &, Dimension &) const;
void editGraphics(InsetGraphicsParams const &, Buffer const &) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
- /// all graphics can be embedded
- void registerEmbeddedFiles(EmbeddedFileList &) const;
///
- void updateEmbeddedFile(EmbeddedFile 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?
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