00001 // EIKCAPCA.H 00002 // 00003 // Copyright (c) 1997-1999 Symbian Ltd. All rights reserved. 00004 // 00005 00006 #if !defined(__EIKCAPCA_H__) 00007 #define __EIKCAPCA_H__ 00008 00009 #include <e32base.h> 00010 00011 class CEikCaptionedControl; 00012 class CCoeControl; 00013 class CEikCapCArrayExtension; 00014 00015 class CEikCapCArray : public CArrayPtrFlat<CEikCaptionedControl> 00016 { 00017 public: 00018 IMPORT_C CEikCapCArray(TInt aGranularity); 00019 IMPORT_C ~CEikCapCArray(); 00020 IMPORT_C TSize MinimumSize(); 00021 IMPORT_C void SetRect(const TRect& aRect); 00022 IMPORT_C void ResetMinimumSizes(); 00023 IMPORT_C TInt LineIndexFromId(TInt aControlId) const; 00024 IMPORT_C TInt FindLineIndex(const CCoeControl* aControl) const; 00025 IMPORT_C void DeleteLine(TInt aIndex); 00026 IMPORT_C void AdjustAllIds(TInt aControlIdDelta); 00027 IMPORT_C void SetDensePacking(TBool aDensePacking); 00028 #start_since SINCE_3_1_SDK 00029 00032 TBool CalcItemIndexes(TInt &aTopItemIndex, TInt &aMiddleItems, TInt &aBottomItemIndex, TSize aAreaSize); 00033 #end_since SINCE_3_1_SDK 00034 TInt NumberOfTextLines() const; // for scrollbar 00035 TInt NumberOfTextLinesBeforeLine(TInt aLine) const; 00036 TRect Rect() const; 00037 void SetRect(const TRect& aRect, TInt aTop, TInt aMiddle, TInt aBottom); 00038 void CreateExtensionL(); 00039 CEikCapCArrayExtension *ExtensionOrNull() const; 00040 private: 00041 //TInt iCaptionWidth; 00042 CEikCapCArrayExtension *iExtension; 00043 TBool iDensePacking; 00044 //TRect iRect; 00045 }; 00046 00047 #endif