epoc32/include/mw/pticompositiondataif.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). 
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* 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
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:               MPtiEngineCompositionDataInterface class definitions.
williamr@2
    15
*
williamr@2
    16
*/
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
williamr@2
    21
williamr@2
    22
williamr@2
    23
williamr@2
    24
williamr@2
    25
williamr@2
    26
williamr@2
    27
williamr@2
    28
williamr@2
    29
williamr@2
    30
williamr@2
    31
williamr@2
    32
#ifndef MPTIENGINECOMPOSITIONDATAINTERFACE_H
williamr@2
    33
#define MPTIENGINECOMPOSITIONDATAINTERFACE_H
williamr@2
    34
williamr@2
    35
// INCLUDES
williamr@2
    36
#include <e32base.h>
williamr@2
    37
#include <badesca.h> 
williamr@2
    38
williamr@2
    39
// CLASS DECLARATION
williamr@2
    40
williamr@2
    41
/**
williamr@2
    42
* MPtiEngineCompositionDataInterface class.
williamr@2
    43
*  This is a class which returned by CPtiEngine::CompositionData() API.
williamr@2
    44
*
williamr@2
    45
*  @lib PtiEngine.lib
williamr@2
    46
*  @since 2.6
williamr@2
    47
*/
williamr@2
    48
class MPtiEngineCompositionDataInterface
williamr@2
    49
    {
williamr@2
    50
    public:
williamr@2
    51
        // the attribute of phrase
williamr@2
    52
        enum TPtiAttributeOfPhrase
williamr@2
    53
            {
williamr@2
    54
            EPtiAttributeTransitoryInput,  // transitory input(before converting)
williamr@2
    55
            EPtiAttributeNonTargetConvert, // non-target phrase(while converting)
williamr@2
    56
            EPtiAttributeTargetConvert     // target phrase(while converting)
williamr@2
    57
            };
williamr@2
    58
williamr@2
    59
    public:
williamr@2
    60
        /**
williamr@2
    61
        * Gets a cursor position on converting string
williamr@2
    62
        * @since 2.6
williamr@2
    63
        * @return TInt : The current cursor position
williamr@2
    64
        *         If the cursor is left side, the returned value is 0.
williamr@2
    65
        */
williamr@2
    66
        IMPORT_C virtual TInt   CursorPosition() const = 0;
williamr@2
    67
williamr@2
    68
        /**
williamr@2
    69
        * Gets the number of phrases on converting string
williamr@2
    70
        * @since 2.6
williamr@2
    71
        * @return TInt : the number of phrases
williamr@2
    72
        */
williamr@2
    73
        IMPORT_C virtual TInt   NumberOfPhrase() const = 0;
williamr@2
    74
williamr@2
    75
        /**
williamr@2
    76
        * Gets the character count of each phrase
williamr@2
    77
        * @since 2.6
williamr@2
    78
        * @return TPtrC8 : the arrary keeping the character count
williamr@2
    79
        */
williamr@2
    80
        IMPORT_C virtual TPtrC8 LengthOfPhrase() const = 0;
williamr@2
    81
williamr@2
    82
        /**
williamr@2
    83
        * Gets the attribute of each phrase
williamr@2
    84
        * @since 2.6
williamr@2
    85
        * @return TPtrC8 : the arrary keeping the value of TPtiAttributeOfPhrase
williamr@2
    86
        */
williamr@2
    87
        IMPORT_C virtual TPtrC8 AttributeOfPhrase() const = 0;
williamr@2
    88
williamr@2
    89
        /**
williamr@2
    90
        * Gets the converting string
williamr@2
    91
        * @since 2.6
williamr@2
    92
        * @return TPtrC : the converting string
williamr@2
    93
        */
williamr@2
    94
        IMPORT_C virtual TPtrC  ConvertingString() const = 0;
williamr@2
    95
williamr@2
    96
        /**
williamr@2
    97
        * Gets the specified string
williamr@2
    98
        * @since 2.6
williamr@2
    99
        * @return TPtrC : the completed string
williamr@2
   100
        */
williamr@2
   101
        IMPORT_C virtual TPtrC  CompletedString() const = 0;
williamr@2
   102
williamr@2
   103
        /**
williamr@2
   104
        * Gets the reading string of the completed string
williamr@2
   105
        * @since 2.6
williamr@2
   106
        * @return TPtrC : the reading string
williamr@2
   107
        */
williamr@2
   108
        IMPORT_C virtual TPtrC  ReadingString() const = 0;
williamr@2
   109
williamr@2
   110
        /**
williamr@2
   111
        * Checking it whether a character in a current cursor position 
williamr@2
   112
        * is in modifiable character.
williamr@2
   113
        * The modifiable character is diacritics and small characters.
williamr@2
   114
        * There are two diacritics marks in Japanese: viced sound mark
williamr@2
   115
        * and semi-voiced sound mark.
williamr@2
   116
        * @since 2.6
williamr@2
   117
        * @return TBool : ETrue is modifiable character.
williamr@2
   118
        */
williamr@2
   119
        IMPORT_C virtual TBool IsModifiableCharacter() const = 0;
williamr@2
   120
    };
williamr@2
   121
williamr@2
   122
#endif  // MPTIENGINECOMPOSITIONDATAINTERFACE_H
williamr@2
   123
williamr@2
   124
// End of file
williamr@2
   125