Ejemplo n.º 1
0
        // Token: 0x0600681D RID: 26653 RVA: 0x001D4B98 File Offset: 0x001D2D98
        internal override void CreateParaclient(out IntPtr paraClientHandle)
        {
            FloaterParaClient floaterParaClient = new FloaterParaClient(this);

            paraClientHandle = floaterParaClient.Handle;
            if (this._mainTextSegment == null)
            {
                this._mainTextSegment = new ContainerParagraph(base.Element, base.StructuralCache);
            }
        }
Ejemplo n.º 2
0
        //-------------------------------------------------------------------
        //
        //  PTS callbacks
        //
        //-------------------------------------------------------------------

        #region PTS callbacks

        //-------------------------------------------------------------------
        // CreateParaclient
        //-------------------------------------------------------------------
        internal override void CreateParaclient(
            out IntPtr paraClientHandle)        // OUT: opaque to PTS paragraph client
        {
#pragma warning disable 6518
            // Disable PRESharp warning 6518. FloaterParaClient is an UnmamangedHandle, that adds itself
            // to HandleMapper that holds a reference to it. PTS manages lifetime of this object, and
            // calls DestroyParaclient to get rid of it. DestroyParaclient will call Dispose() on the object
            // and remove it from HandleMapper.
            FloaterParaClient paraClient = new FloaterParaClient(this);
            paraClientHandle = paraClient.Handle;
#pragma warning restore 6518

            // Create the main text segment
            if (_mainTextSegment == null)
            {
                _mainTextSegment = new ContainerParagraph(Element, StructuralCache);
            }
        }
        //-------------------------------------------------------------------
        //
        //  PTS callbacks
        //
        //-------------------------------------------------------------------

        #region PTS callbacks

        //-------------------------------------------------------------------
        // CreateParaclient
        //-------------------------------------------------------------------
        internal override void CreateParaclient(
            out IntPtr paraClientHandle)        // OUT: opaque to PTS paragraph client
        {
#pragma warning disable 6518
            // Disable PRESharp warning 6518. FloaterParaClient is an UnmamangedHandle, that adds itself
            // to HandleMapper that holds a reference to it. PTS manages lifetime of this object, and 
            // calls DestroyParaclient to get rid of it. DestroyParaclient will call Dispose() on the object
            // and remove it from HandleMapper.
            FloaterParaClient paraClient =  new FloaterParaClient(this);
            paraClientHandle = paraClient.Handle;
#pragma warning restore 6518

            // Create the main text segment
            if (_mainTextSegment == null)
            {
                _mainTextSegment = new ContainerParagraph(Element, StructuralCache);
            }
        }