Callback interface that provides methods for actually doing the work. Override the cases for the objects you wish to edit or are otherwise interested in. More...
#include <customtransform.h>
Public Member Functions | |
virtual void | transformAnnotation (IImplementation *genericImplementation, const IAnnotationPtr &annotation) |
Callback to process an annotation. | |
virtual IAnnotationAppearancePtr | transformAnnotationAppearance (IImplementation *genericImplementation, const IAnnotationAppearancePtr &appearance, const FRect &annotationRect) |
Callback to process an annotation appearance. | |
virtual IDOMColorPtr | transformColor (IImplementation *genericImplementation, const IDOMColorPtr &color, const CTransformState &state) |
Callback to process a color. This will be invoked for any color anywhere in the DOM, with the exception of IDOMShadingPatternBrushes which require special handling. | |
virtual IDOMColorSpacePtr | transformColorSpace (IImplementation *genericImplementation, const IDOMColorSpacePtr &colorSpace, const CTransformState &state) |
Callback to process a color space. This will be invoked for any color anywhere in the DOM, with the exception of IDOMShadingPatternBrushes which require special handling. | |
virtual IDOMImagePtr | transformImage (IImplementation *genericImplementation, const IDOMImagePtr &image, const CTransformState &state) |
Callback to process an image. | |
virtual IDOMNodePtr | transformNode (IImplementation *genericImplementation, const IDOMNodePtr &node, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMNode (of any type). | |
virtual IDOMNodePtr | transformFixedPage (IImplementation *genericImplementation, const IDOMFixedPagePtr &page, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMFixedPage. | |
virtual IDOMNodePtr | transformGroup (IImplementation *genericImplementation, const IDOMGroupPtr &group, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMGroup. | |
virtual IDOMNodePtr | transformCharPathGroup (IImplementation *genericImplementation, const IDOMCharPathGroupPtr &group, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMCharPathGroup. | |
virtual IDOMNodePtr | transformTransparencyGroup (IImplementation *genericImplementation, const IDOMTransparencyGroupPtr &group, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMTransparencyGroup. | |
virtual IDOMNodePtr | transformCanvas (IImplementation *genericImplementation, const IDOMCanvasPtr &canvas, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMCanvas. | |
virtual IDOMNodePtr | transformGlyphs (IImplementation *genericImplementation, const IDOMGlyphsPtr &glyphs, bool &changed, const CTransformState &state) |
Callback to process an IDOMGlyphs node. | |
virtual IDOMFontPtr | transformFont (IImplementation *genericImplementation, const IDOMFontPtr &font, uint32 &index, const CTransformState &state) |
Callback to process an IDOMFont. | |
virtual IDOMNodePtr | transformPath (IImplementation *genericImplementation, const IDOMPathNodePtr &path, bool &changed, const CTransformState &state) |
Callback to process an IDOMPathNode. | |
virtual IDOMNodePtr | transformVisualRoot (IImplementation *genericImplementation, const IDOMVisualRootPtr &root, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMVisualRoot node. | |
virtual IDOMNodePtr | transformForm (IImplementation *genericImplementation, const IDOMFormPtr &form, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMForm node. | |
virtual IDOMNodePtr | transformFormInstance (IImplementation *genericImplementation, const IDOMFormInstancePtr &instance, bool &changed, bool transformChildren, const CTransformState &state) |
Callback to process an IDOMFormInstance node. | |
virtual IDOMBrushPtr | transformBrush (IImplementation *genericImplementation, const IDOMBrushPtr &brush, eBrushUsage usage, const CTransformState &state) |
Callback to process any kind of brush. | |
virtual IDOMBrushPtr | transformSolidColorBrush (IImplementation *genericImplementation, const IDOMSolidColorBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMSolidColorBrush. | |
virtual IDOMBrushPtr | transformGradientBrush (IImplementation *genericImplementation, const IDOMGradientBrushPtr &gradient, const CTransformState &state) |
Callback to process an IDOMGradientBrush. | |
virtual IDOMBrushPtr | transformLinearGradientBrush (IImplementation *genericImplementation, const IDOMLinearGradientBrushPtr &gradient, const CTransformState &state) |
Callback to process an IDOMLinearGradientBrush. | |
virtual IDOMBrushPtr | transformRadialGradientBrush (IImplementation *genericImplementation, const IDOMRadialGradientBrushPtr &gradient, const CTransformState &state) |
Callback to process an IDOMRadialGradientBrush. | |
virtual IDOMBrushPtr | transformVisualBrush (IImplementation *genericImplementation, const IDOMVisualBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMVisualBrush. | |
virtual IDOMBrushPtr | transformImageBrush (IImplementation *genericImplementation, const IDOMImageBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMImageBrush. | |
virtual IDOMBrushPtr | transformTilingPatternBrush (IImplementation *genericImplementation, const IDOMTilingPatternBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMTilingPatternBrush. | |
virtual IDOMBrushPtr | transformShadingPatternBrush (IImplementation *genericImplementation, const IDOMShadingPatternBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMShadingPatternBrush. | |
virtual IDOMBrushPtr | transformSoftMaskBrush (IImplementation *genericImplementation, const IDOMSoftMaskBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMSoftMaskBrush. | |
virtual IDOMBrushPtr | transformMaskedBrush (IImplementation *genericImplementation, const IDOMMaskedBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMMaskedBrush. | |
virtual IDOMBrushPtr | transformNullBrush (IImplementation *genericImplementation, const IDOMNullBrushPtr &brush, const CTransformState &state) |
Callback to process an IDOMNullBrush. | |
Callback interface that provides methods for actually doing the work. Override the cases for the objects you wish to edit or are otherwise interested in.
Each method is passed in a generic implementation. Here the generic implementation continues the process of the transformation to the lower levels of the tree. For example, the default generic implementation of transformPath() proceeds to recurse, processing the brushes, etc. For these, you can choose to make changes before or after the generic implementation, or simply not use the generic implementation if there is no need to further recurse into the tree.
Implementing transformCharPathGroup() to deal with the IDOMPathNodes associated with IDOMCharPathGroup was required if implemented transformPath(). But it is not required anymore.
The CTransformState transformPriv is available for your use to store additional contextual information in an arbitrary fashion.
|
inlinevirtual |
Callback to process an annotation.
genericImplementation | The generic implementation that continues processing further down the tree. |
annotation | The annotation, which you may modify. |
|
inlinevirtual |
Callback to process an annotation appearance.
genericImplementation | The generic implementation that continues processing further down the tree. |
appearance | The annotation appearance. Do not modify this; instead, if you must modify it, return a cloned version containing your modifications. Do not return NULL. |
annotationRect | The owning annotation's rectangle. |
|
inlinevirtual |
Callback to process any kind of brush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state outside the brush. |
|
inlinevirtual |
Callback to process an IDOMCanvas.
genericImplementation | The generic implementation that continues processing further down the tree. |
canvas | The canvas. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. You may return NULL, or a node of a completely different type. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an IDOMCharPathGroup.
genericImplementation | The generic implementation that continues processing further down the tree. |
group | The group. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. You may return NULL, or a node of a completely different type. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process a color. This will be invoked for any color anywhere in the DOM, with the exception of IDOMShadingPatternBrushes which require special handling.
genericImplementation | The generic implementation that continues processing further down the tree. |
color | The color. Do not modify this color; instead create a clone and apply your modifications to that. |
state | The current state when the color was encountered. |
|
inlinevirtual |
Callback to process a color space. This will be invoked for any color anywhere in the DOM, with the exception of IDOMShadingPatternBrushes which require special handling.
genericImplementation | The generic implementation that continues processing further down the tree. |
colorSpace | The color space. Do not modify this color space; instead create a clone and apply your modifications to that. Any color space you return must have the same number of components as colorSpace |
state | The current state when the color space was encountered. |
|
inlinevirtual |
Callback to process an IDOMFixedPage.
genericImplementation | The generic implementation that continues processing further down the tree. |
page | The fixed page. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state when the node was encountered. |
|
inlinevirtual |
Callback to process an IDOMFont.
genericImplementation | The generic implementation that continues processing further down the tree. |
font | The font. You must not modify this font. Instead, create a new font or work on a clone. |
index | The font index of the font being edited. On return, this must be the index of the resulting font. |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an IDOMForm node.
genericImplementation | The generic implementation that continues processing further down the tree. |
form | The form. You must not edit this form directly. Instead, make a deep clone first. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an IDOMFormInstance node.
genericImplementation | The generic implementation that continues processing further down the tree. |
instance | The instance. You are free to modify this node in place, but do not modify the contents of the form unless you first create a deep clone of it. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an IDOMGlyphs node.
genericImplementation | The generic implementation that continues processing further down the tree. |
glyphs | The glyphs. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. You may return NULL, or a node of a completely different type. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an IDOMGradientBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
gradient | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMGroup.
genericImplementation | The generic implementation that continues processing further down the tree. |
group | The group. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. You may return NULL, or a node of a completely different type. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an image.
genericImplementation | The generic implementation that continues processing further down the tree. |
image | The image. Do not modify this image; instead create a clone and apply your modifications to that. You may return a NULL image if you wish to drop the image entirely |
state | The current state when the image was encountered. |
|
inlinevirtual |
Callback to process an IDOMImageBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMLinearGradientBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
gradient | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMMaskedBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state outside the brush. Note that this differs from other brush types. The reason for this is that the sub brush of an IDOMMaskedBrush is not affected by the renderTransform of the IDOMMaskedBrush itself. As such any render transforms must be handled by the implementation of this function. |
|
inlinevirtual |
Callback to process an IDOMNode (of any type).
genericImplementation | The generic implementation that continues processing further down the tree. |
node | The node. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state when the node was encountered. |
|
inlinevirtual |
Callback to process an IDOMNullBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMPathNode.
genericImplementation | The generic implementation that continues processing further down the tree. |
path | The path. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. You may return NULL, or a node of a completely different type. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an IDOMRadialGradientBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
gradient | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMShadingPatternBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMSoftMaskBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMSolidColorBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush. |
|
inlinevirtual |
Callback to process an IDOMTilingPatternBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMTransparencyGroup.
genericImplementation | The generic implementation that continues processing further down the tree. |
group | The group. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. You may return NULL, or a node of a completely different type. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |
|
inlinevirtual |
Callback to process an IDOMVisualBrush.
genericImplementation | The generic implementation that continues processing further down the tree. |
brush | The brush. Do not edit this brush in place, instead create a copy or a new brush instead. |
state | The current state inside the brush, including any renderTransform applied by the brush. |
|
inlinevirtual |
Callback to process an IDOMVisualRoot node.
genericImplementation | The generic implementation that continues processing further down the tree. |
root | The visual root. You are free to modify this node or its children in place, but do not modify any potentially shared objects, such as brushes. Instead, those objects should be cloned first. You may return NULL, or a node of a completely different type. |
changed | You must set this to true if any changes have been made to the node, and set it to false if you have not. |
transformChildren | True if the children of the node should also be transformed |
state | The current state inside the node, with the node's attributes taken into account (such as its renderTransform) |