diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-25 11:30:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-25 16:17:08 +0100 |
commit | 5e9e04c9a83f6e7f9c07ed7c10933a97adb335c1 (patch) | |
tree | 7eac88be60f808e602167ab2819736820719f07a | |
parent | 9759de7a885ffe02d83a9c9aef7678c3e673bd5a (diff) |
Adapt to sal/log.hxx
Change-Id: Ifb0f400136365d85170fbc4c33573ffec6a4bfcd
-rw-r--r-- | sfx2/source/inc/sfxtypes.hxx | 6 | ||||
-rw-r--r-- | sfx2/source/menu/virtmenu.cxx | 21 |
2 files changed, 16 insertions, 11 deletions
diff --git a/sfx2/source/inc/sfxtypes.hxx b/sfx2/source/inc/sfxtypes.hxx index 177bcaf0cebb..b2a51e2441bd 100644 --- a/sfx2/source/inc/sfxtypes.hxx +++ b/sfx2/source/inc/sfxtypes.hxx @@ -72,16 +72,12 @@ struct _Capper #endif -#ifdef DBG_UTIL #ifndef DBG +#ifdef DBG_UTIL #define DBG(statement) statement -#endif -#define DBG_OUTF(x) DbgOutf x #else -#ifndef DBG #define DBG(statement) #endif -#define DBG_OUTF(x) #endif diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx index d2a1d81a5854..f8552913312a 100644 --- a/sfx2/source/menu/virtmenu.cxx +++ b/sfx2/source/menu/virtmenu.cxx @@ -277,7 +277,7 @@ SfxVirtualMenu::~SfxVirtualMenu() delete pSVMenu; } - DBG_OUTF( ("SfxVirtualMenu %lx destroyed", this) ); + SAL_INFO("sfx", "SfxVirtualMenu " << this << " destroyed"); DBG_ASSERT( !nLocks, "destroying active menu" ); } @@ -660,7 +660,7 @@ bool SfxVirtualMenu::Bind_Impl( Menu *pMenu ) pSubMenu = new SfxVirtualMenu( nSID, this, *pMenu, sal_False, *pBindings, bOLE, bRes, bIsAddonPopupMenu ); - DBG_OUTF( ("New VirtualMenu %lx created", pSubMenu) ); + SAL_INFO("sfx", "New VirtualMenu " << pSubMenu << " created"); rCtrl.Bind( this, nSID, *pSubMenu, pSVMenu->GetItemText(nSID), *pBindings ); @@ -782,7 +782,10 @@ void SfxVirtualMenu::InsertAddOnsMenuItem( Menu* pMenu ) IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) { - DBG_OUTF( ("SfxVirtualMenu %lx activated %lx, own %lx", this, pMenu, pSVMenu)); + SAL_INFO( + "sfx", + "SfxVirtualMenu " << this << " activated " << pMenu << ", own " + << pSVMenu); // MI: for what was it still good for? // MBA: seemes to be an old QAP-Hack( checked-in in rev.1.41 ! ) @@ -915,7 +918,10 @@ IMPL_LINK( SfxVirtualMenu, Activate, Menu *, pMenu ) IMPL_LINK( SfxVirtualMenu, Deactivate, Menu *, pMenu ) { - DBG_OUTF( ("SfxVirtualMenu %lx deactivated %lx, own %lx", this, pMenu, pSVMenu) ); + SAL_INFO( + "sfx", + "SfxVirtualMenu " << this << " deactivated " << pMenu << ", own " + << pSVMenu); if ( bIsActive && ( 0 == pMenu || pMenu == pSVMenu ) ) { // All controllers can be unbinded all the way up to the Menubar, @@ -933,7 +939,10 @@ IMPL_LINK( SfxVirtualMenu, Deactivate, Menu *, pMenu ) IMPL_LINK( SfxVirtualMenu, Select, Menu *, pMenu ) { sal_uInt16 nSlotId = (sal_uInt16) pMenu->GetCurItemId(); - DBG_OUTF( ("SfxVirtualMenu %lx selected %u from %lx", this, nSlotId, pMenu) ); + SAL_INFO( + "sfx", + "SfxVirtualMenu " << this << " selected " << nSlotId << " from " + << pMenu); if ( nSlotId >= START_ITEMID_WINDOWLIST && nSlotId <= END_ITEMID_WINDOWLIST ) { @@ -1055,7 +1064,7 @@ void SfxVirtualMenu::InitPopup( sal_uInt16 nPos, sal_Bool /*bOLE*/ ) SfxVirtualMenu *pSubMenu = new SfxVirtualMenu(nSID, this, *pMenu, sal_False, *pBindings, bOLE, bRes); - DBG_OUTF( ("New VirtualMenu %lx created", pSubMenu) ); + SAL_INFO("sfx", "New VirtualMenu " << pSubMenu << " created"); rCtrl.Bind( this, nSID, *pSubMenu, pSVMenu->GetItemText(nSID), *pBindings ); } |