summaryrefslogtreecommitdiff
path: root/sfx2/source/menu/mnumgr.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:32:30 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-07-17 14:32:30 +0000
commit48e5b5e96c925ab9e2cfc27d2691553f62b7f571 (patch)
tree6cd1cab5308623fb33798639f4f31c34c6e38cfb /sfx2/source/menu/mnumgr.cxx
parent94fa315bf3b194243f13e7dd476647620b9ad81c (diff)
INTEGRATION: CWS logger2 (1.42.38); FILE MERGED
2008/05/19 11:32:58 b_michaelsen 1.42.38.1: #i88653# added origin for uilogging
Diffstat (limited to 'sfx2/source/menu/mnumgr.cxx')
-rw-r--r--sfx2/source/menu/mnumgr.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/sfx2/source/menu/mnumgr.cxx b/sfx2/source/menu/mnumgr.cxx
index 2b72f99829..caf4bda43e 100644
--- a/sfx2/source/menu/mnumgr.cxx
+++ b/sfx2/source/menu/mnumgr.cxx
@@ -1,13 +1,13 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mnumgr.cxx,v $
- * $Revision: 1.42 $
+ * $Revision: 1.43 $
*
* This file is part of OpenOffice.org.
*
@@ -234,6 +234,16 @@ IMPL_LINK( SfxMenuManager, Select, Menu *, pSelMenu )
USHORT nId = (USHORT) pSelMenu->GetCurItemId();
String aCommand = pSelMenu->GetItemCommand( nId );
+ if ( !aCommand.Len() && pBindings )
+ {
+ const SfxSlot* pSlot = SfxSlotPool::GetSlotPool( pBindings->GetDispatcher()->GetFrame() ).GetSlot( nId );
+ if ( pSlot && pSlot->pUnoName )
+ {
+ aCommand = DEFINE_CONST_UNICODE(".uno:");
+ aCommand += String::CreateFromAscii( pSlot->GetUnoName() );
+ }
+ }
+
if ( aCommand.Len() )
{
pBindings->ExecuteCommand_Impl( aCommand );