Package ag.ion.noa.frame

Examples of ag.ion.noa.frame.IDispatch.dispatch()


   * @author Markus Kr�ger
   * @date 09.07.2007
   */
  public void showPreview(int columns, int rows) throws NOAException {
    IDispatch dispatch = getDispatch(GlobalCommands.PRINT_PREVIEW);
    dispatch.dispatch();
    if(columns < 1)
      columns = 1;
    if(rows < 1)
      rows = 1;
    dispatch = getDispatch(GlobalCommands.PRINT_PREVIEW_SHOW_MULTIPLE_PAGES);
View Full Code Here


    properties[0].Name = "Columns";
    properties[0].Value = new Integer(columns);                
    properties[1] = new PropertyValue();
    properties[1].Name = "Rows";
    properties[1].Value = new Integer(rows);
    dispatch.dispatch(properties);
  }
  //----------------------------------------------------------------------------
  /**
   * Returns information whether the submitted command URL is disabled.
   *
 
View Full Code Here

   * @author Markus Kr�ger
   * @date 09.07.2007
   */
  public void showPreview(int columns, int rows) throws NOAException {
    IDispatch dispatch = getDispatch(GlobalCommands.PRINT_PREVIEW);
    dispatch.dispatch();
    if (columns < 1)
      columns = 1;
    if (rows < 1)
      rows = 1;
    dispatch = getDispatch(GlobalCommands.PRINT_PREVIEW_SHOW_MULTIPLE_PAGES);
View Full Code Here

    properties[0].Name = "Columns";
    properties[0].Value = new Integer(columns);
    properties[1] = new PropertyValue();
    properties[1].Name = "Rows";
    properties[1].Value = new Integer(rows);
    dispatch.dispatch(properties);
  }

  // ----------------------------------------------------------------------------
  /**
   * Returns information whether the submitted command URL is disabled.
View Full Code Here

  private void redoIntegration(int ooUndoSteps) {
    try {
      IDispatch dispatch = editor.getFrame().getDispatch(".uno:Undo"); //$NON-NLS-1$
      for (int i = 0; i < ooUndoSteps; i++)
        dispatch.dispatch();
    } catch (NOAException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
View Full Code Here

      IFrame frame = frameProvider.getFrame();
      if(frame != null) {
        try {
          IDispatch dispatch = frame.getDispatch(GlobalCommands.PRINT_DOCUMENT);
          if(dispatch != null)
            dispatch.dispatch();
        }
        catch(Throwable throwable) {
          ErrorDialog.openError(Display.getCurrent().getActiveShell(), Messages.PrintAction_dialog_title_internalError,
              throwable.getMessage(),
              new Status(IStatus.ERROR, EditorUIPlugin.PLUGIN_ID, IStatus.ERROR, throwable.getMessage(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.