Issue 49551 - drafts.com.sun.star.frame.XLayoutManager.setVisible defects
Summary: drafts.com.sun.star.frame.XLayoutManager.setVisible defects
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 02:22 UTC by liaoyu7879
Modified: 2013-02-24 21:07 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description liaoyu7879 2005-05-20 02:22:04 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
Comment 1 stephan.wunderlich 2005-05-23 09:08:25 UTC
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 ?
Comment 2 liaoyu7879 2005-05-24 03:27:00 UTC
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
     .......
Comment 3 stephan.wunderlich 2005-05-24 14:37:10 UTC
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
Comment 4 carsten.driesner 2005-05-24 14:56:14 UTC
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.
Comment 5 favour44sam 2011-05-28 10:15:53 UTC
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