37 static const StringList oVals(&choices[0], &choices[2]);
45 optionName(optionName),
50 optName = this->optionName.c_str();
51 optTip = this->optionTip.c_str();
66 bool stripThisToken =
false;
69 const char *from = orig.
c_str();
71 for (text =
""; *from; ++from) {
77 else if (*from ==
'>') {
79 if (strncmp(token,
"reference", 9) && strncmp(token.
c_str(),
"/reference", 10)) {
88 stripThisToken =
true;
91 else if (tag.
isEndTag() && stripThisToken) {
92 stripThisToken =
false;
#define SWORD_NAMESPACE_START
static const StringList * oValues()
const char * c_str() const
std::list< SWBuf > StringList
SWBuf & append(const char *str, long max=-1)
OSISReferenceLinks(const char *optionName, const char *optionTip, const char *type, const char *subType=0, const char *defaultValue="On")
unsigned long size() const
static const char * choices[4]
const char * getAttribute(const char *attribName, int partNum=-1, char partSplit= '|') const
virtual ~OSISReferenceLinks()
bool isEndTag(const char *eID=0) const
virtual void setOptionValue(const char *ival)
const StringList * optValues
#define SWORD_NAMESPACE_END
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)