added: item content type: raw
git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@549 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
16
core/item.h
16
core/item.h
@@ -34,12 +34,16 @@ std::string subject;
|
||||
std::string content;
|
||||
std::string url;
|
||||
|
||||
enum ContentType
|
||||
{
|
||||
ct_text = 0,
|
||||
ct_formatted_text,
|
||||
ct_html,
|
||||
ct_bbcode,
|
||||
ct_raw
|
||||
};
|
||||
|
||||
// 0 - text: simple
|
||||
// 1 - text: formatted
|
||||
// 2 - text: html
|
||||
// 3 - text: bbcode
|
||||
int content_type;
|
||||
ContentType content_type;
|
||||
|
||||
|
||||
|
||||
@@ -99,7 +103,7 @@ void Clear()
|
||||
content.clear();
|
||||
url.clear();
|
||||
|
||||
content_type = 0;
|
||||
content_type = ct_formatted_text;
|
||||
|
||||
type = none;
|
||||
parent_id = -1;
|
||||
|
||||
Reference in New Issue
Block a user