]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / inseturl.h
index 9979a41cf79a01ae5b9e4be39804961f2e9f449f..124600e091507125c60eaf27c6a2e02cf538002d 100644 (file)
 
 #include "insetcommand.h"
 
-struct LaTeXFeatures;
+
+namespace lyx {
+
+class LaTeXFeatures;
 
 /** The url inset
  */
@@ -25,38 +28,34 @@ public:
        explicit
        InsetUrl(InsetCommandParams const &);
        ///
-       ~InsetUrl();
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetUrl(params()));
-       }
-       ///
-       InsetOld::Code lyxCode() const { return InsetOld::URL_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       std::string const getScreenLabel(Buffer const &) const;
+       docstring const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
        bool display() const { return false; }
        ///
-       int latex(Buffer const &, std::ostream &,
-                 LatexRunParams const &) const;
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int ascii(Buffer const &, std::ostream &,
-                 LatexRunParams const &) const;
+       int plaintext(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int linuxdoc(Buffer const &, std::ostream &,
-                    LatexRunParams const &) const;
-       ///
-       int docbook(Buffer const &, std::ostream &,
-                   LatexRunParams const &) const;
-protected:
-       ///
-       virtual
-       DispatchResult
-       priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) const;
+       /// the string that is passed to the TOC
+       virtual int textString(Buffer const &, odocstream &,
+               OutputParams const &) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const {
+               return std::auto_ptr<InsetBase>(new InsetUrl(params()));
+       }
 };
 
+
+} // namespace lyx
+
 #endif