equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: smiley utility class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_SMILEYCUSTOMWRAP_H |
|
19 #define C_SMILEYCUSTOMWRAP_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <eiklay.h> |
|
23 |
|
24 NONSHARABLE_CLASS( CSmileyCustomWrap ): public CBase, public MFormCustomWrap |
|
25 { |
|
26 public: |
|
27 CSmileyCustomWrap(); |
|
28 ~CSmileyCustomWrap(); |
|
29 |
|
30 public: |
|
31 // From MFormCustomWrap |
|
32 TUint LineBreakClass( TUint aCode, TUint& aRangeStart, |
|
33 TUint& aRangeEnd ) const; |
|
34 |
|
35 TBool LineBreakPossible( TUint aPrevClass, TUint aNextClass, |
|
36 TBool aHaveSpaces ) const; |
|
37 |
|
38 private: //data |
|
39 TBool iPrevCodeIsSmiley; |
|
40 TBool iPlaceHolder; |
|
41 TAvkonEditorCustomWrap iAvkonCustomWrap; |
|
42 }; |
|
43 |
|
44 #endif C_SMILEYCUSTOMWRAP_H |