+ if ( m_bin != wxPRINTBIN_DEFAULT )
+ {
+ switch ( m_bin )
+ {
+ case wxPRINTBIN_ONLYONE: devMode->dmDefaultSource = DMBIN_ONLYONE; break;
+ case wxPRINTBIN_LOWER: devMode->dmDefaultSource = DMBIN_LOWER; break;
+ case wxPRINTBIN_MIDDLE: devMode->dmDefaultSource = DMBIN_MIDDLE; break;
+ case wxPRINTBIN_MANUAL: devMode->dmDefaultSource = DMBIN_MANUAL; break;
+ case wxPRINTBIN_ENVELOPE: devMode->dmDefaultSource = DMBIN_ENVELOPE; break;
+ case wxPRINTBIN_ENVMANUAL: devMode->dmDefaultSource = DMBIN_ENVMANUAL; break;
+ case wxPRINTBIN_AUTO: devMode->dmDefaultSource = DMBIN_AUTO; break;
+ case wxPRINTBIN_TRACTOR: devMode->dmDefaultSource = DMBIN_TRACTOR; break;
+ case wxPRINTBIN_SMALLFMT: devMode->dmDefaultSource = DMBIN_SMALLFMT; break;
+ case wxPRINTBIN_LARGEFMT: devMode->dmDefaultSource = DMBIN_LARGEFMT; break;
+ case wxPRINTBIN_LARGECAPACITY: devMode->dmDefaultSource = DMBIN_LARGECAPACITY; break;
+ case wxPRINTBIN_CASSETTE: devMode->dmDefaultSource = DMBIN_CASSETTE; break;
+ case wxPRINTBIN_FORMSOURCE: devMode->dmDefaultSource = DMBIN_FORMSOURCE; break;
+
+ default:
+ devMode->dmDefaultSource = DMBIN_USER + m_bin - wxPRINTBIN_USER;
+ break;
+ }
+
+ devMode->dmFields |= DM_DEFAULTSOURCE;
+ }
+