3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2006 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
12
#ifndef CREADDISPLAY_H
13
#define CREADDISPLAY_H
16
#include "backend/cswordbackend.h"
21
/**The base class for all read-only widgets like KHTMLView.
22
*@author The BibleTime team
25
class CReadDisplay : public CDisplay {
28
* Returns true if the display has an active anchor.
30
const bool hasActiveAnchor();
32
* Returns the current active anchor.
34
const QString& activeAnchor();
36
* Moves the widget to the given anchor.
38
virtual void moveToAnchor( const QString& ) = 0;
39
virtual void print(const CDisplay::TextPart, CSwordBackend::DisplayOptions displayOptions, CSwordBackend::FilterOptions filterOptions);
41
void setMouseTracking(const bool trackingEnabled) {
42
m_useMouseTracking = trackingEnabled;
44
const bool getMouseTracking() const {
45
return m_useMouseTracking;
48
protected: // Protected methods
49
friend class CDisplay;
50
friend class CHTMLReadDisplay;
51
friend class CHTMLReadDisplayView;
53
CReadDisplay( CReadWindow* readWindow );
57
* Sets the current anchor to the parameter.
59
void setActiveAnchor( const QString& );
61
private: // Public attributes
63
* The member which hols the current anchor.
66
QString m_activeAnchor;
68
bool m_useMouseTracking;