diff options
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)) ); |