Exemplo n.º 1
0
        internal void StartIMEComposition()
        {
            Debug.Assert(m_imePreCompositionCachedTextInfo == null,
                         "EndIMEComposition should have been called before another IME Composition starts.");

            m_imePreCompositionCachedTextInfo = new CachedTextInfo(this);
        }
Exemplo n.º 2
0
        internal void EndIMEComposition()
        {
            CachedTextInfo cachedTextInfo = m_imePreCompositionCachedTextInfo.Clone() as CachedTextInfo;

            m_imePreCompositionCachedTextInfo = null;

            OnIMECompositionEnded(cachedTextInfo);
        }
Exemplo n.º 3
0
 internal virtual void OnIMECompositionEnded(CachedTextInfo cachedTextInfo)
 {
 }
Exemplo n.º 4
0
        internal void StartIMEComposition()
        {
            Debug.Assert(m_imePreCompositionCachedTextInfo == null,
                "EndIMEComposition should have been called before another IME Composition starts.");

            m_imePreCompositionCachedTextInfo = new CachedTextInfo(this);
        }
Exemplo n.º 5
0
 internal virtual void OnIMECompositionEnded(CachedTextInfo cachedTextInfo)
 {
 }
Exemplo n.º 6
0
        internal void EndIMEComposition()
        {
            CachedTextInfo cachedTextInfo = m_imePreCompositionCachedTextInfo.Clone() as CachedTextInfo;
            m_imePreCompositionCachedTextInfo = null;

            OnIMECompositionEnded(cachedTextInfo);
        }
Exemplo n.º 7
0
 internal override void OnIMECompositionEnded(CachedTextInfo cachedTextInfo)
 {
     // End of IME Composition.  Restore the critical infos.
     ForceText(cachedTextInfo.Text, false);
     CaretIndex = cachedTextInfo.CaretIndex;
     SelectionStart = cachedTextInfo.SelectionStart;
     SelectionLength = cachedTextInfo.SelectionLength;
 }