]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettext.h
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insettext.h
index 88e7b0c305576736cdcfef7537089e50309d0e20..fe4e93230c6c5cd591632dc497479584f3064109 100644 (file)
@@ -38,18 +38,11 @@ class Row;
  */
 class InsetText : public UpdatableInset {
 public:
-       ///
-       enum DrawFrame {
-               ///
-               NEVER = 0,
-               ///
-               LOCKED,
-               ///
-               ALWAYS
-       };
        ///
        explicit InsetText(BufferParams const &);
        ///
+       explicit InsetText();
+       ///
        InsetText(InsetText const &);
        ///
        virtual std::auto_ptr<InsetBase> clone() const;
@@ -79,16 +72,16 @@ public:
                  OutputParams const &) const;
        ///
        int linuxdoc(Buffer const &, std::ostream &,
-                    OutputParams const &) const ;
+                    OutputParams const &) const;
        ///
        int docbook(Buffer const &, std::ostream &,
-                   OutputParams const &) const ;
+                   OutputParams const &) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
        InsetOld::Code lyxCode() const { return InsetOld::TEXT_CODE; }
        /// FIXME, document
-       void getCursorPos(CursorSlice const & cur, int & x, int & y) const;
+       void getCursorPos(LCursor const & cur, int & x, int & y) const;
        ///
        void setFont(BufferView *, LyXFont const &,
                     bool toggleall = false,
@@ -100,7 +93,7 @@ public:
        ///
        bool getAutoBreakRows() const { return autoBreakRows_; }
        ///
-       void setDrawFrame(DrawFrame);
+       void setDrawFrame(bool);
        ///
        LColor_color frameColor() const;
        ///
@@ -136,15 +129,19 @@ public:
        ///
        void edit(LCursor & cur, bool left);
        ///
-       InsetBase * editXY(LCursor & cur, int x, int y);
+       InsetBase * editXY(LCursor & cur, int x, int y) const;
 
        /// number of cells in this inset
        size_t nargs() const { return 1; }
        ///
-       ParagraphList & paragraphs() const;
+       ParagraphList & paragraphs();
+       ///
+       ParagraphList const & paragraphs() const;
        ///
        bool insetAllowed(Code) const { return true; }
-       
+       ///
+       bool allowSpellCheck() const { return true; }
+
 protected:
        ///
        void priv_dispatch(LCursor & cur, FuncRequest & cmd);
@@ -153,9 +150,6 @@ private:
        void updateLocal(LCursor &);
        ///
        void init();
-       // If the inset is empty set the language of the current font to the
-       // language to the surronding text (if different).
-       void sanitizeEmptyText(BufferView &);
        ///
        void setCharFont(Buffer const &, int pos, LyXFont const & font);
        ///
@@ -168,7 +162,7 @@ private:
        ///
        bool autoBreakRows_;
        ///
-       DrawFrame drawFrame_;
+       bool drawFrame_;
        /** We store the LColor::color value as an int to get LColor.h out
         *  of the header file.
         */