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