print_options_dlg_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:11k
- /*
- * ===========================================================================
- * PRODUCTION $Log: print_options_dlg_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:04:19 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.4
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: print_options_dlg_.cpp,v 1000.1 2004/06/01 21:04:19 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- inline void CPrintOptionsDlg::cb_m_Letter_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_Letter(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_Letter_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_m_Legal_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_Legal(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_Legal_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_m_Ledger_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_Ledger(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_Ledger_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_m_A4_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_A4(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_A4_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_m_A3_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_A3(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_A3_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_m_A2_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_A2(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_A2_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_m_A1_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_A1(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_A1_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_m_A0_i(Fl_Menu_*, Fl_Menu_Item* v) {
- x_OnSelectPaper(v);
- }
- void CPrintOptionsDlg::cb_m_A0(Fl_Menu_* o, Fl_Menu_Item* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_m_A0_i(o,v);
- }
- Fl_Menu_Item CPrintOptionsDlg::menu_m_PaperSize[] = {
- {"Letter", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_Letter, (void*)(m_Letter), 0, 0, 0, 12, 56},
- {"Legal", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_Legal, (void*)(m_Legal), 0, 0, 0, 12, 56},
- {"Ledger", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_Ledger, (void*)(m_Ledger), 0, 0, 0, 12, 56},
- {"A4", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_A4, (void*)(m_A4), 0, 0, 0, 12, 56},
- {"A3", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_A3, (void*)(m_A3), 0, 0, 0, 12, 56},
- {"A2", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_A2, (void*)(m_A2), 0, 0, 0, 12, 56},
- {"A1", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_A1, (void*)(m_A1), 0, 0, 0, 12, 56},
- {"A0", 0, (Fl_Callback*)CPrintOptionsDlg::cb_m_A0, (void*)(m_A0), 0, 0, 0, 12, 56},
- {0}
- };
- Fl_Menu_Item* CPrintOptionsDlg::m_Letter = CPrintOptionsDlg::menu_m_PaperSize + 0;
- Fl_Menu_Item* CPrintOptionsDlg::m_Legal = CPrintOptionsDlg::menu_m_PaperSize + 1;
- Fl_Menu_Item* CPrintOptionsDlg::m_Ledger = CPrintOptionsDlg::menu_m_PaperSize + 2;
- Fl_Menu_Item* CPrintOptionsDlg::m_A4 = CPrintOptionsDlg::menu_m_PaperSize + 3;
- Fl_Menu_Item* CPrintOptionsDlg::m_A3 = CPrintOptionsDlg::menu_m_PaperSize + 4;
- Fl_Menu_Item* CPrintOptionsDlg::m_A2 = CPrintOptionsDlg::menu_m_PaperSize + 5;
- Fl_Menu_Item* CPrintOptionsDlg::m_A1 = CPrintOptionsDlg::menu_m_PaperSize + 6;
- Fl_Menu_Item* CPrintOptionsDlg::m_A0 = CPrintOptionsDlg::menu_m_PaperSize + 7;
- inline void CPrintOptionsDlg::cb_OK_i(Fl_Return_Button*, void*) {
- x_OnOK();
- }
- void CPrintOptionsDlg::cb_OK(Fl_Return_Button* o, void* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->user_data()))->cb_OK_i(o,v);
- }
- inline void CPrintOptionsDlg::cb_Cancel_i(Fl_Button*, void*) {
- x_OnCancel();
- }
- void CPrintOptionsDlg::cb_Cancel(Fl_Button* o, void* v) {
- ((CPrintOptionsDlg*)(o->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
- }
- Fl_Double_Window* CPrintOptionsDlg::x_Create(void) {
- Fl_Double_Window* w;
- { Fl_Double_Window* o = new Fl_Double_Window(510, 350, "Print Options");
- w = o;
- o->user_data((void*)(this));
- { Fl_Tabs* o = new Fl_Tabs(5, 10, 500, 305);
- o->box(FL_UP_BOX);
- o->labelsize(12);
- o->align(FL_ALIGN_CENTER);
- { Fl_Group* o = new Fl_Group(5, 35, 500, 280, "Page");
- o->labelsize(12);
- { Fl_Group* o = new Fl_Group(15, 45, 480, 80, "Orientation");
- o->box(FL_ENGRAVED_FRAME);
- o->labelsize(12);
- o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
- { Fl_Round_Button* o = m_Portrait = new Fl_Round_Button(45, 75, 67, 25, "Portrait");
- o->type(102);
- o->down_box(FL_ROUND_DOWN_BOX);
- o->labelsize(12);
- }
- { Fl_Round_Button* o = m_Landscape = new Fl_Round_Button(230, 75, 97, 25, "Landscape");
- o->type(102);
- o->down_box(FL_ROUND_DOWN_BOX);
- o->value(1);
- o->labelsize(12);
- }
- { Fl_Box* o = new Fl_Box(120, 60, 40, 55);
- o->box(FL_BORDER_FRAME);
- o->color(FL_FOREGROUND_COLOR);
- o->labelsize(12);
- }
- { Fl_Box* o = new Fl_Box(335, 67, 55, 40);
- o->box(FL_BORDER_FRAME);
- o->color(FL_FOREGROUND_COLOR);
- o->labelsize(12);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 130, 480, 65, "Scaling");
- o->box(FL_ENGRAVED_BOX);
- o->labelsize(12);
- o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
- { Fl_Counter* o = m_PagesWide = new Fl_Counter(40, 154, 75, 25);
- o->type(1);
- o->labelsize(12);
- o->minimum(1);
- o->maximum(100);
- o->step(1);
- o->value(1);
- o->textsize(12);
- }
- { Fl_Box* o = new Fl_Box(115, 154, 115, 25, "page(s) wide by");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- { Fl_Counter* o = m_PagesTall = new Fl_Counter(230, 154, 75, 25);
- o->type(1);
- o->labelsize(12);
- o->minimum(1);
- o->maximum(100);
- o->step(1);
- o->value(1);
- o->textsize(12);
- }
- { Fl_Box* o = new Fl_Box(305, 154, 30, 25, "tall");
- o->labelsize(12);
- o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(15, 200, 480, 55, "Paper");
- o->box(FL_ENGRAVED_BOX);
- o->labelsize(12);
- o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE);
- { Fl_Choice* o = m_PaperSize = new Fl_Choice(40, 220, 145, 25);
- o->down_box(FL_BORDER_BOX);
- o->labelsize(12);
- o->menu(menu_m_PaperSize);
- }
- { Fl_Output* o = m_PaperSizeDisplay = new Fl_Output(200, 220, 173, 25);
- o->box(FL_NO_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->labelsize(12);
- o->textsize(12);
- o->textcolor(40);
- }
- o->end();
- }
- { Fl_Check_Button* o = m_PrintPageNumbers = new Fl_Check_Button(40, 265, 145, 25, "print page numbers");
- o->down_box(FL_DOWN_BOX);
- o->value(1);
- o->labelsize(12);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 35, 500, 280, "Margins");
- o->labelsize(12);
- o->hide();
- { Fl_Box* o = new Fl_Box(110, 95, 105, 135, "Page");
- o->box(FL_BORDER_FRAME);
- o->color(FL_FOREGROUND_COLOR);
- o->labelsize(12);
- o->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
- }
- { Fl_Counter* o = m_HeaderOffset = new Fl_Counter(220, 65, 60, 25, "Header");
- o->type(1);
- o->labelsize(12);
- o->minimum(0);
- o->maximum(100);
- o->step(0.05);
- o->align(FL_ALIGN_TOP);
- }
- { Fl_Counter* o = m_MarginTop = new Fl_Counter(135, 65, 60, 25, "Top");
- o->type(1);
- o->labelsize(12);
- o->minimum(0);
- o->maximum(100);
- o->step(0.05);
- o->align(FL_ALIGN_TOP);
- }
- { Fl_Counter* o = m_MarginBottom = new Fl_Counter(135, 235, 58, 25, "Bottom");
- o->type(1);
- o->labelsize(12);
- o->minimum(0);
- o->maximum(100);
- o->step(0.05);
- }
- { Fl_Counter* o = m_MarginLeft = new Fl_Counter(45, 150, 60, 25, "Left");
- o->type(1);
- o->labelsize(12);
- o->minimum(0);
- o->maximum(100);
- o->step(0.05);
- o->align(FL_ALIGN_LEFT);
- }
- { Fl_Counter* o = m_MarginRight = new Fl_Counter(220, 155, 60, 25, "Right");
- o->type(1);
- o->labelsize(12);
- o->minimum(0);
- o->maximum(100);
- o->step(0.05);
- o->align(FL_ALIGN_RIGHT);
- }
- { Fl_Counter* o = m_FooterOffset = new Fl_Counter(220, 235, 60, 25, "Footer");
- o->type(1);
- o->labelsize(12);
- o->minimum(0);
- o->maximum(100);
- o->step(0.05);
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 35, 500, 280, "Header/Footer");
- o->labelsize(12);
- o->hide();
- { Fl_Input* o = m_Title = new Fl_Input(20, 65, 470, 25, "Title");
- o->labelsize(12);
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Text_Editor* o = m_Header = new Fl_Text_Editor(20, 115, 470, 80, "Header");
- o->box(FL_DOWN_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->align(FL_ALIGN_TOP_LEFT);
- }
- { Fl_Text_Editor* o = m_Footer = new Fl_Text_Editor(20, 220, 470, 80, "Footer");
- o->box(FL_DOWN_BOX);
- o->labelsize(12);
- o->textsize(12);
- o->align(FL_ALIGN_TOP_LEFT);
- }
- o->end();
- }
- o->end();
- }
- { Fl_Group* o = new Fl_Group(5, 320, 500, 25);
- o->labelsize(12);
- { Fl_Return_Button* o = new Fl_Return_Button(425, 320, 80, 25, "OK");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_OK);
- }
- { Fl_Button* o = new Fl_Button(340, 320, 80, 25, "Cancel");
- o->labelsize(12);
- o->callback((Fl_Callback*)cb_Cancel);
- }
- { Fl_Group* o = new Fl_Group(15, 320, 325, 25);
- o->labelsize(12);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- o->end();
- }
- return w;
- }