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 FROMCURSORMODIFIERUTILS_H |
|
18 #define FROMCURSORMODIFIERUTILS_H |
|
19 |
|
20 #include <e32base.h> |
|
21 |
|
22 // forward declarations |
|
23 class TTmDocPosSpec; |
|
24 class CTextLayout; |
|
25 class CTextView; |
|
26 |
|
27 NONSHARABLE_CLASS(TFormCursorModifierUtils) |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * C++ Constructor |
|
32 */ |
|
33 TFormCursorModifierUtils(CTextView& aTextView, CTextLayout& aTextLayout); |
|
34 |
|
35 /** |
|
36 * Destructor |
|
37 */ |
|
38 virtual ~TFormCursorModifierUtils(); |
|
39 /** |
|
40 * |
|
41 */ |
|
42 TTmDocPosSpec DocPos() const; |
|
43 /** |
|
44 * |
|
45 */ |
|
46 void SetDocPosL(const TTmDocPosSpec& aDocPos); |
|
47 /** |
|
48 * |
|
49 */ |
|
50 TBool IsRightToLeftParagraph(TTmDocPosSpec aPos); |
|
51 /** |
|
52 * |
|
53 */ |
|
54 TBool VisualCursorBetweenOpposingChunks(); |
|
55 /** |
|
56 * |
|
57 */ |
|
58 void ToggleVisualDocPosL(); |
|
59 /** |
|
60 * |
|
61 */ |
|
62 void ToggleLogicalDocPosL(); |
|
63 |
|
64 private: |
|
65 CTextView& iTextView; |
|
66 CTextLayout& iTextLayout; |
|
67 }; |
|
68 |
|
69 |
|
70 #endif |