return _sheet.getLeftCol();
}
+ /**
+ * Sets desktop window pane display area, when the
+ * file is first opened in a viewer.
+ *
+ * @param toprow the top row to show in desktop window pane
+ * @param leftcol the left column to show in desktop window pane
+ */
+ public void showInPane(int toprow, int leftcol) {
+ int maxrow = SpreadsheetVersion.EXCEL97.getLastRowIndex();
+ if (toprow > maxrow) throw new IllegalArgumentException("Maximum row number is " + maxrow);
+
+ showInPane((short)toprow, (short)leftcol);
+ }
/**
* Sets desktop window pane display area, when the
* file is first opened in a viewer.
* @param toprow the top row to show in desktop window pane
* @param leftcol the left column to show in desktop window pane
*/
+ void showInPane(int toprow, int leftcol);
+
+ /**
+ * Sets desktop window pane display area, when the
+ * file is first opened in a viewer.
+ *
+ * @param toprow the top row to show in desktop window pane
+ * @param leftcol the left column to show in desktop window pane
+ * @deprecated Use {@link #showInPane(int, int)} as there can be more than 32767 rows.
+ */
void showInPane(short toprow, short leftcol);
/**
* @param toprow the top row to show in desktop window pane
* @param leftcol the left column to show in desktop window pane
*
- * @deprecated Use the version of showInPane() with ints as there can be more than 32767 rows.
+ * @deprecated Use {@link #showInPane(int, int)} as there can be more than 32767 rows.
*/
@Deprecated
public void showInPane(short toprow, short leftcol) {