2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __FRMLAYDT_H__
20 #define __FRMLAYDT_H__
24 #if defined(TIMING_CODE)
30 Layout data: no longer used.
32 This class provides two enumerations which are used in the Text Views API.
42 EFLargeNumber = KMaxTInt / 3, // must be less than KMaxTInt/2 to avoid overflow problems
43 EFFontHeightIncreaseFactor = 7, // by default, increase the font height by this percentage
44 EFMinimumLineDescent = 3, // by default, this is the minimum line descent
45 EFBaseLinePosition = 82 // position down ViewRect for BaseLine
50 EFHeightForFormattingAllText = EFLargeNumber,
51 EFBodyWidthForNoWrapping = EFLargeNumber
54 /** Flags used when converting between layout coordinates and document
56 @see CTextLayout::XyPosToDocPosL()
57 @see CTextLayout::DocPosToXyPosL() */
61 Count individual characters and don't treat the end of the line specially.
64 EFIndividualChars = 0,
66 Only consider the beginnings and ends of whole lines. Only useful in
71 Only consider the beginnings and ends of whole TBoxs so as not to
72 access the document. Only useful in XyToDocPos functions.
74 EFWholeTBoxesOnly=EFWholeLinesOnly,
76 Disambiguate the end position of a line from the start position of
77 the next line. If both positions are the same, a position at the end
78 of the line will be invalid, and the position before will be
81 EFDisambiguateEndOfLine = 2,
87 /** Dimensions stored in pixels with no mapping between format and image device. */
89 /** Dimensions stored in twips with no mapping. */
91 /** Dimensions stored in twips with partial mapping. */
93 /** Dimensions stored in twips with full mapping. */
98 CLayoutData(CLayoutData&);