1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // GEOM GEOMGUI : reading of xml file with list of available plugin actions
24 // File : GEOMGUI_XmlHandler.h
25 // Author : Julia DOROVSKIKH, Open CASCADE S.A.S.
27 #ifndef GEOMGUI_XMLHANDLER_H
28 #define GEOMGUI_XMLHANDLER_H
34 #include <QXmlDefaultHandler>
41 //class HypothesisData;
42 //class HypothesesSet;
44 struct GEOMGUI_ActionData
46 QString myLabel; // unique ID
57 struct GEOMGUI_PluginData
63 //QList<GEOMGUI_ActionData*> myListOfActions;
64 QList<GEOMGUI_ActionData> myListOfActions;
67 class GEOMGUI_EXPORT GEOMGUI_XmlHandler : public QXmlDefaultHandler
71 virtual ~GEOMGUI_XmlHandler();
74 bool startElement( const QString&, const QString&,
75 const QString&, const QXmlAttributes& );
76 bool endElement( const QString&, const QString&, const QString& );
77 bool characters( const QString& );
79 QString errorString();
80 QString errorProtocol();
81 bool fatalError( const QXmlParseException& );
84 GEOMGUI_PluginData myPluginData;
90 #endif // GEOMGUI_XMLHANDLER_H