Back to index

scribus-ng  1.3.4.dfsg+svn20071115
configuration.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 _SCRIBUS_SHORTCFG_H_
00008 #define _SCRIBUS_SHORTCFG_H_
00009 
00010 #include <qobject.h>
00011 
00012 class QString;
00013 class QStringList;
00014 class PrefsContext;
00015 
00025 class SWConfig : public QObject
00026 {
00027        Q_OBJECT
00028 
00029 public:
00031        SWConfig();
00033        ~SWConfig(){};
00034 
00036        uint action;
00037        //*! \brief UI checkbox */
00038        //uint userConfig;
00039 
00042        QStringList getShortWords(QString lang);
00045        static QString getAvailableLanguages();
00049        static QString getLangCodeFromHyph(QString hyphenCode);
00051        void saveConfig();
00052 
00053 private:
00055        PrefsContext* prefs;
00060        QStringList getShortWordsFromFile(QString lang, QString filename);
00064        static QString getAvailableLanguagesFromFile(QString filename);
00068        static QString getLangFromCode(QString code);
00069 };
00070 
00071 #endif