SCUtil.java (9fdcf9fd) | SCUtil.java (cebb507a) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 506 unchanged lines hidden (view full) --- 515 * @param fullFileName File name with the extension name. (e.g. "sc.ods") 516 * @return 517 * @throws Exception 518 */ 519 public static XSpreadsheetDocument reloadFile(UnoApp unoApp, XSpreadsheetDocument xSpreadsheetDocument, String fullFileName) throws Exception { 520 closeFile(xSpreadsheetDocument); 521 522 String filePath = Testspace.getPath(scTempDir + fullFileName); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 506 unchanged lines hidden (view full) --- 515 * @param fullFileName File name with the extension name. (e.g. "sc.ods") 516 * @return 517 * @throws Exception 518 */ 519 public static XSpreadsheetDocument reloadFile(UnoApp unoApp, XSpreadsheetDocument xSpreadsheetDocument, String fullFileName) throws Exception { 520 closeFile(xSpreadsheetDocument); 521 522 String filePath = Testspace.getPath(scTempDir + fullFileName); |
523 XSpreadsheetDocument xScDocument = UnoRuntime.queryInterface(XSpreadsheetDocument.class, unoApp.loadDocument(filePath)); | 523 XSpreadsheetDocument xScDocument = (XSpreadsheetDocument) UnoRuntime.queryInterface(XSpreadsheetDocument.class, unoApp.loadDocument(filePath)); |
524 525 return xScDocument; 526 } 527 528 /** 529 * open file in Spreadsheet. 530 * @param unoApp 531 * @param filtpath File path with the extension name. (e.g. "testcase/uno/sc/data/sample.xls") --- 24 unchanged lines hidden --- | 524 525 return xScDocument; 526 } 527 528 /** 529 * open file in Spreadsheet. 530 * @param unoApp 531 * @param filtpath File path with the extension name. (e.g. "testcase/uno/sc/data/sample.xls") --- 24 unchanged lines hidden --- |