diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/frmlaydt.h --- a/epoc32/include/frmlaydt.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/frmlaydt.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,98 @@ -frmlaydt.h +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// 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 +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __FRMLAYDT_H__ +#define __FRMLAYDT_H__ + +#include + +#if defined(TIMING_CODE) +class CWindowGc; +class RWsSession; +#endif + +/** +Layout data: no longer used. + +This class provides two enumerations which are used in the Text Views API. +@publishedAll +@deprecated 7.0 +*/ +class CLayoutData + + { +public: + enum + { + EFLargeNumber = KMaxTInt / 3, // must be less than KMaxTInt/2 to avoid overflow problems + EFFontHeightIncreaseFactor = 7, // by default, increase the font height by this percentage + EFMinimumLineDescent = 3, // by default, this is the minimum line descent + EFBaseLinePosition = 82 // position down ViewRect for BaseLine + }; + + enum + { + EFHeightForFormattingAllText = EFLargeNumber, + EFBodyWidthForNoWrapping = EFLargeNumber + }; + + /** Flags used when converting between layout coordinates and document + position. + @see CTextLayout::XyPosToDocPosL() + @see CTextLayout::DocPosToXyPosL() */ + enum + { + /** + Count individual characters and don't treat the end of the line specially. + @deprecated 6.2 + */ + EFIndividualChars = 0, + /** + Only consider the beginnings and ends of whole lines. Only useful in + XyToDocPos functions. + */ + EFWholeLinesOnly = 1, + /** + Only consider the beginnings and ends of whole TBoxs so as not to + access the document. Only useful in XyToDocPos functions. + */ + EFWholeTBoxesOnly=EFWholeLinesOnly, + /** + Disambiguate the end position of a line from the start position of + the next line. If both positions are the same, a position at the end + of the line will be invalid, and the position before will be + returned instead. + */ + EFDisambiguateEndOfLine = 2, + }; + + /** Format modes. */ + enum TFormatMode + { + /** Dimensions stored in pixels with no mapping between format and image device. */ + EFScreenMode, + /** Dimensions stored in twips with no mapping. */ + EFPrintMode, + /** Dimensions stored in twips with partial mapping. */ + EFPrintPreviewMode, + /** Dimensions stored in twips with full mapping. */ + EFWysiwygMode + }; +private: + // not constructable + CLayoutData(CLayoutData&); + }; + +#endif