 import flashx.textLayout.operations.SplitParagraphOperation;
 
 import mx.core.IViewport;
+import mx.core.ScrollUnit;
+import mx.core.UIComponent;
 import mx.core.mx_internal;
-import mx.core.UIComponent;
-import mx.core.ScrollUnit;
 import mx.events.FlexEvent;
 import mx.events.TextOperationEvent;
 import mx.utils.StringUtil;

            return 0;
            
        var maxDelta:Number = contentHeight - scrollR.height - scrollR.y;
        var minDelta:Number = -scrollR.y; 
            
        switch (unit)
        {
            case ScrollUnit.UP:
                return (scrollR.y <= 0) ? 0 : -1;
                
            case ScrollUnit.DOWN:
                return (scrollR.y >= maxDelta) ? 0 : 1;
                
            case ScrollUnit.PAGE_UP:
                return Math.max(minDelta, -scrollR.height);
                
            case ScrollUnit.PAGE_DOWN:
                return Math.min(maxDelta, scrollR.height);
                
            case ScrollUnit.HOME: 
                return minDelta;
                
            case ScrollUnit.END: 
                return maxDelta;
                
            default:
                return 0;
        }       
    }
    

import flash.text.engine.TextBlock;
import flash.text.engine.TextElement;
import flash.text.engine.TextLine;

import flashx.textLayout.compose.IFlowComposer;
import flashx.textLayout.compose.StandardFlowComposer;
import flashx.textLayout.container.DisplayObjectContainerController;
import flashx.textLayout.container.IContainerController;
import flashx.textLayout.conversion.ConversionType;
import flashx.textLayout.conversion.TextFilter;
import flashx.textLayout.edit.EditManager;
import flashx.textLayout.edit.EditingMode;
import flashx.textLayout.edit.ISelectionManager;
import flashx.textLayout.edit.IUndoManager;
import flashx.textLayout.edit.SelectionFormat;
