22#ifndef __LATEX_CONFIG_H__
23#define __LATEX_CONFIG_H__
25#include <tqtextstream.h>
26#include <tqstringlist.h>
44 unsigned int _defaultFontSize;
47 bool _convertPictures;
48 TQString _picturesDir;
54 TQStringList _languagesList;
55 TQString _defaultLanguage;
62 static const char SPACE_CHAR;
64 static Config* instance( void);
79 bool isEmbeded() const { return _isEmbeded; }
80 TQString getClass() const { return _class; }
81 TQString getQuality() const { return _quality; }
82 unsigned int getDefaultFontSize() const { return _defaultFontSize; }
84 bool convertPictures() const { return _convertPictures; }
85 TQString getPicturesDir() const { return _picturesDir; }
87 bool mustUseUnicode() const { return (_encoding == "unicode"); }
88 bool mustUseLatin1() const { return (_encoding != "unicode"); }
89 TQString getEncoding() const { return _encoding; }
90 TQStringList getLanguagesList() const { return _languagesList; }
91 TQString getDefaultLanguage() const { return _defaultLanguage; }
93 int getTabSize() const { return _tabSize; }
94 int getIndentation() const { return _tabulation; }
108 void useLatexStyle() { _useLatexStyle = true; }
109 void useKwordStyle() { _useLatexStyle = false; }
110 void setEmbeded( bool emb) { _isEmbeded = emb; }
113 void setClass( const TQString &lclass) { _class = lclass; }
114 void setQuality( const TQString &quality) { _quality = quality; }
115 void setDefaultFontSize( int size) { _defaultFontSize = size; }
117 void convertPictures( bool state) { _convertPictures = state; }
118 void setPicturesDir( const TQString &dir) { _picturesDir = dir; }
120 void setEncoding( const TQString &enc) { _encoding = enc; }
121 void addLanguage( const TQString &l) { _languagesList.append(l); }
122 void setDefaultLanguage( const TQString &l) { _defaultLanguage = l; }
124 void setIndentation( int indent) { _tabulation = indent; }
130 void writeIndent(TQTextStream& out);
This class hold all parameters and configuration from a file or from the filter configuration dialog ...
void setTabSize(int size) Initialise the tab size.
bool isKwordStyleUsed() const Return the value of a tabulation.
void setClass(const TQString &lclass) The class can be article, book, letter, report or slides.
|