ITransformChain represents a change of ITransforms, and provides a method of applying a range of transforms to an entire DOM tree. Instances of this type attempt to ensure that shared resources are modified once only.
More...
#include <transforms.h>
|
virtual void | removeTransform (uint32 index)=0 |
| Remove the ITransform at the specified index from the ITransformChain.
|
|
virtual void | pushTransform (const ITransformPtr &transform)=0 |
| Push an ITransform onto the end of the ITransformChain. Should not be called if another thread is currently using the transform.
|
|
virtual void | pushTransformFront (const ITransformPtr &transform)=0 |
| Push an ITransform onto the front of the ITransformChain. Should not be called if another thread is currently using the transform.
|
|
virtual CTransformVect | getTransforms () const =0 |
| Get the transforms in a vector.
|
|
virtual IDOMNodePtr | transform (const IDOMNodePtr &node)=0 |
| Apply the transform chain to the given node and its children, returning the resulting node. This is thread safe.
|
|
virtual IDOMNodePtr | transform (const IDOMNodePtr &node, bool &changed)=0 |
| Apply the transform chain to the given node and its children, returning the resulting node, and providing an indication if any changes were actually made.
|
|
virtual void | transformPage (const IPagePtr &page, bool transformContent=true, bool transformAnnotations=true)=0 |
| Apply the transform chain to the given page, if applicable. The transform will also apply to the annotations appearances.
|
|
virtual void | flushCaches ()=0 |
| Flush the caches used by the transforms in the chain. Most transforms cache recently transformed results to improve the performance of repeated transformations of equivalent results. However, it is possible that some cached results may point to entities that no longer exist, such as content inside an XPS file that no longer exists. If you are deleting or replacing files where transforms have been used, it is advisable to invoke this routine to clear the caches.
|
|
virtual ITransformChainPtr | clone ()=0 |
| Clones this ITransformChain into a new object that can be manipulated independently of the original.
|
|
virtual void | addRef () const =0 |
| Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
|
|
virtual bool | decRef () const =0 |
| Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
|
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to.
|
|
|
static JAWSMAKO_API ITransformChainPtr | create (const IJawsMakoPtr &jawsMako, const IProgressMonitorPtr &progressMonitor=IProgressMonitorPtr(), const CTransformVect &transforms=CTransformVect()) |
| Create a new transform chain.
|
|
|
virtual | ~IRCObject () |
| Virtual destructor.
|
|
ITransformChain represents a change of ITransforms, and provides a method of applying a range of transforms to an entire DOM tree. Instances of this type attempt to ensure that shared resources are modified once only.
◆ create()
static JAWSMAKO_API ITransformChainPtr JawsMako::ITransformChain::create |
( |
const IJawsMakoPtr & | jawsMako, |
|
|
const IProgressMonitorPtr & | progressMonitor = IProgressMonitorPtr(), |
|
|
const CTransformVect & | transforms = CTransformVect() ) |
|
static |
Create a new transform chain.
- Parameters
-
jawsMako | The JawsMako instance. |
progressMonitor | The progress monitor which allows aborting an operation or registering a progress callback. |
transforms | The initial vector of ITransforms for the chain. |
- Returns
- ITransformChainPtr The new instance.
◆ getTransforms()
virtual CTransformVect JawsMako::ITransformChain::getTransforms |
( |
| ) |
const |
|
pure virtual |
Get the transforms in a vector.
- Returns
- CTransformVect The transforms.
◆ pushTransform()
virtual void JawsMako::ITransformChain::pushTransform |
( |
const ITransformPtr & | transform | ) |
|
|
pure virtual |
Push an ITransform onto the end of the ITransformChain. Should not be called if another thread is currently using the transform.
- Parameters
-
transform | The transform to push. |
◆ pushTransformFront()
virtual void JawsMako::ITransformChain::pushTransformFront |
( |
const ITransformPtr & | transform | ) |
|
|
pure virtual |
Push an ITransform onto the front of the ITransformChain. Should not be called if another thread is currently using the transform.
- Parameters
-
transform | The transform to push. |
◆ removeTransform()
virtual void JawsMako::ITransformChain::removeTransform |
( |
uint32 | index | ) |
|
|
pure virtual |
◆ transform() [1/2]
virtual IDOMNodePtr JawsMako::ITransformChain::transform |
( |
const IDOMNodePtr & | node | ) |
|
|
pure virtual |
Apply the transform chain to the given node and its children, returning the resulting node. This is thread safe.
- Parameters
-
node | The node to transform. |
- Returns
- IDOMNodePtr the modified node.
◆ transform() [2/2]
virtual IDOMNodePtr JawsMako::ITransformChain::transform |
( |
const IDOMNodePtr & | node, |
|
|
bool & | changed ) |
|
pure virtual |
Apply the transform chain to the given node and its children, returning the resulting node, and providing an indication if any changes were actually made.
- Parameters
-
node | The node to transform. |
changed | On exit changes will be set to true if any modifications were made, false otherwise. |
- Returns
- IDOMNodePtr the modified node.
◆ transformPage()
virtual void JawsMako::ITransformChain::transformPage |
( |
const IPagePtr & | page, |
|
|
bool | transformContent = true, |
|
|
bool | transformAnnotations = true ) |
|
pure virtual |
Apply the transform chain to the given page, if applicable. The transform will also apply to the annotations appearances.
- Parameters
-
page | The page to be processed. |
transformContent | If true, apply the transform to the page content |
transformAnnotations | If true, apply the transform to the annotations |
The documentation for this class was generated from the following file: