To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=103777
                 Issue #|103777
                 Summary|writer window is brought to foreground (without focus)
                        | when view cursor jumps to list item
               Component|Word processor
                 Version|OOo 3.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|ui
             Assigned to|writerneedsconfirm
             Reported by|shenmux09





------- Additional comments from shenmu...@openoffice.org Fri Jul 24 13:30:44 
+0000 2009 -------
When setting the view cursor of a document (e.g. with a macro or an extension
using the UNO API) from a place outside of a list to a place inside of a list,
the writer window of the document is inadvertently brought to the foreground.
The window does not take the focus and the "Bullets and Numbering" palette
(which is probably the cause of this problem) is not shown.
This only happens the first time you do this after opening a document and if the
"Bullets and Numbering" palette hasn't been shown before for this document. Also
for this to happen the "Bullets and Numbering" palette has to be floating free
and mustn't be docked to the menu.

To reproduce the issue open the attached document popsToForeground.odt. Select
Tools->Macros->Organize Macros->OpenOffice.org Basic and edit the macro Main in
popsToForeground.odt->Standard->Module1. The macro contains the following code:

Sub Main
  bookmark = ThisComponent.getBookmarks().getByName("test")
  xTextViewCursor = ThisComponent.getCurrentController().getViewCursor()
  xTextViewCursor.gotoRange(bookmark.getAnchor(), false)
End Sub

>From the macro editor run the macro (click on the green "play" button) and the
writer window is brought to the foreground while the focus still lies on the
macro editor. As said above this only happens the first time you execute this 
macro.

It may not be obvious from this test case but this problem is really annoying
when you have an application that manipulates the view cursor using the UNO API
and suddenly the writer window is brought to the foreground although you want
your own application's window to stay there.

---------------------------------------------------------------------
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: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to