Back to index

scribus-ng  1.3.4.dfsg+svn20071115
hyphenator.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef HYPLUG_H
00008 #define HYPLUG_H
00009 
00010 #include <qobject.h>
00011 #include <qtextcodec.h>
00012 
00013 #include "scribusapi.h"
00014 #include "hyphen.h"
00015 class ScribusDoc;
00016 class ScribusMainWindow;
00017 class PageItem;
00018 
00023 class SCRIBUS_API Hyphenator : public QObject
00024 {
00025        Q_OBJECT
00026 
00027 public:
00035        Hyphenator(QWidget* parent, ScribusDoc *dok);
00042        ~Hyphenator();
00043        
00044 private:
00045 
00047        ScribusDoc *doc;
00049        HyphenDict *hdict;
00052        bool useAble;
00054        QTextCodec *codec;
00055 
00062        void NewDict(const QString& name);
00063        
00064 public:
00067        int MinWordLen;
00069        int HyCount;
00071        QString Language;
00073        bool Automatic;
00075        bool AutoCheck;
00076        
00077 public slots:
00087        void slotNewSettings(int Wordlen, bool Autom, bool ACheck, int Num);
00096        void slotHyphenateWord(PageItem* it, const QString& text, int firstC);
00103        void slotHyphenate(PageItem *it);
00111        void slotDeHyphenate(PageItem *it);
00112 };
00113 
00114 #endif