Ghh. NOT "Option" (which is the same as ALT), but Command (i.e. Apple key).

So:
Quit = Cmd + Q
Close = Cmd + W
Minimize = Cmd + M
...

On 5/22/07, Mox Soini <[EMAIL PROTECTED]> wrote:
Hi,

I already tried experimenting with these things, however, due to my
very limited understanding of how menus get built in OOo I got very
little success.

(I could not e.g. figure out how to find the "Options" menu entry from
the existing OOo menus, so that I could attach it to the
"Preferences..." one.

Generic
-----------
Some commands that are likely to be needed (guesses, not working code):
EnableMenuCommand(NULL, kHICommandPreferences); // enable pref menu
MenuRef rApplicationMenu;
MenuItemIndex outIndex[1];
GetIndMenuItemWithCommandID(NULL, kHICommandPreferences, 1,
&rApplicationMenu, outIndex);
InsertMenuItemTextWithCFString(rApplicationMenu, CFSTR("About
OpenOffice.org"), (short) 0, 0, kHICommandAbout))

Closing and Quitting
---------------------------
Mac OS X has two (no more, no less) ways to close the currently viewed document.

1) Closing the document window
- The command is "Close" in "File" -menu
- Shortcut is Option + W
- when document window closes, only the Apple-provided top system menu
bar stays available (NOT the current OOo document background thing)
- maybe SALEVENT_CLOSE should be changed to follow correct behaviour on Mac OS X
- for this to work (with the menu) we may need to get the quickstart
working in OOo Mac OS X. Getting it running is easy, preventing it
from shutting down is more difficult.

2) Quitting the application
- The command is "Quit" in Application menu (Apple provided)
- Shortcut is Option + Q
- SALEVENT_SHUTDOWN seems to do the correct thing here.

Also
------
There should be "About OpenOffice.org" menu item in the Applications
menu too, which should use the current dialog from Help -> About
OpenOffice.org.

The "Window" -menu should contain:
- Minimize (Option + M)    <-- Apple-provided functionality
- Zoom                              <-- Apple-provided functionality???
- <list of document windows>

Following items should not exist in Aqua OOo:
File -> Exit
Tools -> Options
Window -> New Window
Window -> Close Window
Help -> About OpenOffice.org

....

Hopefully this information is useful. I will not have time to
participate in coding activities, as my time goes to 'Real Life' at
least for the near future.

      Mox


On 5/22/07, Pavel Janík <[EMAIL PROTECTED]> wrote:
> Hi,
>
> in native Mac OS X application the so called "Application menu" has
> two menu items - About and Preferences (see e.g. http://tinyurl.com/
> 286gao).
>
> Click on About menu item and/or Preferences... item is cought in VCL.
> We would like to be able to send events to handle these actions to
> the application. Ie. we want to have something like SALEVENT_SHUTDOWN
> for Quit menu item and handle it somewhere in framework.
>
> How to do that? Can you please help us to do so?
> --
> Pavel Janík
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Mox on G



--
Mox on G

Reply via email to