epoc32/include/txtetext.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 __TXTETEXT_H__
    19 #ifndef __TXTETEXT_H__
    17 #define __TXTETEXT_H__
    20 #define __TXTETEXT_H__
    18 
    21 
    19 #include <e32std.h>
    22 #include <e32std.h>
    20 #include <e32base.h>
    23 #include <e32base.h>
       
    24 #include <s32std.h>
       
    25 
       
    26 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    21 #include <fldset.h>
    27 #include <fldset.h>
    22 #include <s32std.h>
    28 #include <txtetext_internal.h>
    23 
    29 #include <txtclipboard.h>
       
    30 #endif
    24 
    31 
    25 // Forward references
    32 // Forward references
    26 class CParaFormatLayer;
    33 class CParaFormatLayer;
    27 class CCharFormatLayer;
    34 class CCharFormatLayer;
    28 class MTextFieldFactory;
    35 class MTextFieldFactory;
    33 class MFepInlineTextFormatRetriever;
    40 class MFepInlineTextFormatRetriever;
    34 class TCharFormat;
    41 class TCharFormat;
    35 class CEditableTextOptionalData;
    42 class CEditableTextOptionalData;
    36 class RFs;
    43 class RFs;
    37 
    44 
    38 
       
    39 /**
       
    40 UIDs
       
    41 @internalComponent
       
    42 */
       
    43 const TUid KPlainTextFieldDataUid = {268435555};
       
    44 const TUid KEditableTextUid = {268450334};
       
    45 const TUid KPlainTextCharacterDataUid = {268450341};
       
    46 const TUid KClipboardUidTypePlainText = {268450333};
       
    47 const TUid KUidRichText = {271013233};
       
    48 
       
    49 /**
       
    50 @internalComponent
       
    51 */
       
    52 const TInt KMaxFieldBufferSize=0x14;
       
    53 
    45 
    54 /** 
    46 /** 
    55 An abstract base class which defines the behaviour common to all editable 
    47 An abstract base class which defines the behaviour common to all editable 
    56 text classes.
    48 text classes.
    57 
    49 
   617 	IMPORT_C virtual TInt ScanParas(TInt& aPos,TUint& aScanMask) const;
   609 	IMPORT_C virtual TInt ScanParas(TInt& aPos,TUint& aScanMask) const;
   618 	IMPORT_C virtual TEtextComponentInfo ComponentInfo() const;
   610 	IMPORT_C virtual TEtextComponentInfo ComponentInfo() const;
   619 	//
   611 	//
   620 	// Field functions
   612 	// Field functions
   621 	IMPORT_C void SetFieldFactory(MTextFieldFactory* aFactory);
   613 	IMPORT_C void SetFieldFactory(MTextFieldFactory* aFactory);
   622 	inline const MTextFieldFactory* FieldFactory() const;
   614 	IMPORT_C const MTextFieldFactory* FieldFactory() const;
   623 	IMPORT_C CTextField* NewTextFieldL(TUid aFieldType) const;
   615 	IMPORT_C CTextField* NewTextFieldL(TUid aFieldType) const;
   624 	IMPORT_C void InsertFieldL(TInt aPos,CTextField* aField,TUid aFieldType); 
   616 	IMPORT_C void InsertFieldL(TInt aPos,CTextField* aField,TUid aFieldType); 
   625 	IMPORT_C virtual void UpdateFieldL(TInt aPos); 
   617 	IMPORT_C virtual void UpdateFieldL(TInt aPos); 
   626 	IMPORT_C void UpdateAllFieldsL(); 
   618 	IMPORT_C void UpdateAllFieldsL(); 
   627 	IMPORT_C TInt FieldCount() const;
   619 	IMPORT_C TInt FieldCount() const;