KDocTools
Go to the documentation of this file.
4 #include <libxslt/xsltconfig.h>
5 #include <libxslt/xsltInternals.h>
6 #include <libxslt/transform.h>
7 #include <libxslt/xsltutils.h>
8 #include <libxml/xmlIO.h>
9 #include <libxml/parserInternals.h>
10 #include <libxml/catalog.h>
13 #include <QtCore/QDate>
14 #include <QtCore/QDir>
15 #include <QtCore/QRegExp>
21 #include <QtCore/QTextCodec>
32 kDebug( 7119 ) << filename <<
" " << cache;
39 kDebug( 7119 ) <<
"create filter";
44 if (!fd->open(QIODevice::ReadOnly))
51 kDebug( 7119 ) <<
"reading";
57 while ( ( n = fd->read(buffer, 31900) ) > 0)
62 kDebug( 7119 ) <<
"read " << text.length();
65 output = QString::fromUtf8( text );
71 kDebug( 7119 ) <<
"finished ";
78 kDebug() <<
"lookForCache " << filename;
79 assert( filename.endsWith( QLatin1String(
".docbook") ) );
80 assert( QDir::isAbsolutePath(filename));
81 QString cache = filename.left( filename.length() - 7 );
83 if (
readCache( filename, cache +
"cache.bz2", output) )
86 QFileInfo fi(filename);
91 cache =
'/' + fi.absolutePath().remove(
KStandardDirs::installPath(
"html"),Qt::CaseInsensitive).replace(
'/',
'_') +
'_' + fi.baseName() +
'.';
96 "cache.bz2" ), output ) )
104 QFileInfo _older( older );
105 QFileInfo _newer( newer );
106 assert( _older.exists() );
107 if ( !_newer.exists() )
109 return ( _newer.lastModified() > _older.lastModified() );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:42:30 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.