+ if (data.GetOrientation() == wxLANDSCAPE)
+ {
+ gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAGE_ORIENTATION,
+ (guchar*)(char*)"R90" );
+ }
+ else
+ {
+ gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAGE_ORIENTATION,
+ (guchar*)(char*)"R0" );
+ }
+
+ if (data.GetCollate())
+ {
+ gs_libGnomePrint->gnome_print_config_set_boolean( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_COLLATE,
+ TRUE );
+ }
+ else
+ {
+ gs_libGnomePrint->gnome_print_config_set_boolean( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_COLLATE,
+ FALSE );
+ }
+
+ switch (data.GetPaperId())
+ {
+ case wxPAPER_A3: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"A3" );
+ break;
+ case wxPAPER_A5: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"A5" );
+ break;
+ case wxPAPER_B4: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"B4" );
+ break;
+ case wxPAPER_B5: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"B5" );
+ break;
+ case wxPAPER_LETTER: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"USLetter" );
+ break;
+ case wxPAPER_LEGAL: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"USLegal" );
+ break;
+ case wxPAPER_EXECUTIVE: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"Executive" );
+ break;
+ case wxPAPER_ENV_C5: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"C5" );
+ break;
+ case wxPAPER_ENV_C6: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"C6" );
+ break;
+ case wxPAPER_NONE: break;
+
+ default:
+ case wxPAPER_A4: gs_libGnomePrint->gnome_print_config_set( m_config,
+ (guchar*)(char*)GNOME_PRINT_KEY_PAPER_SIZE,
+ (guchar*)(char*)"A4" );
+ break;
+ }
+