Kaydet (Commit) 93dee0af authored tarafından Yuri Dario's avatar Yuri Dario

i118923 - OS/2 port: dump some more info about printers and form sizes.

üst abb5d676
......@@ -354,7 +354,7 @@ void InitSalMain()
HMQ hMQ;
SalData* pData = GetAppSalData();
#if OSL_DEBUG_LEVEL>0
printf("InitSalMain\n");
debug_printf("InitSalMain\n");
#endif
// morph application to PM
......
......@@ -215,6 +215,10 @@ void Os2SalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
ByteString aOrgDriverName( pPrqInfo->pszDriverName);
ByteString aName( pPrqInfo->pszName);
#if OSL_DEBUG_LEVEL>0
printf("GetPrinterQueueInfo pszDriverName %s\n", pPrqInfo->pszDriverName);
printf("GetPrinterQueueInfo pszName %s\n", pPrqInfo->pszDriverName);
#endif
pInfo->maDriver = ::rtl::OStringToOUString (aOrgDriverName, gsl_getSystemTextEncoding());
pInfo->maPrinterName = ::rtl::OStringToOUString (pPrqInfo->pszComment, gsl_getSystemTextEncoding());
pInfo->maLocation = ::rtl::OStringToOUString (aName, gsl_getSystemTextEncoding());
......@@ -647,6 +651,10 @@ static void ImplGetFormAndTrayList( Os2SalInfoPrinter* pOs2SalInfoPrinter, const
ImplFormInfo* pInfo = new ImplFormInfo;
pInfo->mnPaperWidth = pElm->hcInfo.cx;
pInfo->mnPaperHeight = pElm->hcInfo.cy;
#if OSL_DEBUG_LEVEL>0
printf("ImplGetFormAndTrayList mnPaperWidth %d\n", pInfo->mnPaperWidth);
printf("ImplGetFormAndTrayList mnPaperHeight %d\n", pInfo->mnPaperHeight);
#endif
pInfo->mnId = pElm->djppsFormID;
pOs2SalInfoPrinter->mpFormArray[i] = pInfo;
}
......
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