|
1 /* |
|
2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * {Description of the file} |
|
16 * |
|
17 */ |
|
18 |
|
19 // Protection against nested includes |
|
20 #ifndef __DIRECTPRINTPROPERTYVIEW_H__ |
|
21 #define __DIRECTPRINTPROPERTYVIEW_H__ |
|
22 |
|
23 // System includes |
|
24 #include <aknlists.h> |
|
25 #include <akntoolbarobserver.h> |
|
26 |
|
27 // User includes |
|
28 #include "DirectPrintViewBase.h" |
|
29 #include "directprintsettinglistbox.h" |
|
30 |
|
31 // Class declaration |
|
32 /** |
|
33 * Property view class |
|
34 * more_complete_description |
|
35 */ |
|
36 class CDirectPrintPropertyView : public CDirectPrintViewBase, public MAknToolbarObserver |
|
37 { |
|
38 public: |
|
39 /** Constructors */ |
|
40 static CDirectPrintPropertyView* NewL(); |
|
41 static CDirectPrintPropertyView* NewLC(); |
|
42 /** Destructor */ |
|
43 ~CDirectPrintPropertyView(); |
|
44 |
|
45 public: |
|
46 /** |
|
47 * From CAknView. |
|
48 * Handles user commands. |
|
49 * |
|
50 * @param aCommand The id of commands. |
|
51 */ |
|
52 void HandleCommandL(TInt aCommand); |
|
53 |
|
54 public: |
|
55 /** |
|
56 * From MAknToolbarObserver. |
|
57 * Handles user commands. |
|
58 * |
|
59 * @param aCommand The id of commands. |
|
60 */ |
|
61 void OfferToolbarEventL(TInt aCommand); |
|
62 |
|
63 public: // New function |
|
64 /** |
|
65 * Process by change tab. |
|
66 * |
|
67 * @param aTabIndex The index of tab. |
|
68 */ |
|
69 void ChangeTabL(TInt aTabIndex); |
|
70 |
|
71 protected: // from CAknView |
|
72 void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage); |
|
73 void DoDeactivate(); |
|
74 |
|
75 private: |
|
76 CDirectPrintPropertyView(); |
|
77 void ConstructL(); |
|
78 |
|
79 void LoadListL(); |
|
80 void ReadDataL(); |
|
81 void WriteDataL(); |
|
82 void NewDataL(); |
|
83 |
|
84 void LoadPaperTabL(); |
|
85 void LoadPageTabL(); |
|
86 void LoadMarginTabL(); |
|
87 void LoadHeaderTabL(); |
|
88 void LoadFooterTabL(); |
|
89 |
|
90 private: |
|
91 /** Pointer to listbox. */ |
|
92 CDirectPrintSettingListBox* iListBox; |
|
93 /** Index of paper size setting. */ |
|
94 TInt iPaperSize; |
|
95 /** Index of orientation setting. */ |
|
96 TInt iOrientation; |
|
97 /** Paper hight. */ |
|
98 TInt iHight; |
|
99 /** Paper width. */ |
|
100 TInt iWidth; |
|
101 /** Index of media type setting. */ |
|
102 TInt iMediaType; |
|
103 /** Index of print page setting. */ |
|
104 TInt iPrintPage; |
|
105 /** Print range. */ |
|
106 TBuf<50> iPrintRange; |
|
107 /** Number of copies. */ |
|
108 TInt iCopy; |
|
109 /** Left margin. */ |
|
110 TInt iLeftMargin; |
|
111 /** Right margin. */ |
|
112 TInt iRightMargin; |
|
113 /** Top margin. */ |
|
114 TInt iTopMargin; |
|
115 /** Bottom margin. */ |
|
116 TInt iBottomMargin; |
|
117 /** Header text. */ |
|
118 TBuf<50> iHeaderText; |
|
119 /** Distance of header. */ |
|
120 TInt iHeaderDistance; |
|
121 /** First page flag. */ |
|
122 TInt iHeaderFirstPage; |
|
123 /** Footer text. */ |
|
124 TBuf<50> iFooterText; |
|
125 /** Distance of footer. */ |
|
126 TInt iFooterDistance; |
|
127 /** First page flag. */ |
|
128 TInt iFooterFirstPage; |
|
129 |
|
130 /** Boaderless flag. */ |
|
131 TInt iBoaderless; |
|
132 |
|
133 /** Index of tab. */ |
|
134 TInt iTabIndex; |
|
135 }; |
|
136 |
|
137 #endif // __DIRECTPRINTPROPERTYVIEW_H__ |