summaryrefslogtreecommitdiff
path: root/bibletime/frontend/display/creaddisplay.h
blob: e6d3a532f4083c76cc9009a520cb5dd5c47bd81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/***************************************************************************
                          creaddisplay.h  -  description
                             -------------------
    begin                : Don Mai 9 2002
    copyright            : (C) 2002 by The BibleTime team
    email                : info@bibletime.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef CREADDISPLAY_H
#define CREADDISPLAY_H

#include "cdisplay.h"

class QPopupMenu;
class QWidget;

/**The base class for all read-only widgets like KHTMLView.
  *@author The BibleTime team
  */

class CReadDisplay :  public CDisplay {
public:
  /**
  * Returns true if the display has an active anchor.
  */
  const bool hasActiveAnchor();
  /**
  * Returns the current active anchor.
  */
  const QString& activeAnchor();
  /**
  * Moves the widget to the given anchor.
  */
  virtual void moveToAnchor( const QString& ) = 0;
  virtual void print(const CDisplay::TextPart);


protected: // Protected methods
	friend class CDisplay;
 	friend class CHTMLReadDisplay;
 	friend class CHTMLReadDisplayView;

	CReadDisplay( CReadWindow* readWindow );
	~CReadDisplay();

  /**
  * Sets the current anchor to the parameter.
  */
  void setActiveAnchor( const QString& );

private: // Public attributes
  /**
  * The member which hols the current anchor.
  */

  QString m_activeAnchor;
};

#endif