|
1 /* |
|
2 * Copyright (c) 2006,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: CUniEditorObjectsModelObserver class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef UNIEDITOROBJECTSMODELOBSERVER_H |
|
21 #define UNIEDITOROBJECTSMODELOBSERVER_H |
|
22 |
|
23 // ========== INCLUDE FILES ================================ |
|
24 |
|
25 #include <uniobjectsmodelobserver.h> |
|
26 |
|
27 // ========== FORWARD DECLARATIONS ========================= |
|
28 |
|
29 class CUniEditorDocument; |
|
30 class CMsgAttachmentInfo; |
|
31 |
|
32 // ========== CLASS DECLARATION ============================ |
|
33 |
|
34 /** |
|
35 * CUniEditorObjectsModelObserver |
|
36 * |
|
37 * @lib unieditor.app |
|
38 * @since 3.2 |
|
39 */ |
|
40 class CUniEditorObjectsModelObserver : public CBase, |
|
41 public MUniObjectsModelObserver |
|
42 { |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Constructor. |
|
47 * |
|
48 * @param aDocument Reference to UniEditor Document class |
|
49 */ |
|
50 CUniEditorObjectsModelObserver( CUniEditorDocument& aDocument, |
|
51 CUniEditorAppUi& aAppUi ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CUniEditorObjectsModelObserver(); |
|
57 |
|
58 /** |
|
59 * From MMsgAttachmentModelObserver |
|
60 * |
|
61 * Deprecated. |
|
62 */ |
|
63 void NotifyChanges( TMsgAttachmentCommand aCommand, |
|
64 CMsgAttachmentInfo* aAttachmentInfo ); |
|
65 |
|
66 /** |
|
67 * From MMsgAttachmentModelObserver |
|
68 * |
|
69 * Used for communication between Objects |
|
70 * view and UniEditor when adding or removing |
|
71 * objects |
|
72 * |
|
73 * @param aCommand Command id |
|
74 * @param aAttachmentInfo Attachment affected by the command |
|
75 */ |
|
76 void NotifyChangesL( TMsgAttachmentCommand aCommand, |
|
77 CMsgAttachmentInfo* aAttachmentInfo ); |
|
78 |
|
79 /** |
|
80 * From MMsgAttachmentModelObserver |
|
81 */ |
|
82 RFile GetAttachmentFileL( TMsvAttachmentId aId ); |
|
83 |
|
84 /* |
|
85 * Used for communication between Objects |
|
86 * view and UniEditor when layout is changed |
|
87 * from Objects view |
|
88 * |
|
89 * @param aLayout New layout, EImageFirst or ETextFirst |
|
90 */ |
|
91 void NotifyOrderChangeL( TUniLayout aLayout ); |
|
92 |
|
93 private: |
|
94 |
|
95 CUniEditorDocument& iDocument; |
|
96 CUniEditorAppUi& iAppUi; |
|
97 }; |
|
98 |
|
99 #endif // UNIEDITOROBJECTSMODELOBSERVER_H |
|
100 |
|
101 // End of File |