kivio_stencil_spawner.cpp
1/*
2 * Kivio - Visual Modelling and Flowcharting
3 * Copyright (C) 2000-2001 theKompany.com & Dave Marotti
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 02110-1301, USA.
18 */
19#include "kivio_stencil_spawner.h"
20#include "kivio_stencil_spawner_set.h"
21#include "kivio_stencil_spawner_info.h"
22#include "kivio_stencil.h"
23
24
25KivioStencilSpawner::KivioStencilSpawner( KivioStencilSpawnerSet *p )
26 : m_pInfo(NULL)
27{
28 m_pInfo = new KivioStencilSpawnerInfo();
29 m_pSet = p;
30 m_fileName = "";
31 m_defWidth = 72.0f;
32 m_defHeight = 72.0f;
33}
34
35KivioStencilSpawner::~KivioStencilSpawner()
36{
37 if( m_pInfo )
38 {
39 delete m_pInfo;
40 m_pInfo = NULL;
41 }
42
43 m_pSet = NULL;
44 m_fileName = "";
45}
46
47
48bool KivioStencilSpawner::load( const TQString & )
49{
50 return false;
51}
52
53bool KivioStencilSpawner::loadXML( const TQString &, TQDomDocument & )
54{
55 return false;
56}
57
58
59KivioStencil *KivioStencilSpawner::newStencil()
60{
61 return NULL;
62}
63
64KivioStencil *KivioStencilSpawner::newStencil(const TQString& /*name*/)
65{
66 return NULL;
67}
68
69TQDomElement KivioStencilSpawner::saveXML( TQDomDocument &doc )
70{
71 return doc.createElement("KivioStencilSpawner");
72}