|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __EIKDGFTY_H__ |
|
17 #define __EIKDGFTY_H__ |
|
18 |
|
19 #include <badesca.h> |
|
20 |
|
21 class MEikFindAndReplaceDlgObserver; |
|
22 class CCoeControl; |
|
23 class CEikEmbeddableAppList; |
|
24 class CGraphicsDevice; |
|
25 class CApaDoor; |
|
26 class CApaDocument; |
|
27 class TCharFormat; |
|
28 class TCharFormatMask; |
|
29 class TRgb; |
|
30 class CEikGlobalTextEditor; |
|
31 struct SEdwinFindModel; |
|
32 class CParaFormat; |
|
33 class TParaFormatMask; |
|
34 class CPrintSetup; |
|
35 |
|
36 |
|
37 /** |
|
38 @publishedPartner |
|
39 @released |
|
40 */ |
|
41 class MEikCDlgDialogFactory |
|
42 { |
|
43 public: |
|
44 // These functions are wrappers around the constructors of each dialog |
|
45 // so parameters mirror those of the constructor |
|
46 // Return value is from dialog's ExecuteLD function |
|
47 virtual TBool RunCharMapDlgLD(CCoeControl* aControl) = 0; |
|
48 virtual TBool RunFontDlgLD( TCharFormat& aFormat, |
|
49 TCharFormatMask& aAttribChangedMask, |
|
50 TCharFormatMask& aUndeterminedMask, |
|
51 TDesC& aTextSelection, |
|
52 TInt aFonts, |
|
53 CGraphicsDevice* aGraphicsDevice, |
|
54 TInt aFontControlFlags, |
|
55 const TRgb aBackGroundColor) = 0; |
|
56 |
|
57 virtual TBool RunInsertObjectDlgLD( CEikEmbeddableAppList* aList, |
|
58 TInt& aChoice) = 0; |
|
59 |
|
60 virtual TBool RunObjectInfoDlgLD(const TDesC& aCaption) = 0; |
|
61 |
|
62 virtual TBool RunFormatObjectDlgLD( CApaDoor& aDoor, |
|
63 CApaDocument& aDoc, |
|
64 const TSize& aDefaultIconSize) = 0; |
|
65 |
|
66 virtual TBool RunEdwinFindDlgLD(SEdwinFindModel* aModel, |
|
67 CDesCArray* aFindList) = 0; |
|
68 |
|
69 virtual TBool RunEdwinReplaceDlgLD( SEdwinFindModel* aModel, |
|
70 CDesCArray* aFindList, |
|
71 CDesCArray* aReplaceList) = 0; |
|
72 |
|
73 virtual void RunEdwinFindAndReplaceDlgLD(MEikFindAndReplaceDlgObserver& aObserver, |
|
74 SEdwinFindModel& aModel, TBool aFindOnly, TRect aEdwinRect)=0; |
|
75 |
|
76 virtual TBool RunEdwinReplaceOptionDlgLD( CEikGlobalTextEditor* aEdwin, |
|
77 SEdwinFindModel* aModel) = 0; |
|
78 |
|
79 virtual TBool RunAlignDlgLD( CParaFormat* aFormat, |
|
80 TParaFormatMask& aAttribChangedMask, |
|
81 TParaFormatMask& aUndeterminedMask) = 0; |
|
82 |
|
83 virtual TBool RunBorderDlgLD( CParaFormat* aFormat, |
|
84 TParaFormatMask& aAttribChangedMask, |
|
85 TParaFormatMask& aUndeterminedMask) = 0; |
|
86 |
|
87 virtual TBool RunSpaceDlgLD( CParaFormat* aFormat, |
|
88 TParaFormatMask& aAttribChangedMask, |
|
89 TParaFormatMask& aUndeterminedMask) = 0; |
|
90 |
|
91 virtual TBool RunTabsDlgLD( CParaFormat* aFormat, |
|
92 TParaFormatMask& aAttribChangedMask, |
|
93 TParaFormatMask& aUndeterminedMask, |
|
94 const TInt aPageWidth) = 0; |
|
95 |
|
96 virtual TBool RunIndentDlgLD( CParaFormat* aFormat, |
|
97 TParaFormatMask& aAttribChangedMask, |
|
98 TParaFormatMask& aUndeterminedMask, |
|
99 const TInt aPageWidth) = 0; |
|
100 protected: |
|
101 IMPORT_C MEikCDlgDialogFactory(); |
|
102 private: |
|
103 IMPORT_C virtual void MEikCDlgDialogFactory_Reserved1(); |
|
104 IMPORT_C virtual void MEikCDlgDialogFactory_Reserved2(); |
|
105 private: |
|
106 TInt iMEikCDlgDialogFactory_Spare; |
|
107 }; |
|
108 |
|
109 |
|
110 /** |
|
111 @publishedPartner |
|
112 @released |
|
113 */ |
|
114 class MEikPrintDialogFactory |
|
115 { |
|
116 public: |
|
117 // The print observer requires the global text editor to break the |
|
118 // dependency of the control on the print library |
|
119 virtual TBool RunPaginateDlgLD( CEikGlobalTextEditor* aEditor, |
|
120 CPrintSetup* aPrintSetup, |
|
121 CArrayFix<TInt>* aCharsPerPage) = 0; |
|
122 |
|
123 virtual CPrintSetup* NewDefaultPrintSetupL() = 0; |
|
124 protected: |
|
125 IMPORT_C MEikPrintDialogFactory(); |
|
126 private: |
|
127 IMPORT_C virtual void MEikPrintDialogFactory_Reserved1(); |
|
128 IMPORT_C virtual void MEikPrintDialogFactory_Reserved2(); |
|
129 private: |
|
130 TInt iMEikPrintDialogFactory_Spare; |
|
131 }; |
|
132 |
|
133 |
|
134 /** |
|
135 @publishedPartner |
|
136 @released |
|
137 */ |
|
138 class MEikFileDialogFactory |
|
139 { |
|
140 public: |
|
141 // These functions are wrappers around the constructors of each dialog |
|
142 // so parameters mirror those of the constructor |
|
143 // Return value is from dialog's ExecuteLD function |
|
144 virtual TBool RunFileSaveAsDlgLD( TDes* aFileName, |
|
145 TBool* aUseNewFile, |
|
146 TInt aTitleId, |
|
147 TBool aAppendExtension) = 0; |
|
148 |
|
149 virtual TBool RunScreenCaptureDlgLD(TDes* aFileName, |
|
150 TBool& aSaveAsMonochromeImage, |
|
151 TInt aTitleId) = 0; |
|
152 protected: |
|
153 IMPORT_C MEikFileDialogFactory(); |
|
154 private: |
|
155 IMPORT_C virtual void MEikFileDialogFactory_Reserved1(); |
|
156 IMPORT_C virtual void MEikFileDialogFactory_Reserved2(); |
|
157 private: |
|
158 TInt iMEikFileDialogFactory_Spare; |
|
159 }; |
|
160 |
|
161 |
|
162 #endif // __EIKDGFTY_H__ |