* skin_parser.cpp
*****************************************************************************
* Copyright (C) 2004 VideoLAN
- * $Id: skin_parser.cpp,v 1.3 2004/03/01 18:33:31 asmax Exp $
+ * $Id: skin_parser.cpp,v 1.4 2004/03/01 19:36:43 asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
#include <math.h>
// Current DTD version
-#define SKINS_DTD_VERSION "2.0"
+#define SKINS_DTD_VERSION "1.99"
SkinParser::SkinParser( intf_thread_t *pIntf, const string &rFileName ):
{
msg_Err( getIntf(), "Bad theme version : %s (you need version %s)",
attr["version"], SKINS_DTD_VERSION );
+ m_errors = true;
+ return;
}
const BuilderData::Theme theme( atoi( attr["magnet"] ),
atoi( attr["alpha"] ), atoi( attr["movealpha"] ),
* xmlparser.hpp
*****************************************************************************
* Copyright (C) 2004 VideoLAN
- * $Id: xmlparser.hpp,v 1.5 2004/02/27 15:07:04 gbazin Exp $
+ * $Id: xmlparser.hpp,v 1.6 2004/03/01 19:36:43 asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
/// Type for attribute lists
typedef map<const char*, const char*, ltstr> AttrList_t;
+ /// Flag for validation errors
+ bool m_errors;
+
/// Callbacks
virtual void handleBeginElement( const string &rName, AttrList_t &attr ) {}
virtual void handleEndElement( const string &rName ) {}
private:
/// Reader context
xmlTextReaderPtr m_pReader;
- /// Flag for validation errors
- bool m_errors;
/// Callback for validation errors
static void handleError( void *pArg, const char *pMsg,
-<!--
+<!-- version 1.99
-->
<!DOCTYPE Theme SYSTEM "skin.dtd">\r
\r
-<Theme version="2.0" magnet="20" alpha="255" movealpha="192" fadetime="500">\r
+<Theme version="1.99" magnet="20" alpha="255" movealpha="192" fadetime="500">\r
<ThemeInfo name="VLC OSX Interface" author="BigBen"\r
email="bigben@videolan.org" webpage="http://www.videolan.org"/>\r
\r