      *  styleSelector is not found in the style sheet.
      */
     private function addStyleAttributes(
-        attr:TextLayoutFormatValueHolder, 
-        styleSelector:String):TextLayoutFormatValueHolder
+        attr:TextLayoutFormat, 
+        styleSelector:String):TextLayoutFormat
     {
         var foundStyle:Object = _styleSheet.getStyle(styleSelector);
         if (foundStyle != null)

     */
    public function resolveFormat(elem:Object):ITextLayoutFormat
    {
        var attr:TextLayoutFormatValueHolder = null;
        
        // ContainerController will inherit via the container so it is not
        // handled here.  Map HTML <body> to TextFlow, HTML <p> to

 */
class FTETextFieldTextContainerManager extends TextContainerManager
{
    /**
     *  @private
     *  Create a single Configuration used by all Text instances.  
     *  It tells the TextContainerManager that we want TLF1.1 compatibility
     *  for the selection length.  Pre TLF2, the selection length 
     *  was textFlow.length-1 and did not include the final paragraph terminator.  
     *  For TLF2, the selection length is textFlow.length which includes
     *  the final paragraph terminator.
     */
    private static var staticConfiguration:Configuration;

    /**
     *  @private
     */
    public function FTETextFieldTextContainerManager(container:Sprite)
    {       
        // See comment on staticConfiguration variable.
        if (staticConfiguration == null)
        {
            staticConfiguration = 
               Configuration(TextContainerManager.defaultConfiguration).clone();
            staticConfiguration.compatibilityVersion = 1.1;
        }
    
        super(container, staticConfiguration);
    }
    
    /**
     *  @private
     */
    override public function drawBackgroundAndSetScrollRect(scrollX:Number, scrollY:Number):Boolean
    {
        return true;
    }
}


import flashx.textLayout.formats.TextLayoutFormat;

/**
 *  @private
 */
class FTETextFieldHostFormat extends TextLayoutFormat
{
    public function FTETextFieldHostFormat(textField:FTETextField)
    {
        super();
        
        this.textField = textField;
    }
    
    private var textField:FTETextField;
    
    public override function get color():*
    {
        return textField._defaultTextFormat.color;
    }
    
    public override function get direction():*
    {
        return textField.direction;
    }
    
    public override function get fontFamily():*
    {
        return textField._defaultTextFormat.font;
    }
    
    public override function get fontLookup():*
    {
        return textField.embedFonts ?
            FontLookup.EMBEDDED_CFF :
            FontLookup.DEVICE;
    }
    
    public override function get fontSize():*
    {
        return textField._defaultTextFormat.size;
    }
    
    public override function get fontStyle():*
    {
        return textField._defaultTextFormat.italic ?
            FontPosture.ITALIC :
            FontPosture.NORMAL;
    }
    
    public override function get fontWeight():*
    {
        return textField._defaultTextFormat.bold ?
            FontWeight.BOLD :
            FontWeight.NORMAL;
    }
    
    public override function get kerning():*
    {
        return textField._defaultTextFormat.kerning ?
            Kerning.AUTO :
            Kerning.OFF;
    }
    
    public override function get leadingModel():*
    {
        return LeadingModel.APPROXIMATE_TEXT_FIELD;
    }
    
    public override function get lineBreak():*
    {
        return textField.wordWrap ?
            LineBreak.TO_FIT :
            LineBreak.EXPLICIT;
    }
    
    public override function get lineHeight():*
    {
        return textField._defaultTextFormat.leading;
    }
    
    public override function get locale():*
    {
        return textField.locale;
    }
    
    public override function get paddingBottom():*
    {
        return FTETextField.PADDING_BOTTOM;
    }
    
    public override function get paddingLeft():*
    {
        return FTETextField.PADDING_LEFT;
    }
    
    public override function get paddingRight():*
    {
        return FTETextField.PADDING_RIGHT;
    }
    
    public override function get paddingTop():*
    {
        return FTETextField.PADDING_TOP;
    }
    
    public override function get paragraphEndIndent():*
    {
        return textField._defaultTextFormat.rightMargin;
    }
    
    public override function get paragraphStartIndent():*
    {
        return textField._defaultTextFormat.leftMargin;
    }
    
    public override function get textAlign():*
    {
        return textField._defaultTextFormat.align;
    }
    
    public override function get textAlignLast():*
    {
        return textField._defaultTextFormat.align;
    }
    
    public override function get textDecoration():*
    {
        return textField._defaultTextFormat.underline ?
            TextDecoration.UNDERLINE :
            TextDecoration.NONE;
    }
    
    public override function get textIndent():*
    {
        return textField._defaultTextFormat.indent;
    }
    
    public override function get trackingRight():*
    {
        return textField._defaultTextFormat.letterSpacing;
    }
}

/**
