kivio
polylineconnectorspawner.cpp
00001 /* This file is part of the KDE project 00002 Copyright (C) 2004 Peter Simonsson <psn@linux.se>, 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 #include "polylineconnectorspawner.h" 00020 00021 #include "kiviopolylineconnector.h" 00022 00023 namespace Kivio { 00024 00025 PolyLineConnectorSpawner::PolyLineConnectorSpawner(KivioStencilSpawnerSet* spawnerSet) 00026 : KivioStencilSpawner(spawnerSet) 00027 { 00028 m_info = KivioStencilSpawnerInfo("Kivio Team", "PolyLine Connector", "Internal - PolyLine Connector", 00029 "PolyLine Connector", "0.1", "http://localhost/", "", "off"); 00030 } 00031 00032 PolyLineConnectorSpawner::~PolyLineConnectorSpawner() 00033 { 00034 } 00035 00036 bool PolyLineConnectorSpawner::load(const QString&) 00037 { 00038 return true; 00039 } 00040 00041 QDomElement PolyLineConnectorSpawner::saveXML(QDomDocument& /*doc*/) 00042 { 00043 return QDomElement(); 00044 } 00045 00046 KivioStencil* PolyLineConnectorSpawner::newStencil() 00047 { 00048 PolyLineConnector* connector = new PolyLineConnector(); 00049 connector->setSpawner(this); 00050 00051 return connector; 00052 } 00053 00054 KivioStencil* PolyLineConnectorSpawner::newStencil(const QString& /*arg*/) 00055 { 00056 PolyLineConnector* connector = new PolyLineConnector(); 00057 connector->setSpawner(this); 00058 00059 return connector; 00060 } 00061 00062 }