diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index 524b64f4..a14fe980 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -607,6 +607,21 @@ namespace nana return *this; } + nana::string to_string(const export_options::columns_indexs& col_order) const + { + nana::string sep{STR(";")}, endl{STR("\n")}, item_str; + bool first{true}; + for( size_type idx{}; idxheader.all_headers(true); + bool first{true}; + for(auto & cat: cat_container()) + { + if(first) + first=false; + else + list_str += (cat.text + endl); + + bool first_item{true}; + for (auto i : cat.sorted) + { + auto& it= cat.items[i] ; + if(it.flags.selected) + list_str += (it.to_string(col_order) + endl); + } + } + return list_str ; + } class drawer_header_impl