Hi,

I'd like to add menu Preferences to OpenOffice.org application menu for AQUA.
This simple patch does it:

Index: salframe.cxx
===================================================================
RCS file: /cvs/gsl/vcl/aqua/source/window/salframe.cxx,v
retrieving revision 1.46.112.74
diff -u -u -r1.46.112.74 salframe.cxx
--- salframe.cxx        17 May 2007 10:19:16 -0000      1.46.112.74
+++ salframe.cxx        19 May 2007 21:42:45 -0000
@@ -323,6 +323,7 @@
         {
             AquaSalMenu *pAquaSalMenu = (AquaSalMenu *) mpMenu;
             SetRootMenu(pAquaSalMenu->mrMenuRef);
+            EnableMenuCommand(NULL, kHICommandPreferences);
         }
         if( ! mbShown )
         {
@@ -1000,6 +1001,11 @@
             pSalFrame->CallCallback( SALEVENT_SHUTDOWN, 0 );
             result = noErr;
         }
+        else if (commandStruct.commandID == kHICommandPreferences)
+        {
+ fprintf(stderr, "FIXME: Call Tools - Options somehow...! \n");
+            result = noErr;
+        }
     }
     return result;

Now the question is, if/how can we properly call that dialog from VCL... Do you have an idea?

Later on, we will need the same for About window.
--
Pavel Janík


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to