• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_CocoaDialog_HdrFtr.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2000 AbiSource, Inc.
00003  * Copyright (C) 2001, 2003 Hubert Figuiere
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 #ifndef AP_COCOADIALOG_HDRFTR_H
00022 #define AP_COCOADIALOG_HDRFTR_H
00023 
00024 #include <Cocoa/Cocoa.h>
00025 #include "ap_Dialog_HdrFtr.h"
00026 
00027 class XAP_CocoaFrame;
00028 @class AP_CocoaDialog_HdrFtrController;
00029 
00030 /*****************************************************************/
00031 
00032 class AP_CocoaDialog_HdrFtr: public AP_Dialog_HdrFtr
00033 {
00034 public:
00035     AP_CocoaDialog_HdrFtr(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00036     virtual ~AP_CocoaDialog_HdrFtr(void);
00037 
00038     virtual void            runModal(XAP_Frame * pFrame);
00039 
00040     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00041 
00042     virtual void eventOk(void);
00043     virtual void eventCancel(void);
00044     void         RestartSpinChanged(UT_sint32 RestartValue);
00045     void         CheckChanged(id checkbox);
00046 
00047 private:
00048     AP_CocoaDialog_HdrFtrController*    m_dlg;
00049 };
00050 
00051 
00052 
00053 @interface AP_CocoaDialog_HdrFtrController : NSWindowController <XAP_CocoaDialogProtocol>
00054 {
00055     IBOutlet NSButton *cancelBtn;
00056     IBOutlet NSBox *footerBox;
00057     IBOutlet NSButton *footerFacingBtn;
00058     IBOutlet NSButton *footerFirstBtn;
00059     IBOutlet NSButton *footerLastBtn;
00060     IBOutlet NSBox *headerBox;
00061     IBOutlet NSButton *headerFacingBtn;
00062     IBOutlet NSButton *headerFirstBtn;
00063     IBOutlet NSButton *headerLastBtn;
00064     IBOutlet NSButton *okBtn;
00065     IBOutlet NSBox *pageNumberBox;
00066     IBOutlet NSTextField *restartAtData;
00067     IBOutlet NSTextField *restartAtLabel;
00068     IBOutlet NSButton *restartPgNumberBtn;
00069     IBOutlet NSStepper *restartStepper;
00070     AP_CocoaDialog_HdrFtr*  _xap;
00071 }
00072 - (IBAction)cancelAction:(id)sender;
00073 - (IBAction)btnAction:(id)sender;
00074 - (IBAction)okAction:(id)sender;
00075 - (IBAction)restartAction:(id)sender;
00076 - (IBAction)restartBtnAction:(id)sender;
00077 - (IBAction)restartStepperAction:(id)sender;
00078 @end
00079 
00080 #endif /* AP_COCOADIALOG_HDRFTR_H */
00081 
00082 

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1