37 static const char oName[] =
"Headings";
38 static const char oTip[] =
"Toggles Headings On and Off if they exist";
42 static const StringList oVals(&choices[0], &choices[2]);
59 bool isheader =
false;
61 bool preverse =
false;
62 bool withinDiv =
false;
70 const char *from = orig.
c_str();
74 for (text =
""; *from; ++from) {
92 cls =
SWBuf(
"fromEntryAttributes ") + cls;
99 sprintf(buf,
"%i", pvHeaderNum++);
103 sprintf(buf,
"%i", headerNum++);
111 for (StringList::const_iterator it = attributes.begin(); it != attributes.end(); it++) {
117 if (!
option || preverse) {
159 cls <<
SWBuf(
"fromEntryAttributes ").
size();
168 if (withinDiv && isheader) {
188 else header.
append(*from);
#define SWORD_NAMESPACE_START
const char * setAttribute(const char *attribName, const char *attribValue, int partNum=-1, char partSplit= '|')
bool startsWith(const SWBuf &prefix) const
static const StringList * oValues()
int stricmp(const char *s1, const char *s2)
const StringList getAttributeNames() const
const char * c_str() const
std::list< SWBuf > StringList
SWBuf & append(const char *str, long max=-1)
static const char oName[]
unsigned long size() const
virtual bool isProcessEntryAttributes() const
virtual AttributeTypeList & getEntryAttributes() const
static const char * choices[4]
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
bool isEndTag(const char *eID=0) const
int strnicmp(const char *s1, const char *s2, int len)
#define SWORD_NAMESPACE_END
void setSize(unsigned long len)
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)