summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-15 15:15:01 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-15 15:15:01 +0000
commit7eedcf87a9295d6404d83947e201a35c62d8406c (patch)
tree85398339dfdcc7285a367ea1fd767c197114466e /psprint
parent1ac7bea716382935a43ee2099ec9d3c73b46dfcc (diff)
INTEGRATION: CWS dbgmacros1 (1.14.2.2.16); FILE MERGED
2003/04/09 12:05:00 kso 1.14.2.2.16.1: #108413# - debug macro unification.
Diffstat (limited to 'psprint')
-rw-r--r--psprint/source/printer/printerinfomanager.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/psprint/source/printer/printerinfomanager.cxx b/psprint/source/printer/printerinfomanager.cxx
index 636df0e0d424..2d2515f972d0 100644
--- a/psprint/source/printer/printerinfomanager.cxx
+++ b/psprint/source/printer/printerinfomanager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: printerinfomanager.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: vg $ $Date: 2003-04-11 17:18:48 $
+ * last change: $Author: vg $ $Date: 2003-04-15 16:15:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -157,7 +157,7 @@ void PrinterInfoManager::initialize()
if( ! m_aGlobalDefaults.m_pParser )
{
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "Error: no SGENPRT available, shutting down psprint...\n" );
#endif
return;
@@ -173,7 +173,7 @@ void PrinterInfoManager::initialize()
Config aConfig( aFile.PathToFileName() );
if( aConfig.HasGroup( GLOBAL_DEFAULTS_GROUP ) )
{
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "found global defaults in %s\n", OUStringToOString( aFile.PathToFileName(), RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
#endif
aConfig.SetGroup( GLOBAL_DEFAULTS_GROUP );
@@ -231,7 +231,7 @@ void PrinterInfoManager::initialize()
m_aGlobalDefaults.m_aFontSubstitutes[ OStringToOUString( aKey.Copy( 10 ), RTL_TEXTENCODING_ISO_8859_1 ) ] = OStringToOUString( aValue, RTL_TEXTENCODING_ISO_8859_1 );
}
}
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "global settings: fontsubst = %s, %d substitutes\n", m_aGlobalDefaults.m_bPerformFontSubstitution ? "true" : "false", m_aGlobalDefaults.m_aFontSubstitutes.size() );
#endif
break;
@@ -879,7 +879,7 @@ void PrinterInfoManager::fillFontSubstitutions( PrinterInfo& rInfo ) const
if( nSubstitute != -1 )
{
rInfo.m_aFontSubstitutions[ it->m_nID ] = nSubstitute;
-#ifdef DEBUG
+#if OSL_DEBUG_LEVEL > 1
FastPrintFontInfo aInfo;
rFontManager.getFontFastInfo( nSubstitute, aInfo );
fprintf( stderr,
@@ -947,7 +947,7 @@ const ::std::list< OUString >& PrinterInfoManager::getSystemPrintQueues()
aForeToken = aParms[i].pForeToken;
aAftToken = aParms[i].pAftToken;
nForeTokenCount = aParms[i].nForeTokenCount;
-#if defined DEBUG
+#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "trying print queue command \"%s\" ... ", aParms[i].pQueueCommand );
#endif
if( pPipe = popen( aPrtQueueCmd.GetBuffer(), "r" ) )
@@ -957,7 +957,7 @@ const ::std::list< OUString >& PrinterInfoManager::getSystemPrintQueues()
if( ! pclose( pPipe ) )
bSuccess = TRUE;
}
-#if defined DEBUG
+#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "%s\n", bSuccess ? "success" : "failed" );
#endif
}