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 __FRMLAYDT_H__
17 #define __FRMLAYDT_H__
21 #if defined(TIMING_CODE)
27 Layout data: no longer used.
29 This class provides two enumerations which are used in the Text Views API.
39 EFLargeNumber = KMaxTInt / 3, // must be less than KMaxTInt/2 to avoid overflow problems
40 EFFontHeightIncreaseFactor = 7, // by default, increase the font height by this percentage
41 EFMinimumLineDescent = 3, // by default, this is the minimum line descent
42 EFBaseLinePosition = 82 // position down ViewRect for BaseLine
47 EFHeightForFormattingAllText = EFLargeNumber,
48 EFBodyWidthForNoWrapping = EFLargeNumber
51 /** Flags used when converting between layout coordinates and document
53 @see CTextLayout::XyPosToDocPosL()
54 @see CTextLayout::DocPosToXyPosL() */
58 Count individual characters and don't treat the end of the line specially.
61 EFIndividualChars = 0,
63 Only consider the beginnings and ends of whole lines. Only useful in
68 Only consider the beginnings and ends of whole TBoxs so as not to
69 access the document. Only useful in XyToDocPos functions.
71 EFWholeTBoxesOnly=EFWholeLinesOnly,
73 Disambiguate the end position of a line from the start position of
74 the next line. If both positions are the same, a position at the end
75 of the line will be invalid, and the position before will be
78 EFDisambiguateEndOfLine = 2,
84 /** Dimensions stored in pixels with no mapping between format and image device. */
86 /** Dimensions stored in twips with no mapping. */
88 /** Dimensions stored in twips with partial mapping. */
90 /** Dimensions stored in twips with full mapping. */
95 CLayoutData(CLayoutData&);