| 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 <windows.h> |
| 21 |
|
| 22 |
#include "ut_string.h" |
| 23 |
#include "ut_assert.h" |
| 24 |
#include "ut_debugmsg.h" |
| 25 |
|
| 26 |
#include "xap_App.h" |
| 27 |
#include "xap_Win32App.h" |
| 28 |
#include "xap_Win32FrameImpl.h" |
| 29 |
|
| 30 |
#include "xap_Strings.h" |
| 31 |
#include "xap_Dialog_Id.h" |
| 32 |
#include "xap_Dlg_Stub.h" |
| 33 |
#include "xap_Win32Dlg_Stub.h" |
| 34 |
|
| 35 |
#include "xap_Win32Resources.rc2" |
| 36 |
|
| 37 |
/*****************************************************************/ |
| 38 |
|
| 39 |
XAP_Dialog * XAP_Win32Dialog_Stub::static_constructor(XAP_DialogFactory * pFactory, |
| 40 |
XAP_Dialog_Id id) |
| 41 |
{ |
| 42 |
XAP_Win32Dialog_Stub * p = new XAP_Win32Dialog_Stub(pFactory,id); |
| 43 |
return p; |
| 44 |
} |
| 45 |
|
| 46 |
XAP_Win32Dialog_Stub::XAP_Win32Dialog_Stub(XAP_DialogFactory * pDlgFactory, |
| 47 |
XAP_Dialog_Id id) |
| 48 |
: XAP_Dialog_Stub(pDlgFactory,id) |
| 49 |
{ |
| 50 |
} |
| 51 |
|
| 52 |
XAP_Win32Dialog_Stub::~XAP_Win32Dialog_Stub(void) |
| 53 |
{ |
| 54 |
} |
| 55 |
|
| 56 |
void XAP_Win32Dialog_Stub::runModal(XAP_Frame * pFrame) |
| 57 |
{ |
| 58 |
UT_return_if_fail(pFrame); |
| 59 |
|
| 60 |
XAP_App *pApp = XAP_App::getApp(); |
| 61 |
UT_return_if_fail(pApp); |
| 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_HARMLESS(UT_NOT_IMPLEMENTED); |
| 89 |
} |
| 90 |
|