Examples of XDialog


Examples of com.sun.star.awt.XDialog

            SetThrobberVisible( true );
            SetThrobberActive( true );

            if ( Helper.AllowThreadUsage( m_xContext ) )
            {
                final XDialog xDialogForThread = xDialog;
                final XComponentContext xContext = m_xContext;
                final WikiEditSettingDialog aThis = this;
               
                // the thread name is used to allow the error dialogs
                m_bThreadFinished = false;
View Full Code Here

Examples of com.sun.star.awt.XDialog

        return xPS;
    }

    public static XDialog CreateSimpleDialog( XComponentContext xContext, String sURL, int nTitleID, String[] pControls, int[] pStringIDs )
    {
        XDialog xResult = null;

        if ( xContext != null && sURL != null && sURL.length() > 0 )
        {
            try
            {
View Full Code Here

Examples of com.sun.star.awt.XDialog

            UnoRuntime.queryInterface(XTreeControl.class, xDialogContainer.getControl( sTreeControlName ));
           
            xTreeControl.expandNode(xNode);
            oObj = xTreeControl;

          XDialog xDialog = (XDialog) UnoRuntime.queryInterface(XDialog.class, xDialogControl);
           
            execurteDialog aDialog = new execurteDialog(xDialog);
           
            aDialog.start();
           
View Full Code Here

Examples of com.sun.star.awt.XDialog

        }

        XDialogProvider2 xDialogProvider = (XDialogProvider2)
          UnoRuntime.queryInterface( XDialogProvider2.class, obj );
           
        XDialog xDialog = xDialogProvider.createDialogWithHandler( DialogURL, this );
        if( xDialog != null )
          xDialog.execute();
      }
      catch (Exception e) {
        e.printStackTrace();
      }
      return "Created dialog \"" + DialogURL + "\"";
View Full Code Here

Examples of com.sun.star.awt.XDialog

            XWindow.class, xControl );
        xWindow.setVisible( false );     
        xControl.createPeer( xToolkit, null );
     
        // return the dialog
        XDialog xDialog = ( XDialog )UnoRuntime.queryInterface(
            XDialog.class, dialog );
        return xDialog;
    }
View Full Code Here

Examples of com.sun.star.awt.XDialog

            log.println("wating for recovery dialog...");
           
            int counter = 0;
            int maximum = param.getInt(PropertyName.THREAD_TIME_OUT) / param.getInt(PropertyName.SHORT_WAIT);
           
            XDialog oDialog = rt.getActiveDialog(xMSF);
           
            while ( oDialog == null && (counter < maximum))
            {
                rt.pause();
                oDialog = rt.getActiveDialog(xMSF);               
View Full Code Here

Examples of com.sun.star.awt.XDialog

     private void handleCrashReporterDialog(boolean cancel, boolean YesNo){
        try{
           
            log.println("try to get Crash Reporter Dialog...");
           
            XDialog oDialog = rt.getActiveDialog(xMSF);
            assure("could not get CrashReporter Dialog", oDialog != null);
           
            XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, oDialog);
           
            log.println(oDialog.getTitle());

            UITools oUITools = new UITools(xMSF, xWindow);

            if (cancel) {
                log.println("clicking 'Cancel' button...");
View Full Code Here

Examples of com.sun.star.awt.XDialog

    private void handleRecoveryDialogAtRestart(int expectedDocumentCount, boolean recover, boolean cancel){
        try{
           
            log.println("try to get Recovery Dialog...");

            XDialog oDialog = null;
            oDialog = rt.getActiveDialogAfterStartup(xMSF);
           
            assure("could not get Recovery Dialog at start of office", (oDialog != null), CONTINUE);
           
            XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, oDialog);
            log.println("got the following dialog: '" +oDialog.getTitle() + "'");

            UITools oUITools = new UITools(xMSF, xWindow);

            String listBoxName = "Status of recovered documents";
            String[] documents = oUITools.getListBoxItems(listBoxName);
View Full Code Here

Examples of com.sun.star.awt.XDialog

        int multi = 5;
        int pause = param.getInt(PropertyName.SHORT_WAIT)*10;
        int timeOut = param.getInt(PropertyName.THREAD_TIME_OUT)*5;
        int maximum = (timeOut / pause) * multi;
       
        XDialog oDialog = getActiveDialog(xMSF);
       
        while (oDialog == null && (counter < maximum)){
            log.println("waiting until the office has recoverd... remaining " + (timeOut * multi - pause * counter)/1000 + " seconds");
            pause(pause);
            oDialog = getActiveDialog(xMSF);
View Full Code Here

Examples of com.sun.star.awt.XDialog

            UnoRuntime.queryInterface(XTreeControl.class, xDialogContainer.getControl( sTreeControlName ));
           
            xTreeControl.expandNode(xNode);
            oObj = xTreeControl;

          XDialog xDialog = (XDialog) UnoRuntime.queryInterface(XDialog.class, xDialogControl);
           
            execurteDialog aDialog = new execurteDialog(xDialog);
           
            aDialog.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.