Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1:/tmp/cvs-serv21457/include
Modified Files:
MessageEditor.h
Log Message:
allow to specify different encodings for each text msg part
Index: MessageEditor.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageEditor.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -b -u -2 -r1.17 -r1.18
--- MessageEditor.h 11 Oct 2003 23:13:45 -0000 1.17
+++ MessageEditor.h 12 Oct 2003 11:30:12 -0000 1.18
@@ -232,5 +232,7 @@
/// ctor for text contents
- EditorContentPart(const String& text) { Init(); SetText(text); }
+ EditorContentPart(const String& text,
+ wxFontEncoding encoding = wxFONTENCODING_SYSTEM)
+ { Init(); SetText(text); m_encoding = encoding; }
//@}
@@ -304,4 +306,12 @@
}
+ /// get the encoding (ISO8859-1, KOI8-R, UTF-8, ...) of the text part
+ wxFontEncoding GetEncoding() const
+ {
+ ASSERT_MSG( m_Type == Type_Text, _T("this attachment doesn't have any text") );
+
+ return m_encoding;
+ }
+
/// get the pointer to attachment data, only valid for data attachments
const void *GetData() const
@@ -339,4 +349,5 @@
MimeType m_MimeType;
+ wxFontEncoding m_encoding;
MOBJECT_DEBUG(EditorContentPart)
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates