equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 #ifndef AKNCURSORMANAGER_H |
|
18 #define AKNCURSORMANAGER_H |
|
19 |
|
20 #include <e32base.h> |
|
21 |
|
22 // forward declarations |
|
23 class CAknEdwinState; |
|
24 class TTmDocPosSpec; |
|
25 class CAknEdwinFormAccessor; |
|
26 class CTextLayout; |
|
27 class CTextView; |
|
28 |
|
29 class CAknCursorManager : public CBase |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * 2 phase constructor |
|
34 * |
|
35 * @param |
|
36 */ |
|
37 static CAknCursorManager* NewL(CAknEdwinState* aEdwinState); |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 virtual ~CAknCursorManager(); |
|
43 |
|
44 /** |
|
45 * |
|
46 */ |
|
47 TTmDocPosSpec DocPos() const; |
|
48 /** |
|
49 * |
|
50 */ |
|
51 void SetDocPosL(const TTmDocPosSpec& aDocPos); |
|
52 /** |
|
53 * |
|
54 */ |
|
55 TBool IsRightToLeftParagraph(TTmDocPosSpec aPos); |
|
56 /** |
|
57 * |
|
58 */ |
|
59 TBool VisualCursorBetweenOpposingChunks(); |
|
60 /** |
|
61 * |
|
62 */ |
|
63 void ToggleVisualDocPosL(); |
|
64 /** |
|
65 * |
|
66 */ |
|
67 void ToggleLogicalDocPosL(); |
|
68 |
|
69 private: |
|
70 CAknCursorManager(CAknEdwinState* aEdwinState); |
|
71 void ConstructL(); |
|
72 |
|
73 CAknEdwinFormAccessor* FormAccessor() const; |
|
74 CTextLayout* TextLayout() const; |
|
75 CTextView* TextView() const; |
|
76 |
|
77 private: |
|
78 CAknEdwinState* iEdwinState; // not owned |
|
79 }; |
|
80 |
|
81 |
|
82 #endif |