![]() | InDesign SDK 20.5 |
#include <IDataTransform.h>

Public Types | |
| enum | { kDefaultIID = IID_IDATATRANSFORM } |
| enum | { kLowPriority = 0, kMediumPriority = 500, kHighPriority = 1000 } |
| typedef std::map< PMString, PMString > | Parameters |
Public Member Functions | |
| virtual int32 | GetPriority () const =0 |
| virtual Parameters | GetParameters (IDataServicesOptions *options, IPMStream *dataStream) const =0 |
| virtual IPMStream * | TransformStream (IDataServicesOptions *options, IPMStream *dataStream, IPMUnknown *transformData)=0 |
| virtual IPMStream * | TransformStream (IDataServicesOptions *options, IPMStream *dataStream, ISAXAttributes *attrs, const Parameters ¶ms)=0 |
| virtual IPMStream * | TransformStream (IDataServicesOptions *options, IPMStream *dataStream, const Parameters ¶ms)=0 |
| virtual IPMStream * | TransformStream (IPMStream *dataStream, IPMStream *xslStream)=0 |
| virtual bool16 | CanTransform (IDataServicesOptions *options, IPMStream *dataStream, IPMUnknown *transformData) const =0 |
| virtual bool16 | CanTransform (IDataServicesOptions *options, IPMStream *dataStream) const =0 |
| virtual bool16 | CanTransform (IDataServicesOptions *options, IPMStream *dataStream, ISAXAttributes *attrs) const =0 |
| virtual IPMStream * | GetSchema (IDataServicesOptions *options, IPMStream *dataStream, IPMUnknown *transformData)=0 |
| virtual IPMStream * | GetSchema (IDataServicesOptions *options, IPMStream *dataStream, const Parameters ¶ms)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Class responsible for data transformation.
| pure virtual |
Returns true if this transform can transform the data given the transformData.
| dataStream | specifies the stream containing the data to be transformed. |
| transformData | specified an interface that describes how the data should be transformed. The data usually contains a reference to a file that describes how to transform the data. |
| pure virtual |
Returns true if this transform can transform the data. The data either has the transform instructions embedded in the data or a reference to the transform instructions embedded in the data.
| dataStream | specifies the stream containing the data to be transformed. |
| pure virtual |
Returns true if this transform can transform the data using a transform language of type "type".
| attrs | specifies attributes that specify how to transform the stream. |
| pure virtual |
GetPriority returns the priority of the transform. The priority determines what order the transform get a chance at transforming the data.
| pure virtual |
Get the schema of the data source. The schema describes the data fields and may contain additional information about the ui names of the data fields and the primary key. Here is an example:
<key type="text" uiname="Key"> <image type="image" uiname="Image"> <date type="text" uiname="Date"> <filename type="text" uiname="File Name"> </schema>
| dataStream | specifies the stream containing the data. |
| transformData | specifies data that describes how the transformation. |
| pure virtual |
Get the schema of the data source. The schema describes the data fields and may contain
additional information about the ui names of the data fields and the primary key.
| options | ?? |
| dataStream | specifies the stream containing the data. |
| params | specifies the parameters required by the transformer to transform the data |
| pure virtual |
Transform a stream, typically XML from one format to another. Everything is stream based. Returns a new stream, which has been transformed. Caller is responsible for releasing the new stream.
| dataStream | specifies the stream containing the data. |
| transformData | specifies data that describes how the transformation. |
| pure virtual |
Transform a stream, typically XML from one format to another. Everything is stream based. Returns a new stream, which has been transformed. Caller is responsible for releasing the new stream.
| dataStream | specifies the stream containing the data. |
| attrs | specifies attributes that specify how to transform the stream. |
| pure virtual |
Transform a stream, typically XML from one format to another. Everything is stream based. Returns a new stream, which has been transformed. Caller is responsible for releasing the new stream. This method assumes that the dataStream has information describing what transformation should be applied to the stream. For XML data this will typically be done with an xml-stylesheet processing instruction.
| dataStream | specifies the stream containing the data. |
| pure virtual |
Transform a stream, typically XML from one format to another. Everything is stream based. Returns a new stream, which has been transformed. Caller is responsible for releasing the new stream. this method requires that the client pass in both the stream to be transformed and the stream to use for the transform.
| dataStream | specifies the stream containing the data. |
| xslStream | specifies the stream containing the transform. |