Exemple #1
0
  /**
   * 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);
  }
Exemple #2
0
  /**
   * 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);
  }
Exemple #3
0
  /**
   * 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);
  }