|
List Info
Thread: Calling About and Tools - Options from VCL
|
|
| Calling About and Tools - Options from
VCL |

|
2007-05-22 12:55:50 |
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: mac-unsubscribe porting.openoffice.org
For additional commands, e-mail: mac-help porting.openoffice.org
|
|
| Re: Calling About and Tools - Options
from VCL |

|
2007-05-22 15:38:28 |
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 <Pavel janik.cz> 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: mac-unsubscribe porting.openoffice.org
> For additional commands, e-mail: mac-help porting.openoffice.org
>
>
--
Mox on G
|
|
| Re: Calling About and Tools - Options
from VCL |

|
2007-05-22 15:43:19 |
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 <mox iki.fi> 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 <Pavel janik.cz> 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: mac-unsubscribe porting.openoffice.org
> > For additional commands, e-mail: mac-help porting.openoffice.org
> >
> >
>
>
> --
> Mox on G
>
--
Mox on G
|
|
| Re: Calling About and Tools - Options
from VCL |

|
2007-05-22 17:17:12 |
On 22 May 2007, at 21:38, Mox Soini wrote:
> [..]
>
> Following items should not exist in Aqua OOo:
> [...]
> Window -> New Window
> Window -> Close Window
Then how do you propose to implement the functionality that
these two
menus implement then. I sometimes want to work on 2
different parts
of the same document, so have 2 windows open using these
commands.
This is very useful when I have 2 screens and want to have
the 2
parts of the document on separate screens.
Shaun
[..]
___________________________________________________________
All New Yahoo! Mail – Tired of Vi gr ! come-ons? Let our
SpamGuard protect you. http://uk.doc
s.yahoo.com/nowyoucan.html
------------------------------------------------------------
---------
To unsubscribe, e-mail: mac-unsubscribe porting.openoffice.org
For additional commands, e-mail: mac-help porting.openoffice.org
|
|
| Re: Calling About and Tools - Options
from VCL |

|
2007-05-23 00:56:01 |
Hi Shaun,
Hmm, never seen that kind of functionality before. I assumed
those two
commands work differently.
I guess in that case the functionality could stay, but the
terminology
should be improved. I am very sure there's many people who
will
mistake new window to mean something closer to "new
document", instead
of "duplicate document". On Mac OS X, the document
(view) and Window
are the same thing for the user.
So:
Window -> Duplicate Window
On the other hand, on Mac OS X the end result of "Close
Window" is the
same as "Close" for the end user, so those two
commands should be just
merged on Mac OS X:
File -> Close
Mox
On 5/23/07, Shaun McDonald <mcdonaldshaun yahoo.co.uk> wrote:
>
> On 22 May 2007, at 21:38, Mox Soini wrote:
> > [..]
> >
> > Following items should not exist in Aqua OOo:
> > [...]
> > Window -> New Window
> > Window -> Close Window
>
> Then how do you propose to implement the functionality
that these two
> menus implement then. I sometimes want to work on 2
different parts
> of the same document, so have 2 windows open using
these commands.
> This is very useful when I have 2 screens and want to
have the 2
> parts of the document on separate screens.
>
> Shaun
> [..]
>
>
>
>
>
___________________________________________________________
> All New Yahoo! Mail – Tired of Vi gr !
come-ons? Let our SpamGuard protect you. http://uk.doc
s.yahoo.com/nowyoucan.html
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: mac-unsubscribe porting.openoffice.org
> For additional commands, e-mail: mac-help porting.openoffice.org
>
>
--
Mox on G
|
|
[1-5]
|
|