|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declares container control for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DRMEncryptorCONTAINER_H |
|
20 #define DRMEncryptorCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 #include <gdi.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CEikScrollBarFrame; |
|
28 class CDRMEncryptorImage; |
|
29 class CFont; |
|
30 class TRect; |
|
31 class TBidiText; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CDRMEncryptorContainer container control class. |
|
37 * |
|
38 */ |
|
39 class CDRMEncryptorContainer : public CCoeControl |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 CDRMEncryptorContainer(); |
|
43 void ConstructL( const TRect& aRect ); |
|
44 ~CDRMEncryptorContainer(); |
|
45 |
|
46 private: // from CCoeControl |
|
47 |
|
48 void Draw( const TRect& aRect ) const; |
|
49 void ActivateL(); |
|
50 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
51 TEventCode aModifiers ); |
|
52 |
|
53 private: // new functions |
|
54 |
|
55 void SetTextL( const TDesC& aText ); |
|
56 void SetImageL( const TDesC& aFileName, TInt aBitmapId ); |
|
57 void UpdateScrollIndicatorL(); |
|
58 |
|
59 private: // Data |
|
60 |
|
61 CArrayPtr<HBufC>* iText; |
|
62 CArrayPtr<CDRMEncryptorImage>* iImages; |
|
63 CArrayFixFlat<TInt>* iScreenStarts; |
|
64 TInt iCurrentScreen; |
|
65 TBool iDoNotShowLastLineAgain; |
|
66 CGraphicsContext::TTextAlign iTextAlign; |
|
67 CEikScrollBarFrame* iSBFrame; |
|
68 const CFont* iFont; // not owned |
|
69 TInt iLineWidth; |
|
70 TInt iBaseLineDelta; |
|
71 TInt iTopBaseLineX; |
|
72 TInt iTopBaseLineY; |
|
73 TInt iLinesPerScreen; |
|
74 }; |
|
75 |
|
76 #endif |
|
77 |
|
78 // End of File |