equal
deleted
inserted
replaced
22 // INCLUDES |
22 // INCLUDES |
23 #include <charconv.h> |
23 #include <charconv.h> |
24 #include "NpdDialogBase.h" |
24 #include "NpdDialogBase.h" |
25 #include <centralrepository.h> |
25 #include <centralrepository.h> |
26 #include <cenrepnotifyhandler.h> |
26 #include <cenrepnotifyhandler.h> |
|
27 #include <itemfinderobserver.h> |
27 |
28 |
28 // FORWARD DECLARATIONS |
29 // FORWARD DECLARATIONS |
29 class CNotepadRichTextEditor; |
30 class CNotepadRichTextEditor; |
30 class CEikDialog; |
31 class CEikDialog; |
31 class CSendUi; |
32 class CSendUi; |
39 * CNotepadViewerDialog is a dialog for Notepad viewer. |
40 * CNotepadViewerDialog is a dialog for Notepad viewer. |
40 * |
41 * |
41 * @see CNotepadDialogBase |
42 * @see CNotepadDialogBase |
42 */ |
43 */ |
43 class CNotepadViewerDialog : public CNotepadDialogBase, |
44 class CNotepadViewerDialog : public CNotepadDialogBase, |
44 public MCenRepNotifyHandlerCallback |
45 public MCenRepNotifyHandlerCallback, |
|
46 public MAknItemFinderObserver |
|
47 |
45 { |
48 { |
46 public: // Constructor and destructor |
49 public: // Constructor and destructor |
47 |
50 |
48 /** |
51 /** |
49 * Constructor. |
52 * Constructor. |
212 * Called when SizeChanged. |
215 * Called when SizeChanged. |
213 */ |
216 */ |
214 void SizeChanged(); |
217 void SizeChanged(); |
215 public: |
218 public: |
216 void HandleDialogPointerEventL( const TPointerEvent& aPointerEvent ); |
219 void HandleDialogPointerEventL( const TPointerEvent& aPointerEvent ); |
|
220 |
|
221 void HandleFindItemEventL( |
|
222 const CItemFinder::CFindItemExt& aItem, |
|
223 MAknItemFinderObserver::TEventFlag aEvent, |
|
224 TUint aFlags ); |
|
225 |
217 |
226 |
218 private: // New function |
227 private: // New function |
219 |
228 |
220 /** |
229 /** |
221 * Show "Attachement saved" note. |
230 * Show "Attachement saved" note. |
305 |
314 |
306 private: // Data |
315 private: // Data |
307 |
316 |
308 enum TNotepadViewerFlags |
317 enum TNotepadViewerFlags |
309 { |
318 { |
310 ENotepadMenuByOkKey = 0x02 |
319 ENotepadMenuByOkKey = 0x02, |
|
320 EMenuByItemActication = 0x04 |
311 }; |
321 }; |
312 CNotepadRichTextEditor* iEditor; // not own (dialog own) |
322 CNotepadRichTextEditor* iEditor; // not own (dialog own) |
313 HBufC* iFilename; // own |
323 HBufC* iFilename; // own |
314 RFile * iFile; |
324 RFile * iFile; |
315 HBufC** iContentPointer; // not owned |
325 HBufC** iContentPointer; // not owned |