Apache OpenOffice (AOO) Bugzilla – Issue 78307
Cannot close the Navigator.
Last modified: 2017-05-20 11:08:23 UTC
See attached Testscript.
Created attachment 45809 [details] Testtool-script.
first the *workaround* is ti use navigator instead of Navigatorin to close the navigator the problem is that closing an UI element of type Window never works. Therefore the testtool searches for a workwindow in the list of parents statemnt.cxx:4736 The navigator does not habe a WorkWindow and so the parent document is choosen. This has to get refined.
the navigator looks like this in wintree ID 10366 is the navigator ============================ *(Dialog(GH))*(Visible)*(Active)*(Closable)Text: Navigator UId : Active:0x7861288:: RTyp: FLOATINGWINDOW *(Dialog(GH))*(Visible)*(Closable Docking in Floatingstyle)*(Dockable)Text: Navigator UId : %ResId=20000%%Arg1=10366%:0x6072938:: RTyp: DOCKINGWINDOW *(Visible)Text: Navigator UId : NavigatorDraw:0xce44890::Opens the Navigator, where you can quickly jump to other slides or move between open files. RTyp: WINDOW ...
workarounf supplied so setting target to OOo2.4
Sorry, but I do not understand the workaround. Could you be more specific?
in the example at the top you use this code: Kontext "Navigator" if Navigator.exists then '///+ close navigator ! ///' Navigator.Close Warnlog "Navigator was open. Check earlier tests. Now closed." else printlog "Navigator: NOT available. Good." endif using Navigator later on you use this code Kontext "NavigatorDraw" '/// Check if the navigator exists, if so - close it ///' if NavigatorDraw.Exists=True Then Printlog " - Navigator exists, we close it" NavigatorDraw.Close '/// close navigator ///' sleep 2 end if If you use "Navigator" instead of "NavigatorDraw" it works. By the way you don't have to compare NavigatorDraw.Exists to True (see first codesnippet)
3.0
3.x
Reset assigne to the default "issues@openoffice.apache.org".