~ubuntu-branches/ubuntu/trusty/bibletime/trusty

« back to all changes in this revision

Viewing changes to src/frontend/cprinter.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden
  • Date: 2009-11-18 17:30:00 UTC
  • mfrom: (1.3.4 upstream) (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091118173000-endkhjz5qai88tvr
Tags: 2.4-1
* New upstream version 2.4
* debian/control: 
  - Replace incorrect bibletime-data Depends on lib4qt-gui
    with bibletime Depends on libqtgui4 (>= 4.4.0). (Closes: #556209).
  - Add Build-depends: on zlib1g-dev and libcurl4-gnutls-dev 
    (Closes: #556805).

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#ifndef CPRINTER_H
11
11
#define CPRINTER_H
12
12
 
13
 
#include "backend/managers/cswordbackend.h"
 
13
#include <QObject>
14
14
#include "backend/rendering/cdisplayrendering.h"
 
15
 
15
16
#include "backend/config/cbtconfig.h"
 
17
#include "backend/managers/cswordbackend.h"
16
18
 
17
 
#include <QObject>
18
19
 
19
20
class QWebPage;
20
21
 
21
 
namespace Printing 
22
 
{
23
 
 
24
 
         // The CPrinter class manages the print item queue and the printing of them to the printer.
25
 
 
26
 
class CPrinter : public QObject, public Rendering::CDisplayRendering
27
 
{
28
 
        Q_OBJECT
29
 
public:
30
 
        CPrinter(QObject* parent, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
31
 
        virtual ~CPrinter();
32
 
        void printKeyTree( KeyTree& );
33
 
 
34
 
protected:
35
 
        virtual const QString entryLink(const KeyTreeItem& item, CSwordModuleInfo* const module);
36
 
        virtual const QString renderEntry( const KeyTreeItem&, CSwordKey* = 0 );
37
 
        virtual const QString finishText(const QString& arg1, KeyTree& tree);
38
 
 
39
 
private:
40
 
        QWebPage* m_htmlPage;
 
22
namespace Printing {
 
23
 
 
24
// The CPrinter class manages the print item queue and the printing of them to the printer.
 
25
 
 
26
class CPrinter : public QObject, public Rendering::CDisplayRendering {
 
27
        Q_OBJECT
 
28
    public:
 
29
        CPrinter(QObject* parent, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
 
30
        virtual ~CPrinter();
 
31
        void printKeyTree( KeyTree& );
 
32
 
 
33
    protected:
 
34
        virtual const QString entryLink(const KeyTreeItem& item, CSwordModuleInfo* const module);
 
35
        virtual const QString renderEntry( const KeyTreeItem&, CSwordKey* = 0 );
 
36
        virtual const QString finishText(const QString& arg1, KeyTree& tree);
 
37
 
 
38
    private:
 
39
        QWebPage* m_htmlPage;
41
40
};
42
41
 
43
42
} //namespace Printing