blob: 61db6bd224a4bc1fceef1937ff779a624242c295 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "stdafx.h"
#include "column_group.h"
/*
* ColGroup
*/
void ColGroup::impl_outputRenderHeader(ext::ostream& tos, int row, int rowSpan) const
{
if (row == 1)
{
writeRowspanTD(tos, getCustomTitle(TranslateT("Group"), TranslateT("Group")), row, 1, rowSpan);
}
}
void ColGroup::impl_outputRenderRow(ext::ostream& tos, const Contact& contact, DisplayType display)
{
if (display == asContact)
{
ext::string groupName = contact.getGroup();
// replace subgroup separator with something better (really better?)
utils::replaceAllInPlace(groupName, _T("\\"), _T(" > "));
tos << _T("<td>") << utils::htmlEscape(groupName) << _T("</td>") << ext::endl;
}
else
{
tos << _T("<td> </td>");
}
}
|