X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetgraphics.h;h=60770ef658e671f8619a73b7884c2c7ec129581c;hb=357a3741c0655e174ad48ded68cca90b09a158e6;hp=65597521424efd6c046942af26da74583ebdaa3b;hpb=50257b86904437b6695a7a9a823fbe4301ba0ce3;p=lyx.git diff --git a/src/insets/insetgraphics.h b/src/insets/insetgraphics.h index 6559752142..60770ef658 100644 --- a/src/insets/insetgraphics.h +++ b/src/insets/insetgraphics.h @@ -33,8 +33,6 @@ public: /// ~InsetGraphics(); /// - virtual dispatch_result localDispatch(FuncRequest const & cmd); - /// void metrics(MetricsInfo &, Dimension &) const; /// EDITABLE editable() const; @@ -48,13 +46,16 @@ public: fragile commands by adding a #\protect# before. */ int latex(Buffer const &, std::ostream &, - LatexRunParams const &) const; + OutputParams const &) const; /// - int ascii(Buffer const &, std::ostream &, int linelen) const; + int plaintext(Buffer const &, std::ostream &, + OutputParams const &) const; /// - int linuxdoc(Buffer const &, std::ostream &) const; + int linuxdoc(Buffer const &, std::ostream &, + OutputParams const &) const; /// - int docbook(Buffer const &, std::ostream &, bool mixcont) const; + int docbook(Buffer const &, std::ostream &, + OutputParams const &) const; /** Tell LyX what the latex features you need i.e. what latex packages you need to be included. @@ -76,7 +77,11 @@ public: InsetGraphicsParams const & params() const; /// void draw(PainterInfo & pi, int x, int y) const; - + /// + void edit(LCursor & cur, bool left); +protected: + /// + void priv_dispatch(LCursor & cur, FuncRequest const & cmd); private: /// friend class InsetGraphicsMailer; @@ -94,7 +99,7 @@ private: /// Create the options for the latex command. std::string const createLatexOptions() const; /// Convert the file if needed, and return the location of the file. - std::string const prepareFile(Buffer const & buf, LatexRunParams const &) const; + std::string const prepareFile(Buffer const & buf, OutputParams const &) const; /// InsetGraphicsParams params_;