diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-08-26 10:31:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-08-26 10:33:30 +0300 |
commit | 139b32b84c029b6ff7a9236b58f65351a5723640 (patch) | |
tree | a65bdce692087fa69111ce8054fead61b668dfd2 /include/tools/debug.hxx | |
parent | e279fc393bc55cf6c8422760266e9c5bbdff5d91 (diff) |
Bin the fairly useless DbgDialog stuff and handle fallout
See (short) discussion on the mailing list, "How was it again, is the
DbgDialog useful?".
Change-Id: Ibde1eb13f16edf94f1f7aebd0befd1b0b171d5c4
Diffstat (limited to 'include/tools/debug.hxx')
-rw-r--r-- | include/tools/debug.hxx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/include/tools/debug.hxx b/include/tools/debug.hxx index 65fd18b93582..3dfafab4b860 100644 --- a/include/tools/debug.hxx +++ b/include/tools/debug.hxx @@ -41,61 +41,12 @@ typedef void (*DbgTestSolarMutexProc)(); -#define DBG_TEST_RESOURCE (0x02000000) -#define DBG_TEST_DIALOG (0x04000000) -#define DBG_TEST_BOLDAPPFONT (0x08000000) - -struct DbgData -{ - sal_uIntPtr nTestFlags; - sal_Char aDbgWinState[50]; // DbgGUIData for VCL -}; - // Dbg prototypes -#define DBG_FUNC_GETDATA 0 -#define DBG_FUNC_SAVEDATA 1 #define DBG_FUNC_SETTESTSOLARMUTEX 2 #define DBG_FUNC_TESTSOLARMUTEX 3 TOOLS_DLLPUBLIC void* DbgFunc( sal_uInt16 nAction, void* pData = NULL ); -inline DbgData* DbgGetData() -{ - return static_cast<DbgData*>(DbgFunc( DBG_FUNC_GETDATA )); -} - -inline void DbgSaveData( const DbgData& rData ) -{ - DbgFunc( DBG_FUNC_SAVEDATA, const_cast<DbgData *>(&rData) ); -} - -inline bool DbgIsResource() -{ - DbgData* pData = DbgGetData(); - if ( pData ) - return pData->nTestFlags & DBG_TEST_RESOURCE; - else - return false; -} - -inline bool DbgIsDialog() -{ - DbgData* pData = DbgGetData(); - if ( pData ) - return pData->nTestFlags & DBG_TEST_DIALOG; - else - return false; -} - -inline bool DbgIsBoldAppFont() -{ - DbgData* pData = DbgGetData(); - if ( pData ) - return pData->nTestFlags & DBG_TEST_BOLDAPPFONT; - else - return false; -} - inline void DbgSetTestSolarMutex( DbgTestSolarMutexProc pProc ) { DbgFunc( DBG_FUNC_SETTESTSOLARMUTEX, reinterpret_cast<void*>(reinterpret_cast<sal_uIntPtr>(pProc)) ); |