00001 /* AbiWord 00002 * Copyright (C) 2000 AbiSource, Inc. 00003 * Copyright (C) 2004 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 XAP_COCOADIALOG_DOCCOMPARISON_H 00022 #define XAP_COCOADIALOG_DOCCOMPARISON_H 00023 00024 #import <Cocoa/Cocoa.h> 00025 00026 #include "xap_Dlg_DocComparison.h" 00027 #include "xap_CocoaDialogFactory.h" 00028 #include "xap_Dialog_Id.h" 00029 #include "xap_Dialog.h" 00030 00031 @class XAP_CocoaDialog_DocComparisonController; 00032 @protocol XAP_CocoaDialogProtocol; 00033 00034 class XAP_Frame; 00035 00036 00037 /*****************************************************************/ 00038 00039 class XAP_CocoaDialog_DocComparison: public XAP_Dialog_DocComparison 00040 { 00041 public: 00042 XAP_CocoaDialog_DocComparison(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid); 00043 virtual ~XAP_CocoaDialog_DocComparison(void); 00044 00045 virtual void runModal(XAP_Frame * pFrame); 00046 00047 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid); 00048 00049 private: 00050 00051 void _populateWindowData(); 00052 XAP_CocoaDialog_DocComparisonController* m_dlg; 00053 }; 00054 00055 00056 @interface XAP_CocoaDialog_DocComparisonController : NSWindowController <XAP_CocoaDialogProtocol> 00057 { 00058 IBOutlet NSTextField *_contentData; 00059 IBOutlet NSTextField *_contentLabel; 00060 IBOutlet NSTextField *_doc1; 00061 IBOutlet NSTextField *_doc2; 00062 IBOutlet NSBox *_docCmpBox; 00063 IBOutlet NSTextField *_formatData; 00064 IBOutlet NSTextField *_formatLabel; 00065 IBOutlet NSButton *_okBtn; 00066 IBOutlet NSTextField *_relationshipData; 00067 IBOutlet NSTextField *_relationshipLabel; 00068 IBOutlet NSBox *_resultsBox; 00069 IBOutlet NSTextField *_stylesData; 00070 IBOutlet NSTextField *_stylesLabel; 00071 XAP_CocoaDialog_DocComparison* _xap; 00072 } 00073 - (IBAction)okAction:(id)sender; 00074 - (void)populate; 00075 @end 00076 00077 00078 #endif /* XAP_COCOADLG_DOCCOMPARISON */