]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetUrl.h
Fix text frame drawing.
[lyx.git] / src / insets / InsetUrl.h
index f60b11cf393f59601f9c52ab7b25a653cfff6054..a07d72592fde4fdd0c2ba6340a83ac00575bbc10 100644 (file)
@@ -28,7 +28,7 @@ public:
        explicit
        InsetUrl(InsetCommandParams const &);
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
+       Inset::Code lyxCode() const { return Inset::URL_CODE; }
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -36,22 +36,22 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       bool display() const { return false; }
+       DisplayType display() const { return Inline; }
        ///
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+                     OutputParams const &) const;
        ///
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+                   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()));
+       virtual Inset * clone() const {
+               return new InsetUrl(params());
        }
 };