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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __EIKDGFTY_H__
17 #define __EIKDGFTY_H__
21 class MEikFindAndReplaceDlgObserver;
23 class CEikEmbeddableAppList;
24 class CGraphicsDevice;
28 class TCharFormatMask;
30 class CEikGlobalTextEditor;
31 struct SEdwinFindModel;
33 class TParaFormatMask;
41 class MEikCDlgDialogFactory
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,
53 CGraphicsDevice* aGraphicsDevice,
54 TInt aFontControlFlags,
55 const TRgb aBackGroundColor) = 0;
57 virtual TBool RunInsertObjectDlgLD( CEikEmbeddableAppList* aList,
60 virtual TBool RunObjectInfoDlgLD(const TDesC& aCaption) = 0;
62 virtual TBool RunFormatObjectDlgLD( CApaDoor& aDoor,
64 const TSize& aDefaultIconSize) = 0;
66 virtual TBool RunEdwinFindDlgLD(SEdwinFindModel* aModel,
67 CDesCArray* aFindList) = 0;
69 virtual TBool RunEdwinReplaceDlgLD( SEdwinFindModel* aModel,
70 CDesCArray* aFindList,
71 CDesCArray* aReplaceList) = 0;
73 virtual void RunEdwinFindAndReplaceDlgLD(MEikFindAndReplaceDlgObserver& aObserver,
74 SEdwinFindModel& aModel, TBool aFindOnly, TRect aEdwinRect)=0;
76 virtual TBool RunEdwinReplaceOptionDlgLD( CEikGlobalTextEditor* aEdwin,
77 SEdwinFindModel* aModel) = 0;
79 virtual TBool RunAlignDlgLD( CParaFormat* aFormat,
80 TParaFormatMask& aAttribChangedMask,
81 TParaFormatMask& aUndeterminedMask) = 0;
83 virtual TBool RunBorderDlgLD( CParaFormat* aFormat,
84 TParaFormatMask& aAttribChangedMask,
85 TParaFormatMask& aUndeterminedMask) = 0;
87 virtual TBool RunSpaceDlgLD( CParaFormat* aFormat,
88 TParaFormatMask& aAttribChangedMask,
89 TParaFormatMask& aUndeterminedMask) = 0;
91 virtual TBool RunTabsDlgLD( CParaFormat* aFormat,
92 TParaFormatMask& aAttribChangedMask,
93 TParaFormatMask& aUndeterminedMask,
94 const TInt aPageWidth) = 0;
96 virtual TBool RunIndentDlgLD( CParaFormat* aFormat,
97 TParaFormatMask& aAttribChangedMask,
98 TParaFormatMask& aUndeterminedMask,
99 const TInt aPageWidth) = 0;
101 IMPORT_C MEikCDlgDialogFactory();
103 IMPORT_C virtual void MEikCDlgDialogFactory_Reserved1();
104 IMPORT_C virtual void MEikCDlgDialogFactory_Reserved2();
106 TInt iMEikCDlgDialogFactory_Spare;
114 class MEikPrintDialogFactory
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;
123 virtual CPrintSetup* NewDefaultPrintSetupL() = 0;
125 IMPORT_C MEikPrintDialogFactory();
127 IMPORT_C virtual void MEikPrintDialogFactory_Reserved1();
128 IMPORT_C virtual void MEikPrintDialogFactory_Reserved2();
130 TInt iMEikPrintDialogFactory_Spare;
138 class MEikFileDialogFactory
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,
147 TBool aAppendExtension) = 0;
149 virtual TBool RunScreenCaptureDlgLD(TDes* aFileName,
150 TBool& aSaveAsMonochromeImage,
153 IMPORT_C MEikFileDialogFactory();
155 IMPORT_C virtual void MEikFileDialogFactory_Reserved1();
156 IMPORT_C virtual void MEikFileDialogFactory_Reserved2();
158 TInt iMEikFileDialogFactory_Spare;
162 #endif // __EIKDGFTY_H__