diff options
author | lordjaxom <lordjaxom> | 2005-01-26 20:38:45 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-26 20:38:45 +0000 |
commit | f9a94c9a8c8e1065c5276b3f2f8cac531e58774c (patch) | |
tree | bbce23b681fd1518a5826aff28a5fa176495c642 /xml/string.h | |
parent | 75fbf0137aafad470843d1b27a1716645dd38de8 (diff) | |
download | vdr-plugin-text2skin-f9a94c9a8c8e1065c5276b3f2f8cac531e58774c.tar.gz vdr-plugin-text2skin-f9a94c9a8c8e1065c5276b3f2f8cac531e58774c.tar.bz2 |
- consistent parent element handling
Diffstat (limited to 'xml/string.h')
-rw-r--r-- | xml/string.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xml/string.h b/xml/string.h index 50bc996..3ccaf8b 100644 --- a/xml/string.h +++ b/xml/string.h @@ -1,5 +1,5 @@ /* - * $Id: string.h,v 1.15 2005/01/21 20:41:23 lordjaxom Exp $ + * $Id: string.h,v 1.16 2005/01/26 20:38:45 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_XML_STRING_H @@ -191,6 +191,7 @@ inline bool operator< (const txToken &A, const txToken &B) : A.Type < B.Type; } +class cxObject; class cxSkin; class cxString { @@ -198,22 +199,26 @@ private: typedef std::vector<cxString*> tStringList; static tStringList mStrings; + cxObject *mObject; + cxSkin *mSkin; std::string mText; std::string mOriginal; std::vector<txToken> mTokens; - cxSkin *mSkin; bool mTranslate; public: static void Reparse(void); - cxString(cxSkin *Skin, bool Translate); + cxString(cxObject *Parent, bool Translate); ~cxString(); bool Parse(const std::string &Text, bool Translate = false); cxType Evaluate(void) const; void SetListIndex(uint Index, int Tab); + + cxObject *Object(void) const { return mObject; } + cxSkin *Skin(void) const { return mSkin; } }; inline void cxString::SetListIndex(uint Index, int Tab) |