Package com.sun.star.document

Examples of com.sun.star.document.XFilter.filter()


        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


            loadProps[3].Name = "Quality";
            loadProps[3].Value = new Integer(100);
           
            XFilter xFilter = (XFilter) UnoRuntime.queryInterface(XFilter.class, GraphicExportFilter);

            xFilter.filter(loadProps);
            System.out.println(xPageName.getName()+".png");

            //System.out.println("Page saved to url "+loadProps[1].Value);
           
          }
View Full Code Here

        loadProps[3].Name = "Quality";
        loadProps[3].Value = new Integer(100);
       
        XFilter xFilter = (XFilter) UnoRuntime.queryInterface(XFilter.class, GraphicExportFilter);

        xFilter.filter(loadProps);
        if(slidenameDisplayed=="")
          slidenameDisplayed = xPageName.getName();
        System.out.println(slidenameDisplayed+"||"+xPageName.getName()+".png"+"||"+slidebody);
       
      }
View Full Code Here

          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

        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

                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

                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

        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

          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

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

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

    return destionation;
  }

  private PropertyValue[] getFilterOptions() {
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.