]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
small changes to ButtonController usage
[lyx.git] / src / lyxtext.h
index 09881225959b2f46d52fdfe71c79dc938a0fd4a0..1afc30597cf4b93a6d44d8735042bc105cd0ea29 100644 (file)
@@ -48,6 +48,7 @@ public:
 
        /// Constructor
        LyXText(BufferView *);
+       ///
        LyXText(InsetText *);
    
        /// Destructor
@@ -58,6 +59,7 @@ public:
        mutable int number_of_rows;
        ///
        mutable long height;
+       ///
        mutable unsigned int width;
        /// the current font settings
        mutable LyXFont current_font;
@@ -70,9 +72,6 @@ public:
        ///
        InsetText * inset_owner;
 
-       ///
-       //      void owner(BufferView *);
-       
        ///
        LyXFont GetFont(Buffer const *, LyXParagraph * par,
                        LyXParagraph::size_type pos) const;
@@ -152,8 +151,10 @@ public:
            Returns true if something was broken. */
         bool FullRebreak(BufferView *);
 
+#ifndef NEW_INSETS
        ///
        LyXParagraph::footnote_flag GetFootnoteFlag(int row);
+#endif
        ///
        Row * need_break_row;
        ///
@@ -183,7 +184,8 @@ public:
        /** returns the column near the specified x-coordinate of the row 
         x is set to the real beginning of this column
         */ 
-       int GetColumnNearX(BufferView *, Row * row, int & x, bool & boundary) const;
+       int GetColumnNearX(BufferView *, Row * row,
+                          int & x, bool & boundary) const;
        
        /** returns a pointer to a specified row. y is set to the beginning
         of the row
@@ -248,7 +250,7 @@ public:
                       LyXParagraph::size_type pos,
                       bool setfont = true,
                       bool boundary = false) const;
-
+       ///
        void SetCursor(BufferView *, LyXCursor &, LyXParagraph * par,
                       LyXParagraph::size_type pos,
                       bool boundary = false) const;
@@ -270,7 +272,9 @@ public:
 
        ///
        void SetCursorFromCoordinates(BufferView *, int x, long y) const;
-       void SetCursorFromCoordinates(BufferView *, LyXCursor &, int x, long y) const;
+       ///
+       void SetCursorFromCoordinates(BufferView *, LyXCursor &,
+                                     int x, long y) const;
        ///
        void CursorUp(BufferView *) const;
        ///
@@ -313,10 +317,13 @@ public:
        void DeleteLineForward(BufferView *);
        ///
        bool SelectWordWhenUnderCursor(BufferView *);
-
+       ///
        enum TextCase {
+               ///
                text_lowercase = 0,
+               ///
                text_capitalization = 1,
+               ///
                text_uppercase = 2
        };
        /// Change the case of the word at cursor position.
@@ -329,6 +336,7 @@ public:
        void GetVisibleRow(BufferView *, int y_offset, int x_offset,
                           Row * row_ptr, long y, bool cleared=false);
 
+#ifndef NEW_INSETS
        /* footnotes: */
        ///
        void ToggleFootnote(BufferView *);
@@ -350,6 +358,7 @@ public:
                                       LyXParagraph::footnote_kind kind);
        ///
        void MeltFootnoteEnvironment(BufferView *);
+#endif
        ///
        void CutSelection(BufferView *, bool = true);
        ///
@@ -383,6 +392,7 @@ public:
                          LyXAlignment align, 
                          string labelwidthstring,
                          bool noindent);
+       ///
        void SetParagraphExtraOpt(BufferView *, int type,
                                  char const * width,
                                  char const * widthp,
@@ -410,6 +420,7 @@ public:
        /** if the string can be found: return true and set the cursor to
          the new position */
        bool SearchForward(BufferView *, char const * str) const;
+       ///
        bool SearchBackward(BufferView *, char const * str) const;
 
        /// needed to insert the selection
@@ -501,8 +512,6 @@ public:
        ///
        int workWidth(BufferView *) const;
        ///
-       //      Buffer * buffer() const;
-       ///
        void ComputeBidiTables(Buffer const *, Row * row) const;
 
        /// Maps positions in the visual string to positions in logical string.
@@ -522,7 +531,7 @@ public:
                else
                        return vis2log_list[pos-bidi_start];
        }
-
+       ///
        inline
        int bidi_level(LyXParagraph::size_type pos) const {
                if (bidi_start == -1)
@@ -530,7 +539,7 @@ public:
                else
                        return bidi_levels[pos-bidi_start];
        }       
-
+       ///
        inline
        bool bidi_InRange(LyXParagraph::size_type pos) const {
                return bidi_start == -1 ||
@@ -544,14 +553,14 @@ private:
        ///
        mutable Row * lastrow;
 
-       /** Copybuffer for copy environment type
+       /** Copybuffer for copy environment type.
          Asger has learned that this should be a buffer-property instead
          Lgb has learned that 'char' is a lousy type for non-characters
          */
        LyXTextClass::size_type copylayouttype;
 
        /** inserts a new row behind the specified row, increments
-        * the touched counters */
+           the touched counters */
        void InsertRow(Row * row, LyXParagraph * par,
                       LyXParagraph::size_type pos) const;
        /** removes the row and reset the touched counters */
@@ -561,7 +570,8 @@ private:
        void RemoveParagraph(Row * row) const;
 
        /** insert the specified paragraph behind the specified row */
-       void InsertParagraph(BufferView *, LyXParagraph * par, Row * row) const;
+       void InsertParagraph(BufferView *,
+                            LyXParagraph * par, Row * row) const;
 
        /** appends  the implizit specified paragraph behind the specified row,
         * start at the implizit given position */
@@ -684,13 +694,12 @@ private:
 
        ///
        void charInserted();
-       ///
-       /// special owner functions
+       //
+       // special owner functions
        ///
        LyXParagraph * OwnerParagraph() const;
-       ///
+       //
        LyXParagraph * OwnerParagraph(LyXParagraph *) const;
-       ///
 };
 
 #endif