- Timestamp:
- Mar 17, 2011, 2:33:49 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/changelog
r473 r476 8 8 - updated jpeg to 8b 9 9 - WPI: installing the right readme, if translated 10 - saved some settings from print dialog (ticket #225) 10 11 11 12 -
trunk/Lucide/gui/lucide.cpp
r475 r476 731 731 // it may be possible that the trailing \ is missing, so add it 732 732 buflen = strlen(dirbuf); 733 if ((dirbuf[buflen -1] != '\\') && (dirbuf[buflen -1] != '/') )733 if ((dirbuf[buflen -1] != '\\') && (dirbuf[buflen -1] != '/') && (buflen < sizeof(dirbuf))) 734 734 { 735 735 strcat(dirbuf, "\\"); -
trunk/Lucide/gui/printDlg.cpp
r370 r476 49 49 50 50 char PrintDlg::defQueue[] = { 0 }; 51 static const char * const IgnMargins = "IgnMargins"; 52 static const char * const PageRange = "PageRange"; 51 53 52 54 … … 539 541 centerWindow( _this->hFrame, hwnd ); 540 542 541 // Print range 542 WinCheckButton( hwnd, IDC_RANGEALL, TRUE ); 543 // Page range 544 int buttonctl = 0; 545 buttonctl = PrfQueryProfileInt(HINI_USERPROFILE, appName, PageRange, buttonctl); 546 switch (buttonctl) 547 { 548 case 1: 549 WinCheckButton(hwnd, IDC_RANGECURRENT, TRUE); 550 break; 551 case 2: 552 WinCheckButton(hwnd, IDC_RANGEPAGES, TRUE); 553 WinEnableControl(hwnd, IDC_LABELFROM, TRUE); 554 WinEnableControl(hwnd, IDC_PGFROM, TRUE); 555 WinEnableControl(hwnd, IDC_LABELTO, TRUE); 556 WinEnableControl(hwnd, IDC_PGTO, TRUE); 557 break; 558 default: 559 WinCheckButton(hwnd, IDC_RANGEALL, TRUE); 560 break; 561 } 562 563 // ignore margins 564 buttonctl = 0; 565 buttonctl = PrfQueryProfileInt(HINI_USERPROFILE, appName, IgnMargins, buttonctl); 566 if (buttonctl == 1) 567 { 568 WinCheckButton( hwnd, IDC_IGNMARGINS, TRUE ); 569 } 543 570 544 571 // Set the print range spins … … 704 731 _this->psetup->pgto = _this->doc->getPageCount( ev ); 705 732 733 // used for ini settings 734 char buf[10]; 735 int iniint = 0; 736 706 737 if ( WinQueryButtonCheckstate( hwnd, IDC_RANGECURRENT ) ) { 707 738 _this->psetup->range = RangeCurrent; 708 739 _this->psetup->pgfrom = _this->currentpage; 709 740 _this->psetup->pgto = _this->currentpage; 741 iniint = 1; 710 742 } 711 743 … … 722 754 _this->psetup->pgto = tmpVal; 723 755 } 756 iniint = 2; 724 757 } 758 759 // write ini pagerange 760 PrfWriteProfileString(HINI_USERPROFILE, appName, PageRange, itoa(iniint, buf, 10)); 761 762 // write ini ignore margins 763 iniint = 0; 764 if ( WinQueryButtonCheckstate( hwnd, IDC_IGNMARGINS ) ) { 765 iniint = 1; 766 } 767 PrfWriteProfileString(HINI_USERPROFILE, appName, IgnMargins, itoa(iniint, buf, 10)); 725 768 726 769 _this->psetup->ptype = TypePostScript; -
trunk/poppler/fc-emulate-os2/fontconfig/fontconfig.cpp
r473 r476 550 550 pat->filename = newstrdup( (*fontmap)[ key ].c_str() ); 551 551 552 // printf( "MATCHED STYLE: %s, FILENAME: %s\n", key.c_str(), pat->filename ); 552 // printf( "fontfamily: %s --> MATCHED STYLE: %s, FILENAME: %s\n", pat->family, key.c_str(), pat->filename ); 553 // printf("SLANT: %d, WEIGHT:%d, WIDTH:%d, SPACING:%d\n", pat->slant, pat->weight, pat->width, pat->spacing); 553 554 554 555 FcFontSet *fs = new FcFontSet;
Note: See TracChangeset
for help on using the changeset viewer.