Debian Codegraph @

src/af/xap/gtk/xap_UnixDlg_Stub.cpp

raw
1 /* AbiWord
2 * Copyright (C) 2000 AbiSource, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 #include <stdlib.h>
21 #include <time.h>
22
23 #include "ut_string.h"
24 #include "ut_assert.h"
25 #include "ut_debugmsg.h"
26
27 // This header defines some functions for Unix dialogs,
28 // like centering them, measuring them, etc.
29 #include "xap_UnixDialogHelper.h"
30
31 #include "xap_App.h"
32 #include "xap_UnixApp.h"
33 #include "xap_Frame.h"
34
35 #include "xap_Strings.h"
36 #include "xap_Dialog_Id.h"
37 #include "xap_Dlg_Stub.h"
38 #include "xap_UnixDlg_Stub.h"
39
40 /*****************************************************************/
41
42 XAP_Dialog * XAP_UnixDialog_Stub::static_constructor(XAP_DialogFactory * pFactory,
43 XAP_Dialog_Id id)
44 {
45 XAP_UnixDialog_Stub * p = new XAP_UnixDialog_Stub(pFactory,id);
46 return p;
47 }
48
49 XAP_UnixDialog_Stub::XAP_UnixDialog_Stub(XAP_DialogFactory * pDlgFactory,
50 XAP_Dialog_Id id)
51 : XAP_Dialog_Stub(pDlgFactory,id)
52 {
53 }
54
55 XAP_UnixDialog_Stub::~XAP_UnixDialog_Stub(void)
56 {
57 }
58
59 void XAP_UnixDialog_Stub::runModal(XAP_Frame * pFrame)
60 {
61 UT_ASSERT(pFrame);
62
63 /*
64 NOTE: This template can be used to create a working stub for a
65 new dialog on this platform. To do so:
66
67 1. Copy this file (and its associated header file) and rename
68 them accordingly.
69
70 2. Do a case sensitive global replace on the words Stub and STUB
71 in both files.
72
73 3. Add stubs for any required methods expected by the XP class.
74 If the build fails because you didn't do this step properly,
75 you've just broken the donut rule.
76
77 4. Replace this useless comment with specific instructions to
78 whoever's porting your dialog so they know what to do.
79 Skipping this step may not cost you any donuts, but it's
80 rude.
81
82 This file should *only* be used for stubbing out platforms which
83 you don't know how to implement. When implementing a new dialog
84 for your platform, you're probably better off starting with code
85 from another working dialog.
86 */
87
88 UT_ASSERT(UT_NOT_IMPLEMENTED);
89 }