Examples of XFilter


Examples of com.sun.star.document.XFilter

                XDrawPage xPage = PageHelper.getDrawPageByIndex( xComponent,
                                                                 nPageIndex );
                XComponent xComp = (XComponent)
                    UnoRuntime.queryInterface( XComponent.class, xPage );
                xExporter.setSourceDocument( xComp );
                XFilter xFilter = (XFilter)
                    UnoRuntime.queryInterface( XFilter.class, xExporter );
                xFilter.filter( aProps );
                System.out.println( "*** graphics on page \"" + nPageIndex
                                    + "\" from file \"" + args[0]
                                    + "\" exported under the name \""
                                    + args[1] + "\" in the local directory" );
      } else
View Full Code Here

Examples of com.sun.star.document.XFilter

        XExporter xExp = (XExporter) UnoRuntime.queryInterface
            (XExporter.class, oExp) ;
        xExp.setSourceDocument(xDoc) ;

        XFilter filter = (XFilter) UnoRuntime.queryInterface(XFilter.class, oExp) ;
        filter.filter(XMLTools.createMediaDescriptor(
            new String[] {"FilterName"},
            new Object[] {"Custom filter"})) ;
    }
View Full Code Here

Examples of com.sun.star.document.XFilter

        {
          XDrawPage xPage = PageHelper.getDrawPageByIndex( xComponent, nPageIndex );
          XComponent xComp = (XComponent)
            UnoRuntime.queryInterface( XComponent.class, xPage );
          xExporter.setSourceDocument( xComp );
          XFilter xFilter = (XFilter)
            UnoRuntime.queryInterface( XFilter.class, xExporter );
          xFilter.filter( aProps );
          System.out.println( "*** graphics on page \"" + nPageIndex + "\" from file \"" +
                                        args[0] + "\" exported under the name \""
                                        + args[1] + "\" in the local directory" );
        }
        else
View Full Code Here

Examples of com.sun.star.document.XFilter

    PropertyValue[] filterOptions = getFilterOptions();
    PropertyValue aProps[] = getProperties(destUrl.toString(),
        filterOptions);

    XFilter xFilter = (XFilter) UnoRuntime.queryInterface(XFilter.class,
        graphicExportFilter);
    xFilter.filter(aProps);

    return destionation;
  }
View Full Code Here

Examples of com.sun.star.document.XFilter

            aProps[0].Name = "MediaType";
            aProps[0].Value = "image/" + ext;
            aProps[1] = new PropertyValue();
            aProps[1].Name = "URL";
            aProps[1].Value = sURL;
            XFilter xFilter = (XFilter)UnoRuntime.queryInterface(XFilter.class, GraphicExportFilter);
            xFilter.filter(aProps);
        } catch (Exception ex) {
            System.err.println(ex.getLocalizedMessage());
        }
    }
View Full Code Here

Examples of com.sun.star.document.XFilter

                XDrawPage xPage = PageHelper.getDrawPageByIndex( xComponent,
                                                                 nPageIndex );
                XComponent xComp = (XComponent)
                    UnoRuntime.queryInterface( XComponent.class, xPage );
                xExporter.setSourceDocument( xComp );
                XFilter xFilter = (XFilter)
                    UnoRuntime.queryInterface( XFilter.class, xExporter );
                xFilter.filter( aProps );
                System.out.println( "*** graphics on page \"" + nPageIndex
                                    + "\" from file \"" + args[0]
                                    + "\" exported under the name \""
                                    + args[1] + "\" in the local directory" );
      } else
View Full Code Here

Examples of com.sun.star.document.XFilter

        XExporter xExp = (XExporter) UnoRuntime.queryInterface
            (XExporter.class, oExp) ;
        xExp.setSourceDocument(xDoc) ;

        XFilter filter = (XFilter) UnoRuntime.queryInterface(XFilter.class, oExp) ;
        filter.filter(XMLTools.createMediaDescriptor(
            new String[] {"FilterName"},
            new Object[] {"Custom filter"})) ;
    }
View Full Code Here

Examples of com.sun.star.document.XFilter

                XDrawPage xPage = PageHelper.getDrawPageByIndex( xComponent,
                                                                 nPageIndex );
                XComponent xComp = (XComponent)
                    UnoRuntime.queryInterface( XComponent.class, xPage );
                xExporter.setSourceDocument( xComp );
                XFilter xFilter = (XFilter)
                    UnoRuntime.queryInterface( XFilter.class, xExporter );
                xFilter.filter( aProps );
                System.out.println( "*** graphics on page \"" + nPageIndex
                                    + "\" from file \"" + args[0]
                                    + "\" exported under the name \""
                                    + args[1] + "\" in the local directory" );
      } else
View Full Code Here

Examples of com.sun.star.document.XFilter

        XExporter xExp = (XExporter) UnoRuntime.queryInterface
            (XExporter.class, oExp) ;
        xExp.setSourceDocument(xDoc) ;

        XFilter filter = (XFilter) UnoRuntime.queryInterface(XFilter.class, oExp) ;
        filter.filter(XMLTools.createMediaDescriptor(
            new String[] {"FilterName"},
            new Object[] {"Custom filter"})) ;
    }
View Full Code Here

Examples of com.sun.star.document.XFilter

     * @param parm1 An instance of XFilter
     * @see com.sun.star.document.XFilter
     * @throws Exception Is thrown, when initialize fails.
     */
    public void initialize(Object[] parm1) throws com.sun.star.uno.Exception {
        XFilter oFilter = (XFilter)UnoRuntime.queryInterface(
                                        XFilter.class, parm1[0]);
        PropertyValue[] FilterDesc = (PropertyValue[])UnoRuntime.queryInterface(PropertyValue[].class, parm1[1]);
        aState = "just initialized";
        FilterThread aThread = new FilterThread(oFilter, FilterDesc);
        aThread.start();
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.