summaryrefslogtreecommitdiff
path: root/sfx2/source/menu
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-01-07 08:04:35 +0000
committerOliver Bolte <obo@openoffice.org>2008-01-07 08:04:35 +0000
commit733b49ccef1369933a38e55f8adf2d7d7f9d4067 (patch)
treeb8258f6f84adb5904f1bd203faa590e9480bbc51 /sfx2/source/menu
parent1e36ce7ea674bdb4aa27fb5ffedd4cba9121635a (diff)
INTEGRATION: CWS supdremove (1.20.108); FILE MERGED
2007/11/16 10:25:21 vg 1.20.108.1: #i83674# cleanup: remove obsolete SUPD macro use
Diffstat (limited to 'sfx2/source/menu')
-rw-r--r--sfx2/source/menu/mnuitem.cxx41
1 files changed, 2 insertions, 39 deletions
diff --git a/sfx2/source/menu/mnuitem.cxx b/sfx2/source/menu/mnuitem.cxx
index bc439abf20..b3ad9473e1 100644
--- a/sfx2/source/menu/mnuitem.cxx
+++ b/sfx2/source/menu/mnuitem.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: mnuitem.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 23:31:17 $
+ * last change: $Author: obo $ $Date: 2008-01-07 09:04:35 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -421,9 +421,6 @@ SfxMenuControl* SfxMenuControl::CreateControl( USHORT nId, Menu &rMenu, SfxBindi
return 0;
}
-
-
-#if SUPD>633
BOOL SfxMenuControl::IsSpecialControl( USHORT nId, SfxModule* pMod )
{
TypeId aSlotType = SFX_SLOTPOOL().GetSlotType( nId );
@@ -453,40 +450,6 @@ BOOL SfxMenuControl::IsSpecialControl( USHORT nId, SfxModule* pMod )
}
return 0;
}
-#else
-BOOL SfxMenuControl::IsSpecialControl( USHORT nId, SfxBindings& rBindings )
-{
- TypeId aSlotType = SFX_SLOTPOOL().GetSlotType( nId );
- if ( aSlotType )
- {
- SfxApplication *pApp = SFX_APP();
- SfxDispatcher *pDisp = rBindings.GetDispatcher_Impl();
- SfxModule *pMod = pDisp ? pApp->GetActiveModule( pDisp->GetFrame() ) :0;
- if ( pMod )
- {
- SfxMenuCtrlFactArr_Impl *pFactories = pMod->GetMenuCtrlFactories_Impl();
- if ( pFactories )
- {
- SfxMenuCtrlFactArr_Impl &rFactories = *pFactories;
- for ( USHORT nFactory = 0; nFactory < rFactories.Count(); ++nFactory )
- if ( rFactories[nFactory]->nTypeId == aSlotType &&
- ( ( rFactories[nFactory]->nSlotId == 0 ) ||
- ( rFactories[nFactory]->nSlotId == nId) ) )
- return TRUE;
- }
- }
-
- SfxMenuCtrlFactArr_Impl &rFactories = pApp->GetMenuCtrlFactories_Impl();
-
- for ( USHORT nFactory = 0; nFactory < rFactories.Count(); ++nFactory )
- if ( rFactories[nFactory]->nTypeId == aSlotType &&
- ( ( rFactories[nFactory]->nSlotId == 0 ) ||
- ( rFactories[nFactory]->nSlotId == nId) ) )
- return TRUE;
- }
- return 0;
-}
-#endif
//--------------------------------------------------------------------