To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=49551





------- Additional comments from [EMAIL PROTECTED] Mon May 23 19:27:00 -0700 
2005 -------
Here's the corresponding piece of code:
     ..........
        try {
            
            oInterface = (XInterface) oMSF.createInstance
( "com.sun.star.frame.Desktop" );
            oDesktop = ( XDesktop ) UnoRuntime.queryInterface( XDesktop.class, 
oInterface );
            oCLoader = ( XComponentLoader ) UnoRuntime.queryInterface( 
XComponentLoader.class, oDesktop );
            PropertyValue [] szEmptyArgs = new PropertyValue [0];
            String doc = "private:factory/swriter";
            aDoc = oCLoader.loadComponentFromURL(doc, "_blank", 0, 
szEmptyArgs );
            oDoc = (XTextDocument) UnoRuntime.queryInterface
(XTextDocument.class, aDoc);
            
            XFrame xFrame=(XFrame)oDesktop.getCurrentFrame();
      try {
        com.sun.star.beans.XPropertySet xPropSet =
(com.sun.star.beans.XPropertySet) UnoRuntime.queryInterface
(com.sun.star.beans.XPropertySet.class, xFrame );
                
                Object aLayoutManager =xPropSet.getPropertyValue
( "LayoutManager" );
XLayoutManager xLayoutManager =(XLayoutManager) UnoRuntime.queryInterface
(drafts.com.sun.star.frame.XLayoutManager.class, aLayoutManager );
                xLayoutManager.setVisible( false );
        }
       catch (  com.sun.star.beans.UnknownPropertyException aExc )
        {
        }
        catch (  com.sun.star.lang.WrappedTargetException aExc )
        {
        }
            
        } // end of try
    
        catch(Exception e){
            
            System.out.println(" Exception " + e);
            
        } // end of catch
     .......

---------------------------------------------------------------------
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