|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
3 * This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #ifndef __nsBidiKeyboard |
|
8 #define __nsBidiKeyboard |
|
9 #include "nsIBidiKeyboard.h" |
|
10 #include <windows.h> |
|
11 |
|
12 class nsBidiKeyboard : public nsIBidiKeyboard |
|
13 { |
|
14 public: |
|
15 NS_DECL_ISUPPORTS |
|
16 NS_DECL_NSIBIDIKEYBOARD |
|
17 |
|
18 nsBidiKeyboard(); |
|
19 virtual ~nsBidiKeyboard(); |
|
20 |
|
21 protected: |
|
22 |
|
23 nsresult SetupBidiKeyboards(); |
|
24 bool IsRTLLanguage(HKL aLocale); |
|
25 |
|
26 bool mInitialized; |
|
27 bool mHaveBidiKeyboards; |
|
28 wchar_t mLTRKeyboard[KL_NAMELENGTH]; |
|
29 wchar_t mRTLKeyboard[KL_NAMELENGTH]; |
|
30 wchar_t mCurrentLocaleName[KL_NAMELENGTH]; |
|
31 }; |
|
32 |
|
33 |
|
34 #endif // __nsBidiKeyboard |