51 void positionChanged() {
if (posChangeListener) posChangeListener->positionChanged(); }
59 virtual void positionChanged() = 0;
73 virtual const char *getLocalName() = 0;
76 virtual int getLevel() {
long bm = getOffset();
int level = 0;
do { level++; }
while (parent()); setOffset(bm);
return level; }
78 virtual const char *getUserData(
int *
size = 0)
const = 0;
79 virtual void setUserData(
const char *userData,
int size = 0) = 0;
83 virtual void root() = 0;
88 virtual bool parent() = 0;
93 virtual bool firstChild() = 0;
98 virtual bool nextSibling() = 0;
103 virtual bool previousSibling() = 0;
108 virtual bool hasChildren() = 0;
110 virtual void append() = 0;
112 virtual void insertBefore() = 0;
114 virtual void remove() = 0;
117 virtual void setOffset(
unsigned long offset) = 0;
118 virtual unsigned long getOffset()
const = 0;
120 virtual void setText(
const char *ikey) = 0;
122 virtual const char *
getText()
const = 0;
124 virtual void decrement(
int steps = 1) = 0;
125 virtual void increment(
int steps = 1) = 0;
127 virtual long getIndex()
const {
return getOffset(); }
128 virtual void setIndex(
long iindex) { setOffset(iindex); }
134 virtual void assureKeyPath(
const char *keyPath = 0);
virtual void setText(const char *ikey)
#define SWORD_NAMESPACE_START
virtual void decrement(int steps=1)
void setLocalName(TreeKeyIdx *treeKey)
void setPositionChangeListener(PositionChangeListener *pcl)
virtual void increment(int steps=1)
virtual const char * getText() const
virtual int compare(const SWKey &ikey)
virtual bool isTraversable() const
virtual void setPosition(SW_POSITION)
void appendChild(TreeKeyIdx *treeKey)
virtual ~PositionChangeListener()
void setTreeKey(TreeKey *tk)
#define SWORD_NAMESPACE_END
virtual void setIndex(long iindex)
virtual long getIndex() const