Package com.sun.star.wizards.common

Examples of com.sun.star.wizards.common.FileAccess


        templates = new Hashtable(3);
       
        TransformerFactory tf = TransformerFactory.newInstance();
           
        String workPath = getSettings().workPath;
        FileAccess fa = new FileAccess(xmsf);
        String stylesheetPath = fa.getURL(getSettings().workPath,"layouts/"+ cp_FSName);
           
        String[] files  = fa.listFiles(stylesheetPath,false);
       
        for (int i = 0; i<files.length; i++)
            if (FileAccess.getExtension(files[i]).equals("xsl"))
                templates.put(FileAccess.getFilename(files[i]), tf.newTemplates( new StreamSource(files[i]) ));
       
View Full Code Here


        sd.addFilter(resources.resImages,"*.jpg;*.jpeg;*.jpe;*.gif",true);
        sd.addFilter(resources.resAllFiles,"*.*",false);
       
        settings = (CGSettings)set_.root;
       
        fileAccess = new FileAccess(xmsf);
        il.setListModel(new Model(set_));
        il.setImageSize( new Size(40,40));
        il.setRenderer(new BGRenderer(0));
        build();
       
View Full Code Here

   
   
    protected FileAccess getFileAccess() {
        if (fileAccess == null)
          try {
            fileAccess = new FileAccess(xMSF);
          }
          catch (Exception ex) {
            ex.printStackTrace();
          }
         
View Full Code Here

     * destination names of the background and css files.
     * @param wwRoot is the root directory of the web wizard files (
     * usually [oo]/share/template/[lang]/wizard/web
     */
    public StylePreview(XMultiServiceFactory xmsf, String wwRoot_) throws Exception {
        fileAccess = new FileAccess(xmsf);
       
        tempDir = createTempDir(xmsf);
       
        htmlFilename = FileAccess.connectURLs(tempDir , "wwpreview.html");
        cssFilename = FileAccess.connectURLs(tempDir ,"style.css");
View Full Code Here

        throws Exception
    {
        xFrame = _xFrame;
        xmsf = xmsf_;
        resources = res;
        fileAccess = new FileAccess(xmsf);
        tempDir = tempDir_;
        loadArgs = loadArgs( FileAccess.connectURLs(tempDir,"/index.html") );
        openHyperlink = Desktop.getDispatchURL(xmsf, ".uno:OpenHyperlink");
        xDispatch = Desktop.getDispatcher(xmsf, xFrame, "_top", openHyperlink);
        ucb = new UCB(xmsf);
View Full Code Here

        )
    throws Exception
    {
        this.xmsf = xmsf;
        this.settings = settings;
        fileAccess = new FileAccess(xmsf);
        errorHandler = er;
       
        ucb = new UCB(xmsf);
       
        int taskSteps = getTaskSteps();
View Full Code Here

     * @return the FileAccess memeber object.
     */
    private FileAccess getFileAccess() {
        if (fileAccess1 == null)
            try {
                fileAccess1 = new FileAccess(xMSF);
            } catch (Exception e) {
                e.printStackTrace();
            }
        return fileAccess1;
   
View Full Code Here

    public void finishWizard() {
        boolean bSaveSuccess = false; // pesimistic :(
        XTextDocument xTextDocument;

        try {
            FileAccess fileAccess = new FileAccess(xMSF);
            sPath = myPathSelection.getSelectedPath();
            if (sPath.equals("")) {
                myPathSelection.triggerPathPicker();
                sPath = myPathSelection.getSelectedPath();
            }
            sPath = fileAccess.getURL(sPath);
   
            //first, if the filename was not changed, thus
            //it is coming from a saved session, check if the
            // file exists and warn the user.
            if (!filenameChanged)
                if (fileAccess.exists(sPath, true)) {
   
                    int answer = SystemDialog.showMessageBox(xMSF, xControl.getPeer(), "MessBox", VclWindowPeerAttribute.YES_NO + VclWindowPeerAttribute.DEF_NO, resources.resFileExists);
                    if (answer == 3) // user said: no, do not overwrite....
                        return;
                }
View Full Code Here

        sd.addFilter(resources.resImages, "*.jpg;*.jpeg;*.jpe;*.gif", true);
        sd.addFilter(resources.resAllFiles, "*.*", false);

        settings = (CGSettings) set_.root;

        fileAccess = new FileAccess(xmsf);
        il.setListModel(new Model(set_));
        il.setImageSize(new Size(40, 40));
        il.setRenderer(new BGRenderer(0));
        build();

View Full Code Here

            throws Exception
    {
        xFrame = _xFrame;
        xmsf = xmsf_;
        resources = res;
        fileAccess = new FileAccess(xmsf);
        tempDir = tempDir_;
        loadArgs = loadArgs(FileAccess.connectURLs(tempDir, "/index.html"));
        openHyperlink = Desktop.getDispatchURL(xmsf, ".uno:OpenHyperlink");
        xDispatch = Desktop.getDispatcher(xmsf, xFrame, "_top", openHyperlink);
        ucb = new UCB(xmsf);
View Full Code Here

TOP

Related Classes of com.sun.star.wizards.common.FileAccess

Copyright © 2015 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.