To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=91803
                 Issue #|91803
                 Summary|Unresponsive menu when opening Ooo with Java.
               Component|api
                 Version|OOo 2.4.1 RC2
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P2
            Subcomponent|code
             Assigned to|jsc
             Reported by|lapsus63





------- Additional comments from [EMAIL PROTECTED] Fri Jul 18 10:30:58 +0000 
2008 -------
A lot of menu items from the File popup menu are not responsive when we open
Open Office from a Java application. Nevertheless, the icons from the menubar
are responsive.

Here is the way to reproduce the bug (tested with 2.4 and previous) :

0 - java -version :
java version "1.6.0_10-ea"
Java(TM) SE Runtime Environment (build 1.6.0_10-ea-b09)
Java HotSpot(TM) Client VM (build 11.0-b09, mixed mode, sharing)
(tested with previous 'stable' versions)


1 - Launch Open Office from J2SE application using the following :
C:\Program Files\OpenOffice.org 2.4\program\soffice.exe
"-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" 
-headless 


2 - Connect to OOo :
while ( test && i<4 && i!=0 ){
        try {Thread.sleep(5000);} catch (InterruptedException e1) 
{e1.printStackTrace();}
        try {
                xLocalContext = Bootstrap.createInitialComponentContext(null);
                XMultiComponentFactory xLocalServiceManager = 
xLocalContext.getServiceManager();
                Object urlResolver  =
xLocalServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver",
xLocalContext );
                XUnoUrlResolver xUnoUrlResolver = (XUnoUrlResolver)
UnoRuntime.queryInterface(XUnoUrlResolver.class, urlResolver);
                Object initialObject = xUnoUrlResolver.resolve(unoUrl);
                XPropertySet xPropertySet =
(XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, initialObject);
                Object context = 
xPropertySet.getPropertyValue("DefaultContext");            
                xRemoteContext =
(XComponentContext)UnoRuntime.queryInterface(XComponentContext.class, context);
                test=false;
        } catch (java.lang.Exception e) {
                logger.error(e);
                i++;
        }
}


3 - Open a file :
//Launch Ooo :
String sofficeExec = RegQuery.getOOoPath();
java.lang.Runtime rt = java.lang.Runtime.getRuntime(); 
try { 
        rt.exec(sofficeExec + "
\"-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager\"
-headless "); 
}
catch (java.io.IOException e){ logger.error(e); }

// Open document
try {
        XDesktop xDesktop = null;
        xDesktop = getXDesktop();
        XComponentLoader xComponentLoader =
(XComponentLoader)UnoRuntime.queryInterface(XComponentLoader.class, xDesktop);
        // Selects if open in background or not
        PropertyValue[] prop = new PropertyValue[1];
        prop[0] = new PropertyValue();
        if (isModeInvisible()){
                prop[0].Name = "Hidden";
                prop[0].Value = Boolean.TRUE;
        }
        // check http://www.oooforum.org/forum/viewtopic.phtml?t=33703
        xComponent = xComponentLoader.loadComponentFromURL("file:///" +
getTempFile(file).getPath(),  "_blank", 0, prop);
        xTextDoc = (XTextDocument)UnoRuntime.queryInterface(XTextDocument.class,
xComponent);
} catch (Exception e) { logger.error(e); }

4 - The following items are unresponsive :
<File>
        - print properties
        - print ...
        - page preview
        - Templates.* (all in sub-menu)
        - Digital signatures
        - Properties
        - Send
                - email by PDF
                - create MAster Docment
                - create HTML Document
        - export PDF
        - export ...
        - versions...
        - reload
        - save AS
        - wizards.* (all in sub-menu) (shows a window and close it very quickly)
        - open
        - new > Template (2nd attempt and next : closed the main ooo window, 
process
terminated)

4 - The following items are responsive :

<File>
        - preview in web browser
        - Send
                - by Email
                - email open document
                - email word document
        - save all
        - save
        - new > (all except template and documents)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to