Kaydet (Commit) 034ca8fd authored tarafından Yuri Dario's avatar Yuri Dario

#i124294# use rAppName to fill pszComment field when opening the printer device.

üst 48eb121f
...@@ -1671,25 +1671,9 @@ sal_Bool Os2SalPrinter::StartJob( const XubString* pFileName, ...@@ -1671,25 +1671,9 @@ sal_Bool Os2SalPrinter::StartJob( const XubString* pFileName,
lType = OD_QUEUED; lType = OD_QUEUED;
} }
#if 0 // YD FIXME // Set comment using application name
// Set comment (AppName nur bis zum 1. Space-Zeichen nehmen) ByteString appName( rAppName, gsl_getSystemTextEncoding());
const xub_Unicode* pComment = rAppName; aDevOpenStruc.pszComment = (PSZ)appName.GetBuffer();
USHORT nCommentLen = 0;
memset( maCommentBuf, 0, sizeof( maCommentBuf ) );
while ( (nCommentLen < 32) &&
(((*pComment >= 'a') && (*pComment <= 'z')) ||
((*pComment >= 'A') && (*pComment <= 'Z')) ||
((*pComment >= '0') && (*pComment <= '9')) ||
(*pComment == '-')))
{
maCommentBuf[nCommentLen] = (char)(*pComment);
nCommentLen++;
pComment++;
}
aDevOpenStruc.pszComment = (PSZ)maCommentBuf;
#endif
ByteString jobName( rJobName, gsl_getSystemTextEncoding());
aDevOpenStruc.pszComment = (PSZ)jobName.GetBuffer();
// Kopien // Kopien
if ( nCopies > 1 ) if ( nCopies > 1 )
...@@ -1740,6 +1724,7 @@ sal_Bool Os2SalPrinter::StartJob( const XubString* pFileName, ...@@ -1740,6 +1724,7 @@ sal_Bool Os2SalPrinter::StartJob( const XubString* pFileName,
#endif #endif
// JobName ermitteln und Job starten // JobName ermitteln und Job starten
ByteString jobName( rJobName, gsl_getSystemTextEncoding());
PSZ pszJobName = NULL; PSZ pszJobName = NULL;
int nJobNameLen = 0; int nJobNameLen = 0;
if ( jobName.Len() > 0 ) if ( jobName.Len() > 0 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment