X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetgraphics.h;h=aa9dc9d6cf19fd46101fbe3ea3a0f11e6e8b765a;hb=487f6eb3b43746460d090f643cd1e39f2d93a74b;hp=96df55fd29f9e6ec069cb18a5616c39f1b1c9b04;hpb=d4ee9c38b6aa45146f67658352623bcbc3e0ad9b;p=lyx.git diff --git a/src/insets/insetgraphics.h b/src/insets/insetgraphics.h index 96df55fd29..aa9dc9d6cf 100644 --- a/src/insets/insetgraphics.h +++ b/src/insets/insetgraphics.h @@ -5,7 +5,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 the LyX Team. + * Copyright 1995-2001 the LyX Team. * * ====================================================== */ @@ -17,7 +17,7 @@ #pragma interface #endif -#include "insets/lyxinset.h" +#include "insets/inset.h" #include "insets/insetgraphicsParams.h" #include "graphics/GraphicsCacheItem.h" #include @@ -48,37 +48,37 @@ public: /// void draw(BufferView *, LyXFont const &, int, float &, bool) const; /// - void Edit(BufferView *, int, int, unsigned int); + void edit(BufferView *, int, int, unsigned int); /// - EDITABLE Editable() const; + EDITABLE editable() const; /// - void Write(Buffer const *, std::ostream &) const; + void write(Buffer const *, std::ostream &) const; /// - void Read(Buffer const *, LyXLex & lex); + void read(Buffer const *, LyXLex & lex); /** returns the number of rows (\n's) of generated tex code. #fragile == true# means, that the inset should take care about fragile commands by adding a #\protect# before. */ - int Latex(Buffer const *, std::ostream &, + int latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const; /// - int Ascii(Buffer const *, std::ostream &, int linelen) const; + int ascii(Buffer const *, std::ostream &, int linelen) const; /// - int Linuxdoc(Buffer const *, std::ostream &) const; + 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. */ - void Validate(LaTeXFeatures & features) const; + void validate(LaTeXFeatures & features) const; /// returns LyX code associated with the inset. Used for TOC, ...) - Inset::Code LyxCode() const { return Inset::GRAPHICS_CODE; } + Inset::Code lyxCode() const { return Inset::GRAPHICS_CODE; } /// - Inset * Clone(Buffer const &) const; + virtual Inset * clone(Buffer const &, bool same_id = false) const; /** Set the inset parameters, used by the GUIndependent dialog. Return true of new params are different from what was so far. @@ -97,18 +97,16 @@ private: /// Update the inset after parameter change. void updateInset() const; /// Get the status message, depends on the image loading status. - char const * statusMessage() const; + string const statusMessage() const; /// Create the options for the latex command. string const createLatexOptions() const; /// Convert the file if needed, and return the location of the file. string const prepareFile(Buffer const * buf) const; - /// The graphics cache handle. mutable boost::shared_ptr cacheHandle; - /// is the pixmap initialized? mutable bool imageLoaded; - + /// InsetGraphicsParams params; };