Apache OpenOffice (AOO) Bugzilla – Issue 49551
drafts.com.sun.star.frame.XLayoutManager.setVisible defects
Last modified: 2013-02-24 21:07:07 UTC
When using drafts.com.sun.star.frame.XLayoutManager.setVisible(false) to hide all bars, including menubar, statusbar, standardbar, etc, statusbar lingers and fragments when side-bar moved
The drafts module doesn't exist in the current version, have you tried if the behavious you describe persists there ? If so, could you provide sample code that shows the behaviour ?
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 .......
sw->cd: seems the statusbar is repainted at the position where the office remembers it to be ... the macro xFrame = ThisComponent.currentController.Frame xLayoutManager = xFrame.LayoutManager xLayoutManager.setVisible(false) attached to a document reproduces the behaviour
cd: Accepted. setVisible should correctly hide the status bar, so we have to fix this. I will choose a proper target when I have a fix for this.
HELLO my name is mecry! please how are you! hope you are fine and in perfect condition of health.I went through your email profile to day,) i read it and took interest in it,please if you don't mind i will like you to write me on this email(mecryfavour22@yahoo.com) i hope to hear from you soon,and I will be waiting for your mail, together