1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#ifndef __MetaFormatControl__
#define __MetaFormatControl__
#include <qstring.h>
#include <qstringlist.h>
#include <qstrlist.h>
// MetaFormatControl structure definition
class MetaFormatControl
{
public:
MetaFormatControl();
~MetaFormatControl();
static MetaFormatControl *ref();
void refresh();
static MetaFormatControl *thisInstance;
// control params
bool enableReplyTags;
bool enableBlockReplyTags;
bool enableNextLineFolding;
bool enableAnySequence;
bool enableInlineNumberingSequence;
bool enableNumberingSequence;
bool enableBulletSequence;
bool enableWroteSequence;
// numbering
int numberingSetThreshold;
// inline numbering
int inlineNumberingSetThreshold;
// bullets
int bulletSetThreshold;
// param data
class SeqTag
{
public:
SeqTag();
SeqTag(const QString &, const QString &, const QString &, const QString &);
SeqTag(const QString &, const QString &);
QString beginPattern, textPattern, endPattern, tag;
bool strip;
};
QValueList<SeqTag> anyData;
QValueList<SeqTag> inlineNumberingData;
QValueList<SeqTag> numberingData;
QValueList<SeqTag> bulletData;
QStrList wroteData;
QStrList replyData;
};
#endif
|