]> 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 768e2b20efb12e56d2fc227eca241ba5ff635e30..79a471215412a715505fd53654837ef8c43c6dbf 100644 (file)
@@ -14,7 +14,7 @@
 #define INSETBOX_H
 
 #include "InsetCollapsable.h"
-#include "LyXLength.h"
+#include "Length.h"
 #include "MailInset.h"
 
 
@@ -36,7 +36,7 @@ public:
        /// columnwidth?
        bool inner_box;
        ///
-       LyXLength width;
+       Length width;
        /// "special" widths, see usrguide.dvi ยง3.5
        std::string special;
        ///
@@ -46,7 +46,7 @@ public:
        ///
        char inner_pos;
        ///
-       LyXLength height;
+       Length height;
        ///
        std::string height_special;
 };
@@ -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;
        ///
@@ -94,7 +94,7 @@ public:
        ///
        InsetBoxParams const & params() const { return params_; }
        ///
-       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
+       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        ///
        enum BoxType {
                Frameless,
@@ -106,13 +106,15 @@ public:
        };
 protected:
        InsetBox(InsetBox const &);
-       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       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_; }
        ///