]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.h
Make listings dialog translatable (mostly strings from InsetListingsParams), fix...
[lyx.git] / src / insets / InsetBox.h
index 3f3b43b73f7d2f06b75a905993feab0bb36c1438..79a471215412a715505fd53654837ef8c43c6dbf 100644 (file)
@@ -64,7 +64,7 @@ public:
        ///
        virtual docstring const editMessage() const;
        ///
-       InsetBase::Code lyxCode() const { return InsetBase::BOX_CODE; }
+       Inset::Code lyxCode() const { return Inset::BOX_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
@@ -76,7 +76,7 @@ public:
        /// show the Box dialog
        bool showInsetDialog(BufferView * bv) const;
        ///
-       bool display() const { return false; }
+       DisplayType display() const { return Inline; }
        ///
        bool forceDefaultParagraphs(idx_type) const;
        ///
@@ -109,10 +109,12 @@ protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        /// Is the width forced to some value?
        virtual bool hasFixedWidth() const;
+       ///
+       virtual docstring name() const { return from_ascii("Box"); }
 private:
        friend class InsetBoxParams;
 
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
 
        /// used by the constructors
        void init();
@@ -126,7 +128,7 @@ public:
        ///
        InsetBoxMailer(InsetBox & inset);
        ///
-       virtual InsetBase & inset() const { return inset_; }
+       virtual Inset & inset() const { return inset_; }
        ///
        virtual std::string const & name() const { return name_; }
        ///