mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
work on docs
This commit is contained in:
parent
c009278c60
commit
3376741996
|
@ -7,6 +7,9 @@ Cell Module
|
||||||
.. doxygenclass:: xlnt::cell_reference
|
.. doxygenclass:: xlnt::cell_reference
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::cell_type
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::cell
|
.. doxygenclass:: xlnt::cell
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
@ -21,3 +24,8 @@ Cell Module
|
||||||
.. doxygenstruct:: xlnt::column_hash
|
.. doxygenstruct:: xlnt::column_hash
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::text
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::text_run
|
||||||
|
:members:
|
||||||
|
|
|
@ -1,18 +1,21 @@
|
||||||
Packaging Module
|
Packaging Module
|
||||||
================
|
================
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::document_properties
|
.. doxygenclass:: xlnt::app_properties
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::default_type
|
.. doxygenclass:: xlnt::default_type
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::override_type
|
.. doxygenclass:: xlnt::document_properties
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::manifest
|
.. doxygenclass:: xlnt::manifest
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::override_type
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::relationship
|
.. doxygenclass:: xlnt::relationship
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
@ -21,4 +24,3 @@ Packaging Module
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::zip_file
|
.. doxygenclass:: xlnt::zip_file
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
Serialization Module
|
|
||||||
====================
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::comment_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenenum:: xlnt::encoding
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::excel_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::manifest_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::relationship_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::shared_strings_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::style_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::theme_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::workbook_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::worksheet_serializer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::xml_document
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::xml_node
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::xml_serializer
|
|
||||||
:members:
|
|
|
@ -4,7 +4,10 @@ Styles Module
|
||||||
.. doxygenclass:: xlnt::alignment
|
.. doxygenclass:: xlnt::alignment
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenenum:: xlnt::border
|
.. doxygenclass:: xlnt::base_format
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::border_style
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::border
|
.. doxygenclass:: xlnt::border
|
||||||
|
@ -13,13 +16,19 @@ Styles Module
|
||||||
.. doxygenclass:: xlnt::color
|
.. doxygenclass:: xlnt::color
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::diagonal_direction
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::fill
|
.. doxygenclass:: xlnt::fill
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::font
|
.. doxygenclass:: xlnt::font
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::named_style
|
.. doxygenclass:: xlnt::format
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::horizontal_alignment
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::number_format
|
.. doxygenclass:: xlnt::number_format
|
||||||
|
@ -28,11 +37,11 @@ Styles Module
|
||||||
.. doxygenclass:: xlnt::protection
|
.. doxygenclass:: xlnt::protection
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenenum:: xlnt::border_style
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::side
|
.. doxygenclass:: xlnt::side
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::style
|
.. doxygenclass:: xlnt::style
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::vertical_alignment
|
||||||
|
:members:
|
||||||
|
|
|
@ -1,46 +1,55 @@
|
||||||
Utilities Module
|
Utilities Module
|
||||||
================
|
================
|
||||||
|
|
||||||
.. doxygenstruct:: xlnt::date
|
.. doxygenclass:: xlnt::attribute_error
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenstruct:: xlnt::time
|
.. doxygenenum:: xlnt::calendar
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::cell_coordinates_error
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::column_string_index_error
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::data_type_error
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenstruct:: xlnt::date
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenstruct:: xlnt::datetime
|
.. doxygenstruct:: xlnt::datetime
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenstruct:: xlnt::timedelta
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::cell_coordinates_exception
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::illegal_character_error
|
.. doxygenclass:: xlnt::illegal_character_error
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::column_string_index_exception
|
.. doxygenclass:: xlnt::invalid_file_error
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::data_type_exception
|
.. doxygenclass:: xlnt::key_error
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::named_range_exception
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::sheet_title_exception
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::invalid_file_exception
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::read_only_workbook_exception
|
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::missing_number_format
|
.. doxygenclass:: xlnt::missing_number_format
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::attribute_error
|
.. doxygenclass:: xlnt::named_range_error
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::read_only_workbook_error
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::sheet_title_error
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenstruct:: xlnt::time
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenstruct:: xlnt::timedelta
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::utf8string
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::value_error
|
.. doxygenclass:: xlnt::value_error
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
Workbook Module
|
Workbook Module
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::const_worksheet_iterator
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::document_security
|
.. doxygenclass:: xlnt::document_security
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
@ -15,3 +18,6 @@ Workbook Module
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::workbook
|
.. doxygenclass:: xlnt::workbook
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::worksheet_iterator
|
||||||
|
:members:
|
||||||
|
|
|
@ -4,12 +4,36 @@ Worksheet Module
|
||||||
.. doxygenclass:: xlnt::cell_vector
|
.. doxygenclass:: xlnt::cell_vector
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::cell_iterator
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::column_properties
|
.. doxygenclass:: xlnt::column_properties
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::const_cell_iterator
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::const_range_iterator
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::footer
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::header_footer
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::header
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenenum:: xlnt::major_order
|
.. doxygenenum:: xlnt::major_order
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::orientation
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::page_break
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::page_margins
|
.. doxygenclass:: xlnt::page_margins
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
@ -19,6 +43,12 @@ Worksheet Module
|
||||||
.. doxygenclass:: xlnt::pane
|
.. doxygenclass:: xlnt::pane
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::paper_size
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. doxygenclass:: xlnt::range_iterator
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::range_reference
|
.. doxygenclass:: xlnt::range_reference
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
@ -34,23 +64,14 @@ Worksheet Module
|
||||||
.. doxygenclass:: xlnt::sheet_protection
|
.. doxygenclass:: xlnt::sheet_protection
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
.. doxygenenum:: xlnt::sheet_state
|
||||||
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::sheet_view
|
.. doxygenclass:: xlnt::sheet_view
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::worksheet_properties
|
.. doxygenclass:: xlnt::worksheet_properties
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::header
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::footer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::header_footer
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenstruct:: xlnt::margins
|
|
||||||
:members:
|
|
||||||
|
|
||||||
.. doxygenclass:: xlnt::worksheet
|
.. doxygenclass:: xlnt::worksheet
|
||||||
:members:
|
:members:
|
||||||
|
|
|
@ -14,11 +14,7 @@
|
||||||
Introduction
|
Introduction
|
||||||
------------
|
------------
|
||||||
|
|
||||||
xlnt is a C++14 library for reading, writing, and modifying xlsx files as described in ECMA 376.
|
xlnt is a C++14 library for reading, writing, and modifying XLSX files as described in [ECMA 376](http://www.ecma-international.org/publications/standards/Ecma-376.htm). The API is based on [openpyxl](https://bitbucket.org/openpyxl/openpyxl), a Python library to read/write Excel 2007 xlsx/xlsm files, and ultimately on [PHPExcel](https://github.com/PHPOffice/PHPExcel), pure PHP library for reading and writing spreadsheet files upon which openpyxl was based. This project is still very much a work in progress, but the core development work is complete.
|
||||||
|
|
||||||
The API is generally based on openpyxl, a python library for reading and writing xlsx/xlsm files.
|
|
||||||
|
|
||||||
This is still very much a work in progress, but the core development work is complete.
|
|
||||||
|
|
||||||
Support
|
Support
|
||||||
+++++++
|
+++++++
|
||||||
|
@ -26,23 +22,13 @@ Support
|
||||||
Sample code:
|
Sample code:
|
||||||
++++++++++++
|
++++++++++++
|
||||||
|
|
||||||
.. literalinclude:: /samples/sample1.cpp
|
.. literalinclude:: /samples/sample.cpp
|
||||||
|
|
||||||
User List
|
|
||||||
---------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
How to Contribute Code
|
How to Contribute Code
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
For further information see :ref:`development`
|
See :ref:`development`
|
||||||
|
|
||||||
.. note:
|
|
||||||
|
|
||||||
|
|
||||||
Other ways to help
|
|
||||||
------------------
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
// Copyright (c) 2014-2016 Thomas Fussell
|
|
||||||
//
|
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
|
||||||
// in the Software without restriction, including without limitation the rights
|
|
||||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
// copies of the Software, and to permit persons to whom the Software is
|
|
||||||
// furnished to do so, subject to the following conditions:
|
|
||||||
//
|
|
||||||
// The above copyright notice and this permission notice shall be included in
|
|
||||||
// all copies or substantial portions of the Software.
|
|
||||||
//
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, WRISING FROM,
|
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
// THE SOFTWARE
|
|
||||||
//
|
|
||||||
// @license: http://www.opensource.org/licenses/mit-license.php
|
|
||||||
// @author: see AUTHORS file
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <xlnt/xlnt_config.hpp>
|
|
||||||
|
|
||||||
namespace xlnt {
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Specifies the encoding used in a worksheet.
|
|
||||||
/// This isn't really supported yet.
|
|
||||||
/// </summary>
|
|
||||||
enum class XLNT_CLASS encoding
|
|
||||||
{
|
|
||||||
utf8,
|
|
||||||
latin1,
|
|
||||||
utf16,
|
|
||||||
utf32,
|
|
||||||
ascii
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace xlnt
|
|
|
@ -1 +1,15 @@
|
||||||
sample.cpp
|
#include <xlnt/xlnt.hpp>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
xlnt::workbook wb;
|
||||||
|
xlnt::worksheet ws = wb.get_active_sheet();
|
||||||
|
ws.get_cell("A1").set_value(5);
|
||||||
|
ws.get_cell("B2").set_value("string data");
|
||||||
|
ws.get_cell("C3").set_formula("=RAND()");
|
||||||
|
ws.merge_cells("C3:C4");
|
||||||
|
ws.freeze_panes("B2");
|
||||||
|
wb.save("book1.xlsx");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user