summaryrefslogtreecommitdiff
path: root/unotest/source/java/org/openoffice/test/tools/SpreadsheetView.java
diff options
context:
space:
mode:
Diffstat (limited to 'unotest/source/java/org/openoffice/test/tools/SpreadsheetView.java')
-rw-r--r--unotest/source/java/org/openoffice/test/tools/SpreadsheetView.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/unotest/source/java/org/openoffice/test/tools/SpreadsheetView.java b/unotest/source/java/org/openoffice/test/tools/SpreadsheetView.java
index f935b1f91880..b6e32a9beb72 100644
--- a/unotest/source/java/org/openoffice/test/tools/SpreadsheetView.java
+++ b/unotest/source/java/org/openoffice/test/tools/SpreadsheetView.java
@@ -17,15 +17,8 @@
*/
package org.openoffice.test.tools;
-import com.sun.star.container.XIndexAccess;
import com.sun.star.frame.XController;
import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.sheet.XSpreadsheet;
-import com.sun.star.sheet.XSpreadsheetDocument;
-import com.sun.star.sheet.XSpreadsheetView;
-import com.sun.star.uno.UnoRuntime;
-import java.util.logging.Level;
-import java.util.logging.Logger;
public class SpreadsheetView extends OfficeDocumentView
{
@@ -36,25 +29,4 @@ public class SpreadsheetView extends OfficeDocumentView
super( orb, document, controller );
}
- /** activates the sheet with the given index
- */
- void activateSheet( int sheetIndex )
- {
- try
- {
- // get the sheet to activate
- XSpreadsheetDocument doc = UnoRuntime.queryInterface( XSpreadsheetDocument.class, getDocument().getDocument() );
- XIndexAccess sheets = UnoRuntime.queryInterface( XIndexAccess.class, doc.getSheets() );
-
- XSpreadsheet sheet = UnoRuntime.queryInterface( XSpreadsheet.class, sheets.getByIndex( sheetIndex ) );
-
- // activate
- XSpreadsheetView view = UnoRuntime.queryInterface( XSpreadsheetView.class, getController() );
- view.setActiveSheet( sheet );
- }
- catch( com.sun.star.uno.Exception e )
- {
- Logger.getLogger( SpreadsheetView.class.getName() ).log( Level.SEVERE, "unable to activate the given sheet", e );
- }
- }
}