You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/05/16 14:39:28 UTC

[Bug 119365] New: .uno:Quit strangely shows the file-open dialog.

https://issues.apache.org/ooo/show_bug.cgi?id=119365

          Priority: P3
            Bug ID: 119365
                CC: ooo-issues@incubator.apache.org
          Assignee: needsconfirm@dba.openoffice.org
           Summary: .uno:Quit strangely shows the file-open dialog.
          Severity: normal
        Issue Type: DEFECT
    Classification: Application
                OS: Windows 7
          Reporter: s.kean@yahoo.com.au
          Hardware: PC
            Status: UNCONFIRMED
           Version: OOo 3.4 Beta
         Component: none
           Product: database access

.uno:Quit strangely shows the file-open dialog.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 119365] .uno:Quit strangely shows the file-open dialog.

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119365

--- Comment #4 from Ariel Constenla-Haile <ar...@apache.org> ---
Created attachment 77559
  --> https://issues.apache.org/ooo/attachment.cgi?id=77559&action=edit
Form with a Macro assigned to "Close" button

In the control properties:

- Tab "General", set "Action" to "None"
- Tab "Events" - "Execute action" asign the following macro, previously saved
inside the document:

REM  *****  BASIC  *****

Private Const CLOSE_CMD = ".uno:CloseDoc"
Private Const QUIT_CMD = ".uno:Quit"

Sub ExecDispatch(oEvent as Object)
On Error Resume Next
Dim oDispatchProvider as Object
oDispatchProvider = ThisComponent.getCurrentController().getFrame()

Dim oDispatchHelper as Object
'http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/DispatchHelper.html
'http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/XDispatchHelper.html
oDispatchHelper = CreateUnoService("com.sun.star.frame.DispatchHelper")

oDispatchHelper.executeDispatch(oDispatchProvider,_
CLOSE_CMD,_
"_self",_
com.sun.star.frame.FrameSearchFlag.ALL,_
Array())
End Sub

Replace CLOSE_CMD with QUIT_CMD if you really want to QUIT the application
instead of CLOSING the current document.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 119365] .uno:Quit strangely shows the file-open dialog.

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119365

Andre <af...@a-w-f.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |af@a-w-f.de

--- Comment #1 from Andre <af...@a-w-f.de> ---
Can you supply a document that triggers this error?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 119365] .uno:Quit strangely shows the file-open dialog.

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119365

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Ariel Constenla-Haile <ar...@apache.org> ---
No bug. Resolving as invalid.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 119365] .uno:Quit strangely shows the file-open dialog.

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119365

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #6 from Ariel Constenla-Haile <ar...@apache.org> ---
Closing

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 119365] .uno:Quit strangely shows the file-open dialog.

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119365

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arielch@apache.org

--- Comment #3 from Ariel Constenla-Haile <ar...@apache.org> ---
(In reply to comment #2)
> form with menu buttons where close button doesn't exit / quit Open office

In "Action" you have selected "Open document/web page", in "URL" you should
provide the document or web page URL. It seems this action was not designed to
dispatch a UNO command. The button should the open dialog because the URL is
not valid. If you want to dispatch a UNO command, you should use an OOo Basic
macro.

I can reproduce this behavior with 
OOo 3.2.1 OOO320m18 Build:9502
OOo 3.3.0 OOO330m20 Build:9567

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 119365] .uno:Quit strangely shows the file-open dialog.

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=119365

--- Comment #2 from s.kean@yahoo.com.au ---
Created attachment 77558
  --> https://issues.apache.org/ooo/attachment.cgi?id=77558&action=edit
form with menu buttons where close button doesnt exit

form with menu buttons where close button doesn't exit / quit Open office

-- 
You are receiving this mail because:
You are on the CC list for the bug.