mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
organize files
This commit is contained in:
parent
fc4d284615
commit
83cbc3f7eb
|
@ -65,15 +65,17 @@ file(GLOB WORKSHEET_HEADERS ${XLNT_INCLUDE_DIR}/xlnt/worksheet/*.hpp)
|
||||||
file(GLOB WORKSHEET_SOURCES ${XLNT_SOURCE_DIR}/worksheet/*.cpp)
|
file(GLOB WORKSHEET_SOURCES ${XLNT_SOURCE_DIR}/worksheet/*.cpp)
|
||||||
file(GLOB DETAIL_HEADERS ${XLNT_SOURCE_DIR}/detail/*.hpp)
|
file(GLOB DETAIL_HEADERS ${XLNT_SOURCE_DIR}/detail/*.hpp)
|
||||||
file(GLOB DETAIL_SOURCES ${XLNT_SOURCE_DIR}/detail/*.cpp)
|
file(GLOB DETAIL_SOURCES ${XLNT_SOURCE_DIR}/detail/*.cpp)
|
||||||
|
file(GLOB DETAIL_CRYPTO_HEADERS ${XLNT_SOURCE_DIR}/detail/crypto/*.hpp)
|
||||||
|
file(GLOB DETAIL_CRYPTO_SOURCES ${XLNT_SOURCE_DIR}/detail/crypto/*.cpp)
|
||||||
|
|
||||||
set(XLNT_HEADERS ${ROOT_HEADERS} ${CELL_HEADERS} ${CHARTS_HEADERS}
|
set(XLNT_HEADERS ${ROOT_HEADERS} ${CELL_HEADERS} ${CHARTS_HEADERS}
|
||||||
${CHARTSHEET_HEADERS} ${DRAWING_HEADERS} ${FORMULA_HEADERS}
|
${CHARTSHEET_HEADERS} ${DRAWING_HEADERS} ${FORMULA_HEADERS}
|
||||||
${PACKAGING_HEADERS} ${STYLES_HEADERS} ${UTILS_HEADERS}
|
${PACKAGING_HEADERS} ${STYLES_HEADERS} ${UTILS_HEADERS}
|
||||||
${WORKBOOK_HEADERS} ${WORKSHEET_HEADERS} ${DETAIL_HEADERS})
|
${WORKBOOK_HEADERS} ${WORKSHEET_HEADERS} ${DETAIL_HEADERS} ${DETAIL_CRYPTO_HEADERS})
|
||||||
set(XLNT_SOURCES ${CELL_SOURCES} ${CHARTS_SOURCES} ${CHARTSHEET_SOURCES}
|
set(XLNT_SOURCES ${CELL_SOURCES} ${CHARTS_SOURCES} ${CHARTSHEET_SOURCES}
|
||||||
${DRAWING_SOURCES} ${FORMULA_SOURCES} ${PACKAGING_SOURCES}
|
${DRAWING_SOURCES} ${FORMULA_SOURCES} ${PACKAGING_SOURCES}
|
||||||
${STYLES_SOURCES} ${UTILS_SOURCES} ${WORKBOOK_SOURCES}
|
${STYLES_SOURCES} ${UTILS_SOURCES} ${WORKBOOK_SOURCES}
|
||||||
${WORKSHEET_SOURCES} ${DETAIL_SOURCES})
|
${WORKSHEET_SOURCES} ${DETAIL_SOURCES} ${DETAIL_CRYPTO_SOURCES})
|
||||||
|
|
||||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||||
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/installed"
|
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/installed"
|
||||||
|
@ -135,6 +137,7 @@ endif()
|
||||||
|
|
||||||
source_group(xlnt FILES ${ROOT_HEADERS})
|
source_group(xlnt FILES ${ROOT_HEADERS})
|
||||||
source_group(detail FILES ${DETAIL_HEADERS} ${DETAIL_SOURCES})
|
source_group(detail FILES ${DETAIL_HEADERS} ${DETAIL_SOURCES})
|
||||||
|
source_group(detail\\crypto FILES ${DETAIL_CRYPTO_HEADERS} ${DETAIL_CRYPTO_SOURCES})
|
||||||
source_group(cell FILES ${CELL_HEADERS} ${CELL_SOURCES})
|
source_group(cell FILES ${CELL_HEADERS} ${CELL_SOURCES})
|
||||||
source_group(charts FILES ${CHARTS_HEADERS} ${CHARTS_SOURCES})
|
source_group(charts FILES ${CHARTS_HEADERS} ${CHARTS_SOURCES})
|
||||||
source_group(chartsheet FILES ${CHARTSHEET_HEADERS} ${CHARTSHEET_SOURCES})
|
source_group(chartsheet FILES ${CHARTSHEET_HEADERS} ${CHARTSHEET_SOURCES})
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
|
|
||||||
*
|
|
||||||
* LibTomCrypt is a library that provides various cryptographic
|
|
||||||
* algorithms in a highly modular and flexible manner.
|
|
||||||
*
|
|
||||||
* The library is free for all purposes without any express
|
|
||||||
* guarantee it works.
|
|
||||||
*
|
|
||||||
* Tom St Denis, tomstdenis@gmail.com, http://libtom.org
|
|
||||||
*/
|
|
||||||
/* The precomputed tables for AES */
|
|
||||||
/*
|
|
||||||
Te0[x] = S [x].[02, 01, 01, 03];
|
|
||||||
Te1[x] = S [x].[03, 02, 01, 01];
|
|
||||||
Te2[x] = S [x].[01, 03, 02, 01];
|
|
||||||
Te3[x] = S [x].[01, 01, 03, 02];
|
|
||||||
Te4[x] = S [x].[01, 01, 01, 01];
|
|
||||||
|
|
||||||
Td0[x] = Si[x].[0e, 09, 0d, 0b];
|
|
||||||
Td1[x] = Si[x].[0b, 0e, 09, 0d];
|
|
||||||
Td2[x] = Si[x].[0d, 0b, 0e, 09];
|
|
||||||
Td3[x] = Si[x].[09, 0d, 0b, 0e];
|
|
||||||
Td4[x] = Si[x].[01, 01, 01, 01];
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
@file aes_tab.c
|
|
||||||
AES tables
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* $Source$ */
|
|
||||||
/* $Revision$ */
|
|
||||||
/* $Date$ */
|
|
|
@ -32,12 +32,14 @@
|
||||||
|
|
||||||
#include "aes.hpp"
|
#include "aes.hpp"
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wold-style-cast"
|
#pragma clang diagnostic ignored "-Wold-style-cast"
|
||||||
#pragma clang diagnostic ignored "-Wdocumentation"
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
||||||
#pragma clang diagnostic ignored "-Wwritable-strings"
|
#pragma clang diagnostic ignored "-Wwritable-strings"
|
||||||
|
#pragma clang diagnostic ignored "-Wsign-conversion"
|
||||||
|
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
#define LTC_NO_ROLC
|
#define LTC_NO_ROLC
|
||||||
#include "tomcrypt.h"
|
#include "tomcrypt.h"
|
||||||
|
@ -1736,8 +1738,6 @@ int ecb_start(int cipher, const unsigned char *key, int keylen, int num_rounds,
|
||||||
return cipher_descriptor[cipher].setup(key, keylen, num_rounds, &ecb->key);
|
return cipher_descriptor[cipher].setup(key, keylen, num_rounds, &ecb->key);
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma clang diagnostic pop
|
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
|
@ -1818,3 +1818,4 @@ std::vector<std::uint8_t> xaes_cbc_decrypt(
|
||||||
|
|
||||||
} // namespace xlnt
|
} // namespace xlnt
|
||||||
|
|
||||||
|
#pragma clang diagnostic pop
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
#include "sha.hpp"
|
#include "sha.hpp"
|
||||||
|
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wsign-conversion"
|
||||||
|
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
||||||
|
|
||||||
namespace SHA1 {
|
namespace SHA1 {
|
||||||
|
|
||||||
class SHA1
|
class SHA1
|
||||||
|
@ -519,3 +523,5 @@ std::vector<std::uint8_t> SHA::sha512(const std::vector<std::uint8_t> &data)
|
||||||
{
|
{
|
||||||
return SHA512::digest(data);
|
return SHA512::digest(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma clang diagnostic pop
|
|
@ -21,11 +21,11 @@
|
||||||
// @license: http://www.opensource.org/licenses/mit-license.php
|
// @license: http://www.opensource.org/licenses/mit-license.php
|
||||||
// @author: see AUTHORS file
|
// @author: see AUTHORS file
|
||||||
|
|
||||||
#include <detail/aes.hpp>
|
#include <detail/crypto/aes.hpp>
|
||||||
#include <detail/base64.hpp>
|
#include <detail/crypto/base64.hpp>
|
||||||
#include <detail/sha.hpp>
|
#include <detail/crypto/sha.hpp>
|
||||||
#include <detail/default_case.hpp>
|
#include <detail/default_case.hpp>
|
||||||
#include <detail/xlsx_crypto.hpp>
|
#include <detail/crypto/xlsx_crypto.hpp>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
/* file : xml/details/config.h.in
|
|
||||||
* copyright : Copyright (c) 2013-2014 Code Synthesis Tools CC
|
|
||||||
* license : MIT; see accompanying LICENSE file
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* This file is automatically processed by configure. */
|
|
||||||
|
|
||||||
#ifndef XML_DETAILS_CONFIG_H
|
|
||||||
#define XML_DETAILS_CONFIG_H
|
|
||||||
|
|
||||||
#undef LIBSTUDXML_STATIC_LIB
|
|
||||||
#define LIBSTUDXML_STATIC_LIB
|
|
||||||
#undef LIBSTUDXML_EXTERNAL_EXPAT
|
|
||||||
#undef LIBSTUDXML_BYTEORDER
|
|
||||||
|
|
||||||
#endif /* XML_DETAILS_CONFIG_H */
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include <cxxtest/TestSuite.h>
|
#include <cxxtest/TestSuite.h>
|
||||||
|
|
||||||
#include <detail/vector_streambuf.hpp>
|
#include <detail/vector_streambuf.hpp>
|
||||||
#include <detail/xlsx_crypto.hpp>
|
#include <detail/crypto/xlsx_crypto.hpp>
|
||||||
#include <helpers/path_helper.hpp>
|
#include <helpers/path_helper.hpp>
|
||||||
#include <helpers/xml_helper.hpp>
|
#include <helpers/xml_helper.hpp>
|
||||||
#include <xlnt/workbook/workbook.hpp>
|
#include <xlnt/workbook/workbook.hpp>
|
||||||
|
|
2
third-party/libstudxml/CMakeLists.txt
vendored
2
third-party/libstudxml/CMakeLists.txt
vendored
|
@ -28,8 +28,6 @@ set(GENX
|
||||||
set(EXPAT
|
set(EXPAT
|
||||||
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmlparse.c
|
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmlparse.c
|
||||||
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmlrole.c
|
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmlrole.c
|
||||||
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmltok_impl.c
|
|
||||||
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmltok_ns.c
|
|
||||||
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmltok.c
|
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/xmltok.c
|
||||||
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/ascii.h
|
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/ascii.h
|
||||||
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/asciitab.h
|
${LIBSTUDXML_ROOT_DIR}/xml/details/expat/asciitab.h
|
||||||
|
|
Loading…
Reference in New Issue
Block a user