Examples of IDispatch


Examples of ag.ion.noa.frame.IDispatch

   *
   * @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);
    PropertyValue[] properties = new PropertyValue[2];                       
    properties[0] = new PropertyValue();
    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);
  }
View Full Code Here

Examples of ag.ion.noa.frame.IDispatch

   *
   * @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);
    PropertyValue[] properties = new PropertyValue[2];
    properties[0] = new PropertyValue();
    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);
  }
View Full Code Here

Examples of ag.ion.noa.frame.IDispatch

    return artefactSegregator.run(tutorialDocument);
  }

  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

Examples of ag.ion.noa.frame.IDispatch

  public void run() {
    if(frameProvider != null) {
      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

Examples of jp.ne.so_net.ga2.no_ji.jcom.IDispatch

  // performs 100 calls in 5 seconds
  private boolean writeEvent(String subject, String body, Date start, Date end, int reminderMinutesBeforeStart,
      boolean reminderSet, int busyStatus, String categories, boolean durationIs0, int sensitivity) {

    ReleaseManager rm = null;
    IDispatch outlook;
    IDispatch item;
    try {
      System.loadLibrary("JCom");
      rm = new ReleaseManager();
      try {
        outlook = new IDispatch(rm, "Outlook.Application");
      } catch (jp.ne.so_net.ga2.no_ji.jcom.JComException ex) {
        JOptionPane.showMessageDialog(CalendarExportPlugin.getInstance().getBestParentFrame(), mLocalizer.msg(
            "noOutlookFound", "MS Outlook is not installed."), Localizer.getLocalization(Localizer.I18N_ERROR),
            JOptionPane.WARNING_MESSAGE);
        return false;
      }
      item = (IDispatch) outlook.invoke("CreateItem", IDispatch.PROPERTYGET, new Integer[] { olAppointmentItem });
      item.put("Subject", subject);
      item.put("Body", body);
      item.put("Start", correctTimeZone(start));
      item.put("End", correctTimeZone(end));
      item.put("ReminderSet", reminderSet);
      if (reminderSet) {
        item.put("ReminderMinutesBeforeStart", reminderMinutesBeforeStart);
      }
      item.put("BusyStatus", busyStatus);
      item.put("Categories", categories);
      if (durationIs0) {
        item.put("Duration", 0);
      }
      item.put("Sensitivity", sensitivity);
      item.method("Save", null);
      item.release();
      outlook.release();
    } catch (Exception e) {
      e.printStackTrace();
      ErrorHandler.handle(mLocalizer
          .msg("exportError", "An error occured while creating an appointment in MS Outlook."), e);
View Full Code Here

Examples of jp.ne.so_net.ga2.no_ji.jcom.IDispatch

    /**
     * Füllt die Außendienst Datenbank.
     */
    private void fillAD() {
        IDispatch archvorg = bpn.getDataSet("VorgangArchiv");
        IDispatch archvorgpos = bpn.getDataSet("VorgangPositionArchiv");
        IDispatch archvorgangposfields = bpn.getFields(archvorgpos);
        LinkedList<String> adList = getADList();
        bpn.sort(archvorgpos, "ArtNr");
        for (String artnummer : adList) {
            bpn.setRange(archvorgpos, "ArtNr", artnummer, artNrPlusEins(artnummer));
            bpn.first(archvorgpos);
            IDispatch id = bpn.getItem(archvorgangposfields, "ID");
            String lastItem = "";
            String actualItem = bpn.itemAsString(id);
            while (hasnext(lastItem, actualItem)) {
                if (bpn.itemAsString(
                        bpn.getItem(archvorgangposfields, "BelegNr")).startsWith("RE")) {
View Full Code Here

Examples of jp.ne.so_net.ga2.no_ji.jcom.IDispatch

     */
    private String getBelegDatum(IDispatch archvorg, String belegnr) {
        bpn.sort(archvorg, "BelegNr");
        bpn.setRange(archvorg, "BelegNr", belegnr, belegNrPlusEins(belegnr));
        bpn.first(archvorg);
        IDispatch archvorgfields = bpn.getFields(archvorg);
        String toReturn = bpn.itemAsString(bpn.getItem(archvorgfields, "Dat"));
        return toReturn.substring(3);
    }
View Full Code Here

Examples of jp.ne.so_net.ga2.no_ji.jcom.IDispatch

    /**
     * Füllt die Data-Datenbank.
     */
    private void fillArchVorg() {
        IDispatch archvorg = bpn.getDataSet("VorgangArchiv");
        IDispatch archvorgpos = bpn.getDataSet("VorgangPositionArchiv");
        IDispatch archvorgfields = bpn.getFields(archvorg);
        bpn.sort(archvorg, "ArtBelegNr");
        bpn.setRange(archvorg, "Art", "70", "71");
        bpn.first(archvorg);

        IDispatch vorgvorgID = bpn.getItem(archvorgfields, "BelegNr");
        String vorglastItem = "";
        String vorgactualItem = bpn.itemAsString(vorgvorgID);
        while (hasnext(vorglastItem, vorgactualItem)) {
            IDispatch vorgbelegNr = bpn.getItem(archvorgfields, "BelegNr");
            String belegNrString = bpn.itemAsString(vorgbelegNr);
            if (!bpn.itemAsString(bpn.getItem(archvorgfields, "Sel49")).equals("")) {
                fillArchPos(archvorgpos, archvorgfields, belegNrString);
            }
            vorglastItem = bpn.itemAsString(vorgvorgID);
View Full Code Here

Examples of jp.ne.so_net.ga2.no_ji.jcom.IDispatch

     * @param archvorgpos DataSet
     * @param vorgang DataSet
     * @param belegnummer Belegnummer
     */
    private void fillArchPos(IDispatch archvorgpos, IDispatch vorgang, String belegnummer) {
        IDispatch archvorgangposfields = bpn.getFields(archvorgpos);

        bpn.sort(archvorgpos, "Nr");
        bpn.setRange(archvorgpos, "BelegNr", belegnummer, belegNrPlusEins(belegnummer));
        bpn.first(archvorgpos);

        IDispatch posID = bpn.getItem(archvorgangposfields, "ID");
        String lastItem = "";
        String actualItem = bpn.itemAsString(posID);

        while (hasnext(lastItem, actualItem)) {
            addPosDataLine(archvorgangposfields, vorgang);
View Full Code Here

Examples of jp.ne.so_net.ga2.no_ji.jcom.IDispatch

    public BPN() {
        rm = new ReleaseManager();
        try {
            try {
                try {
                    app = new IDispatch(rm, "BpNT.Application");
                    appusable = true;
                } catch (JComException ex) {
                    ErrorHandling.showError("BPN nicht erreichbar.");
                    appusable = false;
                }
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.