      *  <code>setAttributes({ fontSize: 12, color: 0xFF0000 })</code>
      *  will set the fontSize and color of the selection.
      *  The supported attributes are those in the
-     *  ICharacterAttributes and IParagraphAttributes interfaces.
+     *  ICharacterFormat and IParagraphFormat interfaces.
      */
     public function setAttributes(attributes:Object):void
     {
-        var containerAttributes:ContainerAttributes;
-        var paragraphAttributes:ParagraphAttributes;
-        var characterAttributes:CharacterAttributes;
+        var containerFormat:ContainerFormat;
+        var paragraphFormat:ParagraphFormat;
+        var characterFormat:CharacterFormat;
         
         for (var p:String in attributes)
         {
-            var kind:String = TextUtil.ATTRIBUTE_MAP[p];
+            var kind:String = TextUtil.FORMAT_MAP[p];
             
             if (kind == TextUtil.CONTAINER)
             {
-                if (!containerAttributes)
-                   containerAttributes =  new ContainerAttributes();
-                containerAttributes[p] = attributes[p];
+                if (!containerFormat)
+                   containerFormat =  new ContainerFormat();
+                containerFormat[p] = attributes[p];
             }
             else if (kind == TextUtil.PARAGRAPH)
             {
-                if (!paragraphAttributes)
-                   paragraphAttributes =  new ParagraphAttributes();
-                paragraphAttributes[p] = attributes[p];
+                if (!paragraphFormat)
+                   paragraphFormat =  new ParagraphFormat();
+                paragraphFormat[p] = attributes[p];
             }
             else if (kind == TextUtil.CHARACTER)
             {
-                if (!characterAttributes)
-                   characterAttributes =  new CharacterAttributes();
-                characterAttributes[p] = attributes[p];
+                if (!characterFormat)
+                   characterFormat =  new CharacterFormat();
+                characterFormat[p] = attributes[p];
             }
         }
         
         var editManager:TextViewEditManager =
             TextViewEditManager(textFlow.selectionManager);
         
-        if (containerAttributes)
+        if (containerFormat)
         {
             editManager.execute(new ContainerStyleChangeOperation(
-                editManager, containerAttributes));
+                editManager, containerFormat));
         }
 
-        if (paragraphAttributes)
+        if (paragraphFormat)
         {
             editManager.execute(new ParagraphStyleChangeOperation(
-                editManager, paragraphAttributes));
+                editManager, paragraphFormat));
         }
 
-        if (characterAttributes)
+        if (characterFormat)
         {
             editManager.execute(new StyleChangeOperation(
-                editManager, characterAttributes));
+                editManager, characterFormat));
         }
     }
 


    //--------------------------------------------------------------------------
    //
    //  Properties: Text Attributes
    //
    //--------------------------------------------------------------------------
    

        var p:String;
        var kind:String;
        
        var needContainerFormat:Boolean = false;
        var needParagraphFormat:Boolean = false;
        var needCharacterFormat:Boolean = false;

        if (!names)
        {
            names = TextUtil.ALL_FORMAT_NAMES;
            
            needContainerFormat = true;
            needParagraphFormat = true;
            needCharacterFormat = true;
        }
        else
        {
            for each (p in names)
            {
                kind = TextUtil.FORMAT_MAP[p];

                if (kind == TextUtil.CONTAINER)
                    needContainerFormat = true;
                else if (kind == TextUtil.PARAGRAPH)
                    needParagraphFormat = true;
                else if (kind == TextUtil.CHARACTER)
                    needCharacterFormat = true;
            }
        }
        
        var containerFormat:IContainerFormat;
        var paragraphFormat:IParagraphFormat;
        var characterFormat:ICharacterFormat;
        
        if (needContainerFormat)
        {
            containerFormat =
                selectionManager.getCommonContainerFormat();
        }
        
        if (needParagraphFormat)
        {
            paragraphFormat =
                selectionManager.getCommonParagraphFormat();
        }

        if (needCharacterFormat)
        {
            characterFormat =
                selectionManager.getCommonCharacterFormat();
        }

        var format:Object = {};
        
        for each (p in names)
        {
            kind = TextUtil.FORMAT_MAP[p];
            
            if (kind == TextUtil.CONTAINER)
                format[p] = containerFormat[p];
            else if (kind == TextUtil.PARAGRAPH)
                format[p] = paragraphFormat[p];
            else if (kind == TextUtil.CHARACTER)
                format[p] = characterFormat[p];
        }
        
        return format;
    }

    /**
