charconvfw/inlinetext/inc/InlineTextCompositeSource.h
branchRCL_3
changeset 55 336bee5c2d35
parent 0 1fb32624e06b
child 16 56cd22a7a1cb
equal deleted inserted replaced
54:748ec5531811 55:336bee5c2d35
       
     1 /*
       
     2 * Copyright (c) 2003-2007 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 *     Classes used combining several MTmInlineTextSource interfaces into one.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef INLINETEXTCOMPOSITESOURCE_H
       
    21 #define INLINETEXTCOMPOSITESOURCE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "InlineTextBase.h"
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 // This array holds all the individual implementations of CAknInlineTextSource
       
    31 typedef CArrayPtrFlat<CInlineTextSource> CInlineTextSourceArray;
       
    32 
       
    33 /**
       
    34 * This class is the implementation of MFormInlineTextSource that is actually accessed by 
       
    35 * Tagma. It delegates its functionality to the installed formatters
       
    36 * 
       
    37 *  @lib InlineText
       
    38 *  @since 3.2
       
    39 */
       
    40 NONSHARABLE_CLASS(CInlineTextCompositeSource) : public CInlineTextSource
       
    41     {
       
    42 public: // 2-stage constructor and the destructor
       
    43     IMPORT_C static CInlineTextCompositeSource* NewL();
       
    44     ~CInlineTextCompositeSource();
       
    45 
       
    46 public:
       
    47     /**
       
    48     * Adds the inline text source to the array.  Ownership is taken by this object
       
    49     *
       
    50     * @param    aNewSource  formatter to add
       
    51     */
       
    52     IMPORT_C void InstallInlineTextSourceL( CInlineTextSource* aNewSource);
       
    53 
       
    54 public: // From MTmInlineTextSource. Documented in header
       
    55 
       
    56     virtual TInt GetNextInlineTextPosition(const TTmDocPos& aFrom, TInt aMaxLength, TTmDocPos& aNext);
       
    57     virtual TPtrC GetInlineText(const TTmDocPos& aAt);
       
    58 
       
    59 public: // From CAknInlineTextSource
       
    60     /**
       
    61     * See AknInlineText.h
       
    62     */
       
    63     virtual void CheckFormattingL(const TTmDocPos& aFrom, const TTmDocPos& aTo);
       
    64 
       
    65 public: // From MEditObserver
       
    66     /**
       
    67     * See Medobsrv.h
       
    68     */
       
    69 	virtual void EditObserver(TInt aStart, TInt aExtent);
       
    70 
       
    71 private:
       
    72     /**
       
    73     * Private constructor
       
    74     */ 
       
    75     CInlineTextCompositeSource();
       
    76 
       
    77     /**
       
    78     * 2nd stage construction
       
    79     */
       
    80     void ConstructL();
       
    81 
       
    82 private:
       
    83     CInlineTextSourceArray* iInlineTextSourceArray;
       
    84     };
       
    85 
       
    86 #endif
       
    87 
       
    88 // End of File