Package oxygenoffice.extensions.smart.diagram

Examples of oxygenoffice.extensions.smart.diagram.DataOfDiagram$Data


     *
     * @return Contentinfo with contentType Data.
     */
    private ContentInfo makeData(SafeContents safe) throws IOException,
      ASN1Exception {
  Data data = null;
  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  DEREncoder encoder = new DEREncoder(baos);
  safe.encode(encoder);
  data = new Data(baos.toByteArray());
  baos.close();
  ContentInfo cInfo = new ContentInfo(data);
  return cInfo;
    }
View Full Code Here


  // check version before any other operations
  Request request = new Request (display, major_opcode, 0, 3);
  request.write4 (CLIENT_MAJOR_VERSION);
  request.write4 (CLIENT_MINOR_VERSION);

  Data reply = display.read_reply (request);
  server_major_version = reply.read4 (8);
  server_minor_version = reply.read4 (12);
    }
View Full Code Here

     */
    public long getOverlayWindow (Window win) {
  Request request = new Request (display, major_opcode, 7, 2);
  request.write4 (win.id);

  Data reply = display.read_reply (request);
  if (reply == null) {
      return -1;
  }

  return reply.read4(8);
    }
View Full Code Here

    // check version before any other operations
    Request request = new Request (display, major_opcode, 0, 3);
    request.write4 (CLIENT_MAJOR_VERSION);
    request.write4 (CLIENT_MINOR_VERSION);
 
    Data reply = display.read_reply (request);
    server_major_version = reply.read2 (8);
    server_minor_version = reply.read2 (10);
  }
View Full Code Here

      Configuration configuration = project.getConfiguration();

      if (configuration != null)
      {
        Data data = configuration.getData();

        if (data != null)
        {
          ModuleDependencies moduleDependencies = data.getModuleDependencies();

          if (moduleDependencies != null)
          {
            dependencies = moduleDependencies.getDependency();
          }
View Full Code Here

                if(xText.getString().equals("") || xText.getString().trim().equals("")){
                    String title = getGui().getDialogPropertyValue("Strings2", "Strings2.CouldnotCreateDiagram.Title.Label");
                    String message = getGui().getDialogPropertyValue("Strings2", "Strings2.CouldnotCreateDiagram.Message.Label");
                    getGui().showMessageBox(title, message);
                }else{
                    DataOfDiagram datas = new DataOfDiagram();
                    XEnumeration xParagraphEnumeration = null;
                    XTextContent xTextElement = null;
                    XEnumerationAccess xEnumerationAccess = (XEnumerationAccess) UnoRuntime.queryInterface(XEnumerationAccess.class, xText);
                    xParagraphEnumeration = xEnumerationAccess.createEnumeration();
                    short m = 0;
                    while (xParagraphEnumeration.hasMoreElements()) {
                        Object o = xParagraphEnumeration.nextElement();
                        XServiceInfo xInfo = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, o);
                        if (xInfo.supportsService("com.sun.star.text.Paragraph")) {
                            xTextElement = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, o);
                            XTextRange xTextRange = xTextElement.getAnchor();
                            String[] str = xTextRange.getString().split("\n");
                            String elementContent = "";
                            if(str.length > m)
                                elementContent = str[m];
                            XPropertySet xSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xInfo);
                            short level = 0;
                            try{
                                level = AnyConverter.toShort(xSet.getPropertyValue("NumberingLevel"));
                            }catch(Exception ex){ }
                            datas.add(level, elementContent);
                            m++;
                        }
                    }

                    if(!datas.isEmpty()){
//                        datas.print();
                        short exec = executeGalleryDialog();
                        if(exec == 1){
                            Object oDocument = m_xFrame.getController().getModel();
                            XDrawPagesSupplier pagesSupplier = (XDrawPagesSupplier)UnoRuntime.queryInterface(XDrawPagesSupplier.class, oDocument);
View Full Code Here

TOP

Related Classes of oxygenoffice.extensions.smart.diagram.DataOfDiagram$Data

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.