|
1 /* |
|
2 * Copyright (c) 2007 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: xhtmlstackmanager declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef XHTMLSTACKMANAGER_H |
|
21 #define XHTMLSTACKMANAGER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class TXhtmlStyleInfo; |
|
26 class TXhtmlParaInfo; |
|
27 class TXhtmlListInfo; |
|
28 |
|
29 /** |
|
30 * Class defining a stack. Methods implemented in XhtmlStack.inl. |
|
31 * |
|
32 * @code |
|
33 * ?good_class_usage_example(s) |
|
34 * @endcode |
|
35 * |
|
36 * @lib ?library |
|
37 * @since S60 v3.2 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CXhtmlStackManager ) : public CBase |
|
40 { |
|
41 public: |
|
42 |
|
43 /** |
|
44 * CXhtmlStackManager phase one constructor |
|
45 * |
|
46 * @since S60 v3.2 |
|
47 * @return Created CXhtmlStack instance |
|
48 */ |
|
49 static CXhtmlStackManager* NewL(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CXhtmlStackManager(); |
|
55 |
|
56 /** |
|
57 * Returns pointer to TXhtmlParaInfo stack. |
|
58 * |
|
59 * @since S60 v3.2 |
|
60 */ |
|
61 inline CXhtmlStack<TXhtmlParaInfo>* ParaStack() |
|
62 { |
|
63 return iParaStack; |
|
64 }; |
|
65 |
|
66 /** |
|
67 * Returns pointer to TXhtmlStyleInfo stack. |
|
68 * |
|
69 * @since S60 v3.2 |
|
70 */ |
|
71 inline CXhtmlStack<TXhtmlStyleInfo>* StyleStack() |
|
72 { |
|
73 return iStyleStack; |
|
74 } |
|
75 |
|
76 /** |
|
77 * Returns pointer to TXhtmlListInfo stack. |
|
78 * |
|
79 * @since S60 v3.2 |
|
80 */ |
|
81 inline CXhtmlStack<TXhtmlListInfo>* ListStack() |
|
82 { |
|
83 return iListStack; |
|
84 } |
|
85 |
|
86 |
|
87 protected: |
|
88 void ConstructL(); |
|
89 CXhtmlStackManager(); |
|
90 |
|
91 private: |
|
92 |
|
93 /** |
|
94 * Stack for paragraph information items. |
|
95 * Own. |
|
96 */ |
|
97 CXhtmlStack<TXhtmlParaInfo>* iParaStack; |
|
98 |
|
99 /** |
|
100 * Stack for style information items. |
|
101 * Own. |
|
102 */ |
|
103 CXhtmlStack<TXhtmlStyleInfo>* iStyleStack; |
|
104 |
|
105 /** |
|
106 * Stack for list information items. |
|
107 * Own. |
|
108 */ |
|
109 CXhtmlStack<TXhtmlListInfo>* iListStack; |
|
110 }; |
|
111 |
|
112 #endif |
|
113 |