Package ag.ion.noa

Examples of ag.ion.noa.NOAException


   */
  public void gotoPreviousParagraph(boolean mark) throws NOAException {
    if (supportsParagraphCursor())
      xParagraphCursor.gotoPreviousParagraph(mark);
    else
      throw new NOAException("Paragraph cursor operations not supported");
  }
View Full Code Here


   */
  public void gotoEndOfParagraph(boolean mark) throws NOAException {
    if (supportsParagraphCursor())
      xParagraphCursor.gotoEndOfParagraph(mark);
    else
      throw new NOAException("Paragraph cursor operations not supported");
  }
View Full Code Here

   */
  public void gotoStartOfParagraph(boolean mark) throws NOAException {
    if (supportsParagraphCursor())
      xParagraphCursor.gotoStartOfParagraph(mark);
    else
      throw new NOAException("Paragraph cursor operations not supported");
  }
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

   * @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

      if (document == null)
        throw new DocumentException(
            "The new document can not be constructed."); //$NON-NLS-1$
      return document;
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

      IDocument document = DocumentLoader.loadDocument(serviceProvider,
          url, propertyValues);
      if (document != null)
        return document;
      else
        throw new NOAException(Messages
            .getString("DocumentService_exception_url_invalid")); //$NON-NLS-1$
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

        VariableTextFieldHelper.applyNumberFormat(numberFormat,
            variableTextField, isFormula, numberFormatService);

      return variableTextField;
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

  public static void checkMaxOpenDocuments(IServiceProvider serviceProvider)
      throws NOAException {
    try {
      if (serviceProvider != null
          && getCurrentDocumentCount(serviceProvider) >= IDocumentService.MAX_OPENED_DOCS)
        throw new NOAException(
            "The maximum number of opend documents was reached (Maximum number is " + IDocumentService.MAX_OPENED_DOCS //$NON-NLS-1$
                + ")."); //$NON-NLS-1$
    } catch (DocumentException documentException) {
      throw new NOAException(documentException);
    }
  }
View Full Code Here

          .queryInterface(XDocumentDataSource.class, dataSource);
      XOfficeDatabaseDocument officeDatabaseDocument = documentDataSource
          .getDatabaseDocument();
      return new DatabaseDocument(officeDatabaseDocument, null);
    } 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.