Package ag.ion.bion.officelayer.draw

Examples of ag.ion.bion.officelayer.draw.IDrawingDocument


    IShapeProvider shapeProvider = ooRepresentation.getShapeProvider();

    IOfficeApplication officeApplication = EditorCorePlugin.getDefault()
        .getManagedLocalOfficeApplication();

    IDrawingDocument document;

    try {
      document = (IDrawingDocument) officeApplication
          .getDocumentService().constructNewDocument(IDocument.DRAW,
              DocumentDescriptor.DEFAULT_HIDDEN);
    } catch (NOAException e) {
      return null;
    } catch (OfficeApplicationException e) {
      return null;
    }

    IShapeFactory shapeFactory = document.getDrawPage(0).getShapeFactory();
    IShape shape = shapeProvider.provide(shapeFactory);

    File image;
    try {
      image = export(shape, document);
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.draw.IDrawingDocument

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.