gradient_fill_type from_string(const std::string &string) { if (string == "linear") return gradient_fill_type::linear; else if (string == "path") return gradient_fill_type::path; default_case(gradient_fill_type::linear); }
target_mode from_string(const std::string &string) { if (string == "Internal") return target_mode::internal; else if (string == "External") return target_mode::external; default_case(target_mode::internal); }
extended_property from_string(const std::string &string) { if (string == "Application") return extended_property::application; else if (string == "AppVersion") return extended_property::app_version; else if (string == "Characters") return extended_property::characters; else if (string == "CharactersWithSpaces") return extended_property::characters_with_spaces; else if (string == "Company") return extended_property::company; else if (string == "DigSig") return extended_property::dig_sig; else if (string == "DocSecurity") return extended_property::doc_security; else if (string == "HeadingPairs") return extended_property::heading_pairs; else if (string == "HiddenSlides") return extended_property::hidden_slides; else if (string == "HyperlinksChanged") return extended_property::hyperlinks_changed; else if (string == "HyperlinkBase") return extended_property::hyperlink_base; else if (string == "HLinks") return extended_property::h_links; else if (string == "Lines") return extended_property::lines; else if (string == "LinksUpToDate") return extended_property::links_up_to_date; else if (string == "Manager") return extended_property::manager; else if (string == "MMClips") return extended_property::m_m_clips; else if (string == "Notes") return extended_property::notes; else if (string == "Pages") return extended_property::pages; else if (string == "Paragraphs") return extended_property::paragraphs; else if (string == "PresentationFormat") return extended_property::presentation_format; else if (string == "ScaleCrop") return extended_property::scale_crop; else if (string == "SharedDoc") return extended_property::shared_doc; else if (string == "Slides") return extended_property::slides; else if (string == "Template") return extended_property::template_; else if (string == "TitlesOfParts") return extended_property::titles_of_parts; else if (string == "TotalTime") return extended_property::total_time; else if (string == "Words") return extended_property::words; default_case(extended_property::application); }
int main(){ default_case(); std_case(); vec_case(); return 0; }
xlnt::pane_state from_string(const std::string &string) { if (string == "frozen") return xlnt::pane_state::frozen; else if (string == "frozenSplit") return xlnt::pane_state::frozen_split; else if (string == "split") return xlnt::pane_state::split; default_case(xlnt::pane_state::frozen); }
pane_corner from_string(const std::string &string) { if (string == "bottomLeft") return pane_corner::bottom_left; else if (string == "bottomRight") return pane_corner::bottom_right; else if (string == "topLeft") return pane_corner::top_left; else if (string == "topRight") return pane_corner::top_right; default_case(pane_corner::bottom_left); }
font::underline_style from_string(const std::string &string) { if (string == "double") return font::underline_style::double_; if (string == "doubleAccounting") return font::underline_style::double_accounting; if (string == "single") return font::underline_style::single; if (string == "singleAccounting") return font::underline_style::single_accounting; if (string == "none") return font::underline_style::none; default_case(font::underline_style::none); }
vertical_alignment from_string(const std::string &string) { if (string == "bottom") return vertical_alignment::bottom; else if (string == "center") return vertical_alignment::center; else if (string == "distributed") return vertical_alignment::distributed; else if (string == "justify") return vertical_alignment::justify; else if (string == "top") return vertical_alignment::top; default_case(vertical_alignment::top); }
border_side from_string(const std::string &string) { if (string == "bottom") return border_side::bottom; else if (string == "diagonal") return border_side::diagonal; else if (string == "right") return border_side::end; else if (string == "horizontal") return border_side::horizontal; else if (string == "left") return border_side::start; else if (string == "top") return border_side::top; else if (string == "vertical") return border_side::vertical; default_case(border_side::bottom); }
horizontal_alignment from_string(const std::string &string) { if (string == "center") return horizontal_alignment::center; else if (string == "centerContinuous") return horizontal_alignment::center_continuous; else if (string == "distributed") return horizontal_alignment::distributed; else if (string == "fill") return horizontal_alignment::fill; else if (string == "general") return horizontal_alignment::general; else if (string == "justify") return horizontal_alignment::justify; else if (string == "left") return horizontal_alignment::left; else if (string == "right") return horizontal_alignment::right; default_case(horizontal_alignment::general); }
extern void default_all(settings *s) { default_truncate(s); s->infer = 0; default_case(s); default_style(s); default_prefix(s); default_translate(s); default_grade(s); default_units(s); default_calib(s); default_flags(s); }
border_style from_string(const std::string &string) { if (string == "dashDot") return border_style::dashdot; else if (string == "dashDotDot") return border_style::dashdotdot; else if (string == "dashed") return border_style::dashed; else if (string == "dotted") return border_style::dotted; else if (string == "double") return border_style::double_; else if (string == "hair") return border_style::hair; else if (string == "medium") return border_style::medium; else if (string == "mediumDashdot") return border_style::mediumdashdot; else if (string == "mediumDashDotDot") return border_style::mediumdashdotdot; else if (string == "mediumDashed") return border_style::mediumdashed; else if (string == "none") return border_style::none; else if (string == "slantDashDot") return border_style::slantdashdot; else if (string == "thick") return border_style::thick; else if (string == "thin") return border_style::thin; default_case(border_style::dashdot); }
core_property from_string(const std::string &string) { if (string == "category") return core_property::category; else if (string == "contentStatus") return core_property::content_status; else if (string == "created") return core_property::created; else if (string == "creator") return core_property::creator; else if (string == "description") return core_property::description; else if (string == "identifier") return core_property::identifier; else if (string == "keywords") return core_property::keywords; else if (string == "language") return core_property::language; else if (string == "lastModifiedBy") return core_property::last_modified_by; else if (string == "lastPrinted") return core_property::last_printed; else if (string == "modified") return core_property::modified; else if (string == "revision") return core_property::revision; else if (string == "subject") return core_property::subject; else if (string == "title") return core_property::title; else if (string == "version") return core_property::version; default_case(core_property::category); }
pattern_fill_type from_string(const std::string &string) { if (string == "darkdown") return pattern_fill_type::darkdown; else if (string == "darkgray") return pattern_fill_type::darkgray; else if (string == "darkgrid") return pattern_fill_type::darkgrid; else if (string == "darkhorizontal") return pattern_fill_type::darkhorizontal; else if (string == "darktrellis") return pattern_fill_type::darktrellis; else if (string == "darkup") return pattern_fill_type::darkup; else if (string == "darkvertical") return pattern_fill_type::darkvertical; else if (string == "gray0625") return pattern_fill_type::gray0625; else if (string == "gray125") return pattern_fill_type::gray125; else if (string == "lightdown") return pattern_fill_type::lightdown; else if (string == "lightgray") return pattern_fill_type::lightgray; else if (string == "lightgrid") return pattern_fill_type::lightgrid; else if (string == "lighthorizontal") return pattern_fill_type::lighthorizontal; else if (string == "lighttrellis") return pattern_fill_type::lighttrellis; else if (string == "lightup") return pattern_fill_type::lightup; else if (string == "lightvertical") return pattern_fill_type::lightvertical; else if (string == "mediumgray") return pattern_fill_type::mediumgray; else if (string == "none") return pattern_fill_type::none; else if (string == "solid") return pattern_fill_type::solid; default_case(pattern_fill_type::none); }