00001 // EIKTXLBX.H 00002 // 00003 // Copyright (c) 1997-1999 Symbian Ltd. All rights reserved. 00004 // 00005 00006 #if !defined(__EIKTXLBX_H__) 00007 #define __EIKTXLBX_H__ 00008 00009 #if !defined(__COECNTRL_H__) 00010 #include <coecntrl.h> 00011 #endif 00012 00013 #if !defined(__EIKLBX_H__) 00014 #include <eiklbx.h> 00015 #endif 00016 00017 #if !defined(__EIKLBM_H__) 00018 #include <eiklbm.h> 00019 #endif 00020 00021 class CTextListBoxModel; 00022 00031 class CEikTextListBox : public CEikListBox 00032 { 00033 public: 00034 00038 IMPORT_C ~CEikTextListBox(); 00039 00043 IMPORT_C CEikTextListBox(); 00044 00055 IMPORT_C virtual void ConstructFromResourceL(TResourceReader& aReader); 00056 00068 IMPORT_C void ConstructL(const CCoeControl* aParent, TInt aFlags = 0); 00069 00075 IMPORT_C CTextListBoxModel* Model() const; 00076 00077 public: // from CCoeControl 00078 00089 IMPORT_C virtual void GetColorUseListL( 00090 CArrayFix<TCoeColorUse>& aColorUseList) const; 00091 // not available before Release 005u 00092 00102 IMPORT_C virtual void HandleResourceChange(TInt aType); 00103 // not available before Release 005u 00111 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00112 protected: //from CCoeControl 00113 00122 IMPORT_C void WriteInternalStateL(RWriteStream& aWriteStream) const; 00123 00124 protected: 00125 00130 IMPORT_C virtual void CreateItemDrawerL(); 00131 00132 private: 00136 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00137 private: 00138 IMPORT_C virtual void CEikListBox_Reserved(); // listbox use only 00139 protected: 00140 TInt iRequiredCellCharWidth; 00141 private: 00142 00143 TInt iSpare; // Unused 00144 }; 00145 00155 class CEikSnakingTextListBox : public CEikSnakingListBox 00156 { 00157 public: 00158 00162 IMPORT_C ~CEikSnakingTextListBox(); 00163 00167 IMPORT_C CEikSnakingTextListBox(); 00168 00181 IMPORT_C void ConstructL(const CCoeControl* aParent, TInt aFlags = 0); 00182 00188 IMPORT_C CTextListBoxModel* Model() const; 00189 00190 public: // from CCoeControl 00191 00199 IMPORT_C virtual void GetColorUseListL( 00200 CArrayFix<TCoeColorUse>& aColorUseList) const; 00201 // not available before Release 005u 00202 00213 IMPORT_C virtual void HandleResourceChange(TInt aType); 00214 // not available before Release 005u 00215 00223 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00224 private: 00228 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00229 }; 00230 00231 00232 // __EIKTXLBX_H__ 00233 #endif