~ubuntu-branches/ubuntu/quantal/gnumeric/quantal

« back to all changes in this revision

Viewing changes to src/sheet-control.c

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2009-06-07 11:10:47 UTC
  • mfrom: (1.1.19 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090607111047-l3rtbzfjxvmi1kx0
Tags: 1.9.8-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Promoted gnumeric-doc to Recommends in gnumeric package for help to be
    installed automatically
  - gnumeric-gtk is a transitional package
  - gnumeric conflicts with gnumeric-gtk << 1.8.3-3ubuntu1
  - call initltool-update in po*
  - remove psiconv support (psiconv is in universe):
    o debian/control: remove B-D on libpsiconv-dev
    o debian/rules: don't pass --with-psiconv to ./configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <gnumeric-config.h>
24
24
#include "gnumeric.h"
25
25
#include "sheet-control-priv.h"
 
26
#include "sheet-view.h"
26
27
 
27
28
#include <gsf/gsf-impl-utils.h>
28
29
 
60
61
}
61
62
 
62
63
GSF_CLASS (SheetControl, sheet_control,
63
 
           sc_class_init, NULL, G_TYPE_OBJECT);
 
64
           sc_class_init, NULL, G_TYPE_OBJECT)
64
65
 
65
66
WorkbookControl *
66
67
sc_wbc (SheetControl const *sc)
73
74
sc_sheet (SheetControl const *sc)
74
75
{
75
76
        g_return_val_if_fail (IS_SHEET_CONTROL (sc), NULL);
76
 
        return sc->sheet;
 
77
        return sc->view ? sc->view->sheet : NULL;
77
78
}
78
79
 
79
80
SheetView *
97
98
SC_VIRTUAL (ant, (SheetControl *sc), (sc))
98
99
SC_VIRTUAL (unant, (SheetControl *sc), (sc))
99
100
 
100
 
SC_VIRTUAL (scrollbar_config, (SheetControl const *sc), (sc));
 
101
SC_VIRTUAL (scrollbar_config, (SheetControl const *sc), (sc))
101
102
 
102
 
SC_VIRTUAL (mode_edit, (SheetControl *sc), (sc));
 
103
SC_VIRTUAL (mode_edit, (SheetControl *sc), (sc))
103
104
 
104
105
SC_VIRTUAL (set_top_left,
105
106
            (SheetControl *sc, int col, int row),
109
110
            (sc, full_recompute))
110
111
SC_VIRTUAL (make_cell_visible,
111
112
            (SheetControl *sc, int col, int row, gboolean couple_panes),
112
 
            (sc, col, row, couple_panes));
 
113
            (sc, col, row, couple_panes))
113
114
 
114
115
SC_VIRTUAL (cursor_bound, (SheetControl *sc, GnmRange const *r), (sc, r))
115
116
SC_VIRTUAL (set_panes, (SheetControl *sc), (sc))
116
117
 
117
 
SC_VIRTUAL (object_create_view, (SheetControl *sc, SheetObject *so), (sc, so));
 
118
SC_VIRTUAL (object_create_view, (SheetControl *sc, SheetObject *so), (sc, so))
118
119
SC_VIRTUAL (scale_changed,      (SheetControl *sc), (sc))
119
120