epoc32/include/frmtview.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 /*
     2 // All rights reserved.
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // This component and the accompanying materials are made available
     3 * All rights reserved.
     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
     4 * This component and the accompanying materials are made available
     5 // which accompanies this distribution, and is available
     5 * under the terms of "Eclipse Public License v1.0"
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 * which accompanies this distribution, and is available
     7 //
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 // Initial Contributors:
     8 *
     9 // Nokia Corporation - initial contribution.
     9 * Initial Contributors:
    10 //
    10 * Nokia Corporation - initial contribution.
    11 // Contributors:
    11 *
    12 //
    12 * Contributors:
    13 // Description:
    13 *
    14 //
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
    15 
    18 
    16 #ifndef __FRMTVIEW_H__
    19 #ifndef __FRMTVIEW_H__
    17 #define __FRMTVIEW_H__
    20 #define __FRMTVIEW_H__
    18 
    21 
    19 #include <e32std.h>
    22 #include <e32std.h>
   294 	class MObserver
   297 	class MObserver
   295 
   298 
   296 		{
   299 		{
   297 		public:
   300 		public:
   298 
   301 
   299 		/** Called after reformatting but before redisplay, so that edit
   302 		/** Called after reformatting but before redisplay, so that the height of edit windows, etc., 
   300 		windows, etc., can be resized.
   303 		can be adjusted. There is no need to adjust the width of displaying components as formatting 
       
   304 		is always done to fit the specified width.
       
   305 		Implementers are not allowed to call any formatting functions while handling reformatting 
       
   306 		notifications as it may cause recursive loops leading to unexpected consequences.
   301 		@param aTextView A pointer to the current text view object. */
   307 		@param aTextView A pointer to the current text view object. */
   302 		virtual void OnReformatL(const CTextView* aTextView) = 0;
   308 		virtual void OnReformatL(const CTextView* aTextView) = 0;
   303 		};
   309 		};
   304 
   310 
   305 	// argument to SetViewL
   311 	// argument to SetViewL
   315 	top of a CTextView object.
   321 	top of a CTextView object.
   316 
   322 
   317 	To use it, construct a TTagmaForwarder object, then call InitL(), which
   323 	To use it, construct a TTagmaForwarder object, then call InitL(), which
   318 	finishes background formatting, then call the MTmTextLayoutForwarder
   324 	finishes background formatting, then call the MTmTextLayoutForwarder
   319 	functions.
   325 	functions.
       
   326 	
       
   327 	The class should only be used internally by FORM component.
   320 	@publishedAll
   328 	@publishedAll
   321 	@released
   329 	@released
   322 	*/
   330 	*/
   323 	class TTagmaForwarder: public MTmTextLayoutForwarder
   331 	class TTagmaForwarder: public MTmTextLayoutForwarder
   324 	
   332 	
   442 	IMPORT_C TPoint SetXyPosL(TPoint aPos,TBool aDragSelectOn,TRect*& aPictureRect,TInt& aPictureFrameEdges);
   450 	IMPORT_C TPoint SetXyPosL(TPoint aPos,TBool aDragSelectOn,TRect*& aPictureRect,TInt& aPictureFrameEdges);
   443 	IMPORT_C TPoint MoveCursorL(TCursorPosition::TMovementType& aMovement,TBool aDragSelectOn);
   451 	IMPORT_C TPoint MoveCursorL(TCursorPosition::TMovementType& aMovement,TBool aDragSelectOn);
   444 	IMPORT_C TInt ScrollDisplayL(TCursorPosition::TMovementType aMovement,
   452 	IMPORT_C TInt ScrollDisplayL(TCursorPosition::TMovementType aMovement,
   445 		CTextLayout::TAllowDisallow aScrollBlankSpace=CTextLayout::EFDisallowScrollingBlankSpace);
   453 		CTextLayout::TAllowDisallow aScrollBlankSpace=CTextLayout::EFDisallowScrollingBlankSpace);
   446 	IMPORT_C TPoint SetViewLineAtTopL(TInt aLineNo);
   454 	IMPORT_C TPoint SetViewLineAtTopL(TInt aLineNo);
   447 	IMPORT_C void ScrollDisplayPixelsL(TInt& aDeltaY);
   455     IMPORT_C void ScrollDisplayPixelsL(TInt& aDeltaY);
       
   456     IMPORT_C void ScrollDisplayPixelsNoLimitBorderL(TInt aDeltaY);
   448 	IMPORT_C TInt ScrollDisplayLinesL(TInt& aDeltaLines,
   457 	IMPORT_C TInt ScrollDisplayLinesL(TInt& aDeltaLines,
   449 		CTextLayout::TAllowDisallow aScrollBlankSpace = CTextLayout::EFDisallowScrollingBlankSpace);
   458 		CTextLayout::TAllowDisallow aScrollBlankSpace = CTextLayout::EFDisallowScrollingBlankSpace);
   450 	IMPORT_C TInt ScrollDisplayParagraphsL(TInt& aDeltaParas,
   459 	IMPORT_C TInt ScrollDisplayParagraphsL(TInt& aDeltaParas,
   451 		CTextLayout::TAllowDisallow aScrollBlankSpace = CTextLayout::EFDisallowScrollingBlankSpace);
   460 		CTextLayout::TAllowDisallow aScrollBlankSpace = CTextLayout::EFDisallowScrollingBlankSpace);
   452 	IMPORT_C TPoint SetViewL(TInt aDocPos,TInt& aYPos,TViewYPosQualifier aYPosQualifier = TViewYPosQualifier(),
   461 	IMPORT_C TPoint SetViewL(TInt aDocPos,TInt& aYPos,TViewYPosQualifier aYPosQualifier = TViewYPosQualifier(),
   558 	TInt iGood;
   567 	TInt iGood;
   559 	TInt iFormattedUpTo;
   568 	TInt iFormattedUpTo;
   560 	TInt iHorizontalScrollJump;
   569 	TInt iHorizontalScrollJump;
   561 	TInt iHeightNotDrawn;
   570 	TInt iHeightNotDrawn;
   562 	MObserver* iObserver;	// must not be moved
   571 	MObserver* iObserver;	// must not be moved
   563 	/** Explicit off-screen bitmap to draw to.
   572 	CBitmapContext* iOffScreenContext; //Explicit off-screen bitmap to draw to.
   564 	@internalComponent */
       
   565 	CBitmapContext* iOffScreenContext;
       
   566 	TRect iReducedDrawingAreaRect;
   573 	TRect iReducedDrawingAreaRect;
   567 	TUint iDummy;// was iRedrawExtendedHighlight;
   574 	TUint iDummy;// was iRedrawExtendedHighlight;
   568 	TBool iContextIsNavigation;
   575 	TBool iContextIsNavigation;
   569 	TBool iDrawOpaque;
   576 	TBool iDrawOpaque;
   570 	};
   577 	};