|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Inline Implementation of CCompositionConvertedElement |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // --------------------------------------------------------- |
|
21 // Get the key |
|
22 // --------------------------------------------------------- |
|
23 // |
|
24 inline const TDesC* CCompositionElement::Key() const |
|
25 { |
|
26 return iKey; |
|
27 } |
|
28 |
|
29 // --------------------------------------------------------- |
|
30 // Compare function |
|
31 // --------------------------------------------------------- |
|
32 // |
|
33 inline TBool CCompositionElement::operator == (TUint aKeyValue) const |
|
34 { |
|
35 return (*iKey)[0] == aKeyValue; |
|
36 } |
|
37 // --------------------------------------------------------- |
|
38 // determine the type of element |
|
39 // --------------------------------------------------------- |
|
40 // |
|
41 inline TBool CCompositionElement::IsTypeOf(TCompositionElementType aType) const |
|
42 { |
|
43 return (aType & iKeyType); |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // Is element is a seperator? |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 inline TBool CCompositionElement::IsSeparator() const |
|
51 { |
|
52 return IsTypeOf(EElementTypeSeparator); |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------- |
|
56 // Is element an automatic seperator? |
|
57 // --------------------------------------------------------- |
|
58 // |
|
59 inline TBool CCompositionElement::IsAutoSeparator() const |
|
60 { |
|
61 return IsTypeOf(EElementTypeAutoSeparator); |
|
62 //return iKey && (iKey->Compare(KAutoSeparator) == 0); |
|
63 } |
|
64 |
|
65 // --------------------------------------------------------- |
|
66 // Is element a manul seperator? |
|
67 // --------------------------------------------------------- |
|
68 // |
|
69 inline TBool CCompositionElement::IsManualSeparator() const |
|
70 { |
|
71 return IsTypeOf(EElementTypeManualSeparator); |
|
72 } |
|
73 |
|
74 // --------------------------------------------------------- |
|
75 // Is element a tone mark? |
|
76 // --------------------------------------------------------- |
|
77 // |
|
78 inline TBool CCompositionElement::IsTonemark() const |
|
79 { |
|
80 return IsTypeOf(EElementTypeTonemark); |
|
81 } |
|
82 |
|
83 // --------------------------------------------------------- |
|
84 // Is element a manul auxilian? |
|
85 // --------------------------------------------------------- |
|
86 // |
|
87 inline TBool CCompositionElement::IsAuxilian() const |
|
88 { |
|
89 return IsTypeOf(EElementTypeAuxilian); |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------- |
|
93 // Is element visiable? |
|
94 // --------------------------------------------------------- |
|
95 // |
|
96 inline TBool CCompositionElement::IsVisible() |
|
97 { |
|
98 return !iHide; |
|
99 } |
|
100 |
|
101 // --------------------------------------------------------- |
|
102 // Set element show/hide |
|
103 // --------------------------------------------------------- |
|
104 // |
|
105 inline void CCompositionElement::Hide(TBool aHide) |
|
106 { |
|
107 iHide = aHide; |
|
108 } |
|
109 |
|
110 // End Of File |