mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
minor fixes for gcc build
This commit is contained in:
parent
4d62e0bb75
commit
45b03c03ef
|
@ -500,10 +500,10 @@ std::vector<relationship> xlnt::workbook::get_relationships() const
|
||||||
std::vector<content_type> xlnt::workbook::get_content_types() const
|
std::vector<content_type> xlnt::workbook::get_content_types() const
|
||||||
{
|
{
|
||||||
std::vector<content_type> content_types;
|
std::vector<content_type> content_types;
|
||||||
content_types.push_back({ true, "xml", "xml" });
|
content_types.push_back({ true, "xml", "", "application/xml" });
|
||||||
content_types.push_back({ true, "rels", "xml" });
|
content_types.push_back({ true, "rels", "", "application/vnd.openxmlformats-package.relationships+xml" });
|
||||||
content_types.push_back({ false, "xl/workbook.xml", "xml" });
|
content_types.push_back({ false, "", "xl/workbook.xml", "applications/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" });
|
||||||
return content_types;
|
return content_types;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include <algorithm>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
@ -584,9 +585,9 @@ std::string writer::write_theme()
|
||||||
auto fill_style_list_node = format_scheme_node.append_child("a:fillStyleList");
|
auto fill_style_list_node = format_scheme_node.append_child("a:fillStyleList");
|
||||||
fill_style_list_node.append_child("a:solidFill").append_child("a:schemeClr").append_attribute("val").set_value("phClr");
|
fill_style_list_node.append_child("a:solidFill").append_child("a:schemeClr").append_attribute("val").set_value("phClr");
|
||||||
|
|
||||||
auto line_style_list_node = format_scheme_node.append_child("a:lnStyleList");
|
/*auto line_style_list_node = */format_scheme_node.append_child("a:lnStyleList");
|
||||||
auto effect_style_list_node = format_scheme_node.append_child("a:effectStyleList");
|
/*auto effect_style_list_node = */format_scheme_node.append_child("a:effectStyleList");
|
||||||
auto bg_fill_style_list_node = format_scheme_node.append_child("a:bgFillStyleList");
|
/*auto bg_fill_style_list_node = */format_scheme_node.append_child("a:bgFillStyleList");
|
||||||
|
|
||||||
theme_node.append_child("a:objectDefaults");
|
theme_node.append_child("a:objectDefaults");
|
||||||
theme_node.append_child("a:extraClrSchemeLst");
|
theme_node.append_child("a:extraClrSchemeLst");
|
||||||
|
|
|
@ -11,17 +11,17 @@
|
||||||
#include <cxxtest/TestRunner.h>
|
#include <cxxtest/TestRunner.h>
|
||||||
#include <cxxtest/RealDescriptions.h>
|
#include <cxxtest/RealDescriptions.h>
|
||||||
#include <cxxtest/TestMain.h>
|
#include <cxxtest/TestMain.h>
|
||||||
#include <cxxtest/ParenPrinter.h>
|
#include <cxxtest/ErrorPrinter.h>
|
||||||
|
|
||||||
int main( int argc, char *argv[] ) {
|
int main( int argc, char *argv[] ) {
|
||||||
int status;
|
int status;
|
||||||
CxxTest::ParenPrinter tmp;
|
CxxTest::ErrorPrinter tmp;
|
||||||
CxxTest::RealWorldDescription::_worldName = "cxxtest";
|
CxxTest::RealWorldDescription::_worldName = "cxxtest";
|
||||||
status = CxxTest::Main< CxxTest::ParenPrinter >( tmp, argc, argv );
|
status = CxxTest::Main< CxxTest::ErrorPrinter >( tmp, argc, argv );
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
bool suite_test_cell_init = false;
|
bool suite_test_cell_init = false;
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_cell.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_cell.hpp"
|
||||||
|
|
||||||
static test_cell suite_test_cell;
|
static test_cell suite_test_cell;
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ public:
|
||||||
void runTest() { suite_test_cell.test_is_not_date_color_format(); }
|
void runTest() { suite_test_cell.test_is_not_date_color_format(); }
|
||||||
} testDescription_suite_test_cell_test_is_not_date_color_format;
|
} testDescription_suite_test_cell_test_is_not_date_color_format;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_chart.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_chart.hpp"
|
||||||
|
|
||||||
static test_chart suite_test_chart;
|
static test_chart suite_test_chart;
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ public:
|
||||||
void runTest() { suite_test_chart.test_write_chart_scatter(); }
|
void runTest() { suite_test_chart.test_write_chart_scatter(); }
|
||||||
} testDescription_suite_test_chart_test_write_chart_scatter;
|
} testDescription_suite_test_chart_test_write_chart_scatter;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_named_range.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_named_range.hpp"
|
||||||
|
|
||||||
static test_named_range suite_test_named_range;
|
static test_named_range suite_test_named_range;
|
||||||
|
|
||||||
|
@ -420,7 +420,7 @@ public:
|
||||||
void runTest() { suite_test_named_range.test_can_be_saved(); }
|
void runTest() { suite_test_named_range.test_can_be_saved(); }
|
||||||
} testDescription_suite_test_named_range_test_can_be_saved;
|
} testDescription_suite_test_named_range_test_can_be_saved;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_number_format.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_number_format.hpp"
|
||||||
|
|
||||||
static test_number_format suite_test_number_format;
|
static test_number_format suite_test_number_format;
|
||||||
|
|
||||||
|
@ -523,7 +523,7 @@ public:
|
||||||
void runTest() { suite_test_number_format.test_mac_date(); }
|
void runTest() { suite_test_number_format.test_mac_date(); }
|
||||||
} testDescription_suite_test_number_format_test_mac_date;
|
} testDescription_suite_test_number_format_test_mac_date;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_props.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_props.hpp"
|
||||||
|
|
||||||
static test_props suite_test_props;
|
static test_props suite_test_props;
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ public:
|
||||||
void runTest() { suite_test_props.test_write_properties_app(); }
|
void runTest() { suite_test_props.test_write_properties_app(); }
|
||||||
} testDescription_suite_test_props_test_write_properties_app;
|
} testDescription_suite_test_props_test_write_properties_app;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_read.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_read.hpp"
|
||||||
|
|
||||||
static test_read suite_test_read;
|
static test_read suite_test_read;
|
||||||
|
|
||||||
|
@ -699,7 +699,7 @@ public:
|
||||||
void runTest() { suite_test_read.test_read_date_value(); }
|
void runTest() { suite_test_read.test_read_date_value(); }
|
||||||
} testDescription_suite_test_read_test_read_date_value;
|
} testDescription_suite_test_read_test_read_date_value;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_strings.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_strings.hpp"
|
||||||
|
|
||||||
static test_strings suite_test_strings;
|
static test_strings suite_test_strings;
|
||||||
|
|
||||||
|
@ -730,7 +730,7 @@ public:
|
||||||
void runTest() { suite_test_strings.test_formatted_string_table(); }
|
void runTest() { suite_test_strings.test_formatted_string_table(); }
|
||||||
} testDescription_suite_test_strings_test_formatted_string_table;
|
} testDescription_suite_test_strings_test_formatted_string_table;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_style.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_style.hpp"
|
||||||
|
|
||||||
static test_style suite_test_style;
|
static test_style suite_test_style;
|
||||||
|
|
||||||
|
@ -827,7 +827,7 @@ public:
|
||||||
void runTest() { suite_test_style.test_read_cell_style(); }
|
void runTest() { suite_test_style.test_read_cell_style(); }
|
||||||
} testDescription_suite_test_style_test_read_cell_style;
|
} testDescription_suite_test_style_test_read_cell_style;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_theme.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_theme.hpp"
|
||||||
|
|
||||||
static test_theme suite_test_theme;
|
static test_theme suite_test_theme;
|
||||||
|
|
||||||
|
@ -840,7 +840,7 @@ public:
|
||||||
void runTest() { suite_test_theme.test_write_theme(); }
|
void runTest() { suite_test_theme.test_write_theme(); }
|
||||||
} testDescription_suite_test_theme_test_write_theme;
|
} testDescription_suite_test_theme_test_write_theme;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_workbook.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_workbook.hpp"
|
||||||
|
|
||||||
static test_workbook suite_test_workbook;
|
static test_workbook suite_test_workbook;
|
||||||
|
|
||||||
|
@ -961,7 +961,7 @@ public:
|
||||||
void runTest() { suite_test_workbook.test_write_regular_float(); }
|
void runTest() { suite_test_workbook.test_write_regular_float(); }
|
||||||
} testDescription_suite_test_workbook_test_write_regular_float;
|
} testDescription_suite_test_workbook_test_write_regular_float;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_worksheet.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_worksheet.hpp"
|
||||||
|
|
||||||
static test_worksheet suite_test_worksheet;
|
static test_worksheet suite_test_worksheet;
|
||||||
|
|
||||||
|
@ -1130,7 +1130,7 @@ public:
|
||||||
void runTest() { suite_test_worksheet.test_printer_settings(); }
|
void runTest() { suite_test_worksheet.test_printer_settings(); }
|
||||||
} testDescription_suite_test_worksheet_test_printer_settings;
|
} testDescription_suite_test_worksheet_test_printer_settings;
|
||||||
|
|
||||||
#include "C:\Users\Thomas\Development\xlnt\tests\test_write.hpp"
|
#include "/home/thomas/Development/xlnt/tests/test_write.hpp"
|
||||||
|
|
||||||
static test_write suite_test_write;
|
static test_write suite_test_write;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include <cxxtest/TestSuite.h>
|
#include <cxxtest/TestSuite.h>
|
||||||
|
|
||||||
#include <xlnt/xlnt.hpp>
|
#include <xlnt/xlnt.hpp>
|
||||||
#include "helpers\temporary_file.hpp"
|
#include "helpers/temporary_file.hpp"
|
||||||
|
|
||||||
class test_workbook : public CxxTest::TestSuite
|
class test_workbook : public CxxTest::TestSuite
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user