]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettext.h
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insettext.h
index d89bb3413e4aee9d0ec14c8dfea50240d7d174c1..fe4e93230c6c5cd591632dc497479584f3064109 100644 (file)
@@ -38,15 +38,6 @@ class Row;
  */
 class InsetText : public UpdatableInset {
 public:
-       ///
-       enum DrawFrame {
-               ///
-               NEVER = 0,
-               ///
-               LOCKED,
-               ///
-               ALWAYS
-       };
        ///
        explicit InsetText(BufferParams const &);
        ///
@@ -102,7 +93,7 @@ public:
        ///
        bool getAutoBreakRows() const { return autoBreakRows_; }
        ///
-       void setDrawFrame(DrawFrame);
+       void setDrawFrame(bool);
        ///
        LColor_color frameColor() const;
        ///
@@ -138,7 +129,7 @@ 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; }
@@ -159,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);
        ///
@@ -174,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.
         */