os/textandloc/textrendering/texthandling/tfields/TESTFAC.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *
    16 */
    17 
    18 
    19 #ifndef __TESTFAC_H__
    20 #define __TESTFAC_H__
    21 
    22 #include <fldbase.h>
    23 #include <fldbltin.h>
    24 
    25 // classes:
    26 class TTestFieldInfo;
    27 class TTestFieldFactory;
    28 //
    29 
    30 
    31 class TTestFieldInfo : public MFieldFileNameInfo, public MFieldPageNumInfo, public MFieldNumPagesInfo
    32 	{
    33 public:
    34 	// from MFieldFileNameInfo
    35 	virtual TInt UpdateFieldFileName(TPtr& aValueText)const;
    36 	// from MFieldPageNumInfo
    37 	virtual TInt UpdateFieldPageNum()const;
    38 	// from MFieldNumPagesInfo
    39 	virtual TInt UpdateFieldNumPages()const;
    40 	};
    41 
    42 
    43 class TTestFieldFactory : public MTextFieldFactory
    44 	{
    45 public:
    46 	// from MTextFieldFactory
    47 	virtual CTextField* NewFieldL(TUid aFieldType); 
    48 	// Creates a field of the type specified
    49 	// Returns NULL if it does not recognise/support the field type
    50 private:
    51 	TTestFieldInfo iInfo;
    52 	};
    53 
    54 
    55 #endif
    56