Subversion Repositories Scribus

Rev

Rev 106 | Rev 168 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 paul 1
#ifndef HYPLUG_H
2
#define HYPLUG_H
3
 
4
#include <qobject.h>
106 Franz 5
#include <qtextcodec.h>
3 paul 6
#include "hyphen.h"
7
class ScribusDoc;
8
class ScribusApp;
9
class PageItem;
10
 
159 Franz 11
/*!
12
This class is the core of the Scribus hyphenation system.
13
*/
14
 
3 paul 15
class Hyphenator : public QObject
16
{
17
    Q_OBJECT
18
 
19
public:
20
    Hyphenator(QWidget* parent, ScribusDoc *dok, ScribusApp* app);
21
    ~Hyphenator();
159 Franz 22
    /*! There are languages having rule not to hyphen word shorter than
23
    MinWordLen */
3 paul 24
                int MinWordLen;
159 Franz 25
    /*! Language in use */
3 paul 26
                QString Language;
159 Franz 27
    /*! Flag - if user set auto hyphen processing.*/
3 paul 28
                bool Automatic;
159 Franz 29
    /*! Flag - obsolete? */
3 paul 30
                bool AutoCheck;
159 Franz 31
    /*! Reference to the hyphen dictionary structure. */
3 paul 32
                HyphenDict *hdict;
159 Franz 33
    /*! Embeded reference to the \see ScribusDoc filled by \a dok */
3 paul 34
                ScribusDoc *doc;
159 Franz 35
    /*! Embeded reference to the \see ScribusApp filled by \a app */
3 paul 36
                ScribusApp *Sap;
159 Franz 37
    /*! Flag - if is the dictionary without errors etc. If is it 'false'
38
        hyphen aborted. */
105 Franz 39
                bool useAble;
159 Franz 40
    /*! Qt text codec which handles local characters. */
106 Franz 41
                QTextCodec *codec;
3 paul 42
 
43
public slots:
44
                void slotNewDict(QString name);
45
                void slotNewSettings(int Wordlen, bool Autom, bool ACheck);
46
                void slotHyphenateWord(PageItem* it, QString text, int firstC);
47
                void slotHyphenate(PageItem *it);
48
};
49
#endif