- void breakAgainOneRow(BufferView *, Row * row);
- /// Calculate and set the height of the row
- void setHeightOfRow(BufferView *, Row * row_ptr) const;
-
- /** this calculates the specified parameters. needed when setting
- * the cursor and when creating a visible row */
- void prepareToPrint(BufferView *, Row * row, float & x,
- float & fill_separator,
- float & fill_hfill,
- float & fill_label_hfill,
- bool bidi = true) const;
-
- /// A struct used for drawing routines
- struct DrawRowParams {
- // the bufferview
- BufferView * bv;
- // the row
- Row * row;
- // the painter to use
- Painter * pain;
- // has the background been cleared
- bool cleared;
- /// x offset (e.g. for insets)
- int xo;
- /// y offset (e.g. for insets)
- int yo;
- /// FIXME
- float x;
- /// FIXME
- int y;
- /// the inset/view full width
- int width;
- /// hfill size
- float hfill;
- /// label hfill size
- float label_hfill;
- /// fill separator size
- float separator;
- };
-
- /// paint the background
- bool paintRowBackground(DrawRowParams & p);
-
- /// paint the selection background
- void paintRowSelection(DrawRowParams & p);
-
- /// paint appendix marker
- void paintRowAppendix(DrawRowParams & p);
-
- /// paint page break marker. Returns its height.
- int paintPageBreak(string const & label, int y, DrawRowParams & p);
-
- /// paint env depth bar
- void paintRowDepthBar(DrawRowParams & p);
-
- /// get the on-screen size of the length marker
- int getLengthMarkerHeight(BufferView * bv, VSpace const & vsp) const;
-
- /// paint an added space marker
- int drawLengthMarker(DrawRowParams & p, string const & str,
- VSpace const & vsp, int start);
-
- /// paint a first row in a paragraph
- void paintFirstRow(DrawRowParams & p);
-
- /// paint a last row in a paragraph
- void paintLastRow(DrawRowParams & p);
-
- /// paint text
- void paintRowText(DrawRowParams & p);
+ DispatchResult moveLeft();
+ ///
+ DispatchResult moveRightIntern(bool front,
+ bool activate_inset, bool selecting);
+ ///
+ DispatchResult moveLeftIntern(bool front,
+ bool activate_inset, bool selecting);
+ ///
+ DispatchResult moveUp();
+ ///
+ DispatchResult moveDown();
+ ///
+ bool checkAndActivateInset(bool front);