blob: 8524c7698c739b65730214ce16e64febebe3cc8e [file] [log] [blame]
////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
package flashx.textLayout.conversion
{
/** This interface should be implemented by converters that import TextLayout structured data. Clients that have explicitly
* created an importer using TextConverter.getImporter may control the import process by calling into these methods on the
* importer.
*
* @playerversion Flash 10.0
* @playerversion AIR 2.0
* @langversion 3.0
*/
public interface ITextLayoutImporter extends ITextImporter
{
/** This property allows specification of a function to modify the source property supplied to an <code>&lt;img&gt;</code> element.
* Sample use would be to modify relative paths to some caller specified root path. The function takes the string set in the markup and returns the actual string
* to be used.
*
* <p>Note that by default relative paths are relative to the loaded SWF. One use of this function is to make relative paths relative to some other location.</p>
*
* <p>The resolver function should look like this:</p>
* <code>function resolver(src:String):String</code>
* <p>It takes as an input parameter the value of src on the incoming img element, and returns the adjusted value.</p>
*
* @playerversion Flash 10.0
* @playerversion AIR 2.0
* @langversion 3.0
*/
function get imageSourceResolveFunction():Function;
function set imageSourceResolveFunction(resolver:Function):void;
}
}