/** * creates a calc document and check the <CODE>XMouseClickHandler</CODE> and <CODE>XKeyHandler * </CODE> * * @see com.sun.star.awt.XKeyHandler * @see com.sun.star.awt.XMouseClickHandler */ @Test public void checkCalcDocument() { XSpreadsheetDocument xDoc = null; try { xDoc = m_SOF.createCalcDoc("CalcTest"); } catch (com.sun.star.uno.Exception e) { fail("Could not create a calc document: " + e.toString()); } checkListener(xDoc); closeDoc(xDoc); }
/** * creates a draw document and check the <CODE>XMouseClickHandler</CODE> and <CODE>XKeyHandler * </CODE> * * @see com.sun.star.awt.XKeyHandler * @see com.sun.star.awt.XMouseClickHandler */ @Test public void checkDrawDocument() { XComponent xDoc = null; try { xDoc = m_SOF.createDrawDoc("DrawTest"); } catch (com.sun.star.uno.Exception e) { fail("Could not create a draw document: " + e.toString()); } checkListener(xDoc); closeDoc(xDoc); }
/** * creates a text document and check the <CODE>XMouseClickHandler</CODE> and <CODE>XKeyHandler * </CODE> * * @see com.sun.star.awt.XKeyHandler * @see com.sun.star.awt.XMouseClickHandler */ @Test public void checkTextDocument() { XTextDocument xDoc = null; try { xDoc = m_SOF.createTextDoc("WriterTest"); } catch (com.sun.star.uno.Exception e) { fail("Could not create a text document: " + e.toString()); } checkListener(xDoc); closeDoc(xDoc); }