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 00090 IMPORT_C virtual void GetColorUseListL( 00091 CArrayFix<TCoeColorUse>& aColorUseList) const; 00092 // not available before Release 005u 00093 00103 IMPORT_C virtual void HandleResourceChange(TInt aType); 00104 // not available before Release 005u 00112 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00113 protected: //from CCoeControl 00114 00123 IMPORT_C void WriteInternalStateL(RWriteStream& aWriteStream) const; 00124 00125 protected: 00126 00131 IMPORT_C virtual void CreateItemDrawerL(); 00132 00133 private: 00137 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00138 private: 00139 IMPORT_C virtual void CEikListBox_Reserved(); // listbox use only 00140 protected: 00141 TInt iRequiredCellCharWidth; 00142 private: 00143 00144 TInt iSpare; // Unused 00145 }; 00146 00156 class CEikSnakingTextListBox : public CEikSnakingListBox 00157 { 00158 public: 00159 00163 IMPORT_C ~CEikSnakingTextListBox(); 00164 00168 IMPORT_C CEikSnakingTextListBox(); 00169 00182 IMPORT_C void ConstructL(const CCoeControl* aParent, TInt aFlags = 0); 00183 00189 IMPORT_C CTextListBoxModel* Model() const; 00190 00191 public: // from CCoeControl 00192 00200 IMPORT_C virtual void GetColorUseListL( 00201 CArrayFix<TCoeColorUse>& aColorUseList) const; 00202 // not available before Release 005u 00203 00214 IMPORT_C virtual void HandleResourceChange(TInt aType); 00215 // not available before Release 005u 00216 00224 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00225 private: 00229 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00230 }; 00231 00232 00233 // __EIKTXLBX_H__ 00234 #endif