Package ag.ion.noa.service

Examples of ag.ion.noa.service.IServiceProvider


   */
  public double convertStringToNumber(int key, String text)
      throws UtilException {
    try {
      if (xNumberFormatter == null) {
        IServiceProvider serviceProvider = textDocument
            .getServiceProvider();
        if (serviceProvider == null)
          throw new UtilException(
              "No service provider available in document.");
        Object formatter = serviceProvider
            .createServiceWithContext("com.sun.star.util.NumberFormatter");
        xNumberFormatter = (XNumberFormatter) UnoRuntime
            .queryInterface(XNumberFormatter.class, formatter);
        xNumberFormatter
            .attachNumberFormatsSupplier(xNumberFormatsSupplier);
View Full Code Here


   */
  public String convertNumberToString(int key, double number)
      throws UtilException {
    try {
      if (xNumberFormatter == null) {
        IServiceProvider serviceProvider = textDocument
            .getServiceProvider();
        if (serviceProvider == null)
          throw new UtilException(
              "No service provider available in document.");
        Object formatter = serviceProvider
            .createServiceWithContext("com.sun.star.util.NumberFormatter");
        xNumberFormatter = (XNumberFormatter) UnoRuntime
            .queryInterface(XNumberFormatter.class, formatter);
        xNumberFormatter
            .attachNumberFormatsSupplier(xNumberFormatsSupplier);
View Full Code Here

   *
   * @author Markus Kr�ger
   * @date 18.11.2008
   */
  public IApplicationInfo getApplicationInfo() throws Exception {
    IServiceProvider serviceProvider = getServiceProvider();
    if (serviceProvider != null)
      return new ApplicationInfo(serviceProvider);
    return null;
  }
View Full Code Here

   * @date 25.07.2007
   */
  public double convertStringToNumber(int key, String text) throws UtilException {
    try {
      if(xNumberFormatter == null) {
        IServiceProvider serviceProvider = textDocument.getServiceProvider();
        if(serviceProvider == null)
          throw new UtilException("No service provider available in document.");
        Object formatter = serviceProvider.createServiceWithContext("com.sun.star.util.NumberFormatter");
        xNumberFormatter = (XNumberFormatter)UnoRuntime.queryInterface(XNumberFormatter.class, formatter);
        xNumberFormatter.attachNumberFormatsSupplier(xNumberFormatsSupplier);    
      }
      return xNumberFormatter.convertStringToNumber(key,text);
    }
View Full Code Here

   * @date 25.07.2007
   */
  public String convertNumberToString(int key, double number) throws UtilException {
    try {
      if(xNumberFormatter == null) {
        IServiceProvider serviceProvider = textDocument.getServiceProvider();
        if(serviceProvider == null)
          throw new UtilException("No service provider available in document.");
        Object formatter = serviceProvider.createServiceWithContext("com.sun.star.util.NumberFormatter");
        xNumberFormatter = (XNumberFormatter)UnoRuntime.queryInterface(XNumberFormatter.class, formatter);
        xNumberFormatter.attachNumberFormatsSupplier(xNumberFormatsSupplier);    
      }
      return xNumberFormatter.convertNumberToString(key,number);
    }
View Full Code Here

   *
   * @author Markus Kr�ger
   * @date 18.11.2008
   */
  public IApplicationInfo getApplicationInfo() throws Exception {
    IServiceProvider serviceProvider = getServiceProvider();
    if (serviceProvider != null)
      return new ApplicationInfo(serviceProvider);
    return null;
  }
View Full Code Here

TOP

Related Classes of ag.ion.noa.service.IServiceProvider

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.