mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
RichText/RichEdit: Header/Footer support
git-svn-id: svn://ultimatepp.org/upp/trunk@6476 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
09edff5e1c
commit
39d5b3f06d
20 changed files with 474 additions and 82 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue