27 #include <QStringList>
29 #include <QFileInfoList>
61 QString
find_ref (
const QString &name);
66 int is_ref (
const QString& node);
72 const QString& anchor = QString ());
92 QString
search_node (
const QString& node, QIODevice * io);
103 QIODevice *
open_file(QFileInfo & fileInfo);
110 void real_position (
int pos, QFileInfo & file_info,
int & real_pos);
113 void seek (QIODevice *io,
int pos);
QList< info_file_item > _info_file_real_size_list
QString get_node_name(const QString &text)
void seek(QIODevice *io, int pos)
Seeks to position pos.
QString global_search(const QString &text, int maxFounds)
QString get_next_node(QIODevice *io)
QIODevice * open_file(QFileInfo &fileInfo)
Open info files and uncompress them.
QString get_node_next(const QString &text)
QHash< QString, node_position > _ref_map
This class gets nodes and searchs inside of 'info files'.
QHash< QString, QString > _compressors_map
QFileInfoList _info_files
void parse_info_map()
Parses info files and gets map of node positions.
void real_position(int pos, QFileInfo &file_info, int &real_pos)
Calculates real position of nodes.
parser(QObject *parent=0)
QHash< QString, node_map_item > _node_map
QString node_text_to_html(const QString &text, int anchorPos=-1, const QString &anchor=QString())
Translates text of node to Html.
int is_ref(const QString &node)
Checks if this node is reference.
bool set_info_path(const QString &_info_path)
QString find_ref(const QString &name)
QString get_node_prev(const QString &text)
QString search_node(const QString &node)
QString get_node_up(const QString &text)