RichText/RichEdit: Header/Footer support

git-svn-id: svn://ultimatepp.org/upp/trunk@6476 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-10-23 13:44:42 +00:00
parent 09edff5e1c
commit 39d5b3f06d
20 changed files with 474 additions and 82 deletions

View file

@ -475,6 +475,14 @@ String AsQTF(const RichText& text, byte charset, dword options)
// for(i = 0; i < text.GetPartCount(); i++)
// sm.FindAdd(text.GetParaStyle(i));
String hdr = text.GetHeaderQtf(charset, options);
if(hdr.GetCount())
qtf << "^H" << hdr << "^^\r\n";
String ftr = text.GetFooterQtf(charset, options);
if(hdr.GetCount())
qtf << "^F" << ftr << "^^\r\n";
if(!(options & QTF_NOSTYLES))
for(i = 0; i < sm.GetCount(); i++) {
Uuid id = sm[i];