xlnt/1.5.0

Cross-platform user-friendly xlsx library for C++11+
Recipe info
2023-02-15

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
xlnt/1.5.0

Using xlnt

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
xlnt/1.5.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("xlnt/1.5.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): Xlnt
  • CMake target name(s): xlnt::xlnt
  • pkg-config file name(s): xlnt.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(Xlnt REQUIRED)
# ...
target_link_libraries(YOUR_TARGET xlnt::xlnt)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the xlnt homepage listed above:

#include "xlnt/cell/cell.hpp"
#include "xlnt/cell/cell_reference.hpp"
#include "xlnt/cell/cell_type.hpp"
#include "xlnt/cell/comment.hpp"
#include "xlnt/cell/hyperlink.hpp"
#include "xlnt/cell/index_types.hpp"
#include "xlnt/cell/phonetic_run.hpp"
#include "xlnt/cell/rich_text.hpp"
#include "xlnt/cell/rich_text_run.hpp"
#include "xlnt/drawing/spreadsheet_drawing.hpp"
#include "xlnt/packaging/ext_list.hpp"
#include "xlnt/packaging/manifest.hpp"
#include "xlnt/packaging/relationship.hpp"
#include "xlnt/packaging/uri.hpp"
#include "xlnt/styles/alignment.hpp"
#include "xlnt/styles/border.hpp"
#include "xlnt/styles/color.hpp"
#include "xlnt/styles/conditional_format.hpp"
#include "xlnt/styles/fill.hpp"
#include "xlnt/styles/font.hpp"
#include "xlnt/styles/format.hpp"
#include "xlnt/styles/number_format.hpp"
#include "xlnt/styles/protection.hpp"
#include "xlnt/styles/style.hpp"
#include "xlnt/utils/calendar.hpp"
#include "xlnt/utils/date.hpp"
#include "xlnt/utils/datetime.hpp"
#include "xlnt/utils/exceptions.hpp"
#include "xlnt/utils/numeric.hpp"
#include "xlnt/utils/optional.hpp"
#include "xlnt/utils/path.hpp"
#include "xlnt/utils/scoped_enum_hash.hpp"
#include "xlnt/utils/time.hpp"
#include "xlnt/utils/timedelta.hpp"
#include "xlnt/utils/variant.hpp"
#include "xlnt/workbook/calculation_properties.hpp"
#include "xlnt/workbook/document_security.hpp"
#include "xlnt/workbook/external_book.hpp"
#include "xlnt/workbook/metadata_property.hpp"
#include "xlnt/workbook/named_range.hpp"
#include "xlnt/workbook/streaming_workbook_reader.hpp"
#include "xlnt/workbook/streaming_workbook_writer.hpp"
#include "xlnt/workbook/theme.hpp"
#include "xlnt/workbook/workbook.hpp"
#include "xlnt/workbook/workbook_view.hpp"
#include "xlnt/workbook/worksheet_iterator.hpp"
#include "xlnt/worksheet/cell_iterator.hpp"
#include "xlnt/worksheet/cell_vector.hpp"
#include "xlnt/worksheet/column_properties.hpp"
#include "xlnt/worksheet/header_footer.hpp"
#include "xlnt/worksheet/major_order.hpp"
#include "xlnt/worksheet/page_margins.hpp"
#include "xlnt/worksheet/page_setup.hpp"
#include "xlnt/worksheet/pane.hpp"
#include "xlnt/worksheet/phonetic_pr.hpp"
#include "xlnt/worksheet/print_options.hpp"
#include "xlnt/worksheet/range.hpp"
#include "xlnt/worksheet/range_iterator.hpp"
#include "xlnt/worksheet/range_reference.hpp"
#include "xlnt/worksheet/row_properties.hpp"
#include "xlnt/worksheet/selection.hpp"
#include "xlnt/worksheet/sheet_format_properties.hpp"
#include "xlnt/worksheet/sheet_pr.hpp"
#include "xlnt/worksheet/sheet_protection.hpp"
#include "xlnt/worksheet/sheet_view.hpp"
#include "xlnt/worksheet/worksheet.hpp"
#include "xlnt/xlnt.hpp"
#include "xlnt/xlnt_config.hpp"