Home
last modified time | relevance | path

Searched refs:xlnt (Results 1 – 25 of 245) sorted by relevance

12345678910

/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/tests/styles/
H A Dnumber_format_test_suite.cpp137 xlnt::number_format nf; in test_simple_format()
163 xlnt::number_format nf; in test_bad_date_format()
203 xlnt::number_format nf; in test_upper_case_date()
215 xlnt::number_format nf = xlnt::number_format::date_ddmmyyyy(); in test_simple_date()
226 xlnt::number_format nf; in test_short_month()
238 xlnt::number_format nf; in test_month_abbreviation()
250 xlnt::number_format nf; in test_month_name()
334 xlnt::number_format nf = xlnt::number_format::date_time4(); in test_time_24_hour()
389 xlnt::number_format nf = xlnt::number_format::date_time2(); in test_time_12_hour_am()
400 xlnt::number_format nf = xlnt::number_format::date_time2(); in test_time_12_hour_pm()
[all …]
H A Dfill_test_suite.cpp45 xlnt::fill fill; in test_properties()
48 fill = xlnt::fill(xlnt::gradient_fill()); in test_properties()
63 fill = xlnt::pattern_fill().type(xlnt::pattern_fill_type::solid); in test_properties()
82 xlnt::fill pattern_fill = xlnt::pattern_fill().type(xlnt::pattern_fill_type::solid); in test_comparison()
83xlnt::fill gradient_fill_linear = xlnt::gradient_fill().type(xlnt::gradient_fill_type::linear); in test_comparison()
84 xlnt::fill gradient_fill_path = xlnt::gradient_fill().type(xlnt::gradient_fill_type::path); in test_comparison()
93 xlnt::workbook wb; in test_two_fills()
99 cell1.fill(xlnt::fill::solid(xlnt::color::yellow())); in test_two_fills()
102 cell2.fill(xlnt::fill::solid(xlnt::color::green())); in test_two_fills()
105 xlnt_assert_equals(cell1.fill(), xlnt::fill::solid(xlnt::color::yellow())); in test_two_fills()
[all …]
H A Dcolor_test_suite.cpp42 {xlnt::color::black(), "FF000000"}, in test_known_colors()
43 {xlnt::color::white(), "FFFFFFFF"}, in test_known_colors()
44 {xlnt::color::red(), "FFFF0000"}, in test_known_colors()
45 {xlnt::color::darkred(), "FF8B0000"}, in test_known_colors()
46 {xlnt::color::blue(), "FF0000FF"}, in test_known_colors()
47 {xlnt::color::darkblue(), "FF00008B"}, in test_known_colors()
48 {xlnt::color::green(), "FF00FF00"}, in test_known_colors()
49 {xlnt::color::darkgreen(), "FF008B00"}, in test_known_colors()
50 {xlnt::color::yellow(), "FFFFFF00"}, in test_known_colors()
61 xlnt::color indexed = xlnt::indexed_color(1); in test_non_rgb_colors()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/tests/detail/
H A Dnumeric_util_test_suite.cpp43 xlnt::detail::number_serialiser serialiser; in test_serialise_number()
171 xlnt_assert(xlnt::detail::min(0, 1) == 0); in test_min()
172 xlnt_assert(xlnt::detail::min(1, 0) == 0); in test_min()
192 xlnt_assert(xlnt::detail::max(0, 1) == 1); in test_max()
193 xlnt_assert(xlnt::detail::max(1, 0) == 1); in test_max()
212 xlnt_assert(xlnt::detail::abs(0) == 0); in test_abs()
213 xlnt_assert(xlnt::detail::abs(1) == 1); in test_abs()
214 xlnt_assert(xlnt::detail::abs(-1) == 1); in test_abs()
216 xlnt_assert(xlnt::detail::abs(0.0) == 0.0); in test_abs()
217 xlnt_assert(xlnt::detail::abs(1.5) == 1.5); in test_abs()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/docs/advanced/
H A DProperties.md4 xlnt::workbook wb;
7 wb.core_property(xlnt::core_property::content_status, "good");
8 wb.core_property(xlnt::core_property::created, xlnt::datetime(2017, 1, 15));
9 wb.core_property(xlnt::core_property::creator, "me");
11 wb.core_property(xlnt::core_property::identifier, "id");
15 wb.core_property(xlnt::core_property::last_printed, xlnt::datetime(2017, 1, 15));
16 wb.core_property(xlnt::core_property::modified, xlnt::datetime(2017, 1, 15));
17 wb.core_property(xlnt::core_property::revision, "3");
19 wb.core_property(xlnt::core_property::title, "title");
20 wb.core_property(xlnt::core_property::version, "1.0");
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/samples/
H A Ddocumentation.cpp31 xlnt::workbook wb; in sample_readme_example1()
32 xlnt::worksheet ws = wb.active_sheet(); in sample_readme_example1()
48 xlnt::workbook wb; in sample_read_and_print_example()
66 xlnt::workbook wb; in sample_read_into_vector_example()
120 xlnt::workbook wbOut; in sample_write_sheet_to_file_example()
124 xlnt::worksheet wsOut = wbOut.active_sheet(); in sample_write_sheet_to_file_example()
152 xlnt::workbook wb; in sample_number_formatting_example()
163 xlnt::workbook wb; in sample_properties_example()
166 wb.core_property(xlnt::core_property::created, xlnt::datetime(2017, 1, 15)); in sample_properties_example()
173 wb.core_property(xlnt::core_property::last_printed, xlnt::datetime(2017, 1, 15)); in sample_properties_example()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/source/detail/serialization/
H A Dcustom_value_traits.hpp43 namespace xlnt { namespace
447 return xlnt::detail::from_string<xlnt::pattern_fill_type>(fill_type_string); in parse()
461 return xlnt::detail::from_string<xlnt::gradient_fill_type>(fill_type_string); in parse()
475 return xlnt::detail::from_string<xlnt::border_style>(style_string); in parse()
518 return xlnt::detail::from_string<xlnt::border_side>(side_string); in parse()
532 return xlnt::detail::from_string<xlnt::target_mode>(mode_string); in parse()
546 return xlnt::detail::from_string<xlnt::pane_state>(string); in parse()
560 return xlnt::detail::from_string<xlnt::pane_corner>(string); in parse()
574 return xlnt::detail::from_string<xlnt::core_property>(string); in parse()
588 return xlnt::detail::from_string<xlnt::extended_property>(string); in parse()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/tests/cell/
H A Dcell_test_suite.cpp91 xlnt::workbook wb; in test_infer_numeric()
123 xlnt_assert(cell.value<xlnt::time>() == xlnt::time(3, 40, 16)); in test_infer_numeric()
129 xlnt_assert(cell.value<xlnt::time>() == xlnt::time(3, 40)); in test_infer_numeric()
132 xlnt_assert(cell.value<xlnt::time>() == xlnt::time(0, 30, 33, 865633)); in test_infer_numeric()
137 xlnt::workbook wb; in test_constructor()
151 xlnt::workbook wb; in test_null()
176 xlnt::workbook wb; in test_string()
192 xlnt::workbook wb; in test_formula1()
203 xlnt::workbook wb; in test_formula2()
426 xlnt::fill fill(xlnt::pattern_fill() in test_fill()
[all …]
H A Drich_text_test_suite.cpp45 xlnt::rich_text text1; in test_operators()
46 xlnt::rich_text text2; in test_operators()
55 xlnt::font run_font; in test_operators()
67 run_font = xlnt::font(); in test_operators()
75 run_font = xlnt::font(); in test_operators()
83 run_font = xlnt::font(); in test_operators()
91 run_font = xlnt::font(); in test_operators()
109 xlnt::rich_text rt; in test_runs()
111 …std::vector<xlnt::rich_text_run> test_runs{xlnt::rich_text_run{"1_abc_test_123"}, xlnt::rich_text_… in test_runs()
123 xlnt::rich_text rt; in test_phonetic_runs()
[all …]
H A Dindex_types_test_suite.cpp43 xlnt_assert_throws(xlnt::column_t::column_index_from_string(""), in test_bad_string_empty()
44 xlnt::invalid_column_index); in test_bad_string_empty()
50 xlnt::invalid_column_index); in test_bad_string_too_long()
55 xlnt_assert_throws(xlnt::column_t::column_index_from_string("123"), in test_bad_string_numbers()
56 xlnt::invalid_column_index); in test_bad_string_numbers()
61 xlnt_assert_throws(xlnt::column_t::column_string_from_index(0), in test_bad_index_zero()
62 xlnt::invalid_column_index); in test_bad_index_zero()
67 auto c1 = xlnt::column_t(); in test_column_operators()
70 auto c2 = xlnt::column_t(); in test_column_operators()
75 xlnt_assert(c1 == static_cast<xlnt::column_t::index_t>(2)); in test_column_operators()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/source/detail/cryptography/
H A Dvalue_traits.hpp35 struct value_traits<xlnt::detail::hash_algorithm>
48 return xlnt::detail::hash_algorithm::md5; in parse()
50 return xlnt::detail::hash_algorithm::md4; in parse()
52 return xlnt::detail::hash_algorithm::md2; in parse()
66 case xlnt::detail::hash_algorithm::sha1: in serialize()
68 case xlnt::detail::hash_algorithm::sha256: in serialize()
70 case xlnt::detail::hash_algorithm::sha384: in serialize()
72 case xlnt::detail::hash_algorithm::sha512: in serialize()
74 case xlnt::detail::hash_algorithm::md5: in serialize()
76 case xlnt::detail::hash_algorithm::md4: in serialize()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/tests/utils/
H A Ddatetime_test_suite.cpp48 xlnt::time t("10:35:45"); in test_from_string()
70 auto rollover = xlnt::datetime::from_number(number, xlnt::calendar::windows_1900); in test_carry()
83 auto converted = xlnt::datetime::from_number(number, xlnt::calendar::windows_1900); in test_leap_year_bug()
89 xlnt::date d(1900, 1, 29); in test_early_date()
92 auto converted = xlnt::date::from_number(number, xlnt::calendar::windows_1900); in test_early_date()
98 xlnt::date d(2016, 7, 16); in test_mac_calendar()
103 auto converted_1900 = xlnt::date::from_number(number_1900, xlnt::calendar::windows_1900); in test_mac_calendar()
104 auto converted_1904 = xlnt::date::from_number(number_1904, xlnt::calendar::mac_1904); in test_mac_calendar()
111 xlnt::date d1(2016, 7, 16); in test_operators()
112 xlnt::date d2(2016, 7, 16); in test_operators()
[all …]
H A Doptional_tests.cpp100 xlnt::optional<int> opt1; in test_ctor()
104 xlnt::optional<int> opt2(test_val); in test_ctor()
118 xlnt::optional<int> opt1; in test_copy_ctor()
119 xlnt::optional<int> opt2(opt1); in test_copy_ctor()
124 xlnt::optional<int> opt4(opt3); in test_copy_ctor()
142 xlnt::optional<int> opt1; in test_move_ctor()
167 xlnt::optional<int> opt1; in test_copy_assign()
194 xlnt::optional<int> opt1; in test_move_assign()
222 xlnt::optional<int> test_opt; in test_set_and_get()
263 xlnt::optional<int> test_opt1; in test_equality()
[all …]
H A Dhelper_test_suite.cpp49 throw xlnt::exception("test"); in test_bootstrap_asserts()
65 throw xlnt::exception("test failed"); in test_bootstrap_asserts()
80 throw xlnt::exception("test failed"); in test_bootstrap_asserts()
92 throw xlnt::exception("test failed"); in test_bootstrap_asserts()
100 throw xlnt::exception("test failed"); in test_bootstrap_asserts()
102 catch (xlnt::exception) in test_bootstrap_asserts()
108 throw xlnt::exception("test failed"); in test_bootstrap_asserts()
116 throw xlnt::exception("test failed"); in test_bootstrap_asserts()
118 catch (xlnt::exception) in test_bootstrap_asserts()
124 throw xlnt::exception("test failed"); in test_bootstrap_asserts()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/benchmarks/
H A Dstyles.cpp46 void generate_all_formats(xlnt::workbook &wb, std::vector<xlnt::format>& formats) in generate_all_formats()
50 xlnt::vertical_alignment::center, in generate_all_formats()
52 xlnt::vertical_alignment::top, in generate_all_formats()
53 xlnt::vertical_alignment::bottom in generate_all_formats()
62 xlnt::horizontal_alignment::left, in generate_all_formats()
63 xlnt::horizontal_alignment::right in generate_all_formats()
113 xlnt::font f; in generate_all_formats()
121 xlnt::alignment a; in generate_all_formats()
141 xlnt::workbook wb; in non_optimized_workbook_formats()
158 auto cell = worksheet.cell(xlnt::cell_reference((xlnt::column_t)col_idx, (xlnt::row_t)row_idx)); in non_optimized_workbook_formats()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/tests/worksheet/
H A Dworksheet_test_suite.cpp120 xlnt::workbook wb; in test_new_worksheet()
127 xlnt::workbook wb; in test_cell()
135 xlnt_assert_throws(xlnt::cell_reference(xlnt::column_t((xlnt::column_t::index_t)0), 0), in test_invalid_cell()
141 xlnt::workbook wb; in test_worksheet_dimension()
155 xlnt::workbook wb; in test_fill_rows()
173 xlnt::workbook wb; in test_get_named_range()
190 xlnt::workbook wb; in test_get_bad_named_range()
197 xlnt::workbook wb; in test_get_named_range_wrong_sheet()
322 xlnt::cell cell = ws[xlnt::cell_reference("A1")]; in test_getitem()
1067 xlnt_assert_equals(xlnt::cell_iterator{}, xlnt::cell_iterator{}); in test_iterate()
[all …]
H A Drange_test_suite.cpp47 xlnt::workbook wb; in test_construction()
50 xlnt::range range_1(ws, xlnt::range_reference("A1:D10")); in test_construction()
57 xlnt::range range_2(ws, xlnt::range_reference("A1:D10"), xlnt::major_order::row, false); in test_construction()
60 xlnt::range range_3(range_2); in test_construction()
64 xlnt::range range_4(ws, xlnt::range_reference("A1:D10"), xlnt::major_order::column); in test_construction()
67 xlnt_assert_equals(xlnt::column_t("D"), range_4.back()[0].column()); in test_construction()
76 xlnt::workbook wb; in test_batch_formatting()
83 auto ref = xlnt::cell_reference(column, row); in test_batch_formatting()
88 ws.range("A1:A10").font(xlnt::font().name("Arial")); in test_batch_formatting()
89 ws.range("A1:J1").font(xlnt::font().bold(true)); in test_batch_formatting()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/tests/workbook/
H A Dserialization_test_suite.cpp101 bool workbook_matches_file(xlnt::workbook &wb, const xlnt::path &file) in workbook_matches_file()
115 xlnt::workbook wb; in test_produce_empty()
122 xlnt::workbook wb; in test_produce_simple_excel()
205 xlnt::workbook wb; in test_write_comments_hyperlinks_formulae()
309 xlnt::workbook wb; in test_save_after_clear_all_formulae()
328 xlnt::workbook wb; in test_load_non_xlsx()
335 xlnt::workbook wb; in test_decrypt_agile()
343 xlnt::workbook wb; in test_decrypt_libre_office()
351 xlnt::workbook wb; in test_decrypt_standard()
359 xlnt::workbook wb; in test_decrypt_numbers()
[all …]
H A Dworkbook_test_suite.cpp78 xlnt::workbook wb; in test_active_sheet()
84 xlnt::workbook wb; in test_create_sheet()
92 xlnt::workbook wb; in test_add_correct_sheet()
112 xlnt::workbook wb; in test_add_sheet_at_index()
135 xlnt::workbook wb; in test_get_sheet_by_title()
148 xlnt::workbook wb; in test_get_sheet_by_title_const()
159 xlnt::workbook wb; in test_get_sheet_by_index()
167 xlnt::workbook wb; in test_get_sheet_by_index_const()
176 xlnt::workbook wb; in test_index_operator()
183 xlnt::workbook wb; in test_contains()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/docs/api/
H A Dcell.md2 ## ```using xlnt::cell::type = cell_typeundefined```
3 Alias xlnt::cell_type to xlnt::cell::type since it looks nicer.
11 ## ```bool xlnt::cell::has_value() const```
13 ## ```T xlnt::cell::value() const```
15 ## ```void xlnt::cell::clear_value()```
59 ## ```bool xlnt::cell::is_date() const```
65 ## ```row_t xlnt::cell::row() const```
75 ## ```void xlnt::cell::hyperlink(xlnt::cell target)```
97 ## ```void xlnt::cell::clear_format()```
133 ## ```void xlnt::cell::clear_style()```
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/tests/helpers/
H A Dpath_helper.hpp29 static xlnt::path test_data_directory(const std::string &append = "") in test_data_directory()
32 return xlnt::path(data_dir); in test_data_directory()
35 static xlnt::path test_file(const std::string &filename) in test_file()
37 return test_data_directory().append(xlnt::path(filename)); in test_file()
43 return xlnt::path(data_dir); in benchmark_data_directory()
46 static xlnt::path benchmark_file(const std::string &filename) in benchmark_file()
54 return xlnt::path(data_dir); in sample_data_directory()
57 static xlnt::path sample_file(const std::string &filename) in sample_file()
59 return sample_data_directory().append(xlnt::path(filename)); in sample_file()
62 static void copy_file(const xlnt::path &source, const xlnt::path &destination, bool overwrite) in copy_file()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/include/xlnt/worksheet/
H A Dpage_setup.hpp30 namespace xlnt { namespace
95 xlnt::page_break page_break() const;
100 void page_break(xlnt::page_break b);
105 xlnt::sheet_state sheet_state() const;
115 xlnt::paper_size paper_size() const;
165 xlnt::optional<xlnt::orientation> orientation_;
169 xlnt::optional<std::size_t> horizontal_dpi_;
173 xlnt::optional<std::size_t> vertical_dpi_;
181 xlnt::page_break break_;
186 xlnt::sheet_state sheet_state_;
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/
H A DREADME.md1 …hubusercontent.com/1735211/29433390-f37fa28e-836c-11e7-8a60-f8df4c30b424.png" alt="xlnt logo"><br/>
4 … Build Status](https://travis-ci.org/tfussell/xlnt.svg?branch=master)](https://travis-ci.org/tfuss…
5 ….com/api/projects/status/2hs79a1xoxy16sol?svg=true)](https://ci.appveyor.com/project/tfussell/xlnt)
6 …ps://coveralls.io/repos/github/tfussell/xlnt/badge.svg?branch=master)](https://coveralls.io/github…
7 …(https://legacy.gitbook.com/button/status/book/tfussell/xlnt)](https://tfussell.gitbooks.io/xlnt/c…
15 Including xlnt in your project, creating a new spreadsheet, and saving it as "example.xlsx"
18 #include <xlnt/xlnt.hpp>
22 xlnt::workbook wb;
23 xlnt::worksheet ws = wb.active_sheet();
37 Documentation for the current release of xlnt is available [here](https://tfussell.gitbooks.io/xlnt
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/python/
H A Dxlntpyarrow.lib.cpp159 throw xlnt::exception("not implemented"); in make_array_builder()
171 T cell_value(xlnt::cell cell) in cell_value()
327 throw xlnt::exception("not implemented"); in append_cell_value()
332 throw xlnt::exception("Append failed"); in append_cell_value()
417 .def("value_bool", [](xlnt::cell &cell) in PYBIND11_MODULE()
429 .def("data_type", [](xlnt::cell &cell) in PYBIND11_MODULE()
433 .def("row", &xlnt::cell::row) in PYBIND11_MODULE()
434 .def("column", [](xlnt::cell &cell) in PYBIND11_MODULE()
444 .value("Empty", xlnt::cell::type::empty) in PYBIND11_MODULE()
446 .value("Date", xlnt::cell::type::date) in PYBIND11_MODULE()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/include/xlnt/styles/
H A Dformat.hpp31 namespace xlnt { namespace
70 format alignment(const xlnt::alignment &new_alignment, xlnt::optional<bool> applied = {});
88 format border(const xlnt::border &new_border, xlnt::optional<bool> applied = {});
105 format fill(const xlnt::fill &new_fill, xlnt::optional<bool> applied = {});
122 format font(const xlnt::font &new_font, xlnt::optional<bool> applied = {});
139 …format number_format(const xlnt::number_format &new_number_format, xlnt::optional<bool> applied = …
161 format protection(const xlnt::protection &new_protection, xlnt::optional<bool> applied = {});

12345678910