• Jody Goldberg's avatar
    Some border improvements. · e18beddb
    Jody Goldberg authored
    - Use DASH_ON_OFF to correctly handle borders for cells with a background
    - Prefer Top/Left vs Bottom/Right.  This works around problems with borders
      for cells with backgrounds..  BUT does not solve it for importing.  That
      will require the next generation border code that has yet to be designed.
    - A crappy implementation of double borders.  Does NOT handle cells with
      backgrounds, or the myriad intersection cases.
    - Improve handling of undo and redraw for borders.
    2000-02-21  Jody Goldberg <jgoldberg@home.com>
    	* src/sheet.c (sheet_cursor_set) : Be religous about handing edit_pos
    	* src/commands.c (cmd_format) : save for formats for a range 1 cell
    	  thick around the selection so that borders are handled.
    	* src/sheet-view.c (sheet_view_redraw_cell_region) : Redraw a border
    	  around the selected region to handle thick borders */
    	* src/sheet-object.c (sheet_object_canvas_event) : Ignore mouse wheel
    	* src/border.c (style_border_set_gc_dash) : Use GDK_LINE_ON_OFF_DASH
    	  so that background colours show through.
    	* src/sheet-style.c (sheet_range_set_border) : Prefer top vs bottom
    	  and left vs right.  This will simplify drawing eventually.
sheet-control-gui.c 25.5 KB