Debian Codegraph @

src/af/xap/cocoa/xap_CocoaDlg_DocComparison.h

raw
1 /* AbiWord
2 * Copyright (C) 2000 AbiSource, Inc.
3 * Copyright (C) 2004 Hubert Figuiere
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA.
19 */
20
21 #ifndef XAP_COCOADIALOG_DOCCOMPARISON_H
22 #define XAP_COCOADIALOG_DOCCOMPARISON_H
23
24 #import <Cocoa/Cocoa.h>
25
26 #include "xap_Dlg_DocComparison.h"
27 #include "xap_CocoaDialogFactory.h"
28 #include "xap_Dialog_Id.h"
29 #include "xap_Dialog.h"
30
31 @class XAP_CocoaDialog_DocComparisonController;
32 @protocol XAP_CocoaDialogProtocol;
33
34 class XAP_Frame;
35
36
37 /*****************************************************************/
38
39 class XAP_CocoaDialog_DocComparison: public XAP_Dialog_DocComparison
40 {
41 public:
42 XAP_CocoaDialog_DocComparison(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
43 virtual ~XAP_CocoaDialog_DocComparison(void);
44
45 virtual void runModal(XAP_Frame * pFrame);
46
47 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
48
49 private:
50
51 void _populateWindowData();
52 XAP_CocoaDialog_DocComparisonController* m_dlg;
53 };
54
55
56 @interface XAP_CocoaDialog_DocComparisonController : NSWindowController <XAP_CocoaDialogProtocol>
57 {
58 IBOutlet NSTextField *_contentData;
59 IBOutlet NSTextField *_contentLabel;
60 IBOutlet NSTextField *_doc1;
61 IBOutlet NSTextField *_doc2;
62 IBOutlet NSBox *_docCmpBox;
63 IBOutlet NSTextField *_formatData;
64 IBOutlet NSTextField *_formatLabel;
65 IBOutlet NSButton *_okBtn;
66 IBOutlet NSTextField *_relationshipData;
67 IBOutlet NSTextField *_relationshipLabel;
68 IBOutlet NSBox *_resultsBox;
69 IBOutlet NSTextField *_stylesData;
70 IBOutlet NSTextField *_stylesLabel;
71 XAP_CocoaDialog_DocComparison* _xap;
72 }
73 - (IBAction)okAction:(id)sender;
74 - (void)populate;
75 @end
76
77
78 #endif /* XAP_COCOADLG_DOCCOMPARISON */