-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from QtExcel/beta
Beta : Feb 2023
- Loading branch information
Showing
310 changed files
with
22,899 additions
and
993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ theme: jekyll-theme-cayman | |
|
||
plugins: | ||
- jemoji | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "{build}" | ||
os: Visual Studio 2015 | ||
|
||
cache: | ||
- vcpkg -> .appveyor.yml | ||
|
||
platform: | ||
- x64 | ||
|
||
configuration: | ||
- Debug | ||
|
||
environment: | ||
matrix: | ||
- STATIC: OFF | ||
- STATIC: ON | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
init: [] | ||
|
||
before_build: | ||
- git submodule update --init --recursive | ||
- mkdir build | ||
- cd build | ||
- cmake -G "Visual Studio 14 2015" -D CMAKE_GENERATOR_PLATFORM=%platform% -D STATIC=%STATIC% -D SAMPLES=ON -D BENCHMARKS=ON -D TESTS=ON .. | ||
|
||
build: | ||
project: build/xlnt_all.sln | ||
parallel: true | ||
verbosity: minimal | ||
|
||
test_script: | ||
- tests\%configuration%\xlnt.test.exe | ||
- samples\%configuration%\sample-documentation.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: lycantropos/cmake:3.9.5 | ||
parameters: | ||
benchmarks: | ||
default: "OFF" | ||
type: string | ||
build-type: | ||
default: Release | ||
type: string | ||
coverage: | ||
default: "OFF" | ||
type: string | ||
cxx-ver: | ||
default: "11" | ||
type: string | ||
samples: | ||
default: "OFF" | ||
type: string | ||
static: | ||
default: "ON" | ||
type: string | ||
steps: | ||
- checkout | ||
- run: git submodule update --init --recursive | ||
- run: cmake -D XLNT_CXX_LANG=<< parameters.cxx-ver >> -D STATIC=<< parameters.static >> -D BENCHMARKS=<< parameters.benchmarks >> -D TESTS=ON -D SAMPLES=<< parameters.samples >> -D COVERAGE=<< parameters.coverage >> -D CMAKE_BUILD_TYPE=<< parameters.build-type >> . | ||
- run: cmake --build . -- -j2 | ||
- run: ./tests/xlnt.test | ||
- when: | ||
condition: | ||
equal: ["ON", << parameters.samples >>] | ||
steps: | ||
- run: ./samples/sample-decrypt | ||
- run: ./samples/sample-img2xlsx ./samples/data/penguin.jpg img.xlsx | ||
- run: ./samples/sample-documentation | ||
- when: | ||
condition: | ||
equal: ["ON", << parameters.benchmarks >>] | ||
steps: | ||
- run: ./benchmarks/benchmark-styles | ||
- run: ./benchmarks/benchmark-writer | ||
- when: | ||
condition: | ||
equal: ["ON", << parameters.coverage >>] | ||
steps: | ||
- run: lcov --directory source/CMakeFiles/xlnt.dir --capture --output-file coverage.info --base-directory ../source --no-external --gcov-tool /usr/bin/gcov-6 | ||
- run: lcov --output-file coverage.info --remove coverage.info source/detail/serialization/miniz.cpp | ||
- run: i=$(dirname $(pwd)) | ||
- run: sed -i "s|$i/||" coverage.info | ||
- run: cd .. | ||
- run: coveralls-lcov build/coverage.info | ||
|
||
workflows: | ||
build: | ||
jobs: | ||
- build: | ||
name: tests | ||
matrix: | ||
parameters: | ||
cxx-ver: | ||
- "11" | ||
- "17" | ||
build-type: | ||
- Release | ||
- Debug | ||
static: | ||
- "ON" | ||
- "OFF" | ||
- build: | ||
name: samples-benchmarks-coverage | ||
cxx-ver: "11" | ||
build-type: Debug | ||
static: "ON" | ||
samples: "ON" | ||
benchmarks: "ON" | ||
coverage: "OFF" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: DontAlign | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignOperands: false | ||
AlignTrailingComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: None | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: true | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterObjCDeclaration: true | ||
AfterStruct: true | ||
AfterUnion: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeBraces: Custom | ||
ColumnLimit: 0 | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
Cpp11BracedListStyle: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
IncludeCategories: | ||
- Regex: '^<xlnt/xlnt_config.hpp>$' | ||
Priority: 2 | ||
- Regex: '^<xlnt/' | ||
Priority: 3 | ||
- Regex: '^<detail/' | ||
Priority: 4 | ||
- Regex: '^<.*>&' | ||
Priority: 1 | ||
- Regex: '^".*"' | ||
Priority: 5 | ||
IndentCaseLabels: false | ||
IndentWidth: 4 | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
Language: Cpp | ||
NamespaceIndentation: None | ||
MaxEmptyLinesToKeep: 1 | ||
PenaltyBreakComment: 1000 | ||
PointerAlignment: Right | ||
SortIncludes: true | ||
SpaceAfterCStyleCast: false | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: true | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
UseTab: Never | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
build/ | ||
docs/build/ | ||
docs/doxyxml/ | ||
node_modules/ | ||
*.obj | ||
*.sdf | ||
*.suo | ||
*.opensdf | ||
*.vcxproj.user | ||
*.o | ||
#*# | ||
*~ | ||
.DS_Store | ||
__pycache__/ | ||
Win32/ | ||
*.pyd | ||
python/record.txt | ||
python/xlntpyarrow.egg-info/ | ||
/x64/ | ||
.envrc | ||
.vscode | ||
/dist/ | ||
/.vs/ | ||
/out/ | ||
/CMakeSettings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "third-party/libstudxml"] | ||
path = third-party/libstudxml | ||
url = https://git.codesynthesis.com/libstudxml/libstudxml.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"git": { | ||
"commitMessage": "release v${version}", | ||
"requireBranch": "master", | ||
"requireCommits": true, | ||
"tagAnnotation": "release v${version}", | ||
"tagName": "v${version}" | ||
}, | ||
"github": { | ||
"release": true, | ||
"releaseName": "xlnt v${version}" | ||
}, | ||
"npm": { | ||
"publish": false | ||
}, | ||
"plugins": { | ||
"@release-it/bumper": { | ||
"out": { | ||
"file": "source/CMakeLists.txt", | ||
"type": "text/plain" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This project was started by Thomas Fussell. | ||
|
||
It was initially inspired by the openpyxl library: https://openpyxl.readthedocs.org | ||
|
||
Thanks to everyone who has contributed to this project (in alphabetical order): | ||
|
||
* adam-nielsen | ||
* Malvineous | ||
* sukoi26 | ||
* tpmccallum | ||
* xpol | ||
|
||
Project logo designed by Thomas Fussell. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Change Log | ||
|
||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
Every release is documented on the Github [Releases](https://github.com/tfussell/xlnt/releases) page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(xlnt_all) | ||
|
||
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>") | ||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>") | ||
|
||
# CTest setup | ||
# include (CTest) # Add this for valgrind support; CTest works without it | ||
enable_testing() | ||
|
||
# This indicates to CMakeLists in subdirectories that they are part of a larger project | ||
set(COMBINED_PROJECT TRUE) | ||
|
||
# Library type | ||
option(STATIC "Set to ON to build xlnt as a static library instead of a shared library" OFF) | ||
|
||
# c++ language standard to use | ||
set(XLNT_VALID_LANGS 11 14 17) | ||
set(XLNT_CXX_LANG "14" CACHE STRING "c++ language features to compile with") | ||
# enumerate allowed values for cmake gui | ||
set_property(CACHE XLNT_CXX_LANG PROPERTY STRINGS ${XLNT_VALID_LANGS}) | ||
# validate value is in XLNT_VALID_LANGS | ||
list(FIND XLNT_VALID_LANGS ${XLNT_CXX_LANG} index) | ||
if(index EQUAL -1) | ||
message(FATAL_ERROR "XLNT_CXX_LANG must be one of ${XLNT_VALID_LANGS}") | ||
endif() | ||
|
||
|
||
# Optional components | ||
option(TESTS "Set to ON to build test executable (in ./tests)" OFF) | ||
option(SAMPLES "Set to ON to build executable code samples (in ./samples)" OFF) | ||
option(BENCHMARKS "Set to ON to build performance benchmarks (in ./benchmarks)" OFF) | ||
option(PYTHON "Set to ON to build Arrow conversion functions (in ./python)" OFF) | ||
|
||
# Platform specific options | ||
if(MSVC) | ||
option(STATIC_CRT "Link with the static version of MSVCRT (/MD[d])" OFF) | ||
else() | ||
option(COVERAGE "Generate coverage data using gcov" OFF) | ||
endif() | ||
|
||
# Add components according to selected options | ||
if(SAMPLES) | ||
add_subdirectory(samples) | ||
endif() | ||
|
||
if(BENCHMARKS) | ||
add_subdirectory(benchmarks) | ||
endif() | ||
|
||
if(TESTS) | ||
add_subdirectory(tests) | ||
endif() | ||
|
||
if(PYTHON) | ||
add_subdirectory(python) | ||
endif() | ||
|
||
add_subdirectory(source) |
Oops, something went wrong.