Package ag.ion.noa

Examples of ag.ion.noa.NOAException


            .getControl());
        return control;
      }
      return null;
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here


   */
  public void terminate() throws NOAException {
    try {
      xDesktop.terminate();
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

        if (printerProps[i].Name.equals("IsBusy"))
          busy = (Boolean) printerProps[i].Value;
      }
      return busy.booleanValue();
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

        if (printerProps[i].Name.equals("Name"))
          name = (String) printerProps[i].Value;
      }
      return new Printer(name);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

      XLayoutManager layoutManager = (XLayoutManager) UnoRuntime
          .queryInterface(XLayoutManager.class, object);
      if (layoutManager != null)
        return new LayoutManager(layoutManager);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
    return null;
  }
View Full Code Here

      printerDesc[0] = new PropertyValue();
      printerDesc[0].Name = "Name";
      printerDesc[0].Value = printer.getName();
      xPrintable.setPrinter(printerDesc);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

   * @author Andreas Br�ker
   * @date 14.06.2006
   */
  public IDispatch getDispatch(String commandURL) throws NOAException {
    if (commandURL == null)
      throw new NOAException("The command URL is not valid.");
    try {
      XDispatchProvider xDispatchProvider = (XDispatchProvider) UnoRuntime
          .queryInterface(XDispatchProvider.class, xFrame);
      URL[] urls = new URL[1];
      urls[0] = new URL();
      urls[0].Complete = commandURL;
      Object service = null;
      if (officeConnection != null)
        service = officeConnection
            .createService("com.sun.star.util.URLTransformer");
      else
        service = serviceProvider
            .createService("com.sun.star.util.URLTransformer");
      XURLTransformer xURLTranformer = (XURLTransformer) UnoRuntime
          .queryInterface(XURLTransformer.class, service);
      xURLTranformer.parseStrict(urls);
      XDispatch xDispatch = xDispatchProvider.queryDispatch(urls[0], "",
          FrameSearchFlag.GLOBAL);
      if (xDispatch == null)
        throw new NOAException("The command URL is not valid");
      return new Dispatch(xDispatch, urls[0]);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

   * @author Markus Kr�ger
   * @date 16.08.2007
   */
  public Printer(String name) throws NOAException {
    if (name == null)
      throw new NOAException("Invalid name for printer que.");
    this.name = name;
  }
View Full Code Here

      XDependentTextField xDependentTextField = (XDependentTextField) UnoRuntime
          .queryInterface(XDependentTextField.class, textField);
      xDependentTextField.attachTextFieldMaster(xPropertySet);
      return new TextField(textDocument, xDependentTextField);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

  public Object invoke(Object[] parameters, short[][] outParameterIndices, Object[][] outParameters) throws NOAException {
    try {
      return xScript.invoke(parameters, outParameterIndices, outParameters);
    }
    catch(Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

TOP

Related Classes of ag.ion.noa.NOAException

Copyright © 2018 www.massapicom. 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.