diff --git a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp index 299031327511e12ffc7b1ca2dfb8fe9435c1c185..eaff3740f61170dad221952a0caf510bfee24c3a 100644 --- a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp +++ b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp @@ -95,25 +95,6 @@ int XMLQtInterface::isValid() const return 0; } -int XMLQtInterface::insertStyleFileDefinition(const QString &fileName) const -{ - std::string path = fileName.toStdString(); - std::fstream stream(path.c_str()); - std::string styleDef("\n<?xml-stylesheet type=\"text/xsl\" href=\"OpenGeoSysGLI.xsl\"?>"); - - if (!stream.is_open()) - { - WARN("XMLQtInterface::insertStyleFileDefinition(): Could not open file %s.", - path.c_str()); - return 0; - } - - stream.seekp(43 * sizeof(char),std::ios_base::beg); // go to the correct position in the stream - stream.write(styleDef.c_str(), 60 * sizeof(char)); // write new line with xml-stylesheet definition - stream.close(); - return 1; -} - bool XMLQtInterface::checkHash() const { QString md5FileName(_fileName + ".md5"); diff --git a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h index d0a70baf14161e9f46701b4de33e79f02dda8f3f..c33a025246af7324dd55ee1172bd849e5dacd9ca 100644 --- a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h +++ b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h @@ -33,9 +33,6 @@ public: explicit XMLQtInterface(QString schemaFile = ""); virtual ~XMLQtInterface() = default; - /// As QXMLStreamWriter seems currently unable to include style-file links into xml-files, this method will workaround this issue and include the stylefile link. - int insertStyleFileDefinition(const QString &fileName) const; - /// Reads the file. In an overriden function in the child class be sure to call /// XMLQtInterface::readFile(fileName). virtual int readFile(const QString &fileName); diff --git a/GeoLib/IO/XmlIO/Qt/XmlGmlInterface.cpp b/GeoLib/IO/XmlIO/Qt/XmlGmlInterface.cpp index 5257d7c34362253115859aa3c29b2d3bda2a4d40..3d600256106e548806177ef95ff99d51837f45c1 100644 --- a/GeoLib/IO/XmlIO/Qt/XmlGmlInterface.cpp +++ b/GeoLib/IO/XmlIO/Qt/XmlGmlInterface.cpp @@ -485,7 +485,6 @@ bool XmlGmlInterface::write() INFO("XmlGmlInterface::write(): Surface vector is empty, no surfaces written to file."); - //insertStyleFileDefinition(filename); std::string xml = doc.toString().toStdString(); _out << xml;