summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/templates.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src/templates.h')
-rw-r--r--plugins/NewStory/src/templates.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/NewStory/src/templates.h b/plugins/NewStory/src/templates.h
index 932f9dc437..1ad2deed48 100644
--- a/plugins/NewStory/src/templates.h
+++ b/plugins/NewStory/src/templates.h
@@ -71,9 +71,21 @@ extern TemplateInfo templates[TPL_COUNT];
void LoadTemplates();
void SaveTemplates();
-CMStringA TplFormatRtf(int tpl, MCONTACT hContact, ItemData *args);
CMStringW TplFormatString(int tpl, MCONTACT hContact, ItemData *item);
CMStringW TplFormatStringEx(int tpl, wchar_t *sztpl, ItemData *args);
+class NSRtfProvider : public MRtfProvider
+{
+ ItemData *m_pItem;
+
+public:
+ NSRtfProvider(ItemData *pItem) :
+ m_pItem(pItem)
+ {}
+
+ CMStringA CreateRtfHeader() override;
+ CMStringA CreateRtfBody() override;
+ CMStringA CreateRtfFooter() override;
+};
#endif // __templates_h__ \ No newline at end of file