void test_write_hidden_worksheet() { auto ws = wb_.create_sheet(); ws.get_page_setup().set_sheet_state(xlnt::page_setup::sheet_state::hidden); ws.get_cell("F42").set_value("hello"); auto content = xlnt::writer::write_worksheet(ws, {"hello"}, {}); TS_ASSERT(Helper::EqualsFileContent(PathHelper::GetDataDirectory() + "/writer/expected/sheet1.xml", content)); }
void worksheet::set_sheet_state(sheet_state state) { get_page_setup().set_sheet_state(state); }