View properties import
The following interface handles importing of view properties. View properties affect how the content of a document may get displayed.
-
class import_sheet_view
Interface for importing view properties. This interface may be obtained from the import_sheet interface.
Public Functions
-
virtual ~import_sheet_view()
-
virtual void set_sheet_active() = 0
Set the current sheet as the active sheet.
-
virtual void set_split_pane(double hor_split, double ver_split, const address_t &top_left_cell, sheet_pane_t active_pane) = 0
Set the information about split view in the current sheet.
- Parameters:
hor_split – horizontal position of the split in 1/20th of a point, or 0 if none. “Horizontal” in this case indicates the column direction.
ver_split – vertical position of the split in 1/20th of a point, or 0 if none. “Vertical” in this case indicates the row direction.
top_left_cell – the top left visible cell in the bottom right pane.
active_pane – active pane in this sheet.
-
virtual void set_frozen_pane(col_t visible_columns, row_t visible_rows, const address_t &top_left_cell, sheet_pane_t active_pane) = 0
Set the state of frozen view in the current sheet.
- Parameters:
visible_columns – number of visible columns in the left pane.
visible_rows – number of visible rows in the top pane.
top_left_cell – the top left visible cell in the bottom right pane.
active_pane – active pane in this sheet.
-
virtual void set_selected_range(sheet_pane_t pane, range_t range) = 0
Set the selected cursor range in a specified sheet pane.
- Parameters:
pane – sheet pane associated with the selection. The top-left pane is used for a non-split sheet view.
range – selected cursor range. The range will be 1 column by 1 row when the cursor is on a single cell only.
-
virtual ~import_sheet_view()