Examples of IDrawingDocument


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