|
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: This is the implementation of application class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SU8DANISHNORWEGIAN_H |
|
20 #define SU8DANISHNORWEGIAN_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32svr.h> |
|
25 |
|
26 #include "layout.h" |
|
27 #include "modifier.h" |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 class CSu8DanishNorwegianLayout : public CDeadKeyLayout |
|
32 { |
|
33 public: |
|
34 |
|
35 static CKeyboardLayout* NewL(); |
|
36 |
|
37 // Handle the minor differences between the Danish/Norwegian and |
|
38 // Finnish/Swedish layouts: |
|
39 virtual TUint16 Unicode(TInt aHidKey, THidModifier aModifiers) const; |
|
40 |
|
41 // Report what layouts are supported: |
|
42 virtual TInt LayoutId() const; |
|
43 |
|
44 // Layout has additional Caps Lock keys: |
|
45 virtual TBool |
|
46 ChangesWithCapsLock(TInt aHidKey, THidModifier aModifiers) const; |
|
47 |
|
48 // For application switch key and middle softkey scancodes: |
|
49 TInt |
|
50 RawScanCode(TInt aHidKey, TInt aUsagePage, |
|
51 THidModifier aModifiers) const; |
|
52 |
|
53 private: |
|
54 |
|
55 /* C++ constructor */ |
|
56 CSu8DanishNorwegianLayout(); |
|
57 |
|
58 // Standard look-up table: |
|
59 static const TInt KColumnMap[]; |
|
60 static const TUint16 KKeyCodes[]; |
|
61 |
|
62 // Special cases: |
|
63 static const TSpecialKey KSpecialCases[]; |
|
64 |
|
65 // Dead key tables: |
|
66 static const TIndexPair KDeadKeyIndex[]; |
|
67 static const TKeyPair KDeadKeyAcute[]; |
|
68 static const TKeyPair KDeadKeyGrave[]; |
|
69 static const TKeyPair KDeadKeyDiaeresis[]; |
|
70 static const TKeyPair KDeadKeyCircumflex[]; |
|
71 static const TKeyPair KDeadKeyTilde[]; |
|
72 |
|
73 // Caps Lock look-up table for Danish/Norwegian: |
|
74 static const TSpecialKey KDanishKeyCodes[]; |
|
75 }; |
|
76 |
|
77 #endif //SU8DANISHNORWEGIAN_H |
|
78 //End of file |
|
79 |