/*************************************************************************** xmlutils.cpp - description ------------------- begin : Mit Mai 7 2003 copyright : (C) 2003 by Dominik Seichter email : domseichter@web.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include "xmlutils.h" #include "definition.h" #include "mycanvasview.h" #include "mycanvasitem.h" #include "labelutils.h" #include "measurements.h" #include "barcodeitem.h" #include "rectitem.h" #include "imageitem.h" #include "lineitem.h" #include "textitem.h" #include "textlineitem.h" // TQt includes #include // KDE includes #include #include #include XMLUtils::XMLUtils() { // read barcodes saved by kbarcode < 1.3.0 if( !legacy.count() ) { legacy.insert( "0", "any" ); legacy.insert( "1", "ean" ); legacy.insert( "2", "upc" ); legacy.insert( "3", "isbn" ); legacy.insert( "4", "code39" ); legacy.insert( "5", "code128" ); legacy.insert( "6", "code128c" ); legacy.insert( "7", "code128b" ); legacy.insert( "8", "i25" ); legacy.insert( "9", "i28raw" ); legacy.insert( "10", "cbr" ); legacy.insert( "11", "msi" ); legacy.insert( "12", "pls" ); legacy.insert( "13", "code93" ); legacy.insert( "14", "msi" ); legacy.insert( "15", "code39 -c" ); legacy.insert( "16", "i25 -c" ); } } XMLUtils::~XMLUtils() { } TQMap XMLUtils::legacy; void XMLUtils::readXMLHeader( TQDomDocument* doc, TQString & description, bool & kbarcode18, Definition** def ) { TQDomNode n = doc->documentElement().firstChild(); // this should not be neccessary, // but