aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract/MCOHTMLRendererDelegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/objc/abstract/MCOHTMLRendererDelegate.h')
-rw-r--r--src/objc/abstract/MCOHTMLRendererDelegate.h53
1 files changed, 36 insertions, 17 deletions
diff --git a/src/objc/abstract/MCOHTMLRendererDelegate.h b/src/objc/abstract/MCOHTMLRendererDelegate.h
index eb62cb75..007aaf06 100644
--- a/src/objc/abstract/MCOHTMLRendererDelegate.h
+++ b/src/objc/abstract/MCOHTMLRendererDelegate.h
@@ -33,23 +33,26 @@
/** All methods are optional.*/
@optional
-/** This delegate method should return YES if it can render a preview of the attachment as an image.
- part is always a single part.
-If the attachment can be previewed, it will be rendered using the image template.
-If not, the attachment template will be used.*/
-- (BOOL) MCOAbstractMessage:(MCOAbstractMessage *)msg canPreviewPart:(MCOAbstractPart *)part;
+
+
+
+
+
+
+
+- (BOOL) abstractMessage:(MCOAbstractMessage *)msg canPreviewPart:(MCOAbstractPart *)part;
/** This delegate method should return YES if the part should be rendered.*/
-- (BOOL) MCOAbstractMessage:(MCOAbstractMessage *)msg shouldShowPart:(MCOAbstractPart *)part;
+- (BOOL) abstractMessage:(MCOAbstractMessage *)msg shouldShowPart:(MCOAbstractPart *)part;
/** 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 *)header;
+- (NSDictionary *) abstractMessage:(MCOAbstractMessage *)msg templateValuesForHeader:(MCOMessageHeader *)header;
/** 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 *)part;
+- (NSDictionary *) abstractMessage:(MCOAbstractMessage *)msg templateValuesForPart:(MCOAbstractPart *)part;
/** @name Template Methods
The following methods returns templates. They will match the syntax of ctemplate.
@@ -57,36 +60,36 @@ If not, the attachment template will be used.*/
/** 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 *)header;
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg templateForMainHeader:(MCOMessageHeader *)header;
/** This delegate method returns the template an image attachment.*/
-- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateForImage:(MCOAbstractPart *)header;
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg templateForImage:(MCOAbstractPart *)header;
/** 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 *)part;
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg templateForAttachment:(MCOAbstractPart *)part;
/** 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 *)msg;
+- (NSString *) abstractMessage_templateForMessage:(MCOAbstractMessage *)msg;
/** 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 *)part;
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg templateForEmbeddedMessage:(MCOAbstractMessagePart *)part;
/** 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 *)header;
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg templateForEmbeddedMessageHeader:(MCOMessageHeader *)header;
/** This delegate method returns the separator between the text of the message and the attachments.*/
-- (NSString *) MCOAbstractMessage_templateForAttachmentSeparator:(MCOAbstractMessage *)msg;
+- (NSString *) abstractMessage_templateForAttachmentSeparator:(MCOAbstractMessage *)msg;
/** This delegate method cleans HTML content.
For example, it could fix broken tags, add missing <html>, <body> tags.
Default implementation uses HTMLCleaner::cleanHTML to clean HTML content. */
-- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg cleanHTMLForPart:(NSString *)html;
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg cleanHTMLForPart:(NSString *)html;
/** @name Filters
@@ -95,10 +98,26 @@ If not, the attachment template will be used.*/
/** 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 *)html;
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg filterHTMLForPart:(NSString *)html;
/** This delegate method will apply a filter to the whole HTML content.
For example, it could collapse the quoted messages.*/
+- (NSString *) abstractMessage:(MCOAbstractMessage *)msg filterHTMLForMessage:(NSString *)html;
+
+// deprecated versions of the delegate methods.
+- (BOOL) MCOAbstractMessage:(MCOAbstractMessage *)msg canPreviewPart:(MCOAbstractPart *)part;
+- (BOOL) MCOAbstractMessage:(MCOAbstractMessage *)msg shouldShowPart:(MCOAbstractPart *)part;
+- (NSDictionary *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateValuesForHeader:(MCOMessageHeader *)header;
+- (NSDictionary *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateValuesForPart:(MCOAbstractPart *)part;
+- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateForMainHeader:(MCOMessageHeader *)header;
+- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateForImage:(MCOAbstractPart *)header;
+- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateForAttachment:(MCOAbstractPart *)part;
+- (NSString *) MCOAbstractMessage_templateForMessage:(MCOAbstractMessage *)msg;
+- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateForEmbeddedMessage:(MCOAbstractMessagePart *)part;
+- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg templateForEmbeddedMessageHeader:(MCOMessageHeader *)header;
+- (NSString *) MCOAbstractMessage_templateForAttachmentSeparator:(MCOAbstractMessage *)msg;
+- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg cleanHTMLForPart:(NSString *)html;
+- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg filterHTMLForPart:(NSString *)html;
- (NSString *) MCOAbstractMessage:(MCOAbstractMessage *)msg filterHTMLForMessage:(NSString *)html;
@end