Issue 78307 - Cannot close the Navigator.
Summary: Cannot close the Navigator.
Status: ACCEPTED
Alias: None
Product: Impress
Classification: Application
Component: code (show other issues)
Version: recent-trunk
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-11 15:49 UTC by fredrik.haegg
Modified: 2017-05-20 11:08 UTC (History)
1 user (show)

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


Attachments
Testtool-script. (6.99 KB, application/octet-stream)
2007-06-11 15:52 UTC, fredrik.haegg
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fredrik.haegg 2007-06-11 15:49:02 UTC
See attached Testscript.
Comment 1 fredrik.haegg 2007-06-11 15:52:04 UTC
Created attachment 45809 [details]
Testtool-script.
Comment 2 gregor.hartmann 2007-06-29 09:56:51 UTC
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.
Comment 3 gregor.hartmann 2007-06-29 09:58:27 UTC
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
...
Comment 4 gregor.hartmann 2007-07-06 08:48:15 UTC
workarounf supplied so setting target to OOo2.4
Comment 5 fredrik.haegg 2007-07-06 12:55:50 UTC
Sorry, but I do not understand the workaround. Could you be more specific? 
Comment 6 gregor.hartmann 2007-07-06 13:16:35 UTC
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)

Comment 7 gregor.hartmann 2007-12-21 11:00:43 UTC
3.0
Comment 8 gregor.hartmann 2008-08-26 10:51:53 UTC
3.x
Comment 9 Marcus 2017-05-20 11:08:23 UTC
Reset assigne to the default "issues@openoffice.apache.org".