clean up a bit by removing some stuff we probably won't ever use

svn path=/trunk/playground/graphics/okular/; revision=582099
remotes/origin/KDE/4.0
Pino Toscano 20 years ago
parent d77701bc61
commit 5ee6d32f1b
  1. 25
      generators/chm/generator_chm.cpp
  2. 10
      generators/chm/generator_chm.h

@ -147,11 +147,6 @@ const DocumentFonts * CHMGenerator::generateDocumentFonts()
return 0L;
}
bool CHMGenerator::isAllowed( int /*Document::Permisison(s)*/ )
{
return true;
}
bool CHMGenerator::canGeneratePixmap ( bool /*async*/ )
{
/* if (async)
@ -370,14 +365,6 @@ void CHMGenerator::generateSyncTextPage( KPDFPage * page )
syncLock.unlock();
}
QString CHMGenerator::getXMLFile()
{
return QString::null;
}
void CHMGenerator::setupGUI(KActionCollection * /*ac*/ , QToolBox * /*tBox*/ )
{ ; }
bool CHMGenerator::supportsSearching()
{
return true;
@ -388,11 +375,6 @@ bool CHMGenerator::prefersInternalSearching()
return false;
}
bool CHMGenerator::supportsRotation()
{
return false;
}
RegularAreaRect * CHMGenerator::findText( const QString & /*text*/, SearchDir /*dir*/, const bool /*strictCase*/,
const RegularAreaRect * /*lastRect*/, KPDFPage * /*page*/)
{
@ -404,9 +386,6 @@ QString CHMGenerator::getText( const RegularAreaRect * /*area*/, KPDFPage * /*pa
return QString();
}
void CHMGenerator::setOrientation(QVector<KPDFPage*> & /*pagesVector*/, int /*orientation*/)
{ ; }
bool CHMGenerator::canConfigurePrinter( )
{
return false;
@ -441,10 +420,6 @@ bool CHMGenerator::reparseConfig()
void CHMGenerator::addPages( KConfigDialog* /*dlg*/)
{ ; }
bool CHMGenerator::handleEvent (QEvent * /*event*/ )
{
return true;
}
/*
void PixmapThreader::run()
{

@ -34,26 +34,18 @@ class CHMGenerator : public Generator
const DocumentSynopsis * generateDocumentSynopsis();
const DocumentFonts * generateDocumentFonts();
bool isAllowed( int /*Document::Permisison(s)*/ );
bool canGeneratePixmap( bool async );
void generatePixmap( PixmapRequest * request );
bool canGenerateTextPage();
void generateSyncTextPage( KPDFPage * page );
QString getXMLFile();
void setupGUI(KActionCollection * ac , QToolBox * tBox );
bool supportsSearching();
bool prefersInternalSearching();
bool supportsRotation();
RegularAreaRect * findText( const QString & text, SearchDir dir, const bool strictCase,
const RegularAreaRect * lastRect, KPDFPage * page);
QString getText( const RegularAreaRect * area, KPDFPage * page );
void setOrientation(QVector<KPDFPage*> & pagesVector, int orientation);
bool canConfigurePrinter( ) ;
bool print( KPrinter& /*printer*/ ) ;
@ -61,7 +53,7 @@ class CHMGenerator : public Generator
QString getMetaData( const QString & key, const QString & option );
bool reparseConfig() ;
void addPages( KConfigDialog* /*dlg*/) ;
bool handleEvent (QEvent * /*event*/ ) ;
public slots:
void slotCompleted();

Loading…
Cancel
Save