MCOHTMLRendererDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | MCOHTMLRendererDelegate.h |
Overview
This delegate protocol is used to help rendering of the message.
It will be used for the following methods.
[MCOMessageParser htmlRenderingWithDelegate:],
Tasks
Other Methods
-
– MCOAbstractMessage:canPreviewPart: -
– MCOAbstractMessage:shouldShowPart: -
– MCOAbstractMessage:templateValuesForHeader: -
– MCOAbstractMessage:templateValuesForPart:
Template Methods
-
– MCOAbstractMessage:templateForMainHeader: -
– MCOAbstractMessage:templateForImage: -
– MCOAbstractMessage:templateForAttachment: -
– MCOAbstractMessage_templateForMessage: -
– MCOAbstractMessage:templateForEmbeddedMessage: -
– MCOAbstractMessage:templateForEmbeddedMessageHeader: -
– MCOAbstractMessage_templateForAttachmentSeparator: -
– MCOAbstractMessage:cleanHTMLForPart:
Filters
Instance Methods
MCOAbstractMessage:canPreviewPart:
This delegate method should return YES if it can render a preview of the attachment as an image. part is always a single part.
- (BOOL)MCOAbstractMessage:(MCOAbstractMessage *)msg canPreviewPart:(MCOAbstractPart *)partDiscussion
If the attachment can be previewed, it will be rendered using the image template. If not, the attachment template will be used.
Declared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:cleanHTMLForPart:
This delegate method cleans HTML content. For example, it could fix broken tags, add missing ,
tags. Default implementation uses HTMLCleaner::cleanHTML to clean HTML content.- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg cleanHTMLForPart:(NSString *)htmlDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:filterHTMLForMessage:
This delegate method will apply a filter to the whole HTML content. For example, it could collapse the quoted messages.
- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg filterHTMLForMessage:(NSString *)htmlDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:filterHTMLForPart:
This delegate method will apply the filter to HTML rendered content of a given text part. For example, it could filter the CSS content.
- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg filterHTMLForPart:(NSString *)htmlDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:shouldShowPart:
This delegate method should return YES if the part should be rendered.
- (BOOL)MCOAbstractMessage:(MCOAbstractMessage *)msg shouldShowPart:(MCOAbstractPart *)partDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:templateForAttachment:
This delegate method returns the template attachment other than images. See the content of MCHTMLRendererCallback.cpp for the default values of the template.
- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg templateForAttachment:(MCOAbstractPart *)partDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:templateForEmbeddedMessage:
This delegate method returns the template of an embedded message (included as attachment). It should include HEADER and a BODY values. See the content of MCHTMLRendererCallback.cpp for the default values of the template.
- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg templateForEmbeddedMessage:(MCOAbstractMessagePart *)partDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:templateForEmbeddedMessageHeader:
This delegate method returns the template for the header of an embedded message. See the content of MCHTMLRendererCallback.cpp for the default values of the template.
- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg templateForEmbeddedMessageHeader:(MCOMessageHeader *)headerDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:templateForImage:
This delegate method returns the template an image attachment.
- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg templateForImage:(MCOAbstractPart *)headerDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:templateForMainHeader:
This delegate method returns the template for the main header of the message. See the content of MCHTMLRendererCallback.cpp for the default values of the template.
- (NSString *)MCOAbstractMessage:(MCOAbstractMessage *)msg templateForMainHeader:(MCOMessageHeader *)headerDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:templateValuesForHeader:
This delegate method returns the values to be applied to the template for the given header. See the content of MCHTMLRendererCallback.cpp for the default values of the header.
- (NSDictionary *)MCOAbstractMessage:(MCOAbstractMessage *)msg templateValuesForHeader:(MCOMessageHeader *)headerDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage:templateValuesForPart:
This delegate method returns the values to be applied to the template for the given attachment. See the content of MCHTMLRendererCallback.cpp for the default values of the attachment.
- (NSDictionary *)MCOAbstractMessage:(MCOAbstractMessage *)msg templateValuesForPart:(MCOAbstractPart *)partDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage_templateForAttachmentSeparator:
This delegate method returns the separator between the text of the message and the attachments.
- (NSString *)MCOAbstractMessage_templateForAttachmentSeparator:(MCOAbstractMessage *)msgDeclared In
MCOHTMLRendererDelegate.hMCOAbstractMessage_templateForMessage:
This delegate method returns the template of the main message. It should include HEADER and a BODY values. See the content of MCHTMLRendererCallback.cpp for the default values of the template.
- (NSString *)MCOAbstractMessage_templateForMessage:(MCOAbstractMessage *)msgDeclared In
MCOHTMLRendererDelegate.h