- TW-193 Support listing breaks.
This commit is contained in:
Paul Beckingham 2014-07-10 22:48:17 -04:00
parent bd7e66a939
commit ab3935ac85
4 changed files with 24 additions and 0 deletions

View file

@ -132,6 +132,19 @@ int CmdCustom::execute (std::string& output)
view.colorOdd (alternate);
view.intraColorOdd (alternate);
// Add the break columns, if any.
std::vector <std::string>::iterator so;
for (so = sortOrder.begin (); so != sortOrder.end (); ++so)
{
std::string name;
bool ascending;
bool breakIndicator;
context.decomposeSortField (*so, name, ascending, breakIndicator);
if (breakIndicator)
view.addBreak (name);
}
// Add the columns and labels.
for (unsigned int i = 0; i < columns.size (); ++i)
{