Package ag.ion.bion.officelayer.document

Examples of ag.ion.bion.officelayer.document.IDocument


            props); //$NON-NLS-1$ //$NON-NLS-2$
      }
      else {
        xComponent = xComponentLoader.loadComponentFromURL(factoryURL, "_blank", 0, props); //$NON-NLS-1$
      }
      IDocument document = DocumentLoader.getDocument(xComponent, serviceProvider, props);
      if (document == null)
        throw new DocumentException("The new document can not be constructed."); //$NON-NLS-1$
      return document;
    }
    catch (Throwable throwable) {
View Full Code Here


   * @author Andreas Br�ker
   */
  public IDocument loadDocument(String url) throws DocumentException {
    try {
      url = URLAdapter.adaptURL(url);
      IDocument document = DocumentLoader.loadDocument(serviceProvider, url);
      if (document != null)
        return document;
      else
        throw new DocumentException(Messages.getString("DocumentService_exception_url_invalid")); //$NON-NLS-1$
    }
View Full Code Here

  public IDocument loadDocument(String url, IDocumentDescriptor documentDescriptor)
      throws NOAException {
    try {
      PropertyValue[] propertyValues = DocumentDescriptorTransformer.documentDescriptor2PropertyValues(documentDescriptor);
      url = URLAdapter.adaptURL(url);
      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$
    }
View Full Code Here

      throw new DocumentException(throwable);
    }

    if (officeProgressMonitor != null)
      officeProgressMonitor.beginSubTask(Messages.getString("DocumentService_monitor_investigating")); //$NON-NLS-1$
    IDocument document = DocumentLoader.getDocument(xComponent, serviceProvider, properties);
    if (document != null) {
      if (officeProgressMonitor != null) {
        officeProgressMonitor.beginSubTask(Messages.getString("DocumentService_monitor_loading_completed")); //$NON-NLS-1$
        officeProgressMonitor.done();
      }
View Full Code Here

    if (url == null)
      throw new DocumentException("The submitted url is not valid."); //$NON-NLS-1$

    try {
      url = URLAdapter.adaptURL(url);
      IDocument document = DocumentLoader.loadDocument(serviceProvider,
          frame.getXFrame(),
          url,
          FrameSearchFlag.ALL,
          DocumentDescriptorTransformer.documentDescriptor2PropertyValues(documentDescriptor));
      if (document != null)
View Full Code Here

   */
  public IDocument getDocument() {
    if(documentType == null)
      return internalThread.getDocument();
    else {
      IDocument document = internalThread.getDocument();
      if(document != null) {
        if(document.getDocumentType().equals(documentType))
          return document;       
      }
      return null;
    }
  } 
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.document.IDocument

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.