summaryrefslogtreecommitdiff
path: root/svtools/source/brwbox
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-02-16 12:02:39 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-02-16 20:17:26 +0100
commit6426dd54290420324e6c08b5f342f0eee87ea5c5 (patch)
tree6e8105e68d3baf166edfa8ca2999445748e63010 /svtools/source/brwbox
parent166616b00895ca62dbe74705b603815557dcf5bc (diff)
Remove DBG_MI
Diffstat (limited to 'svtools/source/brwbox')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx50
-rw-r--r--svtools/source/brwbox/datwin.hxx12
2 files changed, 2 insertions, 60 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 76f306295c6b..36f789a3d621 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -59,27 +59,6 @@ using namespace svt;
//-------------------------------------------------------------------
-#ifdef DBG_MI
-void DoLog_Impl( const BrowseBox *pThis, const char *pWhat, const char *pWho )
-{
- SvFileStream aLog( "d:\\cursor.log", STREAM_WRITE|STREAM_NOCREATE );
- if ( aLog.IsOpen() )
- {
- aLog.Seek( STREAM_SEEK_TO_END );
- String aEntry( (long) pThis );
- aEntry += "(row=";
- aEntry += pThis->GetCurRow();
- aEntry += "): ";
- aEntry += pWhat;
- aEntry += " from ";
- aEntry += pWho;
- aEntry += " => ";
- aEntry += pThis->GetCursorHideCount();
- aLog.WriteLine( aEntry );
- }
-}
-#endif
-
namespace
{
void disposeAndClearHeaderCell(::svt::BrowseBoxImpl::THeaderCellMap& _rHeaderCell)
@@ -146,7 +125,6 @@ void BrowseBox::ConstructImpl( BrowserMode nMode )
bHasFocus = HasChildPathFocus();
getDataWindow()->nCursorHidden =
( bHasFocus ? 0 : 1 ) + ( GetUpdateMode() ? 0 : 1 );
- LOG( this, "ConstructImpl", "*" );
}
//-------------------------------------------------------------------
@@ -211,11 +189,7 @@ short BrowseBox::GetCursorHideCount() const
//-------------------------------------------------------------------
-void BrowseBox::DoShowCursor( const char *
-#ifdef DBG_MI
-pWhoLogs
-#endif
-)
+void BrowseBox::DoShowCursor( const char * )
{
short nHiddenCount = --getDataWindow()->nCursorHidden;
if (PaintCursorIfHiddenOnce())
@@ -228,16 +202,11 @@ pWhoLogs
if (0 == nHiddenCount)
DrawCursor();
}
- LOG( this, "DoShowCursor", pWhoLogs );
}
//-------------------------------------------------------------------
-void BrowseBox::DoHideCursor( const char *
-#ifdef DBG_MI
-pWhoLogs
-#endif
-)
+void BrowseBox::DoHideCursor( const char * )
{
short nHiddenCount = ++getDataWindow()->nCursorHidden;
if (PaintCursorIfHiddenOnce())
@@ -250,7 +219,6 @@ pWhoLogs
if (1 == nHiddenCount)
DrawCursor();
}
- LOG( this, "DoHideCursor", pWhoLogs );
}
//-------------------------------------------------------------------
@@ -2453,20 +2421,6 @@ void BrowseBox::SetMode( BrowserMode nMode )
{
DBG_CHKTHIS(BrowseBox,BrowseBoxCheckInvariants);
-#ifdef DBG_MIx
- Sound::Beep();
- nMode =
- BROWSER_THUMBDRAGGING |
- BROWSER_KEEPHIGHLIGHT |
- BROWSER_HLINES |
- BROWSER_VLINES |
- BROWSER_AUTO_VSCROLL |
- BROWSER_AUTO_HSCROLL |
- BROWSER_TRACKING_TIPS |
- BROWSER_HEADERBAR_NEW |
- 0;
-#endif
-
getDataWindow()->bAutoHScroll = BROWSER_AUTO_HSCROLL == ( nMode & BROWSER_AUTO_HSCROLL );
getDataWindow()->bAutoVScroll = BROWSER_AUTO_VSCROLL == ( nMode & BROWSER_AUTO_VSCROLL );
getDataWindow()->bNoHScroll = BROWSER_NO_HSCROLL == ( nMode & BROWSER_NO_HSCROLL );
diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx
index 770e359c15f6..d32dbd69a4bf 100644
--- a/svtools/source/brwbox/datwin.hxx
+++ b/svtools/source/brwbox/datwin.hxx
@@ -235,18 +235,6 @@ void InitSettings_Impl( Window *pWin,
//===================================================================
-#ifdef DBG_MI
-
-void DoLog_Impl( const BrowseBox *pThis, const char *pWhat, const char *pWho );
-#define LOG(pThis,what,who) DoLog_Impl(pThis,what,who)
-
-#else
-
-#define LOG(pThis,what,who)
-
-#endif
-
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */