summaryrefslogtreecommitdiffstats
path: root/bibletime/frontend/display/cwritedisplay.h
blob: 50df09a26151f39755213f55197680878b6cb42f (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
/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2006 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/



#ifndef CWRITEDISPLAY_H
#define CWRITEDISPLAY_H

#include "cdisplay.h"

class TDEActionCollection;
class TDEToolBar;

/**The base class for all read/write-display classes.
  *@author The BibleTime team
  */

class CWriteDisplay : public CDisplay  {
protected:
	friend class CDisplay;
	friend class CPlainWriteDisplay;
	CWriteDisplay( CWriteWindow* writeWindow );
	~CWriteDisplay();

public: // Public methods
	/**
	* Sets the current modified status of the widget.
	*/
	virtual void setModified( const bool modified ) = 0;
	/**
	* Returns true if the current text was modified.
	*/
	virtual const bool isModified() const = 0;
	/**
	* Returns the text of this edit widget.
	*/
	virtual const TQString plainText() = 0;
	/**
	* Creates the necessary action objects and puts them on the toolbar.
	*/
	virtual void setupToolbar( TDEToolBar* bar, TDEActionCollection* actionCollection ) = 0;
};

#endif