From 576b4e9bfde9468e492753d22af316bf732608e1 Mon Sep 17 00:00:00 2001 From: Dmitry Chapyshev Date: Tue, 3 Mar 2009 09:10:25 +0000 Subject: [PATCH] - Sync comdlg32 with Wine head svn path=/trunk/; revision=39851 --- reactos/dll/win32/comdlg32/cdlg.h | 6 +- reactos/dll/win32/comdlg32/cdlg32.c | 6 - reactos/dll/win32/comdlg32/cdlg_Bg.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Cs.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Da.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_De.rc | 14 +- reactos/dll/win32/comdlg32/cdlg_El.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_En.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Eo.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Es.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Fi.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Fr.rc | 14 +- reactos/dll/win32/comdlg32/cdlg_It.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Ja.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Ko.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Lt.rc | 486 +++++ reactos/dll/win32/comdlg32/cdlg_Nl.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_No.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Pl.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Pt.rc | 24 +- reactos/dll/win32/comdlg32/cdlg_Ro.rc | 14 +- reactos/dll/win32/comdlg32/cdlg_Ru.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Si.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Sk.rc | 147 +- reactos/dll/win32/comdlg32/cdlg_Sv.rc | 107 +- reactos/dll/win32/comdlg32/cdlg_Th.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Tr.rc | 12 +- reactos/dll/win32/comdlg32/cdlg_Uk.rc | 4 +- reactos/dll/win32/comdlg32/cdlg_Zh.rc | 16 +- reactos/dll/win32/comdlg32/colordlg.c | 2 +- reactos/dll/win32/comdlg32/filedlg.c | 15 +- reactos/dll/win32/comdlg32/filedlg31.c | 2 +- reactos/dll/win32/comdlg32/filedlgbrowser.c | 26 +- reactos/dll/win32/comdlg32/finddlg32.c | 2 +- reactos/dll/win32/comdlg32/fontdlg.c | 6 +- reactos/dll/win32/comdlg32/printdlg.c | 2137 +++++++++---------- reactos/dll/win32/comdlg32/rsrc.rc | 3 +- 37 files changed, 1915 insertions(+), 1332 deletions(-) create mode 100644 reactos/dll/win32/comdlg32/cdlg_Lt.rc diff --git a/reactos/dll/win32/comdlg32/cdlg.h b/reactos/dll/win32/comdlg32/cdlg.h index c85f877c473..84486a72fcc 100644 --- a/reactos/dll/win32/comdlg32/cdlg.h +++ b/reactos/dll/win32/comdlg32/cdlg.h @@ -95,8 +95,8 @@ typedef struct { #define PD32_NR_OF_DOCUMENTS_IN_QUEUE 1583 #define PD32_MARGINS_IN_INCHES 1585 -#define PD32_MARGINS_IN_MILIMETERS 1586 -#define PD32_MILIMETERS 1587 +#define PD32_MARGINS_IN_MILLIMETERS 1586 +#define PD32_MILLIMETERS 1587 /* Charset names string IDs */ @@ -193,8 +193,6 @@ BOOL CC_HookCallChk( const CHOOSECOLORW *lpcc ); int CC_MouseCheckResultWindow( HWND hDlg, LPARAM lParam ); LRESULT CC_WMLButtonDown( HWND hDlg, WPARAM wParam, LPARAM lParam ); LRESULT CC_WMLButtonUp( HWND hDlg, WPARAM wParam, LPARAM lParam ); -LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD - notifyCode, HWND hwndCtl ); LRESULT CC_WMMouseMove( HWND hDlg, LPARAM lParam ); LRESULT CC_WMPaint( HWND hDlg, WPARAM wParam, LPARAM lParam ); void CC_SwitchToFullSize( HWND hDlg, COLORREF result, LPCRECT lprect ); diff --git a/reactos/dll/win32/comdlg32/cdlg32.c b/reactos/dll/win32/comdlg32/cdlg32.c index afa3c61bf30..321554fc922 100644 --- a/reactos/dll/win32/comdlg32/cdlg32.c +++ b/reactos/dll/win32/comdlg32/cdlg32.c @@ -83,12 +83,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved) SHELL32_hInstance = GetModuleHandleA("SHELL32.DLL"); - if (!SHELL32_hInstance) - { - ERR("loading of shell32 failed\n"); - return FALSE; - } - /* ITEMIDLIST */ GPA(COMDLG32_PIDL_ILIsEqual, SHELL32_hInstance, (LPCSTR)21L); GPA(COMDLG32_PIDL_ILCombine, SHELL32_hInstance, (LPCSTR)25L); diff --git a/reactos/dll/win32/comdlg32/cdlg_Bg.rc b/reactos/dll/win32/comdlg32/cdlg_Bg.rc index daf18e7d59c..746b942fa70 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Bg.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Bg.rc @@ -314,13 +314,13 @@ BEGIN AUTORADIOBUTTON "&", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&...", psh3, 184, 220, 48, 14 @@ -413,8 +413,8 @@ STRINGTABLE DISCARDABLE PD32_DEFAULT_PRINTER " ; " PD32_NR_OF_DOCUMENTS_IN_QUEUE " %d " PD32_MARGINS_IN_INCHES " []" - PD32_MARGINS_IN_MILIMETERS " []" - PD32_MILIMETERS "" + PD32_MARGINS_IN_MILLIMETERS " []" + PD32_MILLIMETERS "" PD32_PRINTER_STATUS_READY "" PD32_PRINTER_STATUS_PAUSED "; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Cs.rc b/reactos/dll/win32/comdlg32/cdlg_Cs.rc index d017898662e..64e9f892757 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Cs.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Cs.rc @@ -316,13 +316,13 @@ BEGIN AUTORADIOBUTTON "N&a ku", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Okraje", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "L&ev:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "P&rav:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "H&orn:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Doln:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Zruit", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "Tisk&rna...", psh3, 184, 220, 48, 14 @@ -412,8 +412,8 @@ podporov PD32_DEFAULT_PRINTER "Vchoz tiskrna; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Ve front je %d dokument" PD32_MARGINS_IN_INCHES "Okraje [palce]" - PD32_MARGINS_IN_MILIMETERS "Okraje [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Okraje [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Pipraven" PD32_PRINTER_STATUS_PAUSED "Pozastaven; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Da.rc b/reactos/dll/win32/comdlg32/cdlg_Da.rc index 5126c568b4e..839a1a46c7b 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Da.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Da.rc @@ -314,13 +314,13 @@ BEGIN AUTORADIOBUTTON "&Landskab", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Kanter", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Venstre:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Hjre:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "T&op:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Bund:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Annuller", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "P&rinter...", psh3, 184, 220, 48, 14 @@ -411,8 +411,8 @@ indstaller en og pr PD32_DEFAULT_PRINTER "Standard printer; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Der er %d dokumenter in ken" PD32_MARGINS_IN_INCHES "Margener [tommer]" - PD32_MARGINS_IN_MILIMETERS "Margener [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margener [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Klar" PD32_PRINTER_STATUS_PAUSED "Pauset; " diff --git a/reactos/dll/win32/comdlg32/cdlg_De.rc b/reactos/dll/win32/comdlg32/cdlg_De.rc index ed2c9445e2f..46c42913dc2 100644 --- a/reactos/dll/win32/comdlg32/cdlg_De.rc +++ b/reactos/dll/win32/comdlg32/cdlg_De.rc @@ -133,13 +133,13 @@ BEGIN AUTORADIOBUTTON "&Querformat", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Rnder", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Links:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Rechts:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Oben:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Unten:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Abbrechen", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&Drucker...", psh3, 184, 220, 48, 14 @@ -406,10 +406,10 @@ Bitte geben sie einen Wert zwischen %d und %d an." PD32_DEFAULT_PRINTER "Standard Drucker; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Es sind %d Dokumente in der Queue" PD32_MARGINS_IN_INCHES "Rnder [inches/zoll]" - PD32_MARGINS_IN_MILIMETERS "Rnder [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Rnder [mm]" + PD32_MILLIMETERS "mm" - PD32_PRINTER_STATUS_READY "Bereit; " + PD32_PRINTER_STATUS_READY "Bereit" PD32_PRINTER_STATUS_PAUSED "Gestoppt; " PD32_PRINTER_STATUS_ERROR "Fehler; " PD32_PRINTER_STATUS_PENDING_DELETION "Wartet auf Lschung; " diff --git a/reactos/dll/win32/comdlg32/cdlg_El.rc b/reactos/dll/win32/comdlg32/cdlg_El.rc index f8c6b9ec33f..9fa64dde42a 100644 --- a/reactos/dll/win32/comdlg32/cdlg_El.rc +++ b/reactos/dll/win32/comdlg32/cdlg_El.rc @@ -313,13 +313,13 @@ BEGIN AUTORADIOBUTTON "&Landscape", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Borders", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&...", psh3, 184, 220, 48, 14 @@ -412,8 +412,8 @@ Please install one and retry." PD32_DEFAULT_PRINTER " ; " PD32_NR_OF_DOCUMENTS_IN_QUEUE " %d " PD32_MARGINS_IN_INCHES "Margins [inches]" - PD32_MARGINS_IN_MILIMETERS "Margins [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margins [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "" PD32_PRINTER_STATUS_PAUSED "; " diff --git a/reactos/dll/win32/comdlg32/cdlg_En.rc b/reactos/dll/win32/comdlg32/cdlg_En.rc index 7f4428f2034..962c1891152 100644 --- a/reactos/dll/win32/comdlg32/cdlg_En.rc +++ b/reactos/dll/win32/comdlg32/cdlg_En.rc @@ -313,13 +313,13 @@ BEGIN AUTORADIOBUTTON "&Landscape", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Borders", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "L&eft:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Right:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "T&op:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Bottom:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Cancel", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "P&rinter...", psh3, 184, 220, 48, 14 @@ -412,8 +412,8 @@ Please install one and retry." PD32_DEFAULT_PRINTER "Default Printer; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "There are %d documents in the queue" PD32_MARGINS_IN_INCHES "Margins [inches]" - PD32_MARGINS_IN_MILIMETERS "Margins [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margins [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Ready" PD32_PRINTER_STATUS_PAUSED "Paused; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Eo.rc b/reactos/dll/win32/comdlg32/cdlg_Eo.rc index 5c9e5453e90..b9573f455a5 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Eo.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Eo.rc @@ -311,13 +311,13 @@ AUTORADIOBUTTON "&Vertikala", rad1, 16, 170, 52, 12, BS_AUTORADIOBUTTON AUTORADIOBUTTON "&Horizontala", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Marenoj", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Dekstra:", stc15, 88, 172, 21, 8 -EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER +EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Maldekstra:", stc16, 159, 172, 27, 8 -EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER +EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Supre:", stc17, 88, 192, 21, 8 -EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER +EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "Su&be:", stc18, 159, 192, 23, 8 -EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER +EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "Bone", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Rezigni", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&Printilo..", psh3, 184, 220, 48, 14 @@ -409,8 +409,8 @@ STRINGTABLE DISCARDABLE PD32_DEFAULT_PRINTER "Defalta Printilo; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "%d dokumento(j) estas en presvico" PD32_MARGINS_IN_INCHES "Marenoj [inches]" - PD32_MARGINS_IN_MILIMETERS "Marenoj [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Marenoj [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Preta" PD32_PRINTER_STATUS_PAUSED "Pase; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Es.rc b/reactos/dll/win32/comdlg32/cdlg_Es.rc index 2f3bff681dd..1f6226a0fb0 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Es.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Es.rc @@ -314,13 +314,13 @@ BEGIN AUTORADIOBUTTON "&Apaisado", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Mrgenes", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "I&zquierdo:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Derecho:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Superior:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "In&ferior:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "Aceptar", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Cancelar", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&Impresora...", psh3, 184, 220, 48, 14 @@ -415,8 +415,8 @@ Por favor, instale una y vuelva a intentarlo." PD32_DEFAULT_PRINTER "Impresora por defecto; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Hay %d documentos en la cola" PD32_MARGINS_IN_INCHES "Mrgenes [pulgadas]" - PD32_MARGINS_IN_MILIMETERS "Mrgenes [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Mrgenes [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Lista" PD32_PRINTER_STATUS_PAUSED "Pausada; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Fi.rc b/reactos/dll/win32/comdlg32/cdlg_Fi.rc index be180667277..8e732df21a7 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Fi.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Fi.rc @@ -313,13 +313,13 @@ BEGIN AUTORADIOBUTTON "V&aaka", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Reunat", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Vasen:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Oikea:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Vasen:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Pohja:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Peruuta", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "T&ulostin...", psh3, 184, 220, 48, 14 @@ -407,8 +407,8 @@ Please install one and retry." PD32_DEFAULT_PRINTER "Oletustulostin; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Jonossa on %d dokumenttia" PD32_MARGINS_IN_INCHES "Marginaalit [inches]" - PD32_MARGINS_IN_MILIMETERS "Marginaalit [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Marginaalit [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Valmis" PD32_PRINTER_STATUS_PAUSED "Pysytetty; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Fr.rc b/reactos/dll/win32/comdlg32/cdlg_Fr.rc index 45823fe37e4..bd93a10b9bf 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Fr.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Fr.rc @@ -317,13 +317,13 @@ BEGIN AUTORADIOBUTTON "P&aysage", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Marges", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Droite:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Gauche:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Haut:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Bas:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Annuler", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&Imprimante...", psh3, 184, 220, 48, 14 @@ -416,10 +416,10 @@ Veuillez en installer une et r PD32_DEFAULT_PRINTER "Imprimante par dfaut; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Il y a %d documents dans la file d'attente" PD32_MARGINS_IN_INCHES "Marges [pouces]" - PD32_MARGINS_IN_MILIMETERS "Marges [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Marges [mm]" + PD32_MILLIMETERS "mm" - PD32_PRINTER_STATUS_READY "Prt; " + PD32_PRINTER_STATUS_READY "Prt" PD32_PRINTER_STATUS_PAUSED "Suspendu; " PD32_PRINTER_STATUS_ERROR "Erreur; " PD32_PRINTER_STATUS_PENDING_DELETION "En attente de suppression; " diff --git a/reactos/dll/win32/comdlg32/cdlg_It.rc b/reactos/dll/win32/comdlg32/cdlg_It.rc index 92d7cb55862..f48b403f83d 100644 --- a/reactos/dll/win32/comdlg32/cdlg_It.rc +++ b/reactos/dll/win32/comdlg32/cdlg_It.rc @@ -314,13 +314,13 @@ BEGIN AUTORADIOBUTTON "&Verticale", rad2, 13, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Bordi", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Sinistro:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Destro:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Superiore:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Inferiore:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Annulla", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "S&tampante...", psh3, 184, 220, 48, 14 @@ -412,8 +412,8 @@ Si consiglia di installare la stampante e poi ritentare." PD32_DEFAULT_PRINTER "Stampante predefinita; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Ci sono %d documenti nella coda di stampa" PD32_MARGINS_IN_INCHES "Margini [pollici]" - PD32_MARGINS_IN_MILIMETERS "Margini [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margini [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Pronto" PD32_PRINTER_STATUS_PAUSED "In pausa; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Ja.rc b/reactos/dll/win32/comdlg32/cdlg_Ja.rc index 8f8c668489e..e29f2624d81 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Ja.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Ja.rc @@ -316,13 +316,13 @@ BEGIN AUTORADIOBUTTON "横(&L)", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "余白", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "左(&E):", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "右(&R):", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "上(&O):", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "下(&B):", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "キャンセル", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "プリンタ(&R)...", psh3, 184, 220, 48, 14 @@ -415,8 +415,8 @@ Please install one and retry." PD32_DEFAULT_PRINTER "Default Printer; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "There are %d documents in the queue" PD32_MARGINS_IN_INCHES "Margins [inches]" - PD32_MARGINS_IN_MILIMETERS "Margins [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margins [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Ready" PD32_PRINTER_STATUS_PAUSED "Paused; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Ko.rc b/reactos/dll/win32/comdlg32/cdlg_Ko.rc index 53b2d70d43c..74467935fdd 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Ko.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Ko.rc @@ -315,13 +315,13 @@ BEGIN AUTORADIOBUTTON "(&L)", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "ڸ", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "(&E):", stc15, 82, 173, 28, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "(&R):", stc16, 151, 172, 34, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "(&O):", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "Ʒ(&B):", stc18, 154, 191, 31, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "Ȯ", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "(&R)...", psh3, 184, 220, 48, 14 @@ -414,8 +414,8 @@ STRINGTABLE DISCARDABLE PD32_DEFAULT_PRINTER "⺻ ; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "⿭ %d մϴ" PD32_MARGINS_IN_INCHES " [ġ]" - PD32_MARGINS_IN_MILIMETERS " [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS " [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "غ" PD32_PRINTER_STATUS_PAUSED "; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Lt.rc b/reactos/dll/win32/comdlg32/cdlg_Lt.rc new file mode 100644 index 00000000000..f551925a660 --- /dev/null +++ b/reactos/dll/win32/comdlg32/cdlg_Lt.rc @@ -0,0 +1,486 @@ +/* + * Copyright 2009 Aurimas Fišeras + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * WARNING: DO NOT CHANGE THE SIZE OF THE STANDARD DIALOG TEMPLATES. + */ + +/* UTF-8 */ +#pragma code_page(65001) + +LANGUAGE LANG_LITHUANIAN, SUBLANG_NEUTRAL + +OPEN_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Atverti" +FONT 8, "MS Shell Dlg" +{ + LTEXT "Failo &vardas:", 1090, 6, 6, 76, 9 + EDITTEXT edt1, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP + LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "&Aplankai:", -1, 110, 6, 92, 9 + LTEXT "", 1088, 110, 18, 92, 9, SS_NOPREFIX | WS_GROUP + LISTBOX 1121, 110, 32, 92, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "Rodyti šių &tipų failus:", 1089, 6, 104, 90, 9 + COMBOBOX cmb1, 6, 114, 90, 36, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + LTEXT "&Diskai:", 1091, 110, 104, 92, 9 + COMBOBOX cmb2, 110, 114, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "Atverti", 1, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Atsisakyti", 2, 208, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Žinynas", pshHelp, 208, 46, 56, 14, WS_GROUP | WS_TABSTOP + CHECKBOX "Tik &skaitymui", chx1, 208, 68, 56, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +SAVE_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Išsaugoti kaip..." +FONT 8, "MS Shell Dlg" +{ + LTEXT "Failo &vardas:", 1090, 6, 6, 76, 9 + EDITTEXT edt1, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP + LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "&Aplankai:", -1, 110, 6, 92, 9 + LTEXT "", 1088, 110, 18, 92, 9, SS_NOPREFIX | WS_GROUP + LISTBOX 1121, 110, 32, 92, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP + LTEXT "Rodyti šių &tipų failus:", 1089, 6, 104, 90, 9 + COMBOBOX cmb1, 6, 114, 90, 36, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + LTEXT "&Diskai:", 1091, 110, 104, 92, 9 + COMBOBOX cmb2, 110, 114, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "Išsaugoti kaip", 1, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Atsisakyti", 2, 208, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Žinynas", pshHelp, 208, 46, 56, 14, WS_GROUP | WS_TABSTOP + CHECKBOX "Tik &skaitymui", chx1, 208, 68, 56, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +PRINT DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 264, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Spausdinti" +FONT 8, "MS Shell Dlg" +{ + LTEXT "Spausdintuvas:", 1088, 6, 6, 50, 9 + LTEXT "", 1089, 60, 6, 150, 9 + GROUPBOX "Spausdinimo intervalas", grp1, 6, 30, 160, 65, BS_GROUPBOX + RADIOBUTTON "&Viskas", rad1, 16, 45, 60, 12 + RADIOBUTTON "Pažymėtas &tekstas", rad2, 16, 60, 76, 12 + RADIOBUTTON "&Puslapiai", rad3, 16, 75, 60, 12 + DEFPUSHBUTTON "Spausdinti", 1, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Atsisakyti", 2, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Nuostatos", psh1, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP + LTEXT "&nuo:", 1090, 60, 80, 30, 9 + LTEXT "&iki:", 1091, 120, 80, 30, 9 + LTEXT "Spausdinimo &kokybė:", 1092, 6, 100, 76, 9 + COMBOBOX cmb1, 80, 100, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + CHECKBOX "Spausdinti į fai&lą", chx1, 20, 100, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP + CHECKBOX "Suspaustas", chx2, 160, 100, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP +} + + +PRINT_SETUP DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 264, 134 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Spausdintuvo nuostatos" +FONT 8, "MS Shell Dlg" +{ + GROUPBOX "Spausdintuvas", grp1, 6, 10, 180, 65, BS_GROUPBOX + RADIOBUTTON "&Pagrindinis spausdintuvas", rad1, 16, 20, 100, 12 + LTEXT "[nėra]", 1088, 35, 35, 120, 9 + RADIOBUTTON "Spe&cifinis spausdintuvas", rad2, 16, 50, 100, 12 + COMBOBOX cmb1, 35, 65, 149, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + DEFPUSHBUTTON "Gerai", IDOK, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Atsisakyti", IDCANCEL, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Nuostatos", psh1, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP + GROUPBOX "Padėtis", grp2, 6, 85, 100, 50, BS_GROUPBOX + RADIOBUTTON "&Stačias", rad3, 50, 100, 50, 12 + RADIOBUTTON "&Gulsčias", rad4, 50, 115, 50, 12 + ICON "LANDSCAP", stc10, 10, 95, 32, 32 + ICON "PORTRAIT", stc11, 10, 95, 32, 32 + GROUPBOX "Popierius", grp3, 120, 85, 180, 50, BS_GROUPBOX + LTEXT "&Dydis", 1089, 130, 95, 30, 9 + LTEXT "&Šaltinis", 1090, 130, 110, 30, 9 + COMBOBOX cmb2, 155, 95, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP + COMBOBOX cmb3, 155, 110, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP +} + + +CHOOSE_FONT DIALOG DISCARDABLE 13, 54, 264, 147 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Šriftas" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Šriftas:",stc1 ,6,3,40,9 + COMBOBOX cmb1, 6,13,94,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE + LTEXT "Šrifto &stilius:",stc2 ,108,3,44,9 + COMBOBOX cmb2,108,13,64,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE + LTEXT "&Dydis:",stc3,179,3,30,9 + COMBOBOX cmb3,179,13,32,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | + WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE | CBS_SORT + DEFPUSHBUTTON "Gerai",IDOK,218,6,40,14, WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON + PUSHBUTTON "Atsisakyti",IDCANCEL,218,23,40,14,WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Vykdyti", psh3,218,40,40,14,WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Žinynas" , pshHelp,218,57,40,14,WS_GROUP | WS_TABSTOP + GROUPBOX "Savybės",grp1,6,72,84,34,WS_GROUP + CHECKBOX "Per&braukimas", chx1, 10,82,60,10, BS_AUTOCHECKBOX | WS_TABSTOP + CHECKBOX "&Pabraukimas", chx2, 10,94,60,10, BS_AUTOCHECKBOX + LTEXT "Spa&lva:", stc4 ,6,110,30,9 + COMBOBOX cmb4,6,120,84,100,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | + CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP + GROUPBOX "Pavyzdys",grp2,98,72,120,36,WS_GROUP + CTEXT "AaĄąZzŽž",stc5,103,80,109,24,SS_NOPREFIX | NOT WS_VISIBLE + LTEXT "Sim&bolių rinkinys:",stc7 ,98,114,60,9 + COMBOBOX cmb5,98,124,120,90,CBS_DROPDOWNLIST | CBS_HASSTRINGS | + CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP +} + + +CHOOSE_COLOR DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 300, 185 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Spalva" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Pagrindinės spalvos:", 1088, 4, 4, 140, 10 + LTEXT "&Individualios spalvos:", 1089, 4, 106, 140, 10 + LTEXT "Spal. | Vient.", 1090, 150, 151, 48, 10 + LTEXT "&Raudona:", 726 /*1094*/,243,126,32,10 + EDITTEXT 706, 275,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Žalia:",727/*1095*/,243,140,24,10 + EDITTEXT 707, 275,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Mėlyna:",728 /*1096*/,243,154,24,10 + EDITTEXT 708, 275,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Atsp.:" ,723 /*1091*/,194,126,22,10 + EDITTEXT 703, 220,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Sodr.:" ,724 /*1092*/,194,140,22,10 + EDITTEXT 704, 220,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "&Švies.:" ,725 /*1093*/,194,154,22,10 + EDITTEXT 705, 220,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP + CONTROL "" ,720,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,14,140,86 + CONTROL "" ,721,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,116,140,28 + CONTROL "" ,710,"STATIC",WS_BORDER|SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,4,118,116 + CONTROL "" ,702,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP, 278,4,8,116 + CONTROL "" ,709,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP, 152,124,40,26 + DEFPUSHBUTTON "Gerai", 1, 4, 166, 44, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + PUSHBUTTON "Atsisakyti", 2, 52, 166, 44, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Žinynas", pshHelp,100,166, 44, 14 + PUSHBUTTON "&Įdėti prie individualių spalvų", 712/*1024*/, 152, 166, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "A&pibrėžti individualias spalvas >>", 719/*1025*/, 4, 150, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&i",713,300,200,4,14 /* just a dummy: 'i' is like &i in "sol&id" */ +} + + +FINDDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 236, 62 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Rasti" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Ieškoti ko:", -1, 4, 8, 42, 8 + EDITTEXT edt1, 47, 7, 128, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP + CHECKBOX "Tenkina tik &visas žodis", chx1, 4, 26, 82, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP + CHECKBOX "Skirti raidžių &dydį", chx2, 4, 42, 70, 12, BS_AUTOCHECKBOX | WS_TABSTOP + GROUPBOX "Kryptis", grp1, 89, 26, 86, 28 + CONTROL "&Aukštyn", rad1, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 93, 38, 40, 12 + CONTROL "&Žemyn", rad2, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 134, 38, 36, 12 + + DEFPUSHBUTTON "&Rasti kitą", IDOK, 182, 5, 50, 14, WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON + PUSHBUTTON "Atsisakyti", IDCANCEL , 182, 23, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Žinynas", pshHelp , 182, 45, 50, 14, WS_GROUP | WS_TABSTOP +} + + +REPLACEDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 230, 94 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Pakeisti" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Ieškoti ko:", -1, 4, 9, 48, 8 + EDITTEXT edt1, 54, 7, 114, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP + LTEXT "Pa&keisti kuo:", -1, 4, 26, 48, 8 + EDITTEXT edt2, 54, 24, 114, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP + CHECKBOX "Tenkina tik &visas žodis", chx1, 5, 46, 104, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP + CHECKBOX "Skirti raidžių &dydį", chx2, 5, 62, 70, 12, BS_AUTOCHECKBOX | WS_TABSTOP + + DEFPUSHBUTTON "&Rasti kitą", IDOK, 174, 4, 50, 14, WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON + PUSHBUTTON "&Pakeisti", psh1 , 174, 21, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "P&akeisti visus", psh2 , 174, 38, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "Atsisakyti", IDCANCEL , 174, 55, 50, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Žinynas", pshHelp , 174, 75, 50, 14, WS_GROUP | WS_TABSTOP +} + + +PRINT32 DIALOG LOADONCALL MOVEABLE DISCARDABLE 32, 32, 288, 186 +STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | + DS_CONTEXTHELP | DS_3DLOOK +CAPTION "Spausdinti" +FONT 8, "MS Shell Dlg" +{ + DEFPUSHBUTTON "Gerai", IDOK, 180,164, 48,14, WS_GROUP | BS_DEFPUSHBUTTON + PUSHBUTTON "Atsisakyti", IDCANCEL, 232,164, 48,14, WS_GROUP + PUSHBUTTON "&Žinynas", pshHelp, 50, 161, 48,14, WS_GROUP + + GROUPBOX "Spausdintuvas", grp4, 8, 4, 272,84, WS_GROUP + CONTROL "Spausdinti į fai&lą", chx1, "Button",BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,212,70,65,12 + PUSHBUTTON "&Nuostatos", psh2, 212, 17, 60,14, WS_GROUP + LTEXT "&Vardas:", stc6, 16, 20, 36,8 + COMBOBOX cmb4, 58, 18, 146,146,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP + LTEXT "Būsena:", stc8, 16, 36, 36,10, SS_NOPREFIX + LTEXT "Netikra būsena", stc12, 58, 36, 218,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Tipas:", stc7, 16, 48, 36,10, SS_NOPREFIX + LTEXT "Netikras tipas", stc11, 58, 48, 218,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Vieta:", stc10, 16, 60, 36,10, SS_NOPREFIX + LTEXT "Netikra vieta", stc14, 58, 60, 218,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Komentaras:", stc9, 16, 72, 42,10, SS_NOPREFIX + LTEXT "Netikras komentaras", stc13, 58, 72, 146,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + + GROUPBOX "Kopijos", grp2, 160, 92, 120,64, WS_GROUP + LTEXT "&Kopijų skaičius:",stc5,168,108,68,8 + ICON "", ico3, 162,124, 76,24, WS_GROUP | SS_CENTERIMAGE + CONTROL "Su&dėst.", chx2,"Button",BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,240,130,36,12 + EDITTEXT edt3, 240,106, 32,12, WS_GROUP | ES_NUMBER + + GROUPBOX "Intervalas", grp1, 8,92, 144,64, WS_GROUP + CONTROL "V&isi puslapiai", rad1,"Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,16,106,64,12 + CONTROL "Pu&slapiai", rad3,"Button",BS_AUTORADIOBUTTON,16,122,40,12 + CONTROL "Pažymėtas &tekstas", rad2,"Button",BS_AUTORADIOBUTTON,16,138,72,12 + EDITTEXT edt1, 74,122, 26,12, WS_GROUP | ES_NUMBER + EDITTEXT edt2, 118,122, 26,12, WS_GROUP | ES_NUMBER + RTEXT "nuo:", stc2, 56,124, 16,8 + RTEXT "iki:", stc3, 100,124, 16,8 +} + +PRINT32_SETUP DIALOG LOADONCALL MOVEABLE DISCARDABLE 32, 32, 288, 178 +STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | + DS_CONTEXTHELP | DS_3DLOOK +CAPTION "Spausdintuvo nuostatos" +FONT 8, "MS Shell Dlg" +BEGIN + DEFPUSHBUTTON "Gerai",IDOK,180,156,48,14,WS_GROUP + PUSHBUTTON "Atsisakyti",IDCANCEL,232,156,48,14 +/* PUSHBUTTON "Network...", psh5, 284,156,48,14 */ + + GROUPBOX "Spausdintuvas", grp4, 8, 4, 272,84, WS_GROUP + PUSHBUTTON "&Nuostatos", psh2, 212, 17, 60,14, WS_GROUP + LTEXT "&Vardas:", stc6, 16, 20, 36,8 + COMBOBOX cmb1, 58, 18, 146,146,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP + LTEXT "Būsena:", stc8, 16, 36, 36,10, SS_NOPREFIX + LTEXT "Netikra būsena", stc12, 58, 36, 218,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Tipas:", stc7, 16, 48, 36,10, SS_NOPREFIX + LTEXT "Netikras tipas", stc11, 58, 48, 218,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Vieta:", stc10, 16, 60, 36,10, SS_NOPREFIX + LTEXT "Netikra vieta", stc14, 58, 60, 218,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Komentaras:", stc9, 16, 72, 42,10, SS_NOPREFIX + LTEXT "Netikras komentaras", stc13, 58, 72, 218,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + + GROUPBOX "Popierius", grp2, 8, 92, 164,56, WS_GROUP + LTEXT "&Dydis:", stc2, 16,108, 36, 8 + COMBOBOX cmb2, 52,106, 112,112,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP + LTEXT "&Šaltinis:", stc3, 16,128, 36, 8 + COMBOBOX cmb3, 52,126, 112,112,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP + + GROUPBOX "Padėtis", grp1, 180, 92, 100,56, WS_GROUP + ICON "", ico1, 195,112, 18,20, WS_GROUP + CONTROL "&Stačias", rad1,"Button",BS_AUTORADIOBUTTON | WS_GROUP |WS_TABSTOP,224,106,52,12 + CONTROL "&Gulsčias", rad2,"Button",BS_AUTORADIOBUTTON,224,126,52,12 +END + +PAGESETUPDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 32, 32, 240, 240 +STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU +CAPTION "Puslapio nuostatos" +FONT 8, "MS Shell Dlg" +BEGIN + CONTROL "", rct1, "Static", SS_WHITERECT, 80, 8, 80, 80 + CONTROL "", rct2, "Static", SS_GRAYRECT, 160, 12, 4, 80 + CONTROL "", rct3, "Static", SS_GRAYRECT, 84, 88, 80, 4 + GROUPBOX "Popierius", grp2, 8, 96, 224, 56, BS_GROUPBOX + LTEXT "&Dydis:", stc2, 16, 112, 36, 8 + COMBOBOX cmb2, 64, 110, 160, 160, CBS_SIMPLE|CBS_DROPDOWN|CBS_SORT|WS_GROUP|WS_TABSTOP|WS_VSCROLL + LTEXT "Dė&klas:", stc3, 16, 132, 36, 8 + COMBOBOX cmb3, 64, 130, 160, 160, CBS_SIMPLE|CBS_DROPDOWN|CBS_SORT|WS_GROUP|WS_TABSTOP|WS_VSCROLL + GROUPBOX "Padėtis", grp1, 8, 156, 64, 56, BS_GROUPBOX + AUTORADIOBUTTON "&Stačias", rad1, 16, 170, 52, 12, BS_AUTORADIOBUTTON + AUTORADIOBUTTON "&Gulsčias", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON + GROUPBOX "Paraštės", grp4, 80, 156, 152, 56, BS_GROUPBOX + LTEXT "&Kairėje:", stc15, 88, 172, 30, 8 + EDITTEXT edt4, 119, 170, 36, 12, WS_TABSTOP|WS_GROUP|WS_BORDER + LTEXT "D&ešinėje:", stc16, 159, 172, 32, 8 + EDITTEXT edt6, 192, 170, 36, 12, WS_TABSTOP|WS_GROUP|WS_BORDER + LTEXT "&Viršutinė:", stc17, 88, 192, 30, 8 + EDITTEXT edt5, 119, 190, 36, 12, WS_TABSTOP|WS_GROUP|WS_BORDER + LTEXT "&Apatinė:", stc18, 159, 192, 32, 8 + EDITTEXT edt7, 192, 190, 36, 12, WS_TABSTOP|WS_GROUP|WS_BORDER + DEFPUSHBUTTON "Gerai", IDOK, 61, 220, 50, 14, BS_PUSHBUTTON + PUSHBUTTON "Atsisakyti", IDCANCEL, 116, 220, 50, 14 + PUSHBUTTON "S&pausdintuvas...", psh3, 171, 220, 61, 14 +END + +NEWFILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 280, 164 +STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_VISIBLE | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_CLIPCHILDREN +CAPTION "Atverti" +FONT 8, "MS Shell Dlg" +{ + LTEXT "&Vieta:",IDC_LOOKINSTATIC,4,6,43,8, SS_NOTIFY + COMBOBOX IDC_LOOKIN,49,3,132,100,CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | WS_VSCROLL | WS_TABSTOP + + LTEXT "" , IDC_TOOLBARSTATIC, 181, 2, 102, 17, NOT WS_GROUP | NOT WS_VISIBLE + LISTBOX IDC_SHELLSTATIC,4,20,272,85, LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN | WS_HSCROLL | NOT WS_VISIBLE + + LTEXT "Failo &vardas:",IDC_FILENAMESTATIC,5,112,46,8, SS_NOTIFY + EDITTEXT IDC_FILENAME,54,110,155,12,ES_AUTOHSCROLL + + LTEXT "Failų &tipai:",IDC_FILETYPESTATIC,5,128,42,8, SS_NOTIFY + COMBOBOX IDC_FILETYPE,54,126,155,53,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP + + CONTROL "Atverti tik &skaitymui",IDC_OPENREADONLY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,54,145,100,10 + + DEFPUSHBUTTON "&Atverti", IDOK,222,110,50,14 + PUSHBUTTON "Atsisakyti", IDCANCEL,222,128,50,14 + PUSHBUTTON "&Žinynas", pshHelp,222,145,50,14 +} + +STRINGTABLE DISCARDABLE +{ + IDS_ABOUTBOX "&Apie FolderPicker testą" + IDS_DOCUMENTFOLDERS "Dokumentų aplankai" + IDS_PERSONAL "Dokumentai" + IDS_FAVORITES "Adresynas" + IDS_PATH "Sistemos kelias" + IDS_DESKTOP "Darbalaukis" + IDS_FONTS "Šriftai" + IDS_MYCOMPUTER "Kompiuteris" +} + +STRINGTABLE DISCARDABLE +{ + IDS_SYSTEMFOLDERS "Sistemos aplankai" + IDS_LOCALHARDRIVES "Vietiniai standieji diskai" + IDS_FILENOTFOUND "Failas nerastas" + IDS_VERIFYFILE "Prašome patikrinti ar buvo pateiktas korektiškas failo vardas" + IDS_CREATEFILE "Failas neegzistuoja.\nAr norite sukurti failą?" + IDS_OVERWRITEFILE "Failas jau egzistuoja.\nAr norite jį pakeisti?" + IDS_INVALID_FILENAME_TITLE "Kelyje yra netinkamų simbolių" + IDS_INVALID_FILENAME "Failo vardas negali turėti šių simbolių:\n / : < > |" + IDS_PATHNOTEXISTING "Kelias neegzistuoja" + IDS_FILENOTEXISTING "Failas neegzistuoja" +} + +STRINGTABLE DISCARDABLE +{ + IDS_UPFOLDER "Aukštyn vienu lygiu" + IDS_NEWFOLDER "Sukurti naują aplanką" + IDS_LISTVIEW "Sąrašas" + IDS_REPORTVIEW "Išsamiai" + IDS_TODESKTOP "Pereiti į darbalaukį" +} + +STRINGTABLE DISCARDABLE +{ + PD32_PRINT_TITLE "Spausdinti" + + PD32_VALUE_UREADABLE "Neperskaitomas įrašas" + PD32_INVALID_PAGE_RANGE "Ši reikšmė nepatenka į puslapių intervalą.\n\ +Prašome įvesti reikšmę tarp %d ir %d." + PD32_FROM_NOT_ABOVE_TO "'Nuo' reikšmė negali viršyti \ +'iki' reikšmės." + PD32_MARGINS_OVERLAP "Paraštės persidengia arba išeina už \ +popieriaus ribų.\nPrašome įvesti paraštes iš naujo." + PD32_NR_OF_COPIES_EMPTY "Skaitinė 'Kopijų skaičius' \ +reikšmė negali būti tuščia." + PD32_TOO_LARGE_COPIES "Toks didelis kopijų skaičius yra \ +nepalaikomas jūsų spausdintuvo.\nPrašome įvesti reikšmę tarp 1 ir %d." + PD32_PRINT_ERROR "Įvyko spausdintuvo klaida." + PD32_NO_DEFAULT_PRINTER "Nenurodytas pagrindinis spausdintuvas." + PD32_CANT_FIND_PRINTER "Nepavyko rasti spausdintuvo." + PD32_OUT_OF_MEMORY "Baigėsi atmintis." + PD32_GENERIC_ERROR "Įvyko klaida." + PD32_DRIVER_UNKNOWN "Nežinoma spausdintuvo tvarkyklė." + PD32_NO_DEVICES "Prieš atlikdami su spausdintuvu susijusius veiksmus, \ +tokius kaip puslapio nuostatų keitimas ar dokumento spausdinimas, turite įdiegti spausdintuvą. \ +Prašome įdeigti spausdintuvą ir pakartoti." + + PD32_DEFAULT_PRINTER "Pagrindinis spausdintuvas; " + PD32_NR_OF_DOCUMENTS_IN_QUEUE "Eilėje yra %d dokumentų" + PD32_MARGINS_IN_INCHES "Paraštės [coliai]" + PD32_MARGINS_IN_MILLIMETERS "Paraštės [mm]" + PD32_MILLIMETERS "mm" + + PD32_PRINTER_STATUS_READY "Parengtas" + PD32_PRINTER_STATUS_PAUSED "Pristabdytas; " + PD32_PRINTER_STATUS_ERROR "Klaida; " + PD32_PRINTER_STATUS_PENDING_DELETION "Laukia pašalinimo; " + PD32_PRINTER_STATUS_PAPER_JAM "Užstrigęs popierius; " + PD32_PRINTER_STATUS_PAPER_OUT "Pasibaigęs popierius; " + PD32_PRINTER_STATUS_MANUAL_FEED "Rankinis popieriaus padavimas; " + PD32_PRINTER_STATUS_PAPER_PROBLEM "Problema su popieriumi; " + PD32_PRINTER_STATUS_OFFLINE "Spausdintuvas atjungtas; " + PD32_PRINTER_STATUS_IO_ACTIVE "Aktyvus Į/I; " + PD32_PRINTER_STATUS_BUSY "Spausdintuvas užimtas; " + PD32_PRINTER_STATUS_PRINTING "Spausdina; " + PD32_PRINTER_STATUS_OUTPUT_BIN_FULL "Išvedimo dėklas pilnas; " + PD32_PRINTER_STATUS_NOT_AVAILABLE "Nepasiekiama; " + PD32_PRINTER_STATUS_WAITING "Laukia; " + PD32_PRINTER_STATUS_PROCESSING "Apdorojimas; " + PD32_PRINTER_STATUS_INITIALIZING "Inicijuojama; " + PD32_PRINTER_STATUS_WARMING_UP "Kaista; " + PD32_PRINTER_STATUS_TONER_LOW "Baigiasi dažai; " + PD32_PRINTER_STATUS_NO_TONER "Nėra dažų; " + PD32_PRINTER_STATUS_PAGE_PUNT "Puslapis perkrautas; " + PD32_PRINTER_STATUS_USER_INTERVENTION "Pertraukta naudotojo; " + PD32_PRINTER_STATUS_OUT_OF_MEMORY "Baigėsi atmintis; " + PD32_PRINTER_STATUS_DOOR_OPEN "Spausdintuvo durelės atidarytos; " + PD32_PRINTER_STATUS_SERVER_UNKNOWN "Spausdinimo serveris nežinomas; " + PD32_PRINTER_STATUS_POWER_SAVE "Energijos taupymo režimas; " +} + +STRINGTABLE DISCARDABLE /* Font styles */ +{ + IDS_FONT_REGULAR "Normalus" + IDS_FONT_BOLD "Pusjuodis" + IDS_FONT_ITALIC "Kursyvas" + IDS_FONT_BOLD_ITALIC "Pusjuodis kursyvas" +} + +STRINGTABLE DISCARDABLE /* Color names */ +{ + IDS_COLOR_BLACK "Juoda" + IDS_COLOR_MAROON "Kaštoninė" + IDS_COLOR_GREEN "Žalia" + IDS_COLOR_OLIVE "Alyvinė" + IDS_COLOR_NAVY "Ultramarinas" + IDS_COLOR_PURPLE "Purpurinė" + IDS_COLOR_TEAL "Neutrali ciano" + IDS_COLOR_GRAY "Pilka" + IDS_COLOR_SILVER "Sidabrinė" + IDS_COLOR_RED "Raudona" + IDS_COLOR_LIME "Gelsvai žalsva" + IDS_COLOR_YELLOW "Geltona" + IDS_COLOR_BLUE "Mėlyna" + IDS_COLOR_FUCHSIA "Fuksija" + IDS_COLOR_AQUA "Akvarelinis cianas" + IDS_COLOR_WHITE "Balta" +} + +STRINGTABLE DISCARDABLE +{ + IDS_FONT_SIZE "Pasirinkite šrifto dydį tarp %d ir %d taškų." + IDS_SAVE_BUTTON "&Išsaugoti" + IDS_SAVE_IN "&Kur išsaugoti:" + IDS_SAVE "Išsaugoti" + IDS_SAVE_AS "Išsaugoti kaip" + IDS_OPEN_FILE "Atverti failą" +} +#pragma code_page(default) diff --git a/reactos/dll/win32/comdlg32/cdlg_Nl.rc b/reactos/dll/win32/comdlg32/cdlg_Nl.rc index 59a062e8d19..baeb880a875 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Nl.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Nl.rc @@ -336,13 +336,13 @@ BEGIN AUTORADIOBUTTON "&Liggend", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Borders", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "L&inks:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Rechts:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "B&oven:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Onder:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Annuleren", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "P&rinter...", psh3, 184, 220, 48, 14 @@ -415,8 +415,8 @@ printer installeren. Installeer een printer en probeer het opnieuw." PD32_NR_OF_DOCUMENTS_IN_QUEUE "Er staan %d documenten in de \ wachtrij" PD32_MARGINS_IN_INCHES "Marges [inch]" - PD32_MARGINS_IN_MILIMETERS "Marges [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Marges [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Klaar" PD32_PRINTER_STATUS_PAUSED "Gepauseerd, " diff --git a/reactos/dll/win32/comdlg32/cdlg_No.rc b/reactos/dll/win32/comdlg32/cdlg_No.rc index b974bb97a54..e1d35f5416a 100644 --- a/reactos/dll/win32/comdlg32/cdlg_No.rc +++ b/reactos/dll/win32/comdlg32/cdlg_No.rc @@ -313,13 +313,13 @@ BEGIN AUTORADIOBUTTON "&Liggende", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Rammer", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "V&enstre:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "Hy&re:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "T&opp:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Bunn:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Avbryt", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "Sk&river...", psh3, 184, 220, 48, 14 @@ -408,8 +408,8 @@ Oppgi en verdi mellom %d og %d." PD32_DEFAULT_PRINTER "Standardskriver; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Det er %d dokumenter i ken" PD32_MARGINS_IN_INCHES "Marger (tommer)" - PD32_MARGINS_IN_MILIMETERS "Marger (mm)" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Marger (mm)" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Klar" PD32_PRINTER_STATUS_PAUSED "Satt p pause; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Pl.rc b/reactos/dll/win32/comdlg32/cdlg_Pl.rc index bbbfbcbeb18..796054b6db3 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Pl.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Pl.rc @@ -315,13 +315,13 @@ BEGIN AUTORADIOBUTTON "P&ozioma", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Marginesy", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Lewy:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Prawy:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Grny:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Dolny:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Anuluj", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "Dr&ukarka...", psh3, 184, 220, 48, 14 @@ -409,8 +409,8 @@ Po zainstalowaniu spr PD32_DEFAULT_PRINTER "Domylna drukarka; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "W kolejce znajduj si %d dokumenty" PD32_MARGINS_IN_INCHES "Marginesy [cale]" - PD32_MARGINS_IN_MILIMETERS "Marginesy [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Marginesy [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Gotowy" PD32_PRINTER_STATUS_PAUSED "Przerwany; " PD32_PRINTER_STATUS_ERROR "Bd; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Pt.rc b/reactos/dll/win32/comdlg32/cdlg_Pt.rc index b9adcb540af..2da9de53fdf 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Pt.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Pt.rc @@ -622,13 +622,13 @@ BEGIN AUTORADIOBUTTON "&Paisagem", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Bordas", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Esquerda:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Direita:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Superior:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Inferior:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Cancelar", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "Im&pressora...", psh3, 184, 220, 50, 14 @@ -654,13 +654,13 @@ BEGIN AUTORADIOBUTTON "&Paisagem", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Bordas", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Esquerda:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Direita:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Superior:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Inferior:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Cancelar", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "Im&pressora...", psh3, 184, 220, 50, 14 @@ -833,8 +833,8 @@ Please install one and retry." PD32_DEFAULT_PRINTER "Impressora Padro; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Existem %d documentos na fila" PD32_MARGINS_IN_INCHES "Margens [polegadas]" - PD32_MARGINS_IN_MILIMETERS "Margens [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margens [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Pronto" PD32_PRINTER_STATUS_PAUSED "Pausada; " @@ -892,8 +892,8 @@ Por favor instale uma e tente novamente." PD32_DEFAULT_PRINTER "Impressora Predefinida; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Existem %d documentos na fila" PD32_MARGINS_IN_INCHES "Margens [polegadas]" - PD32_MARGINS_IN_MILIMETERS "Margens [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margens [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Pronto" PD32_PRINTER_STATUS_PAUSED "Pausada; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Ro.rc b/reactos/dll/win32/comdlg32/cdlg_Ro.rc index 9b888a553cb..0c58bfca874 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Ro.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Ro.rc @@ -316,13 +316,13 @@ BEGIN AUTORADIOBUTTON "&Peisaj", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Margini", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "S&tânga:", stc15, 84, 172, 27, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Dreapta:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Sus:", stc17, 84, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Jos:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Renunță", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&Imprimantă...", psh3, 184, 220, 48, 14 @@ -408,8 +408,8 @@ STRINGTABLE DISCARDABLE PD32_DEFAULT_PRINTER "Imprimantă implicită; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "%d documente sunt în coadă" PD32_MARGINS_IN_INCHES "Margini [țoli]" - PD32_MARGINS_IN_MILIMETERS "Margini [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Margini [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Gata" PD32_PRINTER_STATUS_PAUSED "Pauză; " @@ -477,4 +477,4 @@ STRINGTABLE DISCARDABLE IDS_OPEN_FILE "Deschide fișier" } -#pragma code_page(default){ +#pragma code_page(default) diff --git a/reactos/dll/win32/comdlg32/cdlg_Ru.rc b/reactos/dll/win32/comdlg32/cdlg_Ru.rc index 821cc048a70..c5af92cb009 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Ru.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Ru.rc @@ -312,13 +312,13 @@ BEGIN AUTORADIOBUTTON "&", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&:", stc15, 88, 172, 31, 8 - EDITTEXT edt4, 121, 170, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 121, 170, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc17, 88, 192, 31, 8 - EDITTEXT edt5, 121, 190, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 121, 190, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 29, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&...", psh3, 184, 220, 48, 14 @@ -411,8 +411,8 @@ STRINGTABLE DISCARDABLE PD32_DEFAULT_PRINTER " ; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "%d " PD32_MARGINS_IN_INCHES " [)" - PD32_MARGINS_IN_MILIMETERS " []" - PD32_MILIMETERS "" + PD32_MARGINS_IN_MILLIMETERS " []" + PD32_MILLIMETERS "" PD32_PRINTER_STATUS_READY "" PD32_PRINTER_STATUS_PAUSED "; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Si.rc b/reactos/dll/win32/comdlg32/cdlg_Si.rc index 59d5e0e58de..0650f535920 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Si.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Si.rc @@ -315,13 +315,13 @@ BEGIN AUTORADIOBUTTON "L&ežeče", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Robovi", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Levo:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Desno:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Zgoraj:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Spodaj:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "V redu", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Prekliči", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&Tiskalnik ...", psh3, 184, 220, 48, 14 @@ -413,8 +413,8 @@ poskusite znova." PD32_DEFAULT_PRINTER "Priveti tiskalnik; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "V čakalni vrsti je %d dokumentov" PD32_MARGINS_IN_INCHES "Robovi [palci]" - PD32_MARGINS_IN_MILIMETERS "Robovi [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Robovi [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Pripravljen" PD32_PRINTER_STATUS_PAUSED "Začasno zaustavljen; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Sk.rc b/reactos/dll/win32/comdlg32/cdlg_Sk.rc index 747496a73ac..36d2a2a7633 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Sk.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Sk.rc @@ -1,5 +1,6 @@ /* * Copyright 2000 Simen Zamecnik + * Copyright 2008 Mrio Kamr (kario@szm.sk) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -26,10 +27,10 @@ LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT OPEN_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Otvorenie sboru" +CAPTION "Otvori" FONT 8, "MS Shell Dlg" { - LTEXT "&Meno sboru:", 1090, 6, 6, 76, 9 + LTEXT "&Nzov sboru:", 1090, 6, 6, 76, 9 EDITTEXT 1152, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP LTEXT "&Adresre:", -1, 110, 6, 92, 9 @@ -48,10 +49,10 @@ FONT 8, "MS Shell Dlg" SAVE_FILE DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 275, 134 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Uloi pod menom..." +CAPTION "Uloi ako..." FONT 8, "MS Shell Dlg" { - LTEXT "&Meno sboru:", 1090, 6, 6, 76, 9 + LTEXT "&Nzov sboru:", 1090, 6, 6, 76, 9 EDITTEXT 1152, 6, 16, 90, 12, ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_TABSTOP LISTBOX 1120, 6, 32, 90, 68, LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | LBS_DISABLENOSCROLL | WS_TABSTOP LTEXT "&Adresre:", -1, 110, 6, 92, 9 @@ -61,7 +62,7 @@ FONT 8, "MS Shell Dlg" COMBOBOX 1136, 6, 114, 90, 36, CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP LTEXT "&Diskov jednotky:", 1091, 110, 104, 92, 9 COMBOBOX 1137, 110, 114, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP - DEFPUSHBUTTON "Ulo pod menom", IDOK, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + DEFPUSHBUTTON "Uloi ako", 1, 208, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Zrui", IDCANCEL, 208, 24, 56, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "&Pomoc", 1038, 208, 46, 56, 14, WS_GROUP | WS_TABSTOP CHECKBOX "&Len na tanie", 1040, 208, 68, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP @@ -83,7 +84,7 @@ FONT 8, "MS Shell Dlg" PUSHBUTTON "Zrui", IDCANCEL, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "&Nastavi...", 1024, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP LTEXT "&Od:", 1090, 60, 80, 30, 9 - LTEXT "&Po:", 1091, 120, 80, 30, 9 + LTEXT "&Do:", 1091, 120, 80, 30, 9 LTEXT "&Kvalita tlae:", 1092, 6, 100, 76, 9 COMBOBOX 1136, 80, 100, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP CHECKBOX "Tlai do &sboru", 1040, 20, 100, 50, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP @@ -101,7 +102,7 @@ FONT 8, "MS Shell Dlg" LTEXT "[iadna]", 1088, 35, 35, 120, 9 RADIOBUTTON "pecifick &tlaiare", 1057, 16, 50, 80, 12 COMBOBOX 1136, 35, 65, 149, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP - DEFPUSHBUTTON "Ok", IDOK, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP + DEFPUSHBUTTON "OK", IDOK, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Zrui", IDCANCEL, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "ai&e voby...", 1024, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP GROUPBOX "Orientcia", 1073, 6, 85, 100, 50, BS_GROUPBOX @@ -119,13 +120,13 @@ FONT 8, "MS Shell Dlg" CHOOSE_FONT DIALOG DISCARDABLE 13, 54, 264, 147 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Font" +CAPTION "Psmo" FONT 8, "MS Shell Dlg" { - LTEXT "&Font:",1088 ,6,3,40,9 + LTEXT "&Psmo:",1088 ,6,3,40,9 COMBOBOX 1136 ,6,13,94,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE - LTEXT "&tl fontu:",1089 ,108,3,44,9 + LTEXT "&tl psma:",1089 ,108,3,44,9 COMBOBOX 1137,108,13,64,54, CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL | WS_VSCROLL | WS_TABSTOP | CBS_SIMPLE LTEXT "&Vekos:",1090,179,3,30,9 @@ -143,30 +144,31 @@ FONT 8, "MS Shell Dlg" CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP GROUPBOX "Vzorka",grp2,98,72,120,36,WS_GROUP CTEXT "AaBbYyZz",stc5,103,80,109,24,SS_NOPREFIX | NOT WS_VISIBLE - LTEXT "Scr&ipt (translate):",stc7 ,98,114,80,9 + LTEXT "Scr&ipt:",stc7 ,98,114,40,9 COMBOBOX cmb5,98,124,120,90,CBS_DROPDOWNLIST | CBS_HASSTRINGS | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP } + CHOOSE_COLOR DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 300, 185 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Farby" FONT 8, "MS Shell Dlg" { - LTEXT "&Zkladn farby:", 1088, 4, 4, 140, 10 - LTEXT "&Uvatesk farby:", 1089, 4, 106, 140, 10 - LTEXT "Farba | Spoj&it", 1090, 150, 151, 48, 10 + LTEXT "Zkladn &farby:", 1088, 4, 4, 140, 10 + LTEXT "&Vlastn farby:", 1089, 4, 106, 140, 10 + LTEXT "Farba | Pl&n", 1090, 150, 151, 48, 10 LTEXT "e&rven:", 726 /*1094*/,249,126,24,10 EDITTEXT 706, 275,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP LTEXT "&Zelen:",727/*1095*/,249,140,24,10 EDITTEXT 707, 275,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP LTEXT "&Modr:",728 /*1096*/,249,154,24,10 EDITTEXT 708, 275,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "&Hue:" ,723 /*1091*/,202,126,22,10 + LTEXT "Od&tie:" ,723 /*1091*/,202,126,22,10 EDITTEXT 703, 226,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "&Sat:" ,724 /*1092*/,202,140,22,10 + LTEXT "&Stos:" ,724 /*1092*/,202,140,22,10 EDITTEXT 704, 226,138,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP - LTEXT "&Lum:" ,725 /*1093*/,202,154,22,10 + LTEXT "&Jas:" ,725 /*1093*/,202,154,22,10 EDITTEXT 705, 226,152,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP CONTROL "" ,720,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,14,140,86 CONTROL "" ,721,"STATIC",SS_SIMPLE|WS_TABSTOP|WS_GROUP,4,116,140,28 @@ -176,8 +178,8 @@ FONT 8, "MS Shell Dlg" DEFPUSHBUTTON "OK", 1, 4, 166, 44, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Zrui", 2, 52, 166, 44, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "Pomoc", 1038,100,166, 44, 14 - PUSHBUTTON "&Prida k uvateovm farbm", 712/*1024*/, 152, 166, 142, 14, WS_GROUP | WS_TABSTOP - PUSHBUTTON "&Definova uvatesk farby >>", 719/*1025*/, 4, 150, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "Prid&a medzi vlastn farby", 712/*1024*/, 152, 166, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Definova vlastn farby >>", 719/*1025*/, 4, 150, 142, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "&i",713,300,200,4,14 /* just a dummy: 'i' is like &i in "sol&id" */ } @@ -211,7 +213,7 @@ FONT 8, "MS Shell Dlg" LTEXT "&Zameni za:", -1, 4, 26, 48, 8 EDITTEXT 1153, 54, 24, 114, 12, ES_AUTOHSCROLL | WS_BORDER | WS_GROUP | WS_TABSTOP CHECKBOX "Len &cel slov", 1040, 5, 46, 104, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP - CHECKBOX "&Rozliova mal a vek psmen", 1041, 5, 62, 59, 12, BS_AUTOCHECKBOX | WS_TABSTOP + CHECKBOX "&Rozliova mal a vek psmen", 1041, 5, 62, 59, 12, BS_AUTOCHECKBOX | WS_TABSTOP DEFPUSHBUTTON "Njs &alie", 1, 174, 4, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Za&meni", 1024, 174, 21, 50, 14, WS_GROUP | WS_TABSTOP @@ -234,7 +236,7 @@ FONT 8, "MS Shell Dlg" GROUPBOX "Tlaiare", grp4, 8, 4, 272,84, WS_GROUP CONTROL "tlai do &sboru", chx1, "Button",BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,212,70,64,12 PUSHBUTTON "&Vlastnosti", psh2, 212, 17, 60,14, WS_GROUP - LTEXT "&Meno:", stc6, 16, 20, 36,8 + LTEXT "&Nzov:", stc6, 16, 20, 36,8 COMBOBOX cmb4, 52, 18, 152,152,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP LTEXT "Stav:", stc8, 16, 36, 36,10, SS_NOPREFIX LTEXT "Dummy State", stc12, 52, 36, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP @@ -273,7 +275,7 @@ BEGIN GROUPBOX "Tlaiare", grp4, 8, 4, 272,84, WS_GROUP PUSHBUTTON "&Vlastnosti", psh2, 212, 17, 60,14, WS_GROUP - LTEXT "&Meno:", stc6, 16, 20, 36,8 + LTEXT "&Nzov:", stc6, 16, 20, 36,8 COMBOBOX cmb1, 52, 18, 152,152,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP LTEXT "Stav:", stc8, 16, 36, 36,10, SS_NOPREFIX LTEXT "Dummy State", stc12, 52, 36, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP @@ -296,6 +298,36 @@ BEGIN CONTROL "Na &rku", rad2,"Button",BS_AUTORADIOBUTTON,224,126,52,12 END +PAGESETUPDLGORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 32, 32, 240, 240 +STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU +CAPTION "Setup Page" +FONT 8, "MS Shell Dlg" +BEGIN + CONTROL "", rct1, "Static", SS_WHITERECT, 80, 8, 80, 80 + CONTROL "", rct2, "Static", SS_GRAYRECT, 160, 12, 4, 80 + CONTROL "", rct3, "Static", SS_GRAYRECT, 84, 88, 80, 4 + GROUPBOX "Paper", grp2, 8, 96, 224, 56, BS_GROUPBOX + LTEXT "&Size:", stc2, 16, 112, 36, 8 + COMBOBOX cmb2, 64, 110, 160, 160, CBS_SIMPLE|CBS_DROPDOWN|CBS_SORT|WS_GROUP|WS_TABSTOP|WS_VSCROLL + LTEXT "&Tray:", stc3, 16, 132, 36, 8 + COMBOBOX cmb3, 64, 130, 160, 160, CBS_SIMPLE|CBS_DROPDOWN|CBS_SORT|WS_GROUP|WS_TABSTOP|WS_VSCROLL + GROUPBOX "Orientation", grp1, 8, 156, 64, 56, BS_GROUPBOX + AUTORADIOBUTTON "&Portrait", rad1, 16, 170, 52, 12, BS_AUTORADIOBUTTON + AUTORADIOBUTTON "&Landscape", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON + GROUPBOX "Borders", grp4, 80, 156, 152, 56, BS_GROUPBOX + LTEXT "L&eft:", stc15, 88, 172, 21, 8 + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + LTEXT "&Right:", stc16, 159, 172, 27, 8 + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + LTEXT "T&op:", stc17, 88, 192, 21, 8 + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + LTEXT "&Bottom:", stc18, 159, 192, 23, 8 + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + DEFPUSHBUTTON "OK", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON + PUSHBUTTON "Zrui", IDCANCEL, 126, 220, 50, 14 + PUSHBUTTON "P&rinter...", psh3, 184, 220, 48, 14 +END + NEWFILEOPENORD DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 280, 164 STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_VISIBLE | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_CLIPCHILDREN CAPTION "Otvori" @@ -307,7 +339,7 @@ FONT 8, "MS Shell Dlg" LTEXT "" , IDC_TOOLBARSTATIC, 181, 2, 102, 17, NOT WS_GROUP | NOT WS_VISIBLE LISTBOX IDC_SHELLSTATIC,4,20,272,85, LBS_SORT | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN | WS_HSCROLL | NOT WS_VISIBLE - LTEXT "&Meno sboru:",IDC_FILENAMESTATIC,5,112,46,8, SS_NOTIFY + LTEXT "&Nzov sboru:",IDC_FILENAMESTATIC,5,112,46,8, SS_NOTIFY EDITTEXT IDC_FILENAME,54,110,155,12,ES_AUTOHSCROLL LTEXT "&Typ sborov",IDC_FILETYPESTATIC,5,128,42,8, SS_NOTIFY @@ -325,11 +357,11 @@ STRINGTABLE DISCARDABLE IDS_ABOUTBOX "&O teste uchopovania adresrov" IDS_DOCUMENTFOLDERS "Adresr dokumentov" IDS_PERSONAL "Moje dokumenty" - IDS_FAVORITES "Moji favoriti" + IDS_FAVORITES "Obben poloky" IDS_PATH "Systmov cesta" IDS_DESKTOP "Pracovn plocha" - IDS_FONTS "Fonty" - IDS_MYCOMPUTER "Mj pota" + IDS_FONTS "Psma" + IDS_MYCOMPUTER "Tento pota" } STRINGTABLE DISCARDABLE @@ -341,7 +373,7 @@ STRINGTABLE DISCARDABLE IDS_CREATEFILE "File does not exist\nDo you want to create file" IDS_OVERWRITEFILE "File does already exist.\nDo you want to replace it?" IDS_INVALID_FILENAME_TITLE "Invalid character(s) in path" - IDS_INVALID_FILENAME "A filename cannot contain any of the following characters:\n / : < > |" + IDS_INVALID_FILENAME "Nzov sboru neme obsahova iadny z nasledovnch znakov:\n / : < > |" IDS_PATHNOTEXISTING "Cesta neexistuje" IDS_FILENOTEXISTING "Sbor neexistuje" } @@ -360,9 +392,10 @@ STRINGTABLE DISCARDABLE PD32_PRINT_TITLE "Tla" PD32_VALUE_UREADABLE "Unreadable Entry" - PD32_INVALID_PAGE_RANGE "This value lies not within Page range\n\ -Please enter a value between %d and %d" - PD32_FROM_NOT_ABOVE_TO "The FROM entry cannot exceed TO:" + PD32_INVALID_PAGE_RANGE "This value does not lie within the page range.\n\ +Please enter a value between %d and %d." + PD32_FROM_NOT_ABOVE_TO "The 'from' entry cannot exceed the \ +'to' entry." PD32_MARGINS_OVERLAP "Margins overlap or fall outside \ Paper boundaries.\nPlease reenter margins" PD32_NR_OF_COPIES_EMPTY "The NumberOfCopies entry cannot \ @@ -371,7 +404,7 @@ be empty" supported by your printer.\nPlease enter a value between 1 and %d" PD32_PRINT_ERROR "A printer error occurred" PD32_NO_DEFAULT_PRINTER "Nie je nastaven implicitn tlaiare" - PD32_CANT_FIND_PRINTER "Cannot find the printer" + PD32_CANT_FIND_PRINTER "Nemono njs tlaiare" PD32_OUT_OF_MEMORY "Nedostatok pamte" PD32_GENERIC_ERROR "Vyskytla sa chyba" PD32_DRIVER_UNKNOWN "Neznmy ovlda tlaiarne" @@ -382,27 +415,27 @@ Please install one and retry." PD32_DEFAULT_PRINTER "Implicitn tlaiare; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "There are %d documents in queue" PD32_MARGINS_IN_INCHES "Okraje [palce]" - PD32_MARGINS_IN_MILIMETERS "Okraje [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Okraje [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Pripraven" PD32_PRINTER_STATUS_PAUSED "Pozastaven; " PD32_PRINTER_STATUS_ERROR "Chyba; " PD32_PRINTER_STATUS_PENDING_DELETION "Pending deletion; " - PD32_PRINTER_STATUS_PAPER_JAM "Paper jam; " + PD32_PRINTER_STATUS_PAPER_JAM "Uviaznut papier; " PD32_PRINTER_STATUS_PAPER_OUT "Chba papier; " PD32_PRINTER_STATUS_MANUAL_FEED "Feed paper manual; " - PD32_PRINTER_STATUS_PAPER_PROBLEM "Paper problem; " + PD32_PRINTER_STATUS_PAPER_PROBLEM "Problm s papierom; " PD32_PRINTER_STATUS_OFFLINE "Tlaiare v stave offline; " PD32_PRINTER_STATUS_IO_ACTIVE "I/O Active; " PD32_PRINTER_STATUS_BUSY "Zaneprzdnen; " PD32_PRINTER_STATUS_PRINTING "Prebieha tla; " PD32_PRINTER_STATUS_OUTPUT_BIN_FULL "Output tray is full; " PD32_PRINTER_STATUS_NOT_AVAILABLE "Nie je k dispozcii; " - PD32_PRINTER_STATUS_WAITING "Waiting; " + PD32_PRINTER_STATUS_WAITING "ak sa; " PD32_PRINTER_STATUS_PROCESSING "Prebieha spracovanie; " PD32_PRINTER_STATUS_INITIALIZING "Inicializcia; " - PD32_PRINTER_STATUS_WARMING_UP "Warming up; " + PD32_PRINTER_STATUS_WARMING_UP "Zahrievanie; " PD32_PRINTER_STATUS_TONER_LOW "Primlo toneru; " PD32_PRINTER_STATUS_NO_TONER "Chba toner; " PD32_PRINTER_STATUS_PAGE_PUNT "Page punt; " @@ -410,5 +443,43 @@ Please install one and retry." PD32_PRINTER_STATUS_OUT_OF_MEMORY "Nedostatok pamte; " PD32_PRINTER_STATUS_DOOR_OPEN "Dvierka tlaiarne s otvoren; " PD32_PRINTER_STATUS_SERVER_UNKNOWN "Neznmy print server; " - PD32_PRINTER_STATUS_POWER_SAVE "Power safe mode; " + PD32_PRINTER_STATUS_POWER_SAVE "sporn reim; " +} + +STRINGTABLE DISCARDABLE /* Font styles */ +{ + IDS_FONT_REGULAR "Regular" + IDS_FONT_BOLD "Tun" + IDS_FONT_ITALIC "Kurzva" + IDS_FONT_BOLD_ITALIC "Tun kurzva" +} + +STRINGTABLE DISCARDABLE /* Color names */ +{ + IDS_COLOR_BLACK "ierna" + IDS_COLOR_MAROON "Maroon" + IDS_COLOR_GREEN "Zelen" + IDS_COLOR_OLIVE "Olive" + IDS_COLOR_NAVY "Navy" + IDS_COLOR_PURPLE "Purple" + IDS_COLOR_TEAL "Teal" + IDS_COLOR_GRAY "Gray" + IDS_COLOR_SILVER "Silver" + IDS_COLOR_RED "erven" + IDS_COLOR_LIME "Lime" + IDS_COLOR_YELLOW "lt" + IDS_COLOR_BLUE "Modr" + IDS_COLOR_FUCHSIA "Fuchsia" + IDS_COLOR_AQUA "Aqua" + IDS_COLOR_WHITE "Biela" +} + +STRINGTABLE DISCARDABLE +{ + IDS_FONT_SIZE "Select a font size between %d and %d points." + IDS_SAVE_BUTTON "&Save" + IDS_SAVE_IN "Save &in:" + IDS_SAVE "Uloi" + IDS_SAVE_AS "Uloi ako" + IDS_OPEN_FILE "Otvori sbor" } diff --git a/reactos/dll/win32/comdlg32/cdlg_Sv.rc b/reactos/dll/win32/comdlg32/cdlg_Sv.rc index fc1e64ff942..ed763b481fa 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Sv.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Sv.rc @@ -1,5 +1,6 @@ /* * Copyright 1998 Karl Backstrm + * Copyright 2009 Anders Jonsson * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -97,18 +98,18 @@ FONT 8, "MS Shell Dlg" GROUPBOX "Skrivare", 1072, 6, 10, 180, 65, BS_GROUPBOX RADIOBUTTON "&Standardskrivare", 1056, 16, 20, 80, 12 LTEXT "[ingen]", 1088, 35, 35, 120, 9 - RADIOBUTTON "Specifierad &skrivare", 1057, 16, 50, 80, 12 + RADIOBUTTON "S&pecificerad skrivare", 1057, 16, 50, 80, 12 COMBOBOX 1136, 35, 65, 149, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP DEFPUSHBUTTON "Ok", IDOK, 206, 6, 56, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Avbryt", IDCANCEL, 206, 24, 56, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "&Instllningar", 1024, 206, 46, 56, 14, WS_GROUP | WS_TABSTOP GROUPBOX "Orientering", 1073, 6, 85, 100, 50, BS_GROUPBOX - RADIOBUTTON "&Portrtt", 1058, 50, 100, 40, 12 - RADIOBUTTON "&Landskap", 1059, 50, 115, 40, 12 + RADIOBUTTON "S&tende", 1058, 50, 100, 40, 12 + RADIOBUTTON "&Liggande", 1059, 50, 115, 40, 12 ICON "LANDSCAP", 1097, 10, 95, 32, 32 ICON "PORTRAIT", 1098, 10, 95, 32, 32 GROUPBOX "Paper", 1074, 120, 85, 180, 50, BS_GROUPBOX - LTEXT "&Storlek", 1089, 130, 95, 30, 9 + LTEXT "St&orlek", 1089, 130, 95, 30, 9 LTEXT "&Klla", 1090, 130, 110, 30, 9 COMBOBOX 1137, 155, 95, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP COMBOBOX 1138, 155, 110, 92, 68, CBS_DROPDOWNLIST | CBS_OWNERDRAWFIXED | CBS_AUTOHSCROLL | CBS_SORT | CBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP @@ -139,7 +140,7 @@ FONT 8, "MS Shell Dlg" CBS_AUTOHSCROLL | WS_BORDER | WS_VSCROLL | WS_TABSTOP GROUPBOX "Test",grp2,98,72,120,36,WS_GROUP CTEXT "AaBbYyZz",stc5,103,80,109,24,SS_NOPREFIX | NOT WS_VISIBLE - LTEXT "Scr&ipt (translate):",stc7 ,98,114,80,9 + LTEXT "Scr&ipt:",stc7 ,98,114,80,9 COMBOBOX cmb5,98,124,120,90,CBS_DROPDOWNLIST | CBS_HASSTRINGS | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP } @@ -151,7 +152,7 @@ CAPTION "F FONT 8, "MS Shell Dlg" { LTEXT "&Grundlggande frger:", 1088, 4, 4, 140, 10 - LTEXT "&Egendefinerade frger:", 1089, 4, 106, 140, 10 + LTEXT "&Egendefinierade frger:", 1089, 4, 106, 140, 10 LTEXT "Enfrgat", 1090, 150, 151, 48, 10 LTEXT "&Rd:", 726 /*1094*/,249,126,24,10 EDITTEXT 706, 275,124,21,12, WS_BORDER | WS_GROUP | WS_TABSTOP @@ -173,8 +174,8 @@ FONT 8, "MS Shell Dlg" DEFPUSHBUTTON "Ok", IDOK, 4, 166, 44, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Avbryt", IDCANCEL, 52, 166, 44, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "Hjlp", 1038,100,166, 44, 14 - PUSHBUTTON "&Lgg till egendefinerad frg", 712/*1024*/, 152, 166, 142, 14, WS_GROUP | WS_TABSTOP - PUSHBUTTON "&Defingnera egen frg >>", 719/*1025*/, 4, 150, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Lgg till egendefinierad frg", 712/*1024*/, 152, 166, 142, 14, WS_GROUP | WS_TABSTOP + PUSHBUTTON "&Definiera egen frg >>", 719/*1025*/, 4, 150, 142, 14, WS_GROUP | WS_TABSTOP PUSHBUTTON "&i",713,300,200,4,14 /* just a dummy: 'i' is like &i in "sol&id" */ } @@ -231,13 +232,13 @@ FONT 8, "MS Shell Dlg" LTEXT "&Namn:", stc6, 16, 20, 36,8 COMBOBOX cmb4, 52, 18, 152,152,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP LTEXT "Status:", stc8, 16, 36, 36,10, SS_NOPREFIX - LTEXT "Dum status", stc12, 52, 36, 224,10, SS_NOPREFIX |SS_LEFTNOWORDWRAP + LTEXT "Dummy-status", stc12, 52, 36, 224,10, SS_NOPREFIX |SS_LEFTNOWORDWRAP LTEXT "Typ:", stc7, 16, 48, 36,10, SS_NOPREFIX - LTEXT "Dum typ", stc11, 52, 48, 224,10, SS_NOPREFIX| SS_LEFTNOWORDWRAP + LTEXT "Dummy-typ", stc11, 52, 48, 224,10, SS_NOPREFIX| SS_LEFTNOWORDWRAP LTEXT "Plats:", stc10, 16, 60, 36,10, SS_NOPREFIX - LTEXT "Dum plats", stc14, 52, 60, 224,10, SS_NOPREFIX| SS_LEFTNOWORDWRAP + LTEXT "Dummy-plats", stc14, 52, 60, 224,10, SS_NOPREFIX| SS_LEFTNOWORDWRAP LTEXT "Kommentar:", stc9, 16, 72, 36,10, SS_NOPREFIX - LTEXT "Dum kommentar", stc13, 52, 72, 152,10, SS_NOPREFIX| SS_LEFTNOWORDWRAP + LTEXT "Dummy-kommentar", stc13, 52, 72, 152,10, SS_NOPREFIX| SS_LEFTNOWORDWRAP GROUPBOX "Kopior", grp2, 160, 92, 120,64, WS_GROUP LTEXT "Antal k&opior:", stc5,168,108,68,8 @@ -270,13 +271,13 @@ BEGIN LTEXT "&Namn:", stc6, 16, 20, 36,8 COMBOBOX cmb1, 52, 18,152,152,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP LTEXT "Status:", stc8, 16, 36, 36,10, SS_NOPREFIX - LTEXT "Dum State", stc12, 52, 36, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Dummy-status", stc12, 52, 36, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP LTEXT "Typ:", stc7, 16, 48, 36,10, SS_NOPREFIX - LTEXT "Dum typ", stc11, 52, 48, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Dummy-typ", stc11, 52, 48, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP LTEXT "Plats:", stc10, 16, 60, 36,10, SS_NOPREFIX - LTEXT "Dum plats", stc14, 52, 60, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Dummy-plats", stc14, 52, 60, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP LTEXT "Kommentar:", stc9, 16, 72, 36,10, SS_NOPREFIX - LTEXT "Dum kommnetar", stc13, 52, 72, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP + LTEXT "Dummy-kommentar", stc13, 52, 72, 224,10, SS_NOPREFIX | SS_LEFTNOWORDWRAP GROUPBOX "Papper", grp2, 8, 92, 164,56, WS_GROUP LTEXT "St&orlek:", stc2, 16,108, 36, 8 COMBOBOX cmb2, 52,106, 112,112,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_GROUP | WS_TABSTOP @@ -306,13 +307,13 @@ BEGIN AUTORADIOBUTTON "&Liggande", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Marginaler", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "&Vnster:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Hger:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&verkant:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Nederkant:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "Ok", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "Avbryt", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "&Skrivare...", psh3, 184, 220, 48, 14 @@ -344,10 +345,10 @@ FONT 8, "MS Shell Dlg" STRINGTABLE DISCARDABLE { - IDS_ABOUTBOX "&Om FolderPicker Test" + IDS_ABOUTBOX "&Om FolderPicker-test" IDS_DOCUMENTFOLDERS "Dokumentmappar" - IDS_PERSONAL "Mina Documents" - IDS_FAVORITES "Mina Favorites" + IDS_PERSONAL "Mina Dokument" + IDS_FAVORITES "Mina Favoriter" IDS_PATH "Systemskvg" IDS_DESKTOP "Skrivbord" IDS_FONTS "Typsnitt" @@ -360,7 +361,7 @@ STRINGTABLE DISCARDABLE IDS_LOCALHARDRIVES "Lokala hrddiskar" IDS_FILENOTFOUND "Kunde inte hitta filen" IDS_VERIFYFILE "Vad god verifiera s korrekt filnamn r angivet" - IDS_CREATEFILE "Filen finns inte\nVill du skapa fil" + IDS_CREATEFILE "Filen finns inte\nVill du skapa fil?" IDS_OVERWRITEFILE "Filen finns redan.\nVill du erstta den?" IDS_INVALID_FILENAME_TITLE "Illegalt tecken i skvg" IDS_INVALID_FILENAME "Ett filnamn kan inte innehlla ngon av fljande tecken:\n / : < > |" @@ -386,7 +387,7 @@ STRINGTABLE DISCARDABLE Var god skriv in ett vrde mellan %d och %d." PD32_FROM_NOT_ABOVE_TO "'frn'-fltet kan inte verskrida 'till'-fltet" PD32_MARGINS_OVERLAP "Marginalerna verlappar eller r utanfr \ -pappersgrnserna.\nVar god skriv in marginallerna igen." +pappersgrnserna.\nVar god skriv in marginalerna igen." PD32_NR_OF_COPIES_EMPTY "Fltet 'Antal kopior' kan inte vara tomt." PD32_TOO_LARGE_COPIES "Din skrivare saknar std fr s mnga kopior som du angav. Vad god skriv in ett vrde mellan 1 och %d." PD32_PRINT_ERROR "Ett skrivarfel intrffade." @@ -395,15 +396,15 @@ pappersgr PD32_OUT_OF_MEMORY "Slut p minne." PD32_GENERIC_ERROR "Ett fel uppstod." PD32_DRIVER_UNKNOWN "Oknd skrivardrivrutin." - PD32_NO_DEVICES "Before you can perform printer-related tasks \ -such as page setup or printing a document, you need to install a printer. \ -Please install one and retry." + PD32_NO_DEVICES "En skrivare mste installeras innan \ +aktiviteter som utskrift eller sidinstllningar kan utfras. \ +Installera en skrivare och frsk p nytt." PD32_DEFAULT_PRINTER "Standardskrivare; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Det finns %d dokument i kn" PD32_MARGINS_IN_INCHES "Marginaler [tum]" - PD32_MARGINS_IN_MILIMETERS "Marginaler [millimeter]" - PD32_MILIMETERS "millimeter" + PD32_MARGINS_IN_MILLIMETERS "Marginaler [millimeter]" + PD32_MILLIMETERS "millimeter" PD32_PRINTER_STATUS_READY "Redo" PD32_PRINTER_STATUS_PAUSED "Stannad; " @@ -411,9 +412,9 @@ Please install one and retry." PD32_PRINTER_STATUS_PENDING_DELETION "Vntande borttagning; " PD32_PRINTER_STATUS_PAPER_JAM "Papperskrngel; " PD32_PRINTER_STATUS_PAPER_OUT "Slut p papper; " - PD32_PRINTER_STATUS_MANUAL_FEED "Fyll p papper manuellet; " + PD32_PRINTER_STATUS_MANUAL_FEED "Fyll p papper manuellt; " PD32_PRINTER_STATUS_PAPER_PROBLEM "Pappersproblem; " - PD32_PRINTER_STATUS_OFFLINE "Skriverare n avstngd; " + PD32_PRINTER_STATUS_OFFLINE "Skrivaren r avstngd; " PD32_PRINTER_STATUS_IO_ACTIVE "I/O Aktiv; " PD32_PRINTER_STATUS_BUSY "Upptagen; " PD32_PRINTER_STATUS_PRINTING "Skriver ut; " @@ -424,11 +425,49 @@ Please install one and retry." PD32_PRINTER_STATUS_INITIALIZING "Initierar; " PD32_PRINTER_STATUS_WARMING_UP "Vrmer upp; " PD32_PRINTER_STATUS_TONER_LOW "Toner snart slut; " - PD32_PRINTER_STATUS_NO_TONER "Inga toner; " - PD32_PRINTER_STATUS_PAGE_PUNT "Sidopunt; " + PD32_PRINTER_STATUS_NO_TONER "Ingen toner; " + PD32_PRINTER_STATUS_PAGE_PUNT "Page punt; " PD32_PRINTER_STATUS_USER_INTERVENTION "Avbruten av anvndaren; " PD32_PRINTER_STATUS_OUT_OF_MEMORY "Slut p minne; " PD32_PRINTER_STATUS_DOOR_OPEN "Skrivardrren r ppen; " PD32_PRINTER_STATUS_SERVER_UNKNOWN "Skrivarserver oknd; " PD32_PRINTER_STATUS_POWER_SAVE "Felskert lge; " } + +STRINGTABLE DISCARDABLE /* Font styles */ +{ + IDS_FONT_REGULAR "Standard" + IDS_FONT_BOLD "Fet" + IDS_FONT_ITALIC "Kursiv" + IDS_FONT_BOLD_ITALIC "Fet kursiv" +} + +STRINGTABLE DISCARDABLE /* Color names */ +{ + IDS_COLOR_BLACK "Svart" + IDS_COLOR_MAROON "Rdbrun" + IDS_COLOR_GREEN "Grn" + IDS_COLOR_OLIVE "Oliv" + IDS_COLOR_NAVY "Navy" + IDS_COLOR_PURPLE "Lila" + IDS_COLOR_TEAL "Teal" + IDS_COLOR_GRAY "Gr" + IDS_COLOR_SILVER "Silver" + IDS_COLOR_RED "Rd" + IDS_COLOR_LIME "Lime" + IDS_COLOR_YELLOW "Gul" + IDS_COLOR_BLUE "Bl" + IDS_COLOR_FUCHSIA "Fuchsia" + IDS_COLOR_AQUA "Aqua" + IDS_COLOR_WHITE "Vit" +} + +STRINGTABLE DISCARDABLE +{ + IDS_FONT_SIZE "Vlj en teckenstorlek mellan %d och %d punkter." + IDS_SAVE_BUTTON "&Spara" + IDS_SAVE_IN "Spara &i:" + IDS_SAVE "Spara" + IDS_SAVE_AS "Spara som" + IDS_OPEN_FILE "ppna fil" +} diff --git a/reactos/dll/win32/comdlg32/cdlg_Th.rc b/reactos/dll/win32/comdlg32/cdlg_Th.rc index 68fb29747cc..2e7131fd90d 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Th.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Th.rc @@ -313,13 +313,13 @@ BEGIN AUTORADIOBUTTON "ǹ͹", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "ͺд", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT ":", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT ":", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT ":", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "ҧ:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "ŧ", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "¡ԡ", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "ͧ...", psh3, 184, 220, 48, 14 @@ -409,8 +409,8 @@ Please install one and retry." PD32_DEFAULT_PRINTER "ͧ컡; " PD32_NR_OF_DOCUMENTS_IN_QUEUE " %d " PD32_MARGINS_IN_INCHES "ͺд []" - PD32_MARGINS_IN_MILIMETERS "ͺд [.]" - PD32_MILIMETERS "." + PD32_MARGINS_IN_MILLIMETERS "ͺд [.]" + PD32_MILLIMETERS "." PD32_PRINTER_STATUS_READY "" PD32_PRINTER_STATUS_PAUSED "; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Tr.rc b/reactos/dll/win32/comdlg32/cdlg_Tr.rc index f363ae95d89..ba95000e53a 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Tr.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Tr.rc @@ -314,13 +314,13 @@ BEGIN AUTORADIOBUTTON "&Yatay", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "Kenarlklar", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "S&ol:", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Sa:", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&st:", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "&Alt:", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "Tamam", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "ptal", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "Ya&zc...", psh3, 184, 220, 48, 14 @@ -411,8 +411,8 @@ L PD32_DEFAULT_PRINTER "ntanml yazc; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "Kuyrukta %d belge var" PD32_MARGINS_IN_INCHES "Kenarlklar [in]" - PD32_MARGINS_IN_MILIMETERS "Kenarlklar [mm]" - PD32_MILIMETERS "mm" + PD32_MARGINS_IN_MILLIMETERS "Kenarlklar [mm]" + PD32_MILLIMETERS "mm" PD32_PRINTER_STATUS_READY "Hazr" PD32_PRINTER_STATUS_PAUSED "Duraklad; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Uk.rc b/reactos/dll/win32/comdlg32/cdlg_Uk.rc index da3fe76cdfb..bb23fe93742 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Uk.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Uk.rc @@ -380,8 +380,8 @@ Please install one and retry." PD32_DEFAULT_PRINTER " ; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "%d " PD32_MARGINS_IN_INCHES " []" - PD32_MARGINS_IN_MILIMETERS " []" - PD32_MILIMETERS "" + PD32_MARGINS_IN_MILLIMETERS " []" + PD32_MILLIMETERS "" PD32_PRINTER_STATUS_READY "" PD32_PRINTER_STATUS_PAUSED "; " diff --git a/reactos/dll/win32/comdlg32/cdlg_Zh.rc b/reactos/dll/win32/comdlg32/cdlg_Zh.rc index 030697484a1..d17896edc76 100644 --- a/reactos/dll/win32/comdlg32/cdlg_Zh.rc +++ b/reactos/dll/win32/comdlg32/cdlg_Zh.rc @@ -320,13 +320,13 @@ BEGIN AUTORADIOBUTTON "横向(&L)", rad2, 16, 190, 52, 12, BS_AUTORADIOBUTTON GROUPBOX "边距", grp4, 80, 156, 152, 56, BS_GROUPBOX LTEXT "左(&e):", stc15, 88, 172, 21, 8 - EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt4, 111, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "右(&R):", stc16, 159, 172, 27, 8 - EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt6, 187, 170, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "上(&o):", stc17, 88, 192, 21, 8 - EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt5, 111, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER LTEXT "下(&B):", stc18, 159, 192, 23, 8 - EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER|ES_NUMBER + EDITTEXT edt7, 187, 190, 39, 12, WS_TABSTOP|WS_GROUP|WS_BORDER DEFPUSHBUTTON "确定", IDOK, 71, 220, 50, 14, BS_PUSHBUTTON PUSHBUTTON "取消", IDCANCEL, 126, 220, 50, 14 PUSHBUTTON "打印机(&P)...", psh3, 184, 220, 48, 14 @@ -415,8 +415,8 @@ STRINGTABLE DISCARDABLE PD32_DEFAULT_PRINTER "默认打印机; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "有 %d 个文档正在等待打印" PD32_MARGINS_IN_INCHES "页边距 [英寸]" - PD32_MARGINS_IN_MILIMETERS "页边距 [毫米]" - PD32_MILIMETERS "毫米" + PD32_MARGINS_IN_MILLIMETERS "页边距 [毫米]" + PD32_MILLIMETERS "毫米" PD32_PRINTER_STATUS_READY "待命" PD32_PRINTER_STATUS_PAUSED "暂停; " @@ -679,8 +679,8 @@ STRINGTABLE DISCARDABLE PD32_DEFAULT_PRINTER "默認印表機; " PD32_NR_OF_DOCUMENTS_IN_QUEUE "有 %d 個文檔正在等待列印" PD32_MARGINS_IN_INCHES "邊緣空白 [英寸]" - PD32_MARGINS_IN_MILIMETERS "邊緣空白 [毫米]" - PD32_MILIMETERS "毫米" + PD32_MARGINS_IN_MILLIMETERS "邊緣空白 [毫米]" + PD32_MILLIMETERS "毫米" PD32_PRINTER_STATUS_READY "待命" PD32_PRINTER_STATUS_PAUSED "暫停; " diff --git a/reactos/dll/win32/comdlg32/colordlg.c b/reactos/dll/win32/comdlg32/colordlg.c index d4a43af7619..52439d39f1d 100644 --- a/reactos/dll/win32/comdlg32/colordlg.c +++ b/reactos/dll/win32/comdlg32/colordlg.c @@ -955,7 +955,7 @@ static LONG CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam ) /*********************************************************************** * CC_WMCommand [internal] */ -LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode, HWND hwndCtl ) +static LRESULT CC_WMCommand( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode, HWND hwndCtl ) { int r, g, b, i, xx; UINT cokmsg; diff --git a/reactos/dll/win32/comdlg32/filedlg.c b/reactos/dll/win32/comdlg32/filedlg.c index e1eedd19eca..a2826c8103c 100644 --- a/reactos/dll/win32/comdlg32/filedlg.c +++ b/reactos/dll/win32/comdlg32/filedlg.c @@ -292,7 +292,7 @@ static BOOL GetFileName95(FileOpenDlgInfos *fodInfos) (LPARAM) fodInfos); else lRes = DialogBoxIndirectParamA(COMDLG32_hInstance, - (LPCDLGTEMPLATEA) template, + template, fodInfos->ofnInfos->hwndOwner, FileOpenDlgProc95, (LPARAM) fodInfos); @@ -998,7 +998,7 @@ INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l /* Adds the FileOpenDlgInfos in the property list of the dialog so it will be easily accessible through a GetPropA(...) */ - SetPropA(hwnd, FileOpenDlgInfosStr, (HANDLE) fodInfos); + SetPropA(hwnd, FileOpenDlgInfosStr, fodInfos); FILEDLG95_InitControls(hwnd); @@ -1971,7 +1971,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd) DWORD len; /* replace the current filter */ - MemFree((LPVOID)fodInfos->ShellInfos.lpstrCurrentFilter); + MemFree(fodInfos->ShellInfos.lpstrCurrentFilter); len = lstrlenW(lpszTemp)+1; fodInfos->ShellInfos.lpstrCurrentFilter = MemAlloc(len * sizeof(WCHAR)); lstrcpyW( fodInfos->ShellInfos.lpstrCurrentFilter, lpszTemp); @@ -2205,7 +2205,6 @@ BOOL FILEDLG95_OnOpen(HWND hwnd) ret = EndDialog(hwnd, FALSE); COMDLG32_SetCommDlgExtendedError(FNERR_BUFFERTOOSMALL); } - goto ret; } break; } @@ -2485,7 +2484,7 @@ static BOOL FILEDLG95_FILETYPE_OnCommand(HWND hwnd, WORD wNotifyCode) (fodInfos->customfilter == NULL ? 1 : 0); /* Set the current filter with the current selection */ - MemFree((LPVOID)fodInfos->ShellInfos.lpstrCurrentFilter); + MemFree(fodInfos->ShellInfos.lpstrCurrentFilter); lpstrFilter = (LPWSTR) CBGetItemDataPtr(fodInfos->DlgInfos.hwndFileTypeCB, iItem); @@ -2593,7 +2592,7 @@ static void FILEDLG95_LOOKIN_Init(HWND hwndCombo) liInfos->iMaxIndentation = 0; - SetPropA(hwndCombo, LookInInfosStr, (HANDLE) liInfos); + SetPropA(hwndCombo, LookInInfosStr, liInfos); /* set item height for both text field and listbox */ CBSetItemHeight(hwndCombo,-1,GetSystemMetrics(SM_CYSMICON)); @@ -2902,7 +2901,7 @@ static int FILEDLG95_LOOKIN_InsertItemAfterParent(HWND hwnd,LPITEMIDLIST pidl) } /* Free pidlParent memory */ - COMDLG32_SHFree((LPVOID)pidlParent); + COMDLG32_SHFree(pidlParent); return FILEDLG95_LOOKIN_AddItem(hwnd,pidl,iParentPos + 1); } @@ -3115,7 +3114,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd) lstrcpyW( lpstrAllFile, lpstrTemp ); } } - COMDLG32_SHFree( (LPVOID) pidl ); + COMDLG32_SHFree( pidl ); } } SetWindowTextW( fodInfos->DlgInfos.hwndFileName, lpstrAllFile ); diff --git a/reactos/dll/win32/comdlg32/filedlg31.c b/reactos/dll/win32/comdlg32/filedlg31.c index 6b2a3798ea1..3e431782d21 100644 --- a/reactos/dll/win32/comdlg32/filedlg31.c +++ b/reactos/dll/win32/comdlg32/filedlg31.c @@ -822,7 +822,7 @@ LONG FD31_WMInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam) PFD31_DATA lfs = (PFD31_DATA) lParam; if (!lfs) return FALSE; - SetPropA(hWnd, FD31_OFN_PROP, (HANDLE)lfs); + SetPropA(hWnd, FD31_OFN_PROP, lfs); lfs->hwnd = hWnd; ofn = lfs->ofnW; diff --git a/reactos/dll/win32/comdlg32/filedlgbrowser.c b/reactos/dll/win32/comdlg32/filedlgbrowser.c index f933f1571ba..704fb98352a 100644 --- a/reactos/dll/win32/comdlg32/filedlgbrowser.c +++ b/reactos/dll/win32/comdlg32/filedlgbrowser.c @@ -149,19 +149,19 @@ static void COMDLG32_UpdateCurrentDir(const FileOpenDlgInfos *fodInfos) } /* copied from shell32 to avoid linking to it */ -static HRESULT COMDLG32_StrRetToStrNW (LPVOID dest, DWORD len, LPSTRRET src, LPCITEMIDLIST pidl) +static BOOL COMDLG32_StrRetToStrNW (LPVOID dest, DWORD len, LPSTRRET src, LPCITEMIDLIST pidl) { TRACE("dest=%p len=0x%x strret=%p pidl=%p stub\n",dest,len,src,pidl); switch (src->uType) { case STRRET_WSTR: - lstrcpynW((LPWSTR)dest, src->u.pOleStr, len); + lstrcpynW(dest, src->u.pOleStr, len); COMDLG32_SHFree(src->u.pOleStr); break; case STRRET_CSTR: - if (len && !MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, (LPWSTR)dest, len )) + if (len && !MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, dest, len )) ((LPWSTR)dest)[len-1] = 0; break; @@ -169,7 +169,7 @@ static HRESULT COMDLG32_StrRetToStrNW (LPVOID dest, DWORD len, LPSTRRET src, LPC if (pidl) { if (len && !MultiByteToWideChar( CP_ACP, 0, ((LPCSTR)&pidl->mkid)+src->u.uOffset, - -1, (LPWSTR)dest, len )) + -1, dest, len )) ((LPWSTR)dest)[len-1] = 0; } break; @@ -181,7 +181,7 @@ static HRESULT COMDLG32_StrRetToStrNW (LPVOID dest, DWORD len, LPSTRRET src, LPC } return(FALSE); } - return S_OK; + return TRUE; } /* @@ -196,7 +196,7 @@ IShellBrowser * IShellBrowserImpl_Construct(HWND hwndOwner) IShellBrowserImpl *sb; FileOpenDlgInfos *fodInfos = GetPropA(hwndOwner,FileOpenDlgInfosStr); - sb=(IShellBrowserImpl*)COMDLG32_SHAlloc(sizeof(IShellBrowserImpl)); + sb = COMDLG32_SHAlloc(sizeof(IShellBrowserImpl)); /* Initialisation of the member variables */ sb->ref=1; @@ -231,19 +231,19 @@ static HRESULT WINAPI IShellBrowserImpl_QueryInterface(IShellBrowser *iface, { *ppvObj = This; } else if(IsEqualIID(riid, &IID_IOleWindow)) /*IOleWindow*/ - { *ppvObj = (IOleWindow*)This; + { *ppvObj = This; } else if(IsEqualIID(riid, &IID_IShellBrowser)) /*IShellBrowser*/ - { *ppvObj = (IShellBrowser*)This; + { *ppvObj = This; } else if(IsEqualIID(riid, &IID_ICommDlgBrowser)) /*ICommDlgBrowser*/ - { *ppvObj = (ICommDlgBrowser*) &(This->lpVtblCommDlgBrowser); + { *ppvObj = &(This->lpVtblCommDlgBrowser); } else if(IsEqualIID(riid, &IID_IServiceProvider)) /* IServiceProvider */ - { *ppvObj = (ICommDlgBrowser*) &(This->lpVtblServiceProvider); + { *ppvObj = &(This->lpVtblServiceProvider); } if(*ppvObj) @@ -442,7 +442,7 @@ static HRESULT WINAPI IShellBrowserImpl_BrowseObject(IShellBrowser *iface, fodInfos->Shell.FOIShellFolder = psfTmp; /* Release old pidlAbsCurrent and update its value */ - COMDLG32_SHFree((LPVOID)fodInfos->ShellInfos.pidlAbsCurrent); + COMDLG32_SHFree(fodInfos->ShellInfos.pidlAbsCurrent); fodInfos->ShellInfos.pidlAbsCurrent = pidlTmp; COMDLG32_UpdateCurrentDir(fodInfos); @@ -795,7 +795,7 @@ static HRESULT WINAPI IShellBrowserImpl_ICommDlgBrowser_OnDefaultCommand(ICommDl } /* Free memory used by pidl */ - COMDLG32_SHFree((LPVOID)pidl); + COMDLG32_SHFree(pidl); return hRes; } @@ -881,7 +881,7 @@ static HRESULT WINAPI IShellBrowserImpl_ICommDlgBrowser_IncludeObject(ICommDlgBr if (SUCCEEDED(IShellFolder_GetDisplayNameOf(fodInfos->Shell.FOIShellFolder, pidl, SHGDN_INFOLDER | SHGDN_FORPARSING, &str))) { - if (SUCCEEDED(COMDLG32_StrRetToStrNW(szPathW, MAX_PATH, &str, pidl))) + if (COMDLG32_StrRetToStrNW(szPathW, MAX_PATH, &str, pidl)) { if (PathMatchSpecW(szPathW, fodInfos->ShellInfos.lpstrCurrentFilter)) return S_OK; diff --git a/reactos/dll/win32/comdlg32/finddlg32.c b/reactos/dll/win32/comdlg32/finddlg32.c index 80c8e8be81e..2a7d7e30810 100644 --- a/reactos/dll/win32/comdlg32/finddlg32.c +++ b/reactos/dll/win32/comdlg32/finddlg32.c @@ -408,7 +408,7 @@ static HWND COMDLG32_FR_DoFindReplace( } else { - loadrc = (HGLOBAL)pdata->fr.hInstance; + loadrc = pdata->fr.hInstance; } if(!loadrc) diff --git a/reactos/dll/win32/comdlg32/fontdlg.c b/reactos/dll/win32/comdlg32/fontdlg.c index 470b7d3b664..f61de366683 100644 --- a/reactos/dll/win32/comdlg32/fontdlg.c +++ b/reactos/dll/win32/comdlg32/fontdlg.c @@ -182,7 +182,7 @@ BOOL WINAPI ChooseFontW(LPCHOOSEFONTW lpChFont) if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 ) { - template=(LPCVOID)lpChFont->hInstance; + template=lpChFont->hInstance; } else { if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 ) @@ -236,7 +236,7 @@ BOOL WINAPI ChooseFontA(LPCHOOSEFONTA lpChFont) if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 ) { - template=(LPCVOID)lpChFont->hInstance; + template=lpChFont->hInstance; } else { if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 ) @@ -601,7 +601,7 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam, HCURSOR hcursor=SetCursor(LoadCursorW(0,(LPWSTR)IDC_WAIT)); static const WCHAR strColorName[] = {'[','c','o','l','o','r',' ','n','a','m','e',']',0}; - SetPropW(hDlg, strWineFontData, (HANDLE)lpcf); + SetPropW(hDlg, strWineFontData, lpcf); lpxx=lpcf->lpLogFont; TRACE("WM_INITDIALOG lParam=%08lX\n", lParam); diff --git a/reactos/dll/win32/comdlg32/printdlg.c b/reactos/dll/win32/comdlg32/printdlg.c index bdc2a0dc40d..b8f4e63e098 100644 --- a/reactos/dll/win32/comdlg32/printdlg.c +++ b/reactos/dll/win32/comdlg32/printdlg.c @@ -25,6 +25,7 @@ #include #include #include +#include #define NONAMELESSUNION #define NONAMELESSSTRUCT @@ -35,6 +36,7 @@ #include "winspool.h" #include "winerror.h" +#include "wine/unicode.h" #include "wine/debug.h" #include "commdlg.h" @@ -50,6 +52,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg); #define UPDOWN_ID 0x270f #define MAX_COPIES 9999 +DEVMODEW* WINAPI GdiConvertToDevmodeW(const DEVMODEA*); + /* Debugging info */ static const struct pd_flags psd_flags[] = { {PSD_MINMARGINS,"PSD_MINMARGINS"}, @@ -73,13 +77,69 @@ static const struct pd_flags psd_flags[] = { /* address of wndproc for subclassed Static control */ static WNDPROC lpfnStaticWndProc; +static WNDPROC edit_wndproc; /* the text of the fake document to render for the Page Setup dialog */ static WCHAR wszFakeDocumentText[1024]; static const WCHAR pd32_collateW[] = { 'P', 'D', '3', '2', '_', 'C', 'O', 'L', 'L', 'A', 'T', 'E', 0 }; static const WCHAR pd32_nocollateW[] = { 'P', 'D', '3', '2', '_', 'N', 'O', 'C', 'O', 'L', 'L', 'A', 'T', 'E', 0 }; static const WCHAR pd32_portraitW[] = { 'P', 'D', '3', '2', '_', 'P', 'O', 'R', 'T', 'R', 'A', 'I', 'T', 0 }; static const WCHAR pd32_landscapeW[] = { 'P', 'D', '3', '2', '_', 'L', 'A', 'N', 'D', 'S', 'C', 'A', 'P', 'E', 0 }; -static const WCHAR propW[] = {'_','_','W','I','N','E','_','P','R','I','N','T','D','L','G','D','A','T','A',0}; +static const WCHAR printdlg_prop[] = {'_','_','W','I','N','E','_','P','R','I','N','T','D','L','G','D','A','T','A',0}; +static const WCHAR pagesetupdlg_prop[] = { '_', '_', 'W', 'I', 'N', 'E', '_', 'P', 'A', 'G', 'E', + 'S', 'E', 'T', 'U', 'P', 'D', 'L', 'G', 'D', 'A', 'T', 'A', 0 }; + + +static LPWSTR strdupW(LPCWSTR p) +{ + LPWSTR ret; + DWORD len; + + if(!p) return NULL; + len = (strlenW(p) + 1) * sizeof(WCHAR); + ret = HeapAlloc(GetProcessHeap(), 0, len); + memcpy(ret, p, len); + return ret; +} + +/*********************************************************** + * convert_to_devmodeA + * + * Creates an ansi copy of supplied devmode + */ +static DEVMODEA *convert_to_devmodeA(const DEVMODEW *dmW) +{ + DEVMODEA *dmA; + DWORD size; + + if (!dmW) return NULL; + size = dmW->dmSize - CCHDEVICENAME - + ((dmW->dmSize > FIELD_OFFSET(DEVMODEW, dmFormName)) ? CCHFORMNAME : 0); + + dmA = HeapAlloc(GetProcessHeap(), 0, size + dmW->dmDriverExtra); + if (!dmA) return NULL; + + WideCharToMultiByte(CP_ACP, 0, dmW->dmDeviceName, -1, + (LPSTR)dmA->dmDeviceName, CCHDEVICENAME, NULL, NULL); + + if (FIELD_OFFSET(DEVMODEW, dmFormName) >= dmW->dmSize) + { + memcpy(&dmA->dmSpecVersion, &dmW->dmSpecVersion, + dmW->dmSize - FIELD_OFFSET(DEVMODEW, dmSpecVersion)); + } + else + { + memcpy(&dmA->dmSpecVersion, &dmW->dmSpecVersion, + FIELD_OFFSET(DEVMODEW, dmFormName) - FIELD_OFFSET(DEVMODEW, dmSpecVersion)); + WideCharToMultiByte(CP_ACP, 0, dmW->dmFormName, -1, + (LPSTR)dmA->dmFormName, CCHFORMNAME, NULL, NULL); + + memcpy(&dmA->dmLogPixels, &dmW->dmLogPixels, dmW->dmSize - FIELD_OFFSET(DEVMODEW, dmLogPixels)); + } + + dmA->dmSize = size; + memcpy((char *)dmA + dmA->dmSize, (const char *)dmW + dmW->dmSize, dmW->dmDriverExtra); + return dmA; +} /*********************************************************************** * PRINTDLG_OpenDefaultPrinter @@ -479,121 +539,6 @@ static BOOL PRINTDLG_UpdatePrintDlgW(HWND hDlg, return TRUE; } -static BOOL PRINTDLG_PaperSizeA( - PRINTDLGA *pdlga,const WORD PaperSize,LPPOINT size -) { - DEVNAMES *dn; - DEVMODEA *dm; - LPSTR devname,portname; - int i; - INT NrOfEntries,ret; - WORD *Words = NULL; - POINT *points = NULL; - BOOL retval = FALSE; - - dn = GlobalLock(pdlga->hDevNames); - dm = GlobalLock(pdlga->hDevMode); - devname = ((char*)dn)+dn->wDeviceOffset; - portname = ((char*)dn)+dn->wOutputOffset; - - - NrOfEntries = DeviceCapabilitiesA(devname,portname,DC_PAPERNAMES,NULL,dm); - if (!NrOfEntries) { - FIXME("No papernames found for %s/%s\n",devname,portname); - goto out; - } - if (NrOfEntries == -1) { - ERR("Hmm ? DeviceCapabilities() DC_PAPERNAMES failed, ret -1 !\n"); - goto out; - } - - Words = HeapAlloc(GetProcessHeap(),0,NrOfEntries*sizeof(WORD)); - if (NrOfEntries != (ret=DeviceCapabilitiesA(devname,portname,DC_PAPERS,(LPSTR)Words,dm))) { - FIXME("Number of returned vals %d is not %d\n",NrOfEntries,ret); - goto out; - } - for (i=0;ix=points[i].x; - size->y=points[i].y; - retval = TRUE; -out: - GlobalUnlock(pdlga->hDevNames); - GlobalUnlock(pdlga->hDevMode); - HeapFree(GetProcessHeap(),0,Words); - HeapFree(GetProcessHeap(),0,points); - return retval; -} - -static BOOL PRINTDLG_PaperSizeW( - PRINTDLGW *pdlga,const WCHAR *PaperSize,LPPOINT size -) { - DEVNAMES *dn; - DEVMODEW *dm; - LPWSTR devname,portname; - int i; - INT NrOfEntries,ret; - WCHAR *Names = NULL; - POINT *points = NULL; - BOOL retval = FALSE; - - dn = GlobalLock(pdlga->hDevNames); - dm = GlobalLock(pdlga->hDevMode); - devname = ((WCHAR*)dn)+dn->wDeviceOffset; - portname = ((WCHAR*)dn)+dn->wOutputOffset; - - - NrOfEntries = DeviceCapabilitiesW(devname,portname,DC_PAPERNAMES,NULL,dm); - if (!NrOfEntries) { - FIXME("No papernames found for %s/%s\n",debugstr_w(devname),debugstr_w(portname)); - goto out; - } - if (NrOfEntries == -1) { - ERR("Hmm ? DeviceCapabilities() DC_PAPERNAMES failed, ret -1 !\n"); - goto out; - } - - Names = HeapAlloc(GetProcessHeap(),0,sizeof(WCHAR)*NrOfEntries*64); - if (NrOfEntries != (ret=DeviceCapabilitiesW(devname,portname,DC_PAPERNAMES,Names,dm))) { - FIXME("Number of returned vals %d is not %d\n",NrOfEntries,ret); - goto out; - } - for (i=0;ix=points[i].x; - size->y=points[i].y; - retval = TRUE; -out: - GlobalUnlock(pdlga->hDevNames); - GlobalUnlock(pdlga->hDevMode); - HeapFree(GetProcessHeap(),0,Names); - HeapFree(GetProcessHeap(),0,points); - return retval; -} - - /************************************************************************ * PRINTDLG_SetUpPaperComboBox * @@ -659,10 +604,6 @@ static BOOL PRINTDLG_SetUpPaperComboBoxA(HWND hDlg, fwCapability_Words = DC_BINS; } - /* for some printer drivers, DeviceCapabilities calls a VXD to obtain the - * paper settings. As Wine doesn't allow VXDs, this results in a crash. - */ - WARN(" if your printer driver uses VXDs, expect a crash now!\n"); NrOfEntries = DeviceCapabilitiesA(PrinterName, PortName, fwCapability_Names, NULL, dm); if (NrOfEntries == 0) @@ -769,10 +710,6 @@ static BOOL PRINTDLG_SetUpPaperComboBoxW(HWND hDlg, fwCapability_Words = DC_BINS; } - /* for some printer drivers, DeviceCapabilities calls a VXD to obtain the - * paper settings. As Wine doesn't allow VXDs, this results in a crash. - */ - WARN(" if your printer driver uses VXDs, expect a crash now!\n"); NrOfEntries = DeviceCapabilitiesW(PrinterName, PortName, fwCapability_Names, NULL, dm); if (NrOfEntries == 0) @@ -791,7 +728,7 @@ static BOOL PRINTDLG_SetUpPaperComboBoxW(HWND hDlg, NrOfEntries = DeviceCapabilitiesW(PrinterName, PortName, fwCapability_Names, Names, dm); NrOfEntries = DeviceCapabilitiesW(PrinterName, PortName, - fwCapability_Words, (LPWSTR)Words, dm); + fwCapability_Words, Words, dm); /* reset any current content in the combobox */ SendDlgItemMessageW(hDlg, nIDComboBox, CB_RESETCONTENT, 0, 0); @@ -1854,12 +1791,12 @@ static INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR res = FALSE; if (uMsg!=WM_INITDIALOG) { - PrintStructures = GetPropA(hDlg,"__WINE_PRINTDLGDATA"); + PrintStructures = GetPropW(hDlg, printdlg_prop); if (!PrintStructures) return FALSE; } else { PrintStructures = (PRINT_PTRA*) lParam; - SetPropA(hDlg,"__WINE_PRINTDLGDATA",PrintStructures); + SetPropW(hDlg, printdlg_prop, PrintStructures); if(!check_printer_setup(hDlg)) { EndDialog(hDlg,FALSE); @@ -1903,12 +1840,12 @@ static INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR res = FALSE; if (uMsg!=WM_INITDIALOG) { - PrintStructures = GetPropW(hDlg, propW); + PrintStructures = GetPropW(hDlg, printdlg_prop); if (!PrintStructures) return FALSE; } else { PrintStructures = (PRINT_PTRW*) lParam; - SetPropW(hDlg, propW, PrintStructures); + SetPropW(hDlg, printdlg_prop, PrintStructures); if(!check_printer_setup(hDlg)) { EndDialog(hDlg,FALSE); @@ -2407,479 +2344,789 @@ BOOL WINAPI PrintDlgW(LPPRINTDLGW lppd) * psh3 - "Printer..." */ -typedef struct { - LPPAGESETUPDLGA dlga; /* Handler to user defined struct */ - PRINTDLGA pdlg; - HWND hDlg; /* Page Setup dialog handler */ - PAGESETUPDLGA curdlg; /* Stores the current dialog state */ - RECT rtDrawRect; /* Drawing rect for page */ -} PageSetupDataA; - -typedef struct { - LPPAGESETUPDLGW dlgw; - PRINTDLGW pdlg; - PAGESETUPDLGW curdlg; /* Current dialog state */ -} PageSetupDataW; - - -static HGLOBAL PRINTDLG_GetPGSTemplateA(const PAGESETUPDLGA *lppd) +typedef struct { - HRSRC hResInfo; - HGLOBAL hDlgTmpl; - - if(lppd->Flags & PSD_ENABLEPAGESETUPTEMPLATEHANDLE) { - hDlgTmpl = lppd->hPageSetupTemplate; - } else if(lppd->Flags & PSD_ENABLEPAGESETUPTEMPLATE) { - hResInfo = FindResourceA(lppd->hInstance, - lppd->lpPageSetupTemplateName, (LPSTR)RT_DIALOG); - hDlgTmpl = LoadResource(lppd->hInstance, hResInfo); - } else { - hResInfo = FindResourceA(COMDLG32_hInstance,(LPCSTR)PAGESETUPDLGORD,(LPSTR)RT_DIALOG); - hDlgTmpl = LoadResource(COMDLG32_hInstance,hResInfo); - } - return hDlgTmpl; -} + BOOL unicode; + union + { + LPPAGESETUPDLGA dlga; + LPPAGESETUPDLGW dlgw; + } u; + HWND hDlg; /* Page Setup dialog handle */ + RECT rtDrawRect; /* Drawing rect for page */ +} pagesetup_data; -static HGLOBAL PRINTDLG_GetPGSTemplateW(const PAGESETUPDLGW *lppd) +static inline DWORD pagesetup_get_flags(const pagesetup_data *data) { - HRSRC hResInfo; - HGLOBAL hDlgTmpl; - - if(lppd->Flags & PSD_ENABLEPAGESETUPTEMPLATEHANDLE) { - hDlgTmpl = lppd->hPageSetupTemplate; - } else if(lppd->Flags & PSD_ENABLEPAGESETUPTEMPLATE) { - hResInfo = FindResourceW(lppd->hInstance, - lppd->lpPageSetupTemplateName, (LPWSTR)RT_DIALOG); - hDlgTmpl = LoadResource(lppd->hInstance, hResInfo); - } else { - hResInfo = FindResourceW(COMDLG32_hInstance,(LPCWSTR)PAGESETUPDLGORD,(LPWSTR)RT_DIALOG); - hDlgTmpl = LoadResource(COMDLG32_hInstance,hResInfo); - } - return hDlgTmpl; + return data->u.dlgw->Flags; } -static DWORD -_c_10mm2size(PAGESETUPDLGA *dlga,DWORD size) { - if (dlga->Flags & PSD_INTHOUSANDTHSOFINCHES) - return 10*size*100/254; - /* If we don't have a flag, we can choose one. Use millimeters - * to avoid confusing me - */ - dlga->Flags |= PSD_INHUNDREDTHSOFMILLIMETERS; - return 10*size; +static inline BOOL is_metric(const pagesetup_data *data) +{ + return pagesetup_get_flags(data) & PSD_INHUNDREDTHSOFMILLIMETERS; } - -static DWORD -_c_inch2size(PAGESETUPDLGA *dlga,DWORD size) { - if (dlga->Flags & PSD_INTHOUSANDTHSOFINCHES) - return size; - if (dlga->Flags & PSD_INHUNDREDTHSOFMILLIMETERS) - return (size*254)/100; - /* if we don't have a flag, we can choose one. Use millimeters - * to avoid confusing me - */ - dlga->Flags |= PSD_INHUNDREDTHSOFMILLIMETERS; - return (size*254)/100; +static inline LONG tenths_mm_to_size(pagesetup_data *data, LONG size) +{ + if (is_metric(data)) + return 10 * size; + else + return 10 * size * 100 / 254; } -static void -_c_size2strA(PageSetupDataA *pda,DWORD size,LPSTR strout) { - strcpy(strout,""); - if (pda->dlga->Flags & PSD_INHUNDREDTHSOFMILLIMETERS) { - sprintf(strout,"%d",(size)/100); - return; - } - if (pda->dlga->Flags & PSD_INTHOUSANDTHSOFINCHES) { - sprintf(strout,"%din",(size)/1000); - return; - } - pda->dlga->Flags |= PSD_INHUNDREDTHSOFMILLIMETERS; - sprintf(strout,"%d",(size)/100); - return; -} -static void -_c_size2strW(PageSetupDataW *pdw,DWORD size,LPWSTR strout) { - static const char mm_fmt[] = "%.2f mm"; - static const char in_fmt[] = "%.2f in"; - char buf[20]; - if (pdw->dlgw->Flags & PSD_INHUNDREDTHSOFMILLIMETERS) { - sprintf(buf, mm_fmt, (size * 1.0) / 100.0); - } else if (pdw->dlgw->Flags & PSD_INTHOUSANDTHSOFINCHES) { - sprintf(buf, in_fmt, (size * 1.0) / 1000.0); - } else { - pdw->dlgw->Flags |= PSD_INHUNDREDTHSOFMILLIMETERS; - sprintf(buf, mm_fmt, (size * 1.0) / 100.0); - } - - MultiByteToWideChar(CP_ACP, 0, buf, -1, strout, 20); +static inline LONG thousandths_inch_to_size(pagesetup_data *data, LONG size) +{ + if (is_metric(data)) + return size * 254 / 100; + else + return size; } -static DWORD -_c_str2sizeA(const PAGESETUPDLGA *dlga, LPCSTR strin) { - float val; - char rest[200]; +static WCHAR get_decimal_sep(void) +{ + static WCHAR sep; - rest[0]='\0'; - if (!sscanf(strin,"%f%s",&val,rest)) - return 0; + if(!sep) + { + WCHAR buf[2] = {'.',0}; + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, buf, sizeof(buf) / sizeof(buf[0])); + sep = buf[0]; + } + return sep; +} - if (!strcmp(rest,"in") || !strcmp(rest,"inch")) { - if (dlga->Flags & PSD_INTHOUSANDTHSOFINCHES) - return 1000*val; - else - return val*25.4*100; - } - if (!strcmp(rest,"cm")) { rest[0]='m'; val = val*10.0; } - if (!strcmp(rest,"m")) { strcpy(rest,"mm"); val = val*1000.0; } +static void size2str(const pagesetup_data *data, DWORD size, LPWSTR strout) +{ + WCHAR integer_fmt[] = {'%','d',0}; + WCHAR hundredths_fmt[] = {'%','d','%','c','%','0','2','d',0}; + WCHAR thousandths_fmt[] = {'%','d','%','c','%','0','3','d',0}; - if (!strcmp(rest,"mm")) { - if (dlga->Flags & PSD_INHUNDREDTHSOFMILLIMETERS) - return 100*val; - else - return 1000.0*val/25.4; + /* FIXME use LOCALE_SDECIMAL when the edit parsing code can cope */ + + if (is_metric(data)) + { + if(size % 100) + wsprintfW(strout, hundredths_fmt, size / 100, get_decimal_sep(), size % 100); + else + wsprintfW(strout, integer_fmt, size / 100); } - if (rest[0]=='\0') { - /* use application supplied default */ - if (dlga->Flags & PSD_INHUNDREDTHSOFMILLIMETERS) { - /* 100*mm */ - return 100.0*val; - } - if (dlga->Flags & PSD_INTHOUSANDTHSOFINCHES) { - /* 1000*inch */ - return 1000.0*val; - } + else + { + if(size % 1000) + wsprintfW(strout, thousandths_fmt, size / 1000, get_decimal_sep(), size % 1000); + else + wsprintfW(strout, integer_fmt, size / 1000); + } - ERR("Did not find a conversion for type '%s'!\n",rest); +} + +static inline BOOL is_default_metric(void) +{ + DWORD system; + GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IMEASURE | LOCALE_RETURN_NUMBER, + (LPWSTR)&system, sizeof(system)); + return system == 0; +} + +/********************************************** + * rotate_rect + * Cyclically permute the four members of rc + * If sense is TRUE l -> t -> r -> b + * otherwise l <- t <- r <- b + */ +static inline void rotate_rect(RECT *rc, BOOL sense) +{ + INT tmp; + if(sense) + { + tmp = rc->bottom; + rc->bottom = rc->right; + rc->right = rc->top; + rc->top = rc->left; + rc->left = tmp; + } + else + { + tmp = rc->left; + rc->left = rc->top; + rc->top = rc->right; + rc->right = rc->bottom; + rc->bottom = tmp; + } +} + +static void pagesetup_set_orientation(pagesetup_data *data, WORD orient) +{ + DEVMODEW *dm = GlobalLock(data->u.dlgw->hDevMode); + + assert(orient == DMORIENT_PORTRAIT || orient == DMORIENT_LANDSCAPE); + + if(data->unicode) + dm->u1.s1.dmOrientation = orient; + else + { + DEVMODEA *dmA = (DEVMODEA *)dm; + dmA->u1.s1.dmOrientation = orient; + } + GlobalUnlock(data->u.dlgw->hDevMode); +} + +static WORD pagesetup_get_orientation(const pagesetup_data *data) +{ + DEVMODEW *dm = GlobalLock(data->u.dlgw->hDevMode); + WORD orient; + + if(data->unicode) + orient = dm->u1.s1.dmOrientation; + else + { + DEVMODEA *dmA = (DEVMODEA *)dm; + orient = dmA->u1.s1.dmOrientation; + } + GlobalUnlock(data->u.dlgw->hDevMode); + return orient; +} + +static void pagesetup_set_papersize(pagesetup_data *data, WORD paper) +{ + DEVMODEW *dm = GlobalLock(data->u.dlgw->hDevMode); + + if(data->unicode) + dm->u1.s1.dmPaperSize = paper; + else + { + DEVMODEA *dmA = (DEVMODEA *)dm; + dmA->u1.s1.dmPaperSize = paper; + } + GlobalUnlock(data->u.dlgw->hDevMode); +} + +static WORD pagesetup_get_papersize(const pagesetup_data *data) +{ + DEVMODEW *dm = GlobalLock(data->u.dlgw->hDevMode); + WORD paper; + + if(data->unicode) + paper = dm->u1.s1.dmPaperSize; + else + { + DEVMODEA *dmA = (DEVMODEA *)dm; + paper = dmA->u1.s1.dmPaperSize; + } + GlobalUnlock(data->u.dlgw->hDevMode); + return paper; +} + +static void pagesetup_set_defaultsource(pagesetup_data *data, WORD source) +{ + DEVMODEW *dm = GlobalLock(data->u.dlgw->hDevMode); + + if(data->unicode) + dm->u1.s1.dmDefaultSource = source; + else + { + DEVMODEA *dmA = (DEVMODEA *)dm; + dmA->u1.s1.dmDefaultSource = source; + } + GlobalUnlock(data->u.dlgw->hDevMode); +} + +typedef enum +{ + devnames_driver_name, + devnames_device_name, + devnames_output_name +} devnames_name; + + +static inline WORD get_devname_offset(DEVNAMES *dn, devnames_name which) +{ + switch(which) + { + case devnames_driver_name: return dn->wDriverOffset; + case devnames_device_name: return dn->wDeviceOffset; + case devnames_output_name: return dn->wOutputOffset; + } + ERR("Souldn't be here\n"); return 0; } +static WCHAR *pagesetup_get_a_devname(const pagesetup_data *data, devnames_name which) +{ + DEVNAMES *dn; + WCHAR *name; -static DWORD -_c_str2sizeW(const PAGESETUPDLGW *dlga, LPCWSTR strin) { - char buf[200]; - - /* this W -> A transition is OK */ - /* we need a unicode version of sscanf to avoid it */ - WideCharToMultiByte(CP_ACP, 0, strin, -1, buf, sizeof(buf), NULL, NULL); - return _c_str2sizeA((const PAGESETUPDLGA *)dlga, buf); + dn = GlobalLock(data->u.dlgw->hDevNames); + if(data->unicode) + name = strdupW((WCHAR *)dn + get_devname_offset(dn, which)); + else + { + int len = MultiByteToWideChar(CP_ACP, 0, (char*)dn + get_devname_offset(dn, which), -1, NULL, 0); + name = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, (char*)dn + get_devname_offset(dn, which), -1, name, len); + } + GlobalUnlock(data->u.dlgw->hDevNames); + return name; } - -/**************************************************************************** - * PRINTDLG_PS_UpdateDlgStructA - * - * Updates pda->dlga structure - * Function calls when user presses OK button - * - * PARAMS - * hDlg [in] main window dialog HANDLE - * pda [in/out] ptr to PageSetupDataA structure - * - * RETURNS - * TRUE - */ -static BOOL -PRINTDLG_PS_UpdateDlgStructA(HWND hDlg, PageSetupDataA *pda) { - DEVMODEA *dm; - DWORD paperword; - - memcpy(pda->dlga, &pda->curdlg, sizeof(pda->curdlg)); - pda->dlga->hDevMode = pda->pdlg.hDevMode; - pda->dlga->hDevNames = pda->pdlg.hDevNames; - - dm = GlobalLock(pda->pdlg.hDevMode); - - /* Save paper orientation into device context */ - if(pda->curdlg.ptPaperSize.x > pda->curdlg.ptPaperSize.y) - dm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE; - else - dm->u1.s1.dmOrientation = DMORIENT_PORTRAIT; - - /* Save paper size into the device context */ - paperword = SendDlgItemMessageA(hDlg,cmb2,CB_GETITEMDATA, - SendDlgItemMessageA(hDlg, cmb2, CB_GETCURSEL, 0, 0), 0); - if (paperword != CB_ERR) - dm->u1.s1.dmPaperSize = paperword; - else - FIXME("could not get dialog text for papersize cmbbox?\n"); - - /* Save paper source into the device context */ - paperword = SendDlgItemMessageA(hDlg,cmb1,CB_GETITEMDATA, - SendDlgItemMessageA(hDlg, cmb1, CB_GETCURSEL, 0, 0), 0); - if (paperword != CB_ERR) - dm->u1.s1.dmDefaultSource = paperword; - else - FIXME("could not get dialog text for papersize cmbbox?\n"); - - GlobalUnlock(pda->pdlg.hDevMode); - - return TRUE; +static WCHAR *pagesetup_get_drvname(const pagesetup_data *data) +{ + return pagesetup_get_a_devname(data, devnames_driver_name); } -static BOOL -PRINTDLG_PS_UpdateDlgStructW(HWND hDlg, PageSetupDataW *pdw) { - DEVNAMES *dn; - DEVMODEW *dm; - LPWSTR devname,portname; - WCHAR papername[64]; - WCHAR buf[200]; +static WCHAR *pagesetup_get_devname(const pagesetup_data *data) +{ + return pagesetup_get_a_devname(data, devnames_device_name); +} - dn = GlobalLock(pdw->pdlg.hDevNames); - dm = GlobalLock(pdw->pdlg.hDevMode); - devname = ((WCHAR*)dn)+dn->wDeviceOffset; - portname = ((WCHAR*)dn)+dn->wOutputOffset; +static WCHAR *pagesetup_get_portname(const pagesetup_data *data) +{ + return pagesetup_get_a_devname(data, devnames_output_name); +} - /* Save paper size into device context */ - PRINTDLG_SetUpPaperComboBoxW(hDlg,cmb2,devname,portname,dm); - /* Save paper source into device context */ - PRINTDLG_SetUpPaperComboBoxW(hDlg,cmb3,devname,portname,dm); +static void pagesetup_release_a_devname(const pagesetup_data *data, WCHAR *name) +{ + HeapFree(GetProcessHeap(), 0, name); +} - if (GetDlgItemTextW(hDlg,cmb2,papername,sizeof(papername)/sizeof(papername[0]))>0) { - PRINTDLG_PaperSizeW(&(pdw->pdlg),papername,&(pdw->dlgw->ptPaperSize)); - pdw->dlgw->ptPaperSize.x = _c_10mm2size((LPPAGESETUPDLGA)pdw->dlgw,pdw->dlgw->ptPaperSize.x); - pdw->dlgw->ptPaperSize.y = _c_10mm2size((LPPAGESETUPDLGA)pdw->dlgw,pdw->dlgw->ptPaperSize.y); - } else - FIXME("could not get dialog text for papersize cmbbox?\n"); -#define GETVAL(id,val) if (GetDlgItemTextW(hDlg,id,buf,sizeof(buf)/sizeof(buf[0]))>0) { val = _c_str2sizeW(pdw->dlgw,buf); } else { FIXME("could not get dlgitemtextw for %x\n",id); } - GETVAL(edt4,pdw->dlgw->rtMargin.left); - GETVAL(edt5,pdw->dlgw->rtMargin.top); - GETVAL(edt6,pdw->dlgw->rtMargin.right); - GETVAL(edt7,pdw->dlgw->rtMargin.bottom); -#undef GETVAL +static void pagesetup_set_devnames(pagesetup_data *data, LPCWSTR drv, LPCWSTR devname, LPCWSTR port) +{ + DEVNAMES *dn; + WCHAR def[256]; + DWORD len = sizeof(DEVNAMES), drv_len, dev_len, port_len; - /* If we are in landscape, swap x and y of page size */ - if (IsDlgButtonChecked(hDlg, rad2)) { - DWORD tmp; - tmp = pdw->dlgw->ptPaperSize.x; - pdw->dlgw->ptPaperSize.x = pdw->dlgw->ptPaperSize.y; - pdw->dlgw->ptPaperSize.y = tmp; + if(data->unicode) + { + drv_len = (strlenW(drv) + 1) * sizeof(WCHAR); + dev_len = (strlenW(devname) + 1) * sizeof(WCHAR); + port_len = (strlenW(port) + 1) * sizeof(WCHAR); + } + else + { + drv_len = WideCharToMultiByte(CP_ACP, 0, drv, -1, NULL, 0, NULL, NULL); + dev_len = WideCharToMultiByte(CP_ACP, 0, devname, -1, NULL, 0, NULL, NULL); + port_len = WideCharToMultiByte(CP_ACP, 0, port, -1, NULL, 0, NULL, NULL); + } + len += drv_len + dev_len + port_len; + + if(data->u.dlgw->hDevNames) + data->u.dlgw->hDevNames = GlobalReAlloc(data->u.dlgw->hDevNames, len, GMEM_MOVEABLE); + else + data->u.dlgw->hDevNames = GlobalAlloc(GMEM_MOVEABLE, len); + + dn = GlobalLock(data->u.dlgw->hDevNames); + + if(data->unicode) + { + WCHAR *ptr = (WCHAR *)(dn + 1); + len = sizeof(DEVNAMES) / sizeof(WCHAR); + dn->wDriverOffset = len; + strcpyW(ptr, drv); + ptr += drv_len / sizeof(WCHAR); + len += drv_len / sizeof(WCHAR); + dn->wDeviceOffset = len; + strcpyW(ptr, devname); + ptr += dev_len / sizeof(WCHAR); + len += dev_len / sizeof(WCHAR); + dn->wOutputOffset = len; + strcpyW(ptr, port); + } + else + { + char *ptr = (char *)(dn + 1); + len = sizeof(DEVNAMES); + dn->wDriverOffset = len; + WideCharToMultiByte(CP_ACP, 0, drv, -1, ptr, drv_len, NULL, NULL); + ptr += drv_len; + len += drv_len; + dn->wDeviceOffset = len; + WideCharToMultiByte(CP_ACP, 0, devname, -1, ptr, dev_len, NULL, NULL); + ptr += dev_len; + len += dev_len; + dn->wOutputOffset = len; + WideCharToMultiByte(CP_ACP, 0, port, -1, ptr, port_len, NULL, NULL); } - /* Save orientation */ - if (pdw->dlgw->ptPaperSize.x > pdw->dlgw->ptPaperSize.y) - dm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE; - else - dm->u1.s1.dmOrientation = DMORIENT_PORTRAIT; + dn->wDefault = 0; + len = sizeof(def) / sizeof(def[0]); + GetDefaultPrinterW(def, &len); + if(!lstrcmpW(def, devname)) + dn->wDefault = 1; - GlobalUnlock(pdw->pdlg.hDevNames); - GlobalUnlock(pdw->pdlg.hDevMode); - return TRUE; + GlobalUnlock(data->u.dlgw->hDevNames); +} + +static DEVMODEW *pagesetup_get_devmode(const pagesetup_data *data) +{ + DEVMODEW *dm = GlobalLock(data->u.dlgw->hDevMode); + DEVMODEW *ret; + + if(data->unicode) + { + /* We make a copy even in the unicode case because the ptr + may get passed back to us in pagesetup_set_devmode. */ + ret = HeapAlloc(GetProcessHeap(), 0, dm->dmSize + dm->dmDriverExtra); + memcpy(ret, dm, dm->dmSize + dm->dmDriverExtra); + } + else + ret = GdiConvertToDevmodeW((DEVMODEA *)dm); + + GlobalUnlock(data->u.dlgw->hDevMode); + return ret; +} + +static void pagesetup_release_devmode(const pagesetup_data *data, DEVMODEW *dm) +{ + HeapFree(GetProcessHeap(), 0, dm); +} + +static void pagesetup_set_devmode(pagesetup_data *data, DEVMODEW *dm) +{ + DEVMODEA *dmA = NULL; + void *src, *dst; + DWORD size; + + if(data->unicode) + { + size = dm->dmSize + dm->dmDriverExtra; + src = dm; + } + else + { + dmA = convert_to_devmodeA(dm); + size = dmA->dmSize + dmA->dmDriverExtra; + src = dmA; + } + + if(data->u.dlgw->hDevMode) + data->u.dlgw->hDevMode = GlobalReAlloc(data->u.dlgw->hDevMode, size, + GMEM_MOVEABLE); + else + data->u.dlgw->hDevMode = GlobalAlloc(GMEM_MOVEABLE, size); + + dst = GlobalLock(data->u.dlgw->hDevMode); + memcpy(dst, src, size); + GlobalUnlock(data->u.dlgw->hDevMode); + HeapFree(GetProcessHeap(), 0, dmA); +} + +static inline POINT *pagesetup_get_papersize_pt(const pagesetup_data *data) +{ + return &data->u.dlgw->ptPaperSize; +} + +static inline RECT *pagesetup_get_margin_rect(const pagesetup_data *data) +{ + return &data->u.dlgw->rtMargin; +} + +typedef enum +{ + page_setup_hook, + page_paint_hook +} hook_type; + +static inline LPPAGESETUPHOOK pagesetup_get_hook(const pagesetup_data *data, hook_type which) +{ + switch(which) + { + case page_setup_hook: return data->u.dlgw->lpfnPageSetupHook; + case page_paint_hook: return data->u.dlgw->lpfnPagePaintHook; + } + return NULL; +} + +/* This should only be used in calls to hook procs so we return the ptr + already cast to LPARAM */ +static inline LPARAM pagesetup_get_dlg_struct(const pagesetup_data *data) +{ + return (LPARAM)data->u.dlgw; +} + +static inline void swap_point(POINT *pt) +{ + LONG tmp = pt->x; + pt->x = pt->y; + pt->y = tmp; +} + +static BOOL pagesetup_update_papersize(pagesetup_data *data) +{ + DEVMODEW *dm; + LPWSTR devname, portname; + int i, num; + WORD *words = NULL, paperword; + POINT *points = NULL; + BOOL retval = FALSE; + + dm = pagesetup_get_devmode(data); + devname = pagesetup_get_devname(data); + portname = pagesetup_get_portname(data); + + num = DeviceCapabilitiesW(devname, portname, DC_PAPERS, NULL, dm); + if (num <= 0) + { + FIXME("No papernames found for %s/%s\n", debugstr_w(devname), debugstr_w(portname)); + goto end; + } + + words = HeapAlloc(GetProcessHeap(), 0, num * sizeof(WORD)); + points = HeapAlloc(GetProcessHeap(), 0, num * sizeof(POINT)); + + if (num != DeviceCapabilitiesW(devname, portname, DC_PAPERS, (LPWSTR)words, dm)) + { + FIXME("Number of returned words is not %d\n", num); + goto end; + } + + if (num != DeviceCapabilitiesW(devname, portname, DC_PAPERSIZE, (LPWSTR)points, dm)) + { + FIXME("Number of returned sizes is not %d\n", num); + goto end; + } + + paperword = pagesetup_get_papersize(data); + + for (i = 0; i < num; i++) + if (words[i] == paperword) + break; + + if (i == num) + { + FIXME("Papersize %d not found in list?\n", paperword); + goto end; + } + + /* this is _10ths_ of a millimeter */ + pagesetup_get_papersize_pt(data)->x = tenths_mm_to_size(data, points[i].x); + pagesetup_get_papersize_pt(data)->y = tenths_mm_to_size(data, points[i].y); + + if(pagesetup_get_orientation(data) == DMORIENT_LANDSCAPE) + swap_point(pagesetup_get_papersize_pt(data)); + + retval = TRUE; + +end: + HeapFree(GetProcessHeap(), 0, words); + HeapFree(GetProcessHeap(), 0, points); + pagesetup_release_a_devname(data, portname); + pagesetup_release_a_devname(data, devname); + pagesetup_release_devmode(data, dm); + + return retval; } /********************************************************************************************** - * PRINTDLG_PS_ChangeActivePrinerA + * pagesetup_change_printer * * Redefines hDevMode and hDevNames HANDLES and initialises it. * - * PARAMS - * name [in] Name of a printer for activation - * pda [in/out] ptr to PageSetupDataA structure - * - * RETURN - * TRUE if success - * FALSE if fail */ -static BOOL -PRINTDLG_PS_ChangeActivePrinterA(LPSTR name, PageSetupDataA *pda){ - HANDLE hprn; - DWORD needed; - LPPRINTER_INFO_2A lpPrinterInfo; - LPDRIVER_INFO_3A lpDriverInfo; - DEVMODEA *pDevMode, *dm; - - if(!OpenPrinterA(name, &hprn, NULL)){ - ERR("Can't open printer %s\n", name); - return FALSE; - } - GetPrinterA(hprn, 2, NULL, 0, &needed); - lpPrinterInfo = HeapAlloc(GetProcessHeap(), 0, needed); - GetPrinterA(hprn, 2, (LPBYTE)lpPrinterInfo, needed, &needed); - GetPrinterDriverA(hprn, NULL, 3, NULL, 0, &needed); - lpDriverInfo = HeapAlloc(GetProcessHeap(), 0, needed); - if(!GetPrinterDriverA(hprn, NULL, 3, (LPBYTE)lpDriverInfo, needed, &needed)) { - ERR("GetPrinterDriverA failed for %s, fix your config!\n", lpPrinterInfo->pPrinterName); - HeapFree(GetProcessHeap(), 0, lpDriverInfo); - HeapFree(GetProcessHeap(), 0, lpPrinterInfo); - return FALSE; - } - ClosePrinter(hprn); - - needed = DocumentPropertiesA(0, 0, name, NULL, NULL, 0); - if(needed == -1) { - ERR("DocumentProperties fails on %s\n", debugstr_a(name)); - HeapFree(GetProcessHeap(), 0, lpDriverInfo); - HeapFree(GetProcessHeap(), 0, lpPrinterInfo); - return FALSE; - } - pDevMode = HeapAlloc(GetProcessHeap(), 0, needed); - DocumentPropertiesA(0, 0, name, pDevMode, NULL, DM_OUT_BUFFER); +static BOOL pagesetup_change_printer(LPWSTR name, pagesetup_data *data) +{ + HANDLE hprn; + DWORD needed; + PRINTER_INFO_2W *prn_info = NULL; + DRIVER_INFO_3W *drv_info = NULL; + DEVMODEW *dm = NULL; + BOOL retval = FALSE; - pda->pdlg.hDevMode = GlobalReAlloc(pda->pdlg.hDevMode, - pDevMode->dmSize + pDevMode->dmDriverExtra, - GMEM_MOVEABLE); - dm = GlobalLock(pda->pdlg.hDevMode); - memcpy(dm, pDevMode, pDevMode->dmSize + pDevMode->dmDriverExtra); - - PRINTDLG_CreateDevNames(&(pda->pdlg.hDevNames), - lpDriverInfo->pDriverPath, - lpPrinterInfo->pPrinterName, - lpPrinterInfo->pPortName); - - GlobalUnlock(pda->pdlg.hDevMode); - HeapFree(GetProcessHeap(), 0, pDevMode); - HeapFree(GetProcessHeap(), 0, lpPrinterInfo); - HeapFree(GetProcessHeap(), 0, lpDriverInfo); - return TRUE; + if(!OpenPrinterW(name, &hprn, NULL)) + { + ERR("Can't open printer %s\n", debugstr_w(name)); + goto end; + } + + GetPrinterW(hprn, 2, NULL, 0, &needed); + prn_info = HeapAlloc(GetProcessHeap(), 0, needed); + GetPrinterW(hprn, 2, (LPBYTE)prn_info, needed, &needed); + GetPrinterDriverW(hprn, NULL, 3, NULL, 0, &needed); + drv_info = HeapAlloc(GetProcessHeap(), 0, needed); + if(!GetPrinterDriverW(hprn, NULL, 3, (LPBYTE)drv_info, needed, &needed)) + { + ERR("GetPrinterDriverA failed for %s, fix your config!\n", debugstr_w(prn_info->pPrinterName)); + goto end; + } + ClosePrinter(hprn); + + needed = DocumentPropertiesW(0, 0, name, NULL, NULL, 0); + if(needed == -1) + { + ERR("DocumentProperties fails on %s\n", debugstr_w(name)); + goto end; + } + + dm = HeapAlloc(GetProcessHeap(), 0, needed); + DocumentPropertiesW(0, 0, name, dm, NULL, DM_OUT_BUFFER); + + pagesetup_set_devmode(data, dm); + pagesetup_set_devnames(data, drv_info->pDriverPath, prn_info->pPrinterName, + prn_info->pPortName); + + retval = TRUE; +end: + HeapFree(GetProcessHeap(), 0, dm); + HeapFree(GetProcessHeap(), 0, prn_info); + HeapFree(GetProcessHeap(), 0, drv_info); + return retval; } /**************************************************************************************** - * PRINTDLG_PS_ChangePrinterA + * pagesetup_init_combos * - * Fills Printers, Paper and Source combo + * Fills Printers, Paper and Source combos * - * RETURNS - * TRUE */ -static BOOL -PRINTDLG_PS_ChangePrinterA(HWND hDlg, PageSetupDataA *pda) { - DEVNAMES *dn; - DEVMODEA *dm; - LPSTR devname,portname; - - dn = GlobalLock(pda->pdlg.hDevNames); - dm = GlobalLock(pda->pdlg.hDevMode); - devname = ((char*)dn)+dn->wDeviceOffset; - portname = ((char*)dn)+dn->wOutputOffset; - PRINTDLG_SetUpPrinterListComboA(hDlg, cmb1, devname); - PRINTDLG_SetUpPaperComboBoxA(hDlg,cmb2,devname,portname,dm); - PRINTDLG_SetUpPaperComboBoxA(hDlg,cmb3,devname,portname,dm); - GlobalUnlock(pda->pdlg.hDevNames); - GlobalUnlock(pda->pdlg.hDevMode); - return TRUE; +static void pagesetup_init_combos(HWND hDlg, pagesetup_data *data) +{ + DEVMODEW *dm; + LPWSTR devname, portname; + + dm = pagesetup_get_devmode(data); + devname = pagesetup_get_devname(data); + portname = pagesetup_get_portname(data); + + PRINTDLG_SetUpPrinterListComboW(hDlg, cmb1, devname); + PRINTDLG_SetUpPaperComboBoxW(hDlg, cmb2, devname, portname, dm); + PRINTDLG_SetUpPaperComboBoxW(hDlg, cmb3, devname, portname, dm); + + pagesetup_release_a_devname(data, portname); + pagesetup_release_a_devname(data, devname); + pagesetup_release_devmode(data, dm); } -static void PRINTDLG_PS_SetOrientationW(HWND hDlg, PageSetupDataW* pdw) + +/**************************************************************************************** + * pagesetup_change_printer_dialog + * + * Pops up another dialog that lets the user pick another printer. + * + * For now we display the PrintDlg, this should display a striped down version of it. + */ +static void pagesetup_change_printer_dialog(HWND hDlg, pagesetup_data *data) { - WCHAR PaperName[64]; + PRINTDLGW prnt; + LPWSTR drvname, devname, portname; + DEVMODEW *tmp_dm, *dm; - GetDlgItemTextW(hDlg, cmb2, PaperName, sizeof(PaperName)/sizeof(WCHAR)); - PRINTDLG_PaperSizeW(&pdw->pdlg, PaperName, &pdw->curdlg.ptPaperSize); - pdw->curdlg.ptPaperSize.x = _c_10mm2size((LPPAGESETUPDLGA)pdw->dlgw, pdw->curdlg.ptPaperSize.x); - pdw->curdlg.ptPaperSize.y = _c_10mm2size((LPPAGESETUPDLGA)pdw->dlgw, pdw->curdlg.ptPaperSize.y); + memset(&prnt, 0, sizeof(prnt)); + prnt.lStructSize = sizeof(prnt); + prnt.Flags = 0; + prnt.hwndOwner = hDlg; - if(IsDlgButtonChecked(hDlg, rad2)) + drvname = pagesetup_get_drvname(data); + devname = pagesetup_get_devname(data); + portname = pagesetup_get_portname(data); + prnt.hDevNames = 0; + PRINTDLG_CreateDevNamesW(&prnt.hDevNames, drvname, devname, portname); + pagesetup_release_a_devname(data, portname); + pagesetup_release_a_devname(data, devname); + pagesetup_release_a_devname(data, drvname); + + tmp_dm = pagesetup_get_devmode(data); + prnt.hDevMode = GlobalAlloc(GMEM_MOVEABLE, tmp_dm->dmSize + tmp_dm->dmDriverExtra); + dm = GlobalLock(prnt.hDevMode); + memcpy(dm, tmp_dm, tmp_dm->dmSize + tmp_dm->dmDriverExtra); + GlobalUnlock(prnt.hDevMode); + pagesetup_release_devmode(data, tmp_dm); + + if (PrintDlgW(&prnt)) { - DWORD tmp = pdw->curdlg.ptPaperSize.x; - pdw->curdlg.ptPaperSize.x = pdw->curdlg.ptPaperSize.y; - pdw->curdlg.ptPaperSize.y = tmp; + DEVMODEW *dm = GlobalLock(prnt.hDevMode); + DEVNAMES *dn = GlobalLock(prnt.hDevNames); + + pagesetup_set_devnames(data, (WCHAR*)dn + dn->wDriverOffset, + (WCHAR*)dn + dn->wDeviceOffset, (WCHAR *)dn + dn->wOutputOffset); + pagesetup_set_devmode(data, dm); + GlobalUnlock(prnt.hDevNames); + GlobalUnlock(prnt.hDevMode); + pagesetup_init_combos(hDlg, data); } -} -static void PRINTDLG_PS_UpdatePrintDlgW(PageSetupDataW* pdw, HWND hDlg) -{ - DEVMODEW* dm; - DWORD sel; + GlobalFree(prnt.hDevMode); + GlobalFree(prnt.hDevNames); - dm = GlobalLock(pdw->pdlg.hDevMode); - - if(!dm) - return; - - if(pdw->curdlg.ptPaperSize.y > pdw->curdlg.ptPaperSize.x) - dm->u1.s1.dmOrientation = DMORIENT_PORTRAIT; - else - dm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE; - - sel = SendDlgItemMessageW(hDlg, cmb2, CB_GETCURSEL, 0, 0); - - if(sel != CB_ERR) - dm->u1.s1.dmPaperSize = SendDlgItemMessageW(hDlg, cmb2, CB_GETITEMDATA, sel, 0); - - GlobalUnlock(pdw->pdlg.hDevMode); -} - -static BOOL -PRINTDLG_PS_ChangePrinterW(HWND hDlg, PageSetupDataW *pdw) { - DEVNAMES *dn; - DEVMODEW *dm; - LPWSTR devname,portname; - - dn = GlobalLock(pdw->pdlg.hDevNames); - dm = GlobalLock(pdw->pdlg.hDevMode); - devname = ((WCHAR*)dn)+dn->wDeviceOffset; - portname = ((WCHAR*)dn)+dn->wOutputOffset; - PRINTDLG_SetUpPaperComboBoxW(hDlg,cmb2,devname,portname,dm); - PRINTDLG_SetUpPaperComboBoxW(hDlg,cmb3,devname,portname,dm); - - /* Landscape orientation */ - if (dm->u1.s1.dmOrientation == DMORIENT_LANDSCAPE) - CheckRadioButton(hDlg, rad1, rad2, rad2); - else /* this is default if papersize is not set */ - CheckRadioButton(hDlg, rad1, rad2, rad1); - - GlobalUnlock(pdw->pdlg.hDevNames); - GlobalUnlock(pdw->pdlg.hDevMode); - - PRINTDLG_PS_SetOrientationW(hDlg, pdw); - - return TRUE; } /****************************************************************************************** - * PRINTDLG_PS_ChangePaperPrev - * + * pagesetup_change_preview + * * Changes paper preview size / position * - * PARAMS: - * pda [i] Pointer for current PageSetupDataA structure - * - * RETURNS: - * always - TRUE */ -static BOOL -PRINTDLG_PS_ChangePaperPrev(const PageSetupDataA *pda) +static void pagesetup_change_preview(const pagesetup_data *data) { LONG width, height, x, y; - RECT rtTmp; - - if(pda->curdlg.ptPaperSize.x > pda->curdlg.ptPaperSize.y) { - width = pda->rtDrawRect.right - pda->rtDrawRect.left; - height = pda->curdlg.ptPaperSize.y * width / pda->curdlg.ptPaperSize.x; - } else { - height = pda->rtDrawRect.bottom - pda->rtDrawRect.top; - width = pda->curdlg.ptPaperSize.x * height / pda->curdlg.ptPaperSize.y; + RECT tmp; + const int shadow = 4; + + if(pagesetup_get_orientation(data) == DMORIENT_LANDSCAPE) + { + width = data->rtDrawRect.right - data->rtDrawRect.left; + height = pagesetup_get_papersize_pt(data)->y * width / pagesetup_get_papersize_pt(data)->x; } - x = (pda->rtDrawRect.right + pda->rtDrawRect.left - width) / 2; - y = (pda->rtDrawRect.bottom + pda->rtDrawRect.top - height) / 2; - TRACE("rtDrawRect(%d, %d, %d, %d) x=%d, y=%d, w=%d, h=%d\n", - pda->rtDrawRect.left, pda->rtDrawRect.top, pda->rtDrawRect.right, pda->rtDrawRect.bottom, - x, y, width, height); + else + { + height = data->rtDrawRect.bottom - data->rtDrawRect.top; + width = pagesetup_get_papersize_pt(data)->x * height / pagesetup_get_papersize_pt(data)->y; + } + x = (data->rtDrawRect.right + data->rtDrawRect.left - width) / 2; + y = (data->rtDrawRect.bottom + data->rtDrawRect.top - height) / 2; + TRACE("draw rect %s x=%d, y=%d, w=%d, h=%d\n", + wine_dbgstr_rect(&data->rtDrawRect), x, y, width, height); -#define SHADOW 4 - MoveWindow(GetDlgItem(pda->hDlg, rct2), x+width, y+SHADOW, SHADOW, height, FALSE); - MoveWindow(GetDlgItem(pda->hDlg, rct3), x+SHADOW, y+height, width, SHADOW, FALSE); - MoveWindow(GetDlgItem(pda->hDlg, rct1), x, y, width, height, FALSE); - rtTmp = pda->rtDrawRect; - rtTmp.right += SHADOW; - rtTmp.bottom += SHADOW; -#undef SHADOW + MoveWindow(GetDlgItem(data->hDlg, rct2), x + width, y + shadow, shadow, height, FALSE); + MoveWindow(GetDlgItem(data->hDlg, rct3), x + shadow, y + height, width, shadow, FALSE); + MoveWindow(GetDlgItem(data->hDlg, rct1), x, y, width, height, FALSE); - InvalidateRect(pda->hDlg, &rtTmp, TRUE); - return TRUE; + tmp = data->rtDrawRect; + tmp.right += shadow; + tmp.bottom += shadow; + InvalidateRect(data->hDlg, &tmp, TRUE); } -#define GETVAL(idc,val) \ -if(msg == EN_CHANGE){ \ - if (GetDlgItemTextA(hDlg,idc,buf,sizeof(buf)) > 0)\ - val = _c_str2sizeA(pda->dlga,buf); \ - else\ - FIXME("could not get dlgitemtexta for %x\n",id); \ +static inline LONG *element_from_margin_id(RECT *rc, WORD id) +{ + switch(id) + { + case edt4: return &rc->left; + case edt5: return &rc->top; + case edt6: return &rc->right; + case edt7: return &rc->bottom; + } + return NULL; +} + +static void update_margin_edits(HWND hDlg, const pagesetup_data *data, WORD id) +{ + WCHAR str[100]; + WORD idx; + + for(idx = edt4; idx <= edt7; idx++) + { + if(id == 0 || id == idx) + { + size2str(data, *element_from_margin_id(pagesetup_get_margin_rect(data), idx), str); + SetDlgItemTextW(hDlg, idx, str); + } + } +} + +static void margin_edit_notification(HWND hDlg, pagesetup_data *data, WORD msg, WORD id) +{ + switch (msg) + { + case EN_CHANGE: + { + WCHAR buf[10]; + LONG val = 0; + LONG *value = element_from_margin_id(pagesetup_get_margin_rect(data), id); + + if (GetDlgItemTextW(hDlg, id, buf, sizeof(buf) / sizeof(buf[0])) != 0) + { + WCHAR *end; + WCHAR decimal = get_decimal_sep(); + + val = strtolW(buf, &end, 10); + if(end != buf || *end == decimal) + { + int mult = is_metric(data) ? 100 : 1000; + val *= mult; + if(*end == decimal) + { + while(mult > 1) + { + end++; + mult /= 10; + if(isdigitW(*end)) + val += (*end - '0') * mult; + else + break; + } + } + } + } + *value = val; + return; + } + + case EN_KILLFOCUS: + update_margin_edits(hDlg, data, id); + return; + } +} + +static void set_margin_groupbox_title(HWND hDlg, const pagesetup_data *data) +{ + WCHAR title[256]; + + if(LoadStringW(COMDLG32_hInstance, is_metric(data) ? PD32_MARGINS_IN_MILLIMETERS : PD32_MARGINS_IN_INCHES, + title, sizeof(title)/sizeof(title[0]))) + SetDlgItemTextW(hDlg, grp4, title); +} + +static void pagesetup_update_orientation_buttons(HWND hDlg, const pagesetup_data *data) +{ + if (pagesetup_get_orientation(data) == DMORIENT_LANDSCAPE) + CheckRadioButton(hDlg, rad1, rad2, rad2); + else + CheckRadioButton(hDlg, rad1, rad2, rad1); +} + +/**************************************************************************************** + * pagesetup_printer_properties + * + * Handle invocation of the 'Properties' button (not present in the default template). + */ +static void pagesetup_printer_properties(HWND hDlg, pagesetup_data *data) +{ + HANDLE hprn; + LPWSTR devname; + DEVMODEW *dm; + LRESULT count; + int i; + + devname = pagesetup_get_devname(data); + + if (!OpenPrinterW(devname, &hprn, NULL)) + { + FIXME("Call to OpenPrinter did not succeed!\n"); + pagesetup_release_a_devname(data, devname); + return; + } + + dm = pagesetup_get_devmode(data); + DocumentPropertiesW(hDlg, hprn, devname, dm, dm, DM_IN_BUFFER | DM_OUT_BUFFER | DM_IN_PROMPT); + pagesetup_set_devmode(data, dm); + pagesetup_release_devmode(data, dm); + pagesetup_release_a_devname(data, devname); + ClosePrinter(hprn); + + /* Changing paper */ + pagesetup_update_papersize(data); + pagesetup_update_orientation_buttons(hDlg, data); + + /* Changing paper preview */ + pagesetup_change_preview(data); + + /* Selecting paper in combo */ + count = SendDlgItemMessageW(hDlg, cmb2, CB_GETCOUNT, 0, 0); + if(count != CB_ERR) + { + WORD paperword = pagesetup_get_papersize(data); + for(i = 0; i < count; i++) + { + if(SendDlgItemMessageW(hDlg, cmb2, CB_GETITEMDATA, i, 0) == paperword) { + SendDlgItemMessageW(hDlg, cmb2, CB_SETCURSEL, i, 0); + break; + } + } + } } /******************************************************************************** - * PRINTDLG_PS_WMCommandA - * process WM_COMMAND message for PageSetupDlgA + * pagesetup_wm_command + * process WM_COMMAND message for PageSetupDlg * * PARAMS * hDlg [in] Main dialog HANDLE @@ -2888,20 +3135,15 @@ if(msg == EN_CHANGE){ \ * pda [in/out] ptr to PageSetupDataA */ -static BOOL -PRINTDLG_PS_WMCommandA( - HWND hDlg, WPARAM wParam, LPARAM lParam, PageSetupDataA *pda -) { +static BOOL pagesetup_wm_command(HWND hDlg, WPARAM wParam, LPARAM lParam, pagesetup_data *data) +{ WORD msg = HIWORD(wParam); WORD id = LOWORD(wParam); - char buf[200]; - + TRACE("loword (lparam) %d, wparam 0x%lx, lparam %08lx\n", LOWORD(lParam),wParam,lParam); switch (id) { case IDOK: - if (!PRINTDLG_PS_UpdateDlgStructA(hDlg, pda)) - return(FALSE); EndDialog(hDlg, TRUE); return TRUE ; @@ -2909,199 +3151,74 @@ PRINTDLG_PS_WMCommandA( EndDialog(hDlg, FALSE); return FALSE ; - case psh3: { - pda->pdlg.Flags = 0; - pda->pdlg.hwndOwner = hDlg; - if (PrintDlgA(&(pda->pdlg))) - PRINTDLG_PS_ChangePrinterA(hDlg,pda); - } - return TRUE; - case rad1: - case rad2: - if((id == rad1 && pda->curdlg.ptPaperSize.x > pda->curdlg.ptPaperSize.y) || - (id == rad2 && pda->curdlg.ptPaperSize.y > pda->curdlg.ptPaperSize.x)) + case psh3: /* Printer... */ + pagesetup_change_printer_dialog(hDlg, data); + return TRUE; + + case rad1: /* Portrait */ + case rad2: /* Landscape */ + if((id == rad1 && pagesetup_get_orientation(data) == DMORIENT_LANDSCAPE) || + (id == rad2 && pagesetup_get_orientation(data) == DMORIENT_PORTRAIT)) { - char TmpText[25]; - char TmpText2[25]; - DWORD tmp = pda->curdlg.ptPaperSize.x; - - pda->curdlg.ptPaperSize.x = pda->curdlg.ptPaperSize.y; - pda->curdlg.ptPaperSize.y = tmp; - - GetDlgItemTextA(hDlg, edt4, TmpText, sizeof(TmpText)); - GetDlgItemTextA(hDlg, edt5, TmpText2, sizeof(TmpText2)); - SetDlgItemTextA(hDlg, edt5, TmpText); - SetDlgItemTextA(hDlg, edt4, TmpText2); - - GetDlgItemTextA(hDlg, edt6, TmpText, sizeof(TmpText)); - GetDlgItemTextA(hDlg, edt7, TmpText2, sizeof(TmpText2)); - SetDlgItemTextA(hDlg, edt7, TmpText); - SetDlgItemTextA(hDlg, edt6, TmpText2); - - PRINTDLG_PS_ChangePaperPrev(pda); + pagesetup_set_orientation(data, (id == rad1) ? DMORIENT_PORTRAIT : DMORIENT_LANDSCAPE); + pagesetup_update_papersize(data); + rotate_rect(pagesetup_get_margin_rect(data), (id == rad2)); + update_margin_edits(hDlg, data, 0); + pagesetup_change_preview(data); } break; case cmb1: /* Printer combo */ - if(msg == CBN_SELCHANGE){ - char crPrinterName[256]; - GetDlgItemTextA(hDlg, id, crPrinterName, 255); - PRINTDLG_PS_ChangeActivePrinterA(crPrinterName, pda); - PRINTDLG_PS_ChangePrinterA(hDlg, pda); - } - break; + if(msg == CBN_SELCHANGE) + { + WCHAR name[256]; + GetDlgItemTextW(hDlg, id, name, sizeof(name) / sizeof(name[0])); + pagesetup_change_printer(name, data); + pagesetup_init_combos(hDlg, data); + } + break; case cmb2: /* Paper combo */ - if(msg == CBN_SELCHANGE){ - DWORD paperword = SendDlgItemMessageA(hDlg,cmb2,CB_GETITEMDATA, - SendDlgItemMessageA(hDlg, cmb2, CB_GETCURSEL, 0, 0), 0); - if (paperword != CB_ERR) { - PRINTDLG_PaperSizeA(&(pda->pdlg), paperword,&(pda->curdlg.ptPaperSize)); - pda->curdlg.ptPaperSize.x = _c_10mm2size(pda->dlga,pda->curdlg.ptPaperSize.x); - pda->curdlg.ptPaperSize.y = _c_10mm2size(pda->dlga,pda->curdlg.ptPaperSize.y); - - if (IsDlgButtonChecked(hDlg, rad2)) { - DWORD tmp = pda->curdlg.ptPaperSize.x; - pda->curdlg.ptPaperSize.x = pda->curdlg.ptPaperSize.y; - pda->curdlg.ptPaperSize.y = tmp; - } - PRINTDLG_PS_ChangePaperPrev(pda); + if(msg == CBN_SELCHANGE) + { + DWORD paperword = SendDlgItemMessageW(hDlg, cmb2, CB_GETITEMDATA, + SendDlgItemMessageW(hDlg, cmb2, CB_GETCURSEL, 0, 0), 0); + if (paperword != CB_ERR) + { + pagesetup_set_papersize(data, paperword); + pagesetup_update_papersize(data); + pagesetup_change_preview(data); } else - FIXME("could not get dialog text for papersize cmbbox?\n"); - } - break; - case cmb3: - if(msg == CBN_SELCHANGE){ - DEVMODEA *dm = GlobalLock(pda->pdlg.hDevMode); - dm->u1.s1.dmDefaultSource = SendDlgItemMessageA(hDlg, cmb3,CB_GETITEMDATA, - SendDlgItemMessageA(hDlg, cmb3, CB_GETCURSEL, 0, 0), 0); - GlobalUnlock(pda->pdlg.hDevMode); - } - break; - case psh2: /* Printer Properties button */ - { - HANDLE hPrinter; - char PrinterName[256]; - DEVMODEA *dm; - LRESULT count; - int i; - - GetDlgItemTextA(hDlg, cmb1, PrinterName, 255); - if (!OpenPrinterA(PrinterName, &hPrinter, NULL)) { - FIXME("Call to OpenPrinter did not succeed!\n"); - break; - } - dm = GlobalLock(pda->pdlg.hDevMode); - DocumentPropertiesA(hDlg, hPrinter, PrinterName, dm, dm, - DM_IN_BUFFER | DM_OUT_BUFFER | DM_IN_PROMPT); - ClosePrinter(hPrinter); - /* Changing paper */ - PRINTDLG_PaperSizeA(&(pda->pdlg), dm->u1.s1.dmPaperSize, &(pda->curdlg.ptPaperSize)); - pda->curdlg.ptPaperSize.x = _c_10mm2size(pda->dlga, pda->curdlg.ptPaperSize.x); - pda->curdlg.ptPaperSize.y = _c_10mm2size(pda->dlga, pda->curdlg.ptPaperSize.y); - if (dm->u1.s1.dmOrientation == DMORIENT_LANDSCAPE){ - DWORD tmp = pda->curdlg.ptPaperSize.x; - pda->curdlg.ptPaperSize.x = pda->curdlg.ptPaperSize.y; - pda->curdlg.ptPaperSize.y = tmp; - CheckRadioButton(hDlg, rad1, rad2, rad2); - } - else - CheckRadioButton(hDlg, rad1, rad2, rad1); - /* Changing paper preview */ - PRINTDLG_PS_ChangePaperPrev(pda); - /* Selecting paper in combo */ - count = SendDlgItemMessageA(hDlg, cmb2, CB_GETCOUNT, 0, 0); - if(count != CB_ERR){ - for(i=0; iu1.s1.dmPaperSize) { - SendDlgItemMessageA(hDlg, cmb2, CB_SETCURSEL, i, 0); - break; - } - } - } - - GlobalUnlock(pda->pdlg.hDevMode); - break; - } + FIXME("could not get dialog text for papersize cmbbox?\n"); + } + break; + case cmb3: /* Paper Source */ + if(msg == CBN_SELCHANGE) + { + WORD source = SendDlgItemMessageW(hDlg, cmb3, CB_GETITEMDATA, + SendDlgItemMessageW(hDlg, cmb3, CB_GETCURSEL, 0, 0), 0); + pagesetup_set_defaultsource(data, source); + } + break; + case psh2: /* Printer Properties button */ + pagesetup_printer_properties(hDlg, data); + break; case edt4: - GETVAL(id, pda->curdlg.rtMargin.left); - break; case edt5: - GETVAL(id, pda->curdlg.rtMargin.top); - break; case edt6: - GETVAL(id, pda->curdlg.rtMargin.right); - break; case edt7: - GETVAL(id, pda->curdlg.rtMargin.bottom); - break; + margin_edit_notification(hDlg, data, msg, id); + break; } InvalidateRect(GetDlgItem(hDlg, rct1), NULL, TRUE); return FALSE; } -#undef GETVAL - -static BOOL -PRINTDLG_PS_WMCommandW( - HWND hDlg, WPARAM wParam, LPARAM lParam, PageSetupDataW *pdw -) { - TRACE("loword (lparam) %d, wparam 0x%lx, lparam %08lx\n", - LOWORD(lParam),wParam,lParam); - switch (LOWORD(wParam)) { - case IDOK: - if (!PRINTDLG_PS_UpdateDlgStructW(hDlg, pdw)) - return(FALSE); - EndDialog(hDlg, TRUE); - return TRUE ; - - case IDCANCEL: - EndDialog(hDlg, FALSE); - return FALSE ; - - case rad1: - case rad2: - if((LOWORD(wParam) == rad1 && pdw->curdlg.ptPaperSize.x > pdw->curdlg.ptPaperSize.y) || - (LOWORD(wParam) == rad2 && pdw->curdlg.ptPaperSize.y > pdw->curdlg.ptPaperSize.x)) - { - WCHAR tmpText[25]; - WCHAR tmpText2[25]; - DWORD tmp = pdw->curdlg.ptPaperSize.y; - - pdw->curdlg.ptPaperSize.y = pdw->curdlg.ptPaperSize.x; - pdw->curdlg.ptPaperSize.x = tmp; - - GetDlgItemTextW(hDlg, edt4, tmpText, sizeof(tmpText)/sizeof(WCHAR)); - GetDlgItemTextW(hDlg, edt5, tmpText2, sizeof(tmpText2)/sizeof(WCHAR)); - SetDlgItemTextW(hDlg, edt5, tmpText); - SetDlgItemTextW(hDlg, edt4, tmpText2); - - GetDlgItemTextW(hDlg, edt6, tmpText, sizeof(tmpText)/sizeof(WCHAR)); - GetDlgItemTextW(hDlg, edt7, tmpText2, sizeof(tmpText2)/sizeof(WCHAR)); - SetDlgItemTextW(hDlg, edt7, tmpText); - SetDlgItemTextW(hDlg, edt6, tmpText2); - } - break; - - case psh3: { - pdw->pdlg.Flags = 0; - pdw->pdlg.hwndOwner = hDlg; - PRINTDLG_PS_UpdatePrintDlgW(pdw, hDlg); - if (PrintDlgW(&(pdw->pdlg))) - PRINTDLG_PS_ChangePrinterW(hDlg,pdw); - return TRUE; - } - } - return FALSE; -} - /*********************************************************************** - * DefaultPagePaintHook + * default_page_paint_hook * Default hook paint procedure that receives WM_PSD_* messages from the dialog box * whenever the sample page is redrawn. -*/ - -static UINT_PTR -PRINTDLG_DefaultPagePaintHook(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, - const PageSetupDataA *pda) + */ +static UINT_PTR default_page_paint_hook(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam, + const pagesetup_data *data) { LPRECT lprc = (LPRECT) lParam; HDC hdc = (HDC) wParam; @@ -3111,8 +3228,8 @@ PRINTDLG_DefaultPagePaintHook(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa INT oldbkmode; TRACE("uMsg: WM_USER+%d\n",uMsg-WM_USER); /* Call user paint hook if enable */ - if (pda->dlga->Flags & PSD_ENABLEPAGEPAINTHOOK) - if (pda->dlga->lpfnPagePaintHook(hwndDlg, uMsg, wParam, lParam)) + if (pagesetup_get_flags(data) & PSD_ENABLEPAGEPAINTHOOK) + if (pagesetup_get_hook(data, page_paint_hook)(hwndDlg, uMsg, wParam, lParam)) return TRUE; switch (uMsg) { @@ -3206,41 +3323,41 @@ PRINTDLG_PagePaintProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) HPEN hpen, holdpen; HDC hdc; HBRUSH hbrush, holdbrush; - PageSetupDataA *pda; + pagesetup_data *data; int papersize=0, orientation=0; /* FIXME: set this values for user paint hook */ double scalx, scaly; -#define CALLPAINTHOOK(msg,lprc) PRINTDLG_DefaultPagePaintHook( hWnd, msg, (WPARAM)hdc, (LPARAM)lprc, pda) if (uMsg != WM_PAINT) return CallWindowProcA(lpfnStaticWndProc, hWnd, uMsg, wParam, lParam); /* Processing WM_PAINT message */ - pda = GetPropA(hWnd, "__WINE_PAGESETUPDLGDATA"); - if (!pda) { + data = GetPropW(hWnd, pagesetupdlg_prop); + if (!data) { WARN("__WINE_PAGESETUPDLGDATA prop not set?\n"); return FALSE; } - if (PRINTDLG_DefaultPagePaintHook(hWnd, WM_PSD_PAGESETUPDLG, MAKELONG(papersize, orientation), (LPARAM)pda->dlga, pda)) + if (default_page_paint_hook(hWnd, WM_PSD_PAGESETUPDLG, MAKELONG(papersize, orientation), + pagesetup_get_dlg_struct(data), data)) return FALSE; hdc = BeginPaint(hWnd, &ps); GetClientRect(hWnd, &rcClient); - scalx = rcClient.right / (double)pda->curdlg.ptPaperSize.x; - scaly = rcClient.bottom / (double)pda->curdlg.ptPaperSize.y; + scalx = rcClient.right / (double)pagesetup_get_papersize_pt(data)->x; + scaly = rcClient.bottom / (double)pagesetup_get_papersize_pt(data)->y; rcMargin = rcClient; - rcMargin.left += pda->curdlg.rtMargin.left * scalx; - rcMargin.top += pda->curdlg.rtMargin.top * scalx; - rcMargin.right -= pda->curdlg.rtMargin.right * scaly; - rcMargin.bottom -= pda->curdlg.rtMargin.bottom * scaly; + rcMargin.left += pagesetup_get_margin_rect(data)->left * scalx; + rcMargin.top += pagesetup_get_margin_rect(data)->top * scaly; + rcMargin.right -= pagesetup_get_margin_rect(data)->right * scalx; + rcMargin.bottom -= pagesetup_get_margin_rect(data)->bottom * scaly; /* if the space is too small then we make sure to not draw anything */ rcMargin.left = min(rcMargin.left, rcMargin.right); rcMargin.top = min(rcMargin.top, rcMargin.bottom); - if (!CALLPAINTHOOK(WM_PSD_FULLPAGERECT, &rcClient) && - !CALLPAINTHOOK(WM_PSD_MINMARGINRECT, &rcMargin) ) + if (!default_page_paint_hook(hWnd, WM_PSD_FULLPAGERECT, (WPARAM)hdc, (LPARAM)&rcClient, data) && + !default_page_paint_hook(hWnd, WM_PSD_MINMARGINRECT, (WPARAM)hdc, (LPARAM)&rcMargin, data) ) { /* fill background */ hbrush = GetSysColorBrush(COLOR_3DHIGHLIGHT); @@ -3272,7 +3389,7 @@ PRINTDLG_PagePaintProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) DeleteObject(SelectObject(hdc, holdpen)); DeleteObject(SelectObject(hdc, holdbrush)); - CALLPAINTHOOK(WM_PSD_MARGINRECT, &rcMargin); + default_page_paint_hook(hWnd, WM_PSD_MARGINRECT, (WPARAM)hdc, (LPARAM)&rcMargin, data); /* give text a bit of a space from the frame */ rcMargin.left += 2; @@ -3284,38 +3401,65 @@ PRINTDLG_PagePaintProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) rcMargin.left = min(rcMargin.left, rcMargin.right); rcMargin.top = min(rcMargin.top, rcMargin.bottom); - CALLPAINTHOOK(WM_PSD_GREEKTEXTRECT, &rcMargin); + default_page_paint_hook(hWnd, WM_PSD_GREEKTEXTRECT, (WPARAM)hdc, (LPARAM)&rcMargin, data); } EndPaint(hWnd, &ps); return FALSE; -#undef CALLPAINTHOOK +} + +/******************************************************* + * The margin edit controls are subclassed to filter + * anything other than numbers and the decimal separator. + */ +static LRESULT CALLBACK pagesetup_margin_editproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) +{ + switch(msg) + case WM_CHAR: + { + WCHAR decimal = get_decimal_sep(); + WCHAR wc = (WCHAR)wparam; + if(!isdigitW(wc) && wc != decimal && wc != VK_BACK) return 0; + } + return CallWindowProcW(edit_wndproc, hwnd, msg, wparam, lparam); +} + +static void subclass_margin_edits(HWND hDlg) +{ + int id; + WNDPROC old_proc; + + for(id = edt4; id <= edt7; id++) + { + old_proc = (WNDPROC)SetWindowLongPtrW(GetDlgItem(hDlg, id), + GWLP_WNDPROC, + (ULONG_PTR)pagesetup_margin_editproc); + InterlockedCompareExchangePointer((void**)&edit_wndproc, old_proc, NULL); + } } /*********************************************************************** - * PRINTDLG_PageDlgProcA - * Message handler for PageSetupDlgA + * pagesetup_dlg_proc + * + * Message handler for PageSetupDlg */ -static INT_PTR CALLBACK -PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) +static INT_PTR CALLBACK pagesetup_dlg_proc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { - DEVMODEA *dm; - PageSetupDataA *pda; + pagesetup_data *data; INT_PTR res = FALSE; HWND hDrawWnd; if (uMsg == WM_INITDIALOG) { /*Init dialog*/ - pda = (PageSetupDataA*)lParam; - pda->hDlg = hDlg; /* saving handle to main window to PageSetupDataA structure */ - pda->curdlg = *pda->dlga; - + data = (pagesetup_data *)lParam; + data->hDlg = hDlg; + hDrawWnd = GetDlgItem(hDlg, rct1); - TRACE("set property to %p\n", pda); - SetPropA(hDlg, "__WINE_PAGESETUPDLGDATA", pda); - SetPropA(hDrawWnd, "__WINE_PAGESETUPDLGDATA", pda); - GetWindowRect(hDrawWnd, &pda->rtDrawRect); /* Calculating rect in client coordinates where paper draws */ - ScreenToClient(hDlg, (LPPOINT)&pda->rtDrawRect); - ScreenToClient(hDlg, (LPPOINT)(&pda->rtDrawRect.right)); + TRACE("set property to %p\n", data); + SetPropW(hDlg, pagesetupdlg_prop, data); + SetPropW(hDrawWnd, pagesetupdlg_prop, data); + GetWindowRect(hDrawWnd, &data->rtDrawRect); /* Calculating rect in client coordinates where paper draws */ + ScreenToClient(hDlg, (LPPOINT)&data->rtDrawRect); + ScreenToClient(hDlg, (LPPOINT)(&data->rtDrawRect.right)); lpfnStaticWndProc = (WNDPROC)SetWindowLongPtrW( hDrawWnd, GWLP_WNDPROC, @@ -3323,188 +3467,206 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) /* FIXME: Paint hook. Must it be at begin of initialization or at end? */ res = TRUE; - if (pda->dlga->Flags & PSD_ENABLEPAGESETUPHOOK) { - if (!pda->dlga->lpfnPageSetupHook(hDlg,uMsg,wParam,(LPARAM)pda->dlga)) + if (pagesetup_get_flags(data) & PSD_ENABLEPAGESETUPHOOK) + { + if (!pagesetup_get_hook(data, page_setup_hook)(hDlg, uMsg, wParam, + pagesetup_get_dlg_struct(data))) FIXME("Setup page hook failed?\n"); } /* if printer button disabled */ - if (pda->dlga->Flags & PSD_DISABLEPRINTER) + if (pagesetup_get_flags(data) & PSD_DISABLEPRINTER) EnableWindow(GetDlgItem(hDlg, psh3), FALSE); /* if margin edit boxes disabled */ - if (pda->dlga->Flags & PSD_DISABLEMARGINS) { + if (pagesetup_get_flags(data) & PSD_DISABLEMARGINS) + { EnableWindow(GetDlgItem(hDlg, edt4), FALSE); EnableWindow(GetDlgItem(hDlg, edt5), FALSE); EnableWindow(GetDlgItem(hDlg, edt6), FALSE); EnableWindow(GetDlgItem(hDlg, edt7), FALSE); } - /* Set orientation radiobutton properly */ - if(pda->dlga->hDevMode) - { - dm = GlobalLock(pda->dlga->hDevMode); - if (dm->u1.s1.dmOrientation == DMORIENT_LANDSCAPE) - CheckRadioButton(hDlg, rad1, rad2, rad2); - else /* this is default if papersize is not set */ - CheckRadioButton(hDlg, rad1, rad2, rad1); - GlobalUnlock(pda->dlga->hDevMode); - } + + /* Set orientation radiobuttons properly */ + pagesetup_update_orientation_buttons(hDlg, data); /* if orientation disabled */ - if (pda->dlga->Flags & PSD_DISABLEORIENTATION) { + if (pagesetup_get_flags(data) & PSD_DISABLEORIENTATION) + { EnableWindow(GetDlgItem(hDlg,rad1),FALSE); EnableWindow(GetDlgItem(hDlg,rad2),FALSE); } + /* We fill them out enabled or not */ - if (pda->dlga->Flags & PSD_MARGINS) { - char str[100]; - _c_size2strA(pda,pda->dlga->rtMargin.left,str); - SetDlgItemTextA(hDlg,edt4,str); - _c_size2strA(pda,pda->dlga->rtMargin.top,str); - SetDlgItemTextA(hDlg,edt5,str); - _c_size2strA(pda,pda->dlga->rtMargin.right,str); - SetDlgItemTextA(hDlg,edt6,str); - _c_size2strA(pda,pda->dlga->rtMargin.bottom,str); - SetDlgItemTextA(hDlg,edt7,str); - } else { - /* default is 1 inch */ - DWORD size = _c_inch2size(pda->dlga,1000); - char str[20]; - _c_size2strA(pda,size,str); - SetDlgItemTextA(hDlg,edt4,str); - SetDlgItemTextA(hDlg,edt5,str); - SetDlgItemTextA(hDlg,edt6,str); - SetDlgItemTextA(hDlg,edt7,str); - pda->curdlg.rtMargin.left = size; - pda->curdlg.rtMargin.top = size; - pda->curdlg.rtMargin.right = size; - pda->curdlg.rtMargin.bottom = size; - } + if (!(pagesetup_get_flags(data) & PSD_MARGINS)) + { + /* default is 1 inch */ + LONG size = thousandths_inch_to_size(data, 1000); + SetRect(pagesetup_get_margin_rect(data), size, size, size, size); + } + update_margin_edits(hDlg, data, 0); + subclass_margin_edits(hDlg); + set_margin_groupbox_title(hDlg, data); + /* if paper disabled */ - if (pda->dlga->Flags & PSD_DISABLEPAPER) { + if (pagesetup_get_flags(data) & PSD_DISABLEPAPER) + { EnableWindow(GetDlgItem(hDlg,cmb2),FALSE); EnableWindow(GetDlgItem(hDlg,cmb3),FALSE); } + /* filling combos: printer, paper, source. selecting current printer (from DEVMODEA) */ - PRINTDLG_PS_ChangePrinterA(hDlg, pda); - dm = GlobalLock(pda->pdlg.hDevMode); - if(dm){ - dm->u1.s1.dmDefaultSource = 15; /*FIXME: Automatic select. Does it always 15 at start? */ - PRINTDLG_PaperSizeA(&(pda->pdlg), dm->u1.s1.dmPaperSize, &pda->curdlg.ptPaperSize); - GlobalUnlock(pda->pdlg.hDevMode); - pda->curdlg.ptPaperSize.x = _c_10mm2size(pda->dlga, pda->curdlg.ptPaperSize.x); - pda->curdlg.ptPaperSize.y = _c_10mm2size(pda->dlga, pda->curdlg.ptPaperSize.y); - if (IsDlgButtonChecked(hDlg, rad2) == BST_CHECKED) { /* Landscape orientation */ - DWORD tmp = pda->curdlg.ptPaperSize.y; - pda->curdlg.ptPaperSize.y = pda->curdlg.ptPaperSize.x; - pda->curdlg.ptPaperSize.x = tmp; - } - } else - WARN("GlobalLock(pda->pdlg.hDevMode) fail? hDevMode=%p\n", pda->pdlg.hDevMode); + pagesetup_init_combos(hDlg, data); + pagesetup_update_papersize(data); + pagesetup_set_defaultsource(data, DMBIN_FORMSOURCE); /* FIXME: This is the auto select bin. Is this correct? */ + /* Drawing paper prev */ - PRINTDLG_PS_ChangePaperPrev(pda); + pagesetup_change_preview(data); return TRUE; } else { - pda = GetPropA(hDlg,"__WINE_PAGESETUPDLGDATA"); - if (!pda) { + data = GetPropW(hDlg, pagesetupdlg_prop); + if (!data) + { WARN("__WINE_PAGESETUPDLGDATA prop not set?\n"); return FALSE; } - if (pda->dlga->Flags & PSD_ENABLEPAGESETUPHOOK) { - res = pda->dlga->lpfnPageSetupHook(hDlg,uMsg,wParam,lParam); + if (pagesetup_get_flags(data) & PSD_ENABLEPAGESETUPHOOK) + { + res = pagesetup_get_hook(data, page_setup_hook)(hDlg, uMsg, wParam, lParam); if (res) return res; } } switch (uMsg) { case WM_COMMAND: - return PRINTDLG_PS_WMCommandA(hDlg, wParam, lParam, pda); + return pagesetup_wm_command(hDlg, wParam, lParam, data); } return FALSE; } -static INT_PTR CALLBACK -PageDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) +static WCHAR *get_default_printer(void) { - static const WCHAR __WINE_PAGESETUPDLGDATA[] = - { '_', '_', 'W', 'I', 'N', 'E', '_', 'P', 'A', 'G', 'E', - 'S', 'E', 'T', 'U', 'P', 'D', 'L', 'G', 'D', 'A', 'T', 'A', 0 }; - PageSetupDataW *pdw; - BOOL res = FALSE; + WCHAR *name = NULL; + DWORD len = 0; - if (uMsg==WM_INITDIALOG) { - res = TRUE; - pdw = (PageSetupDataW*)lParam; - pdw->curdlg = *pdw->dlgw; - SetPropW(hDlg, __WINE_PAGESETUPDLGDATA, pdw); - if (pdw->dlgw->Flags & PSD_ENABLEPAGESETUPHOOK) { - res = pdw->dlgw->lpfnPageSetupHook(hDlg,uMsg,wParam,(LPARAM)pdw->dlgw); - if (!res) { - FIXME("Setup page hook failed?\n"); - res = TRUE; - } - } - - if (pdw->dlgw->Flags & PSD_ENABLEPAGEPAINTHOOK) { - FIXME("PagePaintHook not yet implemented!\n"); - } - if (pdw->dlgw->Flags & PSD_DISABLEPRINTER) - EnableWindow(GetDlgItem(hDlg, psh3), FALSE); - if (pdw->dlgw->Flags & PSD_DISABLEMARGINS) { - EnableWindow(GetDlgItem(hDlg, edt4), FALSE); - EnableWindow(GetDlgItem(hDlg, edt5), FALSE); - EnableWindow(GetDlgItem(hDlg, edt6), FALSE); - EnableWindow(GetDlgItem(hDlg, edt7), FALSE); - } - - PRINTDLG_PS_ChangePrinterW(hDlg,pdw); - - if (pdw->dlgw->Flags & PSD_DISABLEORIENTATION) { - EnableWindow(GetDlgItem(hDlg,rad1),FALSE); - EnableWindow(GetDlgItem(hDlg,rad2),FALSE); - } - /* We fill them out enabled or not */ - if (pdw->dlgw->Flags & PSD_MARGINS) { - WCHAR str[100]; - _c_size2strW(pdw,pdw->dlgw->rtMargin.left,str); - SetDlgItemTextW(hDlg,edt4,str); - _c_size2strW(pdw,pdw->dlgw->rtMargin.top,str); - SetDlgItemTextW(hDlg,edt5,str); - _c_size2strW(pdw,pdw->dlgw->rtMargin.right,str); - SetDlgItemTextW(hDlg,edt6,str); - _c_size2strW(pdw,pdw->dlgw->rtMargin.bottom,str); - SetDlgItemTextW(hDlg,edt7,str); - } else { - /* default is 1 inch */ - DWORD size = _c_inch2size((LPPAGESETUPDLGA)pdw->dlgw,1000); - WCHAR str[20]; - _c_size2strW(pdw,size,str); - SetDlgItemTextW(hDlg,edt4,str); - SetDlgItemTextW(hDlg,edt5,str); - SetDlgItemTextW(hDlg,edt6,str); - SetDlgItemTextW(hDlg,edt7,str); - } - - if (pdw->dlgw->Flags & PSD_DISABLEPAPER) { - EnableWindow(GetDlgItem(hDlg,cmb2),FALSE); - EnableWindow(GetDlgItem(hDlg,cmb3),FALSE); - } - - return TRUE; - } else { - pdw = GetPropW(hDlg, __WINE_PAGESETUPDLGDATA); - if (!pdw) { - WARN("__WINE_PAGESETUPDLGDATA prop not set?\n"); - return FALSE; - } - if (pdw->dlgw->Flags & PSD_ENABLEPAGESETUPHOOK) { - res = pdw->dlgw->lpfnPageSetupHook(hDlg,uMsg,wParam,lParam); - if (res) return res; - } + GetDefaultPrinterW(NULL, &len); + if(len) + { + name = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); + GetDefaultPrinterW(name, &len); } - switch (uMsg) { - case WM_COMMAND: - return PRINTDLG_PS_WMCommandW(hDlg, wParam, lParam, pdw); + return name; +} + +static void pagesetup_dump_dlg_struct(pagesetup_data *data) +{ + if(TRACE_ON(commdlg)) + { + char flagstr[1000] = ""; + const struct pd_flags *pflag = psd_flags; + for( ; pflag->name; pflag++) + { + if(pagesetup_get_flags(data) & pflag->flag) + { + strcat(flagstr, pflag->name); + strcat(flagstr, "|"); + } + } + TRACE("%s: (%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n" + "hinst %p, flags %08x (%s)\n", + data->unicode ? "unicode" : "ansi", + data->u.dlgw, data->u.dlgw->hwndOwner, data->u.dlgw->hDevMode, + data->u.dlgw->hDevNames, data->u.dlgw->hInstance, + pagesetup_get_flags(data), flagstr); } - return FALSE; +} + +static void *pagesetup_get_template(pagesetup_data *data) +{ + HRSRC res; + HGLOBAL tmpl_handle; + + if(pagesetup_get_flags(data) & PSD_ENABLEPAGESETUPTEMPLATEHANDLE) + { + tmpl_handle = data->u.dlgw->hPageSetupTemplate; + } + else if(pagesetup_get_flags(data) & PSD_ENABLEPAGESETUPTEMPLATE) + { + if(data->unicode) + res = FindResourceW(data->u.dlgw->hInstance, + data->u.dlgw->lpPageSetupTemplateName, MAKEINTRESOURCEW(RT_DIALOG)); + else + res = FindResourceA(data->u.dlga->hInstance, + data->u.dlga->lpPageSetupTemplateName, MAKEINTRESOURCEA(RT_DIALOG)); + tmpl_handle = LoadResource(data->u.dlgw->hInstance, res); + } + else + { + res = FindResourceW(COMDLG32_hInstance, MAKEINTRESOURCEW(PAGESETUPDLGORD), + MAKEINTRESOURCEW(RT_DIALOG)); + tmpl_handle = LoadResource(COMDLG32_hInstance, res); + } + return LockResource(tmpl_handle); +} + +static BOOL pagesetup_common(pagesetup_data *data) +{ + BOOL ret; + void *tmpl; + + if(!pagesetup_get_dlg_struct(data)) + { + COMDLG32_SetCommDlgExtendedError(CDERR_INITIALIZATION); + return FALSE; + } + + pagesetup_dump_dlg_struct(data); + + if(data->u.dlgw->lStructSize != sizeof(PAGESETUPDLGW)) + { + COMDLG32_SetCommDlgExtendedError(CDERR_STRUCTSIZE); + return FALSE; + } + + if ((pagesetup_get_flags(data) & PSD_ENABLEPAGEPAINTHOOK) && + (pagesetup_get_hook(data, page_paint_hook) == NULL)) + { + COMDLG32_SetCommDlgExtendedError(CDERR_NOHOOK); + return FALSE; + } + + if(!(pagesetup_get_flags(data) & (PSD_INTHOUSANDTHSOFINCHES | PSD_INHUNDREDTHSOFMILLIMETERS))) + data->u.dlgw->Flags |= is_default_metric() ? + PSD_INHUNDREDTHSOFMILLIMETERS : PSD_INTHOUSANDTHSOFINCHES; + + if (!data->u.dlgw->hDevMode || !data->u.dlgw->hDevNames) + { + WCHAR *def = get_default_printer(); + if(!def) + { + if (!(pagesetup_get_flags(data) & PSD_NOWARNING)) + { + WCHAR errstr[256]; + LoadStringW(COMDLG32_hInstance, PD32_NO_DEFAULT_PRINTER, errstr, 255); + MessageBoxW(data->u.dlgw->hwndOwner, errstr, 0, MB_OK | MB_ICONERROR); + } + COMDLG32_SetCommDlgExtendedError(PDERR_NODEFAULTPRN); + return FALSE; + } + pagesetup_change_printer(def, data); + HeapFree(GetProcessHeap(), 0, def); + } + + if (pagesetup_get_flags(data) & PSD_RETURNDEFAULT) + { + pagesetup_update_papersize(data); + return TRUE; + } + + tmpl = pagesetup_get_template(data); + + ret = DialogBoxIndirectParamW(data->u.dlgw->hInstance, tmpl, + data->u.dlgw->hwndOwner, + pagesetup_dlg_proc, (LPARAM)data) > 0; + return ret; } /*********************************************************************** @@ -3524,198 +3686,31 @@ PageDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) * NOTES * The values of hDevMode and hDevNames are filled on output and can be * changed in PAGESETUPDLG when they are passed in PageSetupDlg. - * + * */ +BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg) +{ + pagesetup_data data; -BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg) { - HGLOBAL hDlgTmpl; - LPVOID ptr; - BOOL bRet; - PageSetupDataA *pda; - PRINTDLGA pdlg; + data.unicode = FALSE; + data.u.dlga = setupdlg; - if (setupdlg == NULL) { - COMDLG32_SetCommDlgExtendedError(CDERR_INITIALIZATION); - return FALSE; - } - - /* TRACE */ - if(TRACE_ON(commdlg)) { - char flagstr[1000] = ""; - const struct pd_flags *pflag = psd_flags; - for( ; pflag->name; pflag++) { - if(setupdlg->Flags & pflag->flag) { - strcat(flagstr, pflag->name); - strcat(flagstr, "|"); - } - } - TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n" - "hinst %p, flags %08x (%s)\n", - setupdlg, setupdlg->hwndOwner, setupdlg->hDevMode, - setupdlg->hDevNames, - setupdlg->hInstance, setupdlg->Flags, flagstr); - } - - /* Checking setupdlg structure */ - if(setupdlg->lStructSize != sizeof(PAGESETUPDLGA)) { - COMDLG32_SetCommDlgExtendedError(CDERR_STRUCTSIZE); - return FALSE; - } - if ((setupdlg->Flags & PSD_ENABLEPAGEPAINTHOOK) && - (setupdlg->lpfnPagePaintHook == NULL)) { - COMDLG32_SetCommDlgExtendedError(CDERR_NOHOOK); - return FALSE; - } - - /* Initialize default printer struct. If no printer device info is specified - retrieve the default printer data. */ - memset(&pdlg,0,sizeof(pdlg)); - pdlg.lStructSize = sizeof(pdlg); - if (setupdlg->hDevMode && setupdlg->hDevNames) { - pdlg.hDevMode = setupdlg->hDevMode; - pdlg.hDevNames = setupdlg->hDevNames; - } else { - pdlg.Flags = PD_RETURNDEFAULT; - bRet = PrintDlgA(&pdlg); - if (!bRet){ - if (!(setupdlg->Flags & PSD_NOWARNING)) { - WCHAR errstr[256]; - LoadStringW(COMDLG32_hInstance, PD32_NO_DEFAULT_PRINTER, errstr, 255); - MessageBoxW(setupdlg->hwndOwner, errstr, 0, MB_OK | MB_ICONERROR); - } - return FALSE; - } - } - - /* short cut exit, just return default values */ - if (setupdlg->Flags & PSD_RETURNDEFAULT) { - DEVMODEA *dm; - - setupdlg->hDevMode = pdlg.hDevMode; - setupdlg->hDevNames = pdlg.hDevNames; - dm = GlobalLock(pdlg.hDevMode); - PRINTDLG_PaperSizeA(&pdlg, dm->u1.s1.dmPaperSize, &setupdlg->ptPaperSize); - GlobalUnlock(pdlg.hDevMode); - setupdlg->ptPaperSize.x=_c_10mm2size(setupdlg,setupdlg->ptPaperSize.x); - setupdlg->ptPaperSize.y=_c_10mm2size(setupdlg,setupdlg->ptPaperSize.y); - return TRUE; - } - - /* get dialog template */ - hDlgTmpl = PRINTDLG_GetPGSTemplateA(setupdlg); - if (!hDlgTmpl) { - COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE); - return FALSE; - } - ptr = LockResource( hDlgTmpl ); - if (!ptr) { - COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE); - return FALSE; - } - - pda = HeapAlloc(GetProcessHeap(),0,sizeof(*pda)); - pda->dlga = setupdlg; - pda->pdlg = pdlg; - - bRet = (0hInstance, - ptr, - setupdlg->hwndOwner, - PRINTDLG_PageDlgProcA, - (LPARAM)pda) - ); - - HeapFree(GetProcessHeap(),0,pda); - return bRet; + return pagesetup_common(&data); } + /*********************************************************************** * PageSetupDlgW (COMDLG32.@) * * See PageSetupDlgA. */ -BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) { - HGLOBAL hDlgTmpl; - LPVOID ptr; - BOOL bRet; - PageSetupDataW *pdw; - PRINTDLGW pdlg; +BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) +{ + pagesetup_data data; - FIXME("Unicode implementation is not done yet\n"); + data.unicode = TRUE; + data.u.dlgw = setupdlg; - if (setupdlg == NULL) { - COMDLG32_SetCommDlgExtendedError(CDERR_INITIALIZATION); - return FALSE; - } - - if(TRACE_ON(commdlg)) { - char flagstr[1000] = ""; - const struct pd_flags *pflag = psd_flags; - for( ; pflag->name; pflag++) { - if(setupdlg->Flags & pflag->flag) { - strcat(flagstr, pflag->name); - strcat(flagstr, "|"); - } - } - TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n" - "hinst %p, flags %08x (%s)\n", - setupdlg, setupdlg->hwndOwner, setupdlg->hDevMode, - setupdlg->hDevNames, - setupdlg->hInstance, setupdlg->Flags, flagstr); - } - - /* Initialize default printer struct. If no printer device info is specified - retrieve the default printer data. */ - memset(&pdlg,0,sizeof(pdlg)); - pdlg.lStructSize = sizeof(pdlg); - if (setupdlg->hDevMode && setupdlg->hDevNames) { - pdlg.hDevMode = setupdlg->hDevMode; - pdlg.hDevNames = setupdlg->hDevNames; - } else { - pdlg.Flags = PD_RETURNDEFAULT; - bRet = PrintDlgW(&pdlg); - if (!bRet){ - if (!(setupdlg->Flags & PSD_NOWARNING)) { - WCHAR errstr[256]; - LoadStringW(COMDLG32_hInstance, PD32_NO_DEFAULT_PRINTER, errstr, 255); - MessageBoxW(setupdlg->hwndOwner, errstr, 0, MB_OK | MB_ICONERROR); - } - return FALSE; - } - } - - /* short cut exit, just return default values */ - if (setupdlg->Flags & PSD_RETURNDEFAULT) { - static const WCHAR a4[] = {'A','4',0}; - setupdlg->hDevMode = pdlg.hDevMode; - setupdlg->hDevNames = pdlg.hDevNames; - /* FIXME: Just return "A4" for now. */ - PRINTDLG_PaperSizeW(&pdlg,a4,&setupdlg->ptPaperSize); - setupdlg->ptPaperSize.x=_c_10mm2size((LPPAGESETUPDLGA)setupdlg,setupdlg->ptPaperSize.x); - setupdlg->ptPaperSize.y=_c_10mm2size((LPPAGESETUPDLGA)setupdlg,setupdlg->ptPaperSize.y); - return TRUE; - } - hDlgTmpl = PRINTDLG_GetPGSTemplateW(setupdlg); - if (!hDlgTmpl) { - COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE); - return FALSE; - } - ptr = LockResource( hDlgTmpl ); - if (!ptr) { - COMDLG32_SetCommDlgExtendedError(CDERR_LOADRESFAILURE); - return FALSE; - } - pdw = HeapAlloc(GetProcessHeap(),0,sizeof(*pdw)); - pdw->dlgw = setupdlg; - pdw->pdlg = pdlg; - - bRet = (0hInstance, - ptr, - setupdlg->hwndOwner, - PageDlgProcW, - (LPARAM)pdw) - ); - return bRet; + return pagesetup_common(&data); } /*********************************************************************** diff --git a/reactos/dll/win32/comdlg32/rsrc.rc b/reactos/dll/win32/comdlg32/rsrc.rc index 18dac1b3db6..d6f160de2ae 100644 --- a/reactos/dll/win32/comdlg32/rsrc.rc +++ b/reactos/dll/win32/comdlg32/rsrc.rc @@ -54,7 +54,9 @@ #include "cdlg_Fr.rc" #include "cdlg_Hu.rc" #include "cdlg_It.rc" +#include "cdlg_Ja.rc" #include "cdlg_Ko.rc" +#include "cdlg_Lt.rc" #include "cdlg_Nl.rc" #include "cdlg_No.rc" #include "cdlg_Pl.rc" @@ -68,5 +70,4 @@ #include "cdlg_Tr.rc" #include "cdlg_Uk.rc" #include "cdlg_Wa.rc" -#include "cdlg_Ja.rc" #include "cdlg_Zh.rc"