epoc32/include/frmlaydt.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/frmlaydt.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/frmlaydt.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,98 @@
     1.4 -frmlaydt.h
     1.5 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +#ifndef __FRMLAYDT_H__
    1.21 +#define __FRMLAYDT_H__
    1.22 +
    1.23 +#include <e32std.h>
    1.24 +
    1.25 +#if defined(TIMING_CODE)
    1.26 +class CWindowGc;
    1.27 +class RWsSession;
    1.28 +#endif
    1.29 +
    1.30 +/** 
    1.31 +Layout data: no longer used.
    1.32 +
    1.33 +This class provides two enumerations which are used in the Text Views API.
    1.34 +@publishedAll
    1.35 +@deprecated 7.0 
    1.36 +*/
    1.37 +class CLayoutData
    1.38 +
    1.39 +	{
    1.40 +public:
    1.41 +	enum
    1.42 +		{
    1.43 +		EFLargeNumber = KMaxTInt / 3,	// must be less than KMaxTInt/2 to avoid overflow problems
    1.44 +		EFFontHeightIncreaseFactor = 7,	// by default, increase the font height by this percentage
    1.45 +		EFMinimumLineDescent = 3,		// by default, this is the minimum line descent
    1.46 +		EFBaseLinePosition = 82			// position down ViewRect for BaseLine
    1.47 +		};
    1.48 +
    1.49 +	enum
    1.50 +		{
    1.51 +		EFHeightForFormattingAllText = EFLargeNumber,
    1.52 +		EFBodyWidthForNoWrapping = EFLargeNumber
    1.53 +		};
    1.54 +	
    1.55 +	/** Flags used when converting between layout coordinates and document
    1.56 +	position.
    1.57 +	@see CTextLayout::XyPosToDocPosL()
    1.58 +	@see CTextLayout::DocPosToXyPosL() */
    1.59 +	enum		
    1.60 +		{
    1.61 +		/**
    1.62 +		Count individual characters and don't treat the end of the line specially.
    1.63 +		@deprecated 6.2
    1.64 +		*/
    1.65 +		EFIndividualChars = 0,
    1.66 +		/**
    1.67 +		Only consider the beginnings and ends of whole lines. Only useful in
    1.68 +		XyToDocPos functions.
    1.69 +		*/
    1.70 +		EFWholeLinesOnly = 1,
    1.71 +		/**
    1.72 +		Only consider the beginnings and ends of whole TBoxs so as not to
    1.73 +		access the document. Only useful in XyToDocPos functions.
    1.74 +		*/
    1.75 +		EFWholeTBoxesOnly=EFWholeLinesOnly,
    1.76 +		/**
    1.77 +		Disambiguate the end position of a line from the start position of
    1.78 +		the next line. If both positions are the same, a position at the end
    1.79 +		of the line will be invalid, and the position before will be
    1.80 +		returned instead.
    1.81 +		*/
    1.82 +		EFDisambiguateEndOfLine = 2,
    1.83 +		};
    1.84 +
    1.85 +	/** Format modes. */
    1.86 +	enum TFormatMode
    1.87 +		{
    1.88 +		/** Dimensions stored in pixels with no mapping between format and image device. */
    1.89 +		EFScreenMode, 
    1.90 +		/** Dimensions stored in twips with no mapping. */
    1.91 +		EFPrintMode,
    1.92 +		/** Dimensions stored in twips with partial mapping. */
    1.93 +		EFPrintPreviewMode, 
    1.94 +		/** Dimensions stored in twips with full mapping. */
    1.95 +		EFWysiwygMode
    1.96 +		};
    1.97 +private:
    1.98 +	// not constructable
    1.99 +	CLayoutData(CLayoutData&);
   1.100 +	};
   1.101 +
   1.102 +#endif