kivio

kivio_stencil_spawner.cpp

00001 /*
00002  * Kivio - Visual Modelling and Flowcharting
00003  * Copyright (C) 2000-2001 theKompany.com & Dave Marotti
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018  */
00019 #include "kivio_stencil_spawner.h"
00020 #include "kivio_stencil_spawner_set.h"
00021 #include "kivio_stencil_spawner_info.h"
00022 #include "kivio_stencil.h"
00023 
00024 
00025 KivioStencilSpawner::KivioStencilSpawner( KivioStencilSpawnerSet *p )
00026     : m_pInfo(NULL)
00027 {
00028     m_pInfo = new KivioStencilSpawnerInfo();
00029     m_pSet = p;
00030     m_fileName = "";
00031     m_defWidth = 72.0f;
00032     m_defHeight = 72.0f;
00033 }
00034 
00035 KivioStencilSpawner::~KivioStencilSpawner()
00036 {
00037     if( m_pInfo )
00038     {
00039         delete m_pInfo;
00040         m_pInfo = NULL;
00041     }
00042 
00043     m_pSet = NULL;
00044     m_fileName = "";
00045 }
00046 
00047 
00048 bool KivioStencilSpawner::load( const QString & )
00049 {
00050     return false;
00051 }
00052 
00053 bool KivioStencilSpawner::loadXML( const QString &, QDomDocument & )
00054 {
00055     return false;
00056 }
00057 
00058 
00059 KivioStencil *KivioStencilSpawner::newStencil()
00060 {
00061     return NULL;
00062 }
00063 
00064 KivioStencil *KivioStencilSpawner::newStencil(const QString& /*name*/)
00065 {
00066     return NULL;
00067 }
00068 
00069 QDomElement KivioStencilSpawner::saveXML( QDomDocument &doc )
00070 {
00071     return doc.createElement("KivioStencilSpawner");
00072 }
KDE Home | KDE Accessibility Home | Description of Access Keys