listbox: introducing struct export options

This commit is contained in:
qPCR4vir 2015-04-25 17:29:32 +02:00
parent 1fb363fb72
commit 26bca2cc08

View File

@ -429,6 +429,18 @@ namespace nana
category_t* cat_{nullptr};
size_type pos_{0}; ///< Absolute position, not relative to display, and dont change during sort()
};
struct export_options
{
nana::string sep = nana::string {STR(";" )},
endl= nana::string {STR("\n")} ;
bool only_selected_items{true},
only_checked_items {false},
only_visible_columns{true};
using columns_indexs = std::vector<size_type>;
columns_indexs columns_order;
};
}
}//end namespace drawerbase
@ -483,6 +495,8 @@ By \a clicking on a header the list get \a reordered, first up, and then down al
using iresolver = drawerbase::listbox::iresolver;
using oresolver = drawerbase::listbox::oresolver;
using cell = drawerbase::listbox::cell;
using export_options= drawerbase::listbox::export_options;
using columns_indexs= drawerbase::listbox::size_type;
public:
listbox() = default;
listbox(window, bool visible);