亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? libchmfile.h

?? chm閱讀器 用于在linux系統下chm文檔的閱讀
?? H
字號:
/*************************************************************************** *   Copyright (C) 2004-2007 by Georgy Yunaev, gyunaev@ulduzsoft.com       * *   Please do not use email address above for bug reports; see            * *   the README file                                                       * *                                                                         * *   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-1307, USA.             * ***************************************************************************/#ifndef INCLUDE_LIBCHMFILE_H#define INCLUDE_LIBCHMFILE_H#include <qstring.h>#include <qcstring.h>#include <qlistview.h>#include <qlistbox.h>#include <qmap.h>#include <qvaluevector.h>#include <qtextcodec.h> #include "libchmtextencoding.h"// Qt3/Qt4 compatibility: in Qt3 QVector stores pointers, not values - so QValueVector should be used. // In Qt4 QVector stores values, so we can use QVector#if defined (USE_QT_4)	#define	QT34VECTOR	QVector#else	#define	QT34VECTOR	QValueVector#endif//! Contains different (non-standard) image typesnamespace LCHMBookIcons{	const int IMAGE_NONE = -1;	const int IMAGE_AUTO = -2;	const int IMAGE_INDEX = -3;		const int MAX_BUILTIN_ICONS = 42;};//! Contains a single index or TOC entry. See LCHMFile::parseTOC() and LCHMFile::parseIndex()typedef struct{	//! Entry name	QString		name;		//! Entry URLs. The TOC entry should have only one URL; the index entry could have several.	QStringList	urls;		//! Associated image number. Used for TOC only; indexes does not have the image. 	//! Use LCHMFile::getBookIconPixmap() to get associated pixmap icon	int			imageid;		//! Indentation level for this entry.	int			indent;} LCHMParsedEntry;// forward declarationclass LCHMFileImpl;//! CHM files processor, heavily based on chmlib. Used search code from xchm.class LCHMFile{	public:		//! Default constructor and destructor.		LCHMFile();		~LCHMFile();				/*!		 * \brief Attempts to load a .chm file.		 * \param archiveName The .chm filename.		 * \return true on success, false on failure.		 *		 * Loads a CHM file. Could internally load more than one file, if files linked to 		 * this one are present locally (like MSDN).		 * \ingroup init		 */		bool loadFile( const QString& archiveName );		/*!		 * \brief Closes all the files, and frees the appropriate data.		 * \ingroup init		 */		void closeAll();				/*!		 * \brief Gets the title name of the opened .chm.		 * \return The name of the opened document, or an empty string if no .chm has been loaded.		 * \ingroup information		 */		QString title() const;				/*!		 * \brief Gets the URL of the default page in the chm archive.		 * \return The home page name, with a '/' added in front and relative to		 *         the root of the archive filesystem. If no .chm has been opened,		 *         returns "/".		 * \ingroup information		 */		QString homeUrl() const;				/*!		 * \brief Checks whether the Table of Contents is present in this file.		 * \return true if it is available; false otherwise.		 * \ingroup information		 */		bool  hasTableOfContents() const;				/*!		 * \brief Checks whether the Index Table is present in this file.		 * \return true if it is available; false otherwise.		 * \ingroup information		 */		bool  hasIndexTable() const;				/*!		 * \brief Checks whether the Search Table is available in this file.		 * \return true if it is available; false otherwise.		 * \ingroup information		 *		 * If the search table is not available, the search is not possible.		 */		bool  hasSearchTable() const;				/*!		 * \brief Parses the Table of Contents (TOC)		 * \param topics A pointer to the container which will store the parsed results. 		 *               Will be cleaned before parsing.		 * \return true if the tree is present and parsed successfully, false otherwise.		 *         The parser is built to be error-prone, however it still can abort with qFatal()		 *         by really buggy chm file; please report a bug if the file is opened ok under Windows.		 * \ingroup fileparsing		 */		bool parseTableOfContents( QT34VECTOR< LCHMParsedEntry > * topics ) const;		/*!		 * \brief Parses the Index Table		 * \param indexes A pointer to the container which will store the parsed results. 		 *               Will be cleaned before parsing.		 * \return true if the tree is present and parsed successfully, false otherwise.		 *         The parser is built to be error-prone, however it still can abort with qFatal()		 *         by really buggy chm file; so far it never happened on indexes.		 * \ingroup fileparsing		 */		bool parseIndex( QT34VECTOR< LCHMParsedEntry > * indexes ) const;		/*!		 * \brief Retrieves the content from url in current chm file to QString.		 * \param str A string where the retreived content should be stored.		 * \param url An URL in chm file to retreive content from. Must be absolute.		 * \return true if the content is successfully received; false otherwise.		 *		 * This function retreives the file content (mostly for HTML pages) from the chm archive		 * opened by load() function. Because the content in chm file is not stored in Unicode, it 		 * will be recoded according to current encoding. Do not use for binary data.		 *		 * \sa setCurrentEncoding() currentEncoding() getFileContentAsBinary()		 * \ingroup dataretrieve		 */		bool getFileContentAsString( QString * str, const QString& url );		/*!		 * \brief Retrieves the content from url in current chm file to QByteArray.		 * \param data A data array where the retreived content should be stored.		 * \param url An URL in chm file to retreive content from. Must be absolute.		 * \return true if the content is successfully received; false otherwise.		 *		 * This function retreives the file content from the chm archive opened by load() 		 * function. The content is not encoded.		 *		 * \sa getFileContentAsString()		 * \ingroup dataretrieve		 */		bool getFileContentAsBinary( QByteArray * data, const QString& url );				/*!		 * \brief Retrieves the content size.		 * \param size A pointer where the size will be stored.		 * \param url An URL in chm file to retreive content from. Must be absolute.		 * \return true if the content size is successfully stored; false otherwise.		 *		 * \ingroup dataretrieve		 */		bool getFileSize( unsigned int * size, const QString& url );				/*!		 * \brief Obtains the list of all the files in current chm file archive.		 * \param files An array to store list of URLs (file names) present in chm archive.		 * \return true if the enumeration succeed; false otherwise (I could hardly imagine a reason).		 *		 * \ingroup dataretrieve		 */		bool enumerateFiles( QStringList * files );			/*!		 * \brief Gets the Title of the HTML page referenced by url.		 * \param url An URL in chm file to get title from. Must be absolute.		 * \return The title, or QString::null if the URL cannot be found or not a HTML page.		 *		 * \ingroup dataretrieve		 */		QString		getTopicByUrl ( const QString& url );			/*!		 * \brief Gets the appropriate CHM pixmap icon.		 * \param imagenum The image number from TOC.		 * \return The pixmap to show in TOC tree.		 *		 * \ingroup dataretrieve		 */		const QPixmap * getBookIconPixmap( unsigned int imagenum );				/*!		 * \brief Normalizes the URL, converting relatives, adding "/" in front and removing ..		 * \param url The URL to normalize.		 * \return The normalized, cleaned up URL.		 *		 * \ingroup dataretrieve		 */		QString normalizeUrl( const QString& url ) const;				/*!		 * \brief Gets the current CHM archive encoding (set or autodetected)		 * \return The current encoding.		 *		 * \ingroup encoding		 */		const LCHMTextEncoding * currentEncoding() const;				/*!		 * \brief Sets the CHM archive encoding to use		 * \param encoding An encoding to use.		 *		 * \ingroup encoding		 */		bool setCurrentEncoding ( const LCHMTextEncoding * encoding );				/*!		 * \brief Execute a search query, return the results.		 * \param query A search query.		 * \param results An array to store URLs where the query was found.		 * \return true if search was successful (this does not mean that it returned any results); 		 *         false otherwise.		 *		 * This function executes a standard search query. The query should consist of one of more 		 *  words separated by a space with a possible prefix. A prefix may be:		 *   +   Plus indicates that the word is required; any page without this word is excluded from the result.		 *   -   Minus indicates that the word is required to be absent; any page with this word is excluded from		 *       the result.		 *   "." Quotes indicates a phrase. Anything between quotes is a phrase, which is set of space-separated		 *       words. Will be in result only if the words in phrase are in page in the same sequence, and		 *       follow each other.		 *		 *   If there is no prefix, the word considered as required.		 * \ingroup search		 */		bool	searchQuery ( const QString& query, QStringList * results, unsigned int limit = 100 );				//! Access to implementation		LCHMFileImpl * impl()	{ return m_impl; }			private:		//! No copy construction allowed.		LCHMFile( const LCHMFile& );				//! No assignments allowed.		LCHMFile& operator=( const LCHMFile& );				//! Implementation		LCHMFileImpl *	m_impl;};#endif // INCLUDE_LIBCHMFILE_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级精品大片| 国产精品免费看片| 亚洲韩国精品一区| 在线亚洲一区观看| 中文字幕一区二区在线观看| 男人的天堂亚洲一区| 91精品国产一区二区三区蜜臀| 亚洲一区二区欧美日韩| 欧美日韩精品一区二区三区| 五月天网站亚洲| 91精品国产综合久久国产大片| 免费成人在线网站| 欧美精品一区二区久久婷婷| 国产91清纯白嫩初高中在线观看| 欧美激情一区二区三区| 97aⅴ精品视频一二三区| 亚洲男人的天堂一区二区| 91首页免费视频| 五月婷婷色综合| 精品va天堂亚洲国产| 丁香网亚洲国际| 一区二区三区小说| 日韩午夜激情电影| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 粉嫩aⅴ一区二区三区四区| 国产精品久久免费看| 在线观看日产精品| 韩国三级电影一区二区| 欧美人伦禁忌dvd放荡欲情| 毛片av一区二区| 国产欧美日韩在线看| 色综合咪咪久久| 日本va欧美va欧美va精品| 久久奇米777| 色婷婷综合久色| 免费观看在线色综合| 国产精品色哟哟| 欧美日韩www| 国产河南妇女毛片精品久久久| 亚洲已满18点击进入久久| 日韩欧美资源站| 色哟哟在线观看一区二区三区| 蜜芽一区二区三区| 亚洲精品国产a久久久久久| 欧美大片免费久久精品三p | 亚洲二区在线观看| 久久久五月婷婷| 欧美日韩中文一区| 99久久久无码国产精品| 国产夫妻精品视频| 免费观看91视频大全| 欧美一级在线观看| 91香蕉视频污在线| 韩国成人福利片在线播放| 亚洲品质自拍视频| 久久―日本道色综合久久| 欧美日韩激情一区二区| 91视频免费观看| 国产精品香蕉一区二区三区| 亚洲va韩国va欧美va精品| 国产精品私房写真福利视频| 日韩免费电影网站| 欧美日韩成人综合天天影院| 91影视在线播放| 成人一区二区三区视频在线观看| 秋霞影院一区二区| 亚洲午夜一二三区视频| 一区在线观看免费| 欧美激情综合五月色丁香小说| 欧美成va人片在线观看| 欧美喷水一区二区| 在线欧美日韩精品| 91亚洲男人天堂| 99re这里只有精品首页| 夫妻av一区二区| 国产一区二区三区四区五区入口 | 亚洲愉拍自拍另类高清精品| 国产精品三级在线观看| 国产日韩影视精品| 久久久久综合网| 亚洲精品在线网站| 精品粉嫩aⅴ一区二区三区四区| 国产一区二区视频在线| 日韩黄色小视频| 午夜精品久久久久久久蜜桃app| 亚洲色图制服诱惑| 亚洲日本在线a| 亚洲三级理论片| 亚洲精品视频在线| 亚洲一区免费视频| 亚洲.国产.中文慕字在线| 亚洲成人动漫精品| 免费成人av在线播放| 精品亚洲成av人在线观看| 久久99精品久久久久婷婷| 黄色小说综合网站| 国产一区二区三区久久久| 国产99精品视频| 91小视频免费观看| 欧美日韩一区二区在线观看| 在线不卡a资源高清| 精品欧美一区二区在线观看| 久久久99精品免费观看| 中文字幕中文乱码欧美一区二区| 亚洲免费色视频| 午夜欧美2019年伦理| 麻豆精品在线观看| 国产91丝袜在线18| 日韩一级完整毛片| 91精品欧美久久久久久动漫| 欧美一级理论片| 国产欧美一区二区精品秋霞影院 | 高清国产一区二区| 色综合视频在线观看| 欧美人牲a欧美精品| 一区二区三区中文字幕在线观看| 亚洲成人av免费| 精品一区二区三区在线播放| 成人激情视频网站| 欧美日韩中文国产| 久久精品一级爱片| 性做久久久久久| 国产乱子伦一区二区三区国色天香| www.欧美日韩| 欧美一二三四区在线| 国产精品久久久久婷婷| 五月天国产精品| 国产69精品久久99不卡| 欧美美女一区二区| 中文字幕一区二区三区在线不卡 | 国产一区二区在线视频| 成人午夜视频网站| 欧美精品日韩精品| 国产精品天天摸av网| 日韩高清不卡一区二区三区| 成人高清视频在线| 日韩一区二区三区视频在线| 亚洲视频免费在线观看| 另类小说综合欧美亚洲| 色婷婷av久久久久久久| 久久综合丝袜日本网| 亚洲成人黄色小说| 99久久久国产精品| 久久久久国产精品免费免费搜索| 亚洲在线视频免费观看| 成人爱爱电影网址| 337p日本欧洲亚洲大胆色噜噜| 亚洲高清免费在线| 99久久精品免费观看| 国产亚洲制服色| 久久国产福利国产秒拍| 精品视频123区在线观看| 国产精品精品国产色婷婷| 久久成人18免费观看| 欧美日韩一区二区在线观看| 亚洲精品成人精品456| 美女在线视频一区| 欧美日韩日日夜夜| 亚洲免费看黄网站| 99久久精品免费| 国产亚洲精品资源在线26u| 麻豆精品视频在线观看| 欧美日韩三级在线| 亚洲精品日日夜夜| 99久久免费视频.com| 欧美经典一区二区| 国产剧情一区二区| 久久网站最新地址| 久久99久久精品| 日韩一区二区视频| 日韩国产一区二| 91精品国产综合久久小美女| 亚洲福利视频三区| 欧美丰满一区二区免费视频| 亚洲国产成人porn| 在线播放亚洲一区| 欧美bbbbb| 久久先锋影音av鲁色资源网| 精品一区二区国语对白| 久久伊人中文字幕| 国产成人精品一区二区三区四区 | 亚洲综合色视频| 欧美视频一区二区三区| 亚洲国产乱码最新视频| 欧美午夜精品一区二区三区| 亚洲一区视频在线| 8v天堂国产在线一区二区| 在线免费观看成人短视频| 日韩欧美一级特黄在线播放| 日韩精品一级二级 | 麻豆精品一二三| 欧美电影免费观看高清完整版在 | 国产黄色精品视频| 中文字幕欧美区| 色综合中文字幕国产| 偷拍一区二区三区| 91精品国产91热久久久做人人 | 高清成人在线观看| 亚洲另类色综合网站| 6080国产精品一区二区|