skin_parser.hpp

来自「VLC媒体播放程序」· HPP 代码 · 共 72 行

HPP
72
字号
/***************************************************************************** * skin_parser.hpp ***************************************************************************** * Copyright (C) 2004 VideoLAN * $Id: skin_parser.hpp,v 1.2 2004/03/01 18:33:31 asmax Exp $ * * Authors: Cyril Deguet     <asmax@via.ecp.fr> * * 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************/#ifndef SKIN_PARSER_HPP#define SKIN_PARSER_HPP#include "xmlparser.hpp"#include "builder_data.hpp"#include <set>/// Parser for the skin DTDclass SkinParser: public XMLParser{    public:        SkinParser( intf_thread_t *pIntf, const string &rFileName );        virtual ~SkinParser() {}        const BuilderData &getData() const { return m_data; }    private:        /// Container for mapping data from the XML        BuilderData m_data;        /// Current IDs        string m_curWindowId;        string m_curLayoutId;        string m_curListId;        /// Current offset of the controls        int m_xOffset, m_yOffset;        list<int> m_xOffsetList, m_yOffsetList;        /// Layer of the current control in the layout        int m_curLayer;        /// Set of used id        set<string> m_idSet;        /// Callbacks        virtual void handleBeginElement( const string &rName, AttrList_t &attr );        virtual void handleEndElement( const string &rName );        /// Helper functions        bool ConvertBoolean( const char *value ) const;        int ConvertColor( const char *transcolor ) const;        /// Generate a new id        const string generateId() const;        /// Check if the id is unique, and if not generate a new one        const string uniqueId( const string &id );};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?