Scribus
Open source desktop publishing at your fingertips
sctextbrowser.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SCTEXTBROWSER_H
8 #define SCTEXTBROWSER_H
9 
10 #include "scribusapi.h"
11 
12 #include <QString>
13 #include <QTextBrowser>
14 #include <QUrl>
15 
16 
17 class SCRIBUS_API ScTextBrowser : public QTextBrowser
18 {
19  Q_OBJECT
20 
21  QUrl homeUrl;
22 
23  public:
24  ScTextBrowser( QWidget * parent = 0 );
25 
26  void clear();
27  void find(const QString& txt, const int& options = 0);
28 
29  public slots:
30  void home();
31 
32  private slots:
33  void catchHome(QUrl url);
34  void externalLinkClick(QUrl url);
35 
36  protected:
37  QString m_baseDir;
38 
39 };
40 
41 #endif
Definition: sctextbrowser.h:17