Examples of OfficeDocument


Examples of org.openoffice.idesupport.OfficeDocument

    public OfficeDocumentSupport(OfficeDocumentDataObject dataObj) {
        this.dataObj = dataObj;
        FileObject fo = dataObj.getPrimaryFile();
        try {
            this.document = new OfficeDocument(FileUtil.toFile(fo));
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        fo.addFileChangeListener(this);
View Full Code Here

Examples of org.openoffice.idesupport.OfficeDocument

    public OfficeDocumentSupport(OfficeDocumentDataObject dataObj) {
        this.dataObj = dataObj;
        FileObject fo = dataObj.getPrimaryFile();
        try {
            this.document = new OfficeDocument(FileUtil.toFile(fo));
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        fo.addFileChangeListener(this);
View Full Code Here

Examples of org.openoffice.test.tools.OfficeDocument

        // insert the chart
        textRange.getText().insertTextContent(textRange, chartTextContent, false);

        // retrieve the chart model
        XChartDocument chartDoc = UnoRuntime.queryInterface( XChartDocument.class, shapeProps.getPropertyValue( "Model" ) );
        m_chartDocument = new OfficeDocument( i_orb, chartDoc );

        // actually activate the object
        final XEmbeddedObject embeddedChart = UnoRuntime.queryInterface( XEmbeddedObject.class,
            shapeProps.getPropertyValue( "EmbeddedObject" ) );
        embeddedChart.doVerb( EmbedVerbs.MS_OLEVERB_SHOW );
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.OfficeDocument

           //System.out.println("\nConverting");
           ConvertData dataIn = cv.convert();
           //System.out.println("\nFinished Converting");
           Enumeration docEnum = dataIn.getDocumentEnumeration();
           while (docEnum.hasMoreElements()) {
         OfficeDocument docIn      = (OfficeDocument)docEnum.nextElement();      
       
         docIn.write(newxos,false);
           }
           //newxos.write(-1); //EOF character
                   //newxos.flush();
           newxos.close();
       }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.OfficeDocument

           //System.out.println("\nConverting");
           ConvertData dataIn = cv.convert();
           //System.out.println("\nFinished Converting");
           Enumeration docEnum = dataIn.getDocumentEnumeration();
           while (docEnum.hasMoreElements()) {
         OfficeDocument docIn      = (OfficeDocument)docEnum.nextElement();      
       
         docIn.write(newxos,false);
           }
           //newxos.write(-1); //EOF character
                   //newxos.flush();
           newxos.close();
       }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.OfficeDocument

           //System.out.println("\nConverting");
           ConvertData dataIn = cv.convert();
           //System.out.println("\nFinished Converting");
           Enumeration docEnum = dataIn.getDocumentEnumeration();
           while (docEnum.hasMoreElements()) {
         OfficeDocument docIn      = (OfficeDocument)docEnum.nextElement();      
       
         docIn.write(newxos,false);
           }
           //newxos.write(-1); //EOF character
                   //newxos.flush();
           newxos.close();
       }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.OfficeDocument

        ConvertData dataOut = null;

        // Create and use the converter
        // No longer uses the XMerge interface
        // Somewhat messy, should be changed if XMerge is discarded
        OfficeDocument oooDoc;
        if (bCalc) {
            oooDoc = new SxcDocument(sFileName);
        }
        else if (bImpress) {
            oooDoc = new SxiDocument(sFileName);
        }
        else {
            oooDoc = new SxwDocument(sFileName);
        }
        File f = new File(sFileName);
        // Make sure the input file actually exists before using it
        try {
            if (!f.exists()) {
                System.out.println("I'm sorry, I can't find "+sFileName);
                System.exit(0);
            }
            FileInputStream fis = new FileInputStream(f);
            oooDoc.read(fis,!bFlat);
        }
        catch (IOException e) {
               System.out.println("Oops, there was an error reading "+sFileName);
               e.printStackTrace();
        }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.OfficeDocument

           //System.out.println("\nConverting");
           ConvertData dataIn = cv.convert();
           //System.out.println("\nFinished Converting");
           Enumeration docEnum = dataIn.getDocumentEnumeration();
           while (docEnum.hasMoreElements()) {
         OfficeDocument docIn      = (OfficeDocument)docEnum.nextElement();      
       
         docIn.write(newxos,false);
           }
           //newxos.write(-1); //EOF character
                   //newxos.flush();
           newxos.close();
       }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.OfficeDocument

           //System.out.println("\nConverting");
           ConvertData dataIn = cv.convert();
           //System.out.println("\nFinished Converting");
           Enumeration docEnum = dataIn.getDocumentEnumeration();
           while (docEnum.hasMoreElements()) {
         OfficeDocument docIn      = (OfficeDocument)docEnum.nextElement();      
       
         docIn.write(newxos,false);
           }
           //newxos.write(-1); //EOF character
                   //newxos.flush();
           newxos.close();
       }
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.OfficeDocument

           //System.out.println("\nConverting");
           ConvertData dataIn = cv.convert();
           //System.out.println("\nFinished Converting");
           Enumeration docEnum = dataIn.getDocumentEnumeration();
           while (docEnum.hasMoreElements()) {
         OfficeDocument docIn      = (OfficeDocument)docEnum.nextElement();      
       
         docIn.write(newxos,false);
           }
           //newxos.write(-1); //EOF character
                   //newxos.flush();
           newxos.close();
       }
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.