예제 #1
0
        //-------------------------------------------------------------------
        //
        //  Constructors
        //
        //-------------------------------------------------------------------

        #region Constructors

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="host">
        /// TextFormatter host
        /// </param>
        /// <param name="cpPara">
        /// Character position of paragraph
        /// </param>
        /// <param name="durTrack">
        /// Track width
        /// </param>
        /// <param name="paraClient">
        /// Owner of the line
        /// </param>
        /// <param name="runCache">
        /// Text run cache
        /// </param>
        internal OptimalTextSource(TextFormatterHost host, int cpPara, int durTrack, TextParaClient paraClient, TextRunCache runCache) : base(paraClient)
        {
            _host     = host;
            _durTrack = durTrack;
            _runCache = runCache;
            _cpPara   = cpPara;
        }
예제 #2
0
파일: Line.cs 프로젝트: sjyanxin/WPFSource
        //------------------------------------------------------------------- 
        // 
        //  Constructors
        // 
        //-------------------------------------------------------------------

        #region Constructors
 
        /// <summary>
        /// Constructor. 
        /// </summary> 
        /// <param name="host">
        /// TextFormatter host 
        /// </param>
        /// <param name="paraClient">
        /// Owner of the line
        /// </param> 
        /// <param name="cpPara">
        /// CP of the beginning of the text paragraph 
        /// </param> 
        internal Line(TextFormatterHost host, TextParaClient paraClient, int cpPara) : base(paraClient)
        { 
            _host = host;
            _cpPara = cpPara;
            _textAlignment = (TextAlignment)TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
            _indent = 0.0; 
        }
예제 #3
0
        //-------------------------------------------------------------------
        //
        //  Constructors
        //
        //-------------------------------------------------------------------

        #region Constructors

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="host">
        /// TextFormatter host
        /// </param>
        /// <param name="cpPara">
        /// Character position of paragraph
        /// </param>
        /// <param name="durTrack">
        /// Track width
        /// </param>
        /// <param name="paraClient">
        /// Owner of the line
        /// </param>
        /// <param name="runCache">
        /// Text run cache
        /// </param>
        internal OptimalTextSource(TextFormatterHost host, int cpPara, int durTrack, TextParaClient paraClient, TextRunCache runCache) : base(paraClient)
        {
            _host = host;
            _durTrack = durTrack;
            _runCache = runCache;
            _cpPara = cpPara;
        }
예제 #4
0
 // Token: 0x0600685F RID: 26719 RVA: 0x001D6A34 File Offset: 0x001D4C34
 internal Line(TextFormatterHost host, TextParaClient paraClient, int cpPara) : base(paraClient)
 {
     this._host          = host;
     this._cpPara        = cpPara;
     this._textAlignment = (TextAlignment)this.TextParagraph.Element.GetValue(Block.TextAlignmentProperty);
     this._indent        = 0.0;
 }
 /// <summary>
 /// Ensures the PtsContext exists.
 /// </summary>
 private void EnsurePtsContext()
 {
     if (_ptsContext == null)
     {
         TextFormattingMode textFormattingMode = TextOptions.GetTextFormattingMode(this.PropertyOwner);
         _ptsContext        = new PtsContext(true, textFormattingMode);
         _textFormatterHost = new TextFormatterHost(_ptsContext.TextFormatter, textFormattingMode);
         _section           = new MS.Internal.PtsHost.Section(this);
     }
 }
예제 #6
0
 /// <summary> 
 /// Ensures the PtsContext exists. 
 /// </summary>
 private void EnsurePtsContext() 
 {
     if (_ptsContext == null)
     {
         TextFormattingMode textFormattingMode = TextOptions.GetTextFormattingMode(this.PropertyOwner); 
         _ptsContext = new PtsContext(true, textFormattingMode);
         _textFormatterHost = new TextFormatterHost(_ptsContext.TextFormatter, textFormattingMode); 
         _section = new MS.Internal.PtsHost.Section(this); 
     }
 } 
예제 #7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="host">
 /// TextFormatter host
 /// </param>
 /// <param name="paraClient">
 /// Owner of the ListMarker
 /// </param>
 internal ListMarkerLine(TextFormatterHost host, ListParaClient paraClient) : base(paraClient)
 {
     _host = host;
 }
예제 #8
0
 /// <summary> 
 /// Constructor
 /// </summary> 
 /// <param name="host"> 
 /// TextFormatter host
 /// </param> 
 /// <param name="paraClient">
 /// Owner of the ListMarker
 /// </param>
 internal ListMarkerLine(TextFormatterHost host, ListParaClient paraClient) : base(paraClient) 
 {
     _host = host; 
 }