00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 00003 /* AbiWord 00004 * Copyright (C) 2000 AbiSource, Inc. 00005 * Copyright (C) 2001, 2003 Hubert Figuiere 00006 * Copyright (C) 2003 Mark Pazolli 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License 00010 * as published by the Free Software Foundation; either version 2 00011 * of the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00021 * 02110-1301 USA. 00022 */ 00023 00024 #ifndef AP_COCOADIALOG_ToggleCase_H 00025 #define AP_COCOADIALOG_ToggleCase_H 00026 00027 #include <Cocoa/Cocoa.h> 00028 00029 #include "ap_Dialog_ToggleCase.h" 00030 00031 class AP_CocoaDialog_ToggleCase; 00032 00033 @interface AP_CocoaDialog_ToggleCaseController : NSWindowController <XAP_CocoaDialogProtocol> 00034 { 00035 IBOutlet NSButton * _okBtn; 00036 IBOutlet NSButton * _cancelBtn; 00037 00038 IBOutlet NSMatrix * _caseMatrix; 00039 00040 IBOutlet NSButtonCell * _initialBtn; 00041 IBOutlet NSButtonCell * _lowerBtn; 00042 IBOutlet NSButtonCell * _sentenceBtn; 00043 // IBOutlet NSButtonCell * _titleBtn; 00044 IBOutlet NSButtonCell * _toggleBtn; 00045 IBOutlet NSButtonCell * _upperBtn; 00046 00047 AP_CocoaDialog_ToggleCase * _xap; 00048 } 00049 - (IBAction)cancelAction:(id)sender; 00050 - (IBAction)okAction:(id)sender; 00051 @end 00052 00053 /*****************************************************************/ 00054 00055 class AP_CocoaDialog_ToggleCase: public AP_Dialog_ToggleCase 00056 { 00057 public: 00058 AP_CocoaDialog_ToggleCase(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid); 00059 virtual ~AP_CocoaDialog_ToggleCase(void); 00060 00061 virtual void runModal(XAP_Frame * pFrame); 00062 00063 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid); 00064 private: 00065 AP_CocoaDialog_ToggleCaseController* m_dlg; 00066 }; 00067 00068 #endif /* AP_COCOADIALOG_ToggleCase_H */