Debian Codegraph @

src/af/xap/xp/xap_Dlg_ClipArt.cpp

raw
1 /* AbiWord
2 * Copyright (C) 2001 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 "xap_Dlg_ClipArt.h"
21 #include "ut_string.h"
22
23 XAP_Dialog_ClipArt::XAP_Dialog_ClipArt(XAP_DialogFactory * pDlgFactory,
24 XAP_Dialog_Id id)
25 : XAP_Dialog_NonPersistent (pDlgFactory, id), m_answer(a_CANCEL),
26 m_szGraphicName(0), m_szInitialDir(0)
27
28 {
29 }
30
31 XAP_Dialog_ClipArt::~XAP_Dialog_ClipArt()
32 {
33 FREEP(m_szGraphicName);
34 FREEP(m_szInitialDir);
35 }
36
37 void XAP_Dialog_ClipArt::setInitialDir (const char * szInitialDir)
38 {
39 FREEP(m_szInitialDir);
40 m_szInitialDir = g_strdup (szInitialDir);
41 }
42
43 void XAP_Dialog_ClipArt::setGraphicName (const char * name)
44 {
45 FREEP(m_szGraphicName);
46 m_szGraphicName = g_strdup (name);
47 }
48