1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00

Fix typos

This commit is contained in:
Andreas Deininger 2024-02-29 21:21:47 +01:00 committed by Daniel Nicoletti
parent 1f2ca71b81
commit 073bec284d
29 changed files with 62 additions and 62 deletions

View File

@ -1,6 +1,6 @@
# CMakeLists.txt for Console Application
# TODO: Set minumum cmake version
# TODO: Set minimum cmake version
cmake_minimum_required(VERSION 3.14)
# TODO: Set project name

View File

@ -91,7 +91,7 @@ QVariant XlsxTableModel::data(const QModelIndex &index, int role) const
int col = index.column();
int row = index.row();
// check boudaries
// check boundaries
if (col < 0 || columnCount() <= col || row < 0 || rowCount() <= row) {
qDebug() << "[Warning]"
<< " col=" << col << ", row=" << row;

View File

@ -32,7 +32,7 @@ class XlsxTableModel : public QAbstractTableModel
public:
QStringList customRoleNames();
public: // constrcutor
public: // constructor
XlsxTableModel(const QList<QString> &colTitle, QList<VLIST> data, QObject *parent = NULL);
public: // virtual function of parent object

View File

@ -1,6 +1,6 @@
# CMakeLists.txt for Console Application
# TODO: Set minumum cmake version
# TODO: Set minimum cmake version
cmake_minimum_required(VERSION 3.14)
# TODO: Set project name

View File

@ -89,7 +89,7 @@ include(./QXlsx.pri)
<br /><br />
:one::one: Set heaer files and namespace for sample. Then append hello world code.
:one::one: Set header files and namespace for sample. Then append hello world code.
![](markdown.data/11.jpg)

View File

@ -1,6 +1,6 @@
# CMakeLists.txt for Console Application
# TODO: Set minumum cmake version
# TODO: Set minimum cmake version
cmake_minimum_required(VERSION 3.14)
# TODO: Set project name

View File

@ -140,7 +140,7 @@ public:
bool majorGridlinesEnabled;
bool minorGridlinesEnabled;
QString layout; // only for storing a readed file
QString layout; // only for storing a read file
};
QT_END_NAMESPACE_XLSX

View File

@ -21,7 +21,7 @@ public:
void addDefault(const QString &key, const QString &value);
void addOverride(const QString &key, const QString &value);
// Convenient funcation for addOverride()
// Convenient function for addOverride()
void addDocPropCore();
void addDocPropApp();
void addStyles();

View File

@ -104,7 +104,7 @@ protected:
// BELOW only for cxnSp shape
QString cxnSp_filpV, cxnSp_macro;
// belwo for cxnsp and sp
// below for cxnsp and sp
QString xsp_cNvPR_name, xsp_cNvPR_id; // x measns shape and cxnSp together using
QString xbwMode; // same as above
QString xIn_algn, xIn_cmpd, xIn_cap, xIn_w; // cxnSp only need xIn_w

View File

@ -40,7 +40,7 @@ AbstractSheetPrivate::~AbstractSheetPrivate()
\value SS_Visible
\value SS_Hidden
\value SS_VeryHidden User cann't make a veryHidden sheet visible in normal way.
\value SS_VeryHidden User can't make a veryHidden sheet visible in normal way.
*/
/*!
@ -140,7 +140,7 @@ bool AbstractSheet::isVisible() const
}
/*!
* Make the sheet hiden or visible based on \a hidden.
* Make the sheet hidden or visible based on \a hidden.
*/
void AbstractSheet::setHidden(bool hidden)
{

View File

@ -45,10 +45,10 @@ CellPrivate::CellPrivate(const CellPrivate *const cp)
/*!
\enum Cell::CellType
\value BooleanType Boolean type
\value NumberType Number type, can be blank or used with forumula
\value NumberType Number type, can be blank or used with formula
\value ErrorType Error type
\value SharedStringType Shared string type
\value StringType String type, can be used with forumula
\value StringType String type, can be used with formula
\value InlineStringType Inline string type
*/

View File

@ -157,7 +157,7 @@ int CellFormula::sharedIndex() const
return d && d->type == SharedType ? d->si : (-1);
}
/* aca (Always Calculate Array) // not-implmented attribute
/* aca (Always Calculate Array) // not-implemented attribute
*
* Only applies to array formulas.
*
@ -175,7 +175,7 @@ int CellFormula::sharedIndex() const
* boolean datatype.
*/
/* bx (Assigns Value to Name) // not-implmented attribute
/* bx (Assigns Value to Name) // not-implemented attribute
*
* Specifies that this formula assigns a value to a name.
*
@ -183,7 +183,7 @@ int CellFormula::sharedIndex() const
* Schema boolean datatype.
*/
/* del1 (Input 1 Deleted) // not-implmented attribute
/* del1 (Input 1 Deleted) // not-implemented attribute
*
* Whether the first input cell for data table has been deleted.
* Applies to data table formula only. Written on master cell of data table
@ -193,7 +193,7 @@ int CellFormula::sharedIndex() const
* boolean datatype.
*/
/* del2 (Input 2 Deleted) // not-impplmented attribute
/* del2 (Input 2 Deleted) // not-implemented attribute
*
* Whether the second input cell for data table has been deleted.
* Applies to data table formula only. Written on master cell of data
@ -203,18 +203,18 @@ int CellFormula::sharedIndex() const
* boolean datatype.
*/
/* dt2D (Data Table 2-D) // not-implmented attribute
/* dt2D (Data Table 2-D) // not-implemented attribute
*
* Data table is two-dimentional. Only applies to the data tables function.
* Data table is two-dimensional. Only applies to the data tables function.
* Written on master cell of data table formula only.
*
* The possible values for this attribute are defined by the W3C XML Schema
* boolean datatype.
*/
/* dtr (Data Table Row) // not-implmented attribute
/* dtr (Data Table Row) // not-implemented attribute
*
* true if one-dimentional data table is a row, otherwise it's a column.
* true if one-dimensional data table is a row, otherwise it's a column.
* Only applies to the data tables function. Written on master cell of data
* table formula only.
*
@ -222,7 +222,7 @@ int CellFormula::sharedIndex() const
* boolean datatype.
*/
/* r1 (Data Table Cell 1) // not-implmented attribute
/* r1 (Data Table Cell 1) // not-implemented attribute
*
* First input cell for data table. Only applies to the data tables array
* function "TABLE()". Written on master cell of data table formula only.
@ -231,7 +231,7 @@ int CellFormula::sharedIndex() const
* simple type (§18.18.7).
*/
/* r2 (Input Cell 2) // not-implmented attribute
/* r2 (Input Cell 2) // not-implemented attribute
*
* Second input cell for data table when dt2D is '1'. Only applies to the
* data tables array function "TABLE()".Written on master cell of data table

View File

@ -160,7 +160,7 @@ ConditionalFormatting::~ConditionalFormatting()
}
/*!
* Add a hightlight rule with the given \a type, \a formula1, \a formula2,
* Add a highlight rule with the given \a type, \a formula1, \a formula2,
* \a format and \a stopIfTrue.
* Return false if failed.
*/
@ -301,7 +301,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,
/*!
* \overload
*
* Add a hightlight rule with the given \a type \a format and \a stopIfTrue.
* Add a highlight rule with the given \a type \a format and \a stopIfTrue.
*/
bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,
const Format &format,
@ -318,7 +318,7 @@ bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,
/*!
* \overload
*
* Add a hightlight rule with the given \a type, \a formula, \a format and \a stopIfTrue.
* Add a highlight rule with the given \a type, \a formula, \a format and \a stopIfTrue.
* Return false if failed.
*/
bool ConditionalFormatting::addHighlightCellsRule(HighlightRuleType type,

View File

@ -318,7 +318,7 @@ void DataValidation::setPromptMessage(const QString &prompt, const QString &titl
}
/*!
Enable/disabe blank allow based on \a enable.
Enable/disable blank allow based on \a enable.
*/
void DataValidation::setAllowBlank(bool enable)
{
@ -326,7 +326,7 @@ void DataValidation::setAllowBlank(bool enable)
}
/*!
Enable/disabe prompt message visible based on \a visible.
Enable/disable prompt message visible based on \a visible.
*/
void DataValidation::setPromptMessageVisible(bool visible)
{
@ -334,7 +334,7 @@ void DataValidation::setPromptMessageVisible(bool visible)
}
/*!
Enable/disabe error message visible based on \a visible.
Enable/disable error message visible based on \a visible.
*/
void DataValidation::setErrorMessageVisible(bool visible)
{

View File

@ -656,7 +656,7 @@ QVariant Document::read(int row, int col) const
/*!
* Insert an \a image to current active worksheet at the position \a row, \a column
* Returns ture if success.
* Returns true if success.
*/
int Document::insertImage(int row, int column, const QImage &image)
{
@ -739,7 +739,7 @@ bool Document::setColumnWidth(const CellRange &range, double width)
}
/*!
Sets format property of columns with the gien \a range and \a format.
Sets format property of columns with the given \a range and \a format.
Returns true on success.
*/
bool Document::setColumnFormat(const CellRange &range, const Format &format)
@ -1034,7 +1034,7 @@ Cell *Document::cellAt(int row, int col) const
*
* \param name The defined name.
* \param formula The cell or range that the defined name refers to.
* \param scope The name of one worksheet, or empty which means golbal scope.
* \param scope The name of one worksheet, or empty which means global scope.
* \return Return false if the name invalid.
*/
bool Document::defineName(const QString &name,

View File

@ -1131,7 +1131,7 @@ bool DrawingTwoCellAnchor::loadFromXml(QXmlStreamReader &reader)
//{{ liufeijin
QXmlStreamAttributes attrs =
reader.attributes(); // for absolute twocell aadd by liufeijin 20181024
reader.attributes(); // for absolute twocell added by liufeijin 20181024
editASName = attrs.value(QLatin1String("editAs")).toString();
//}}

View File

@ -632,7 +632,7 @@ int Format::rotation() const
}
/*!
* Set the text roation with the given \a rotation. Must be in the range [0, 180] or 255.
* Set the text rotation with the given \a rotation. Must be in the range [0, 180] or 255.
*/
void Format::setRotation(int rotation)
{
@ -1272,7 +1272,7 @@ bool Format::dxfIndexValid() const
}
/*!
Returns ture if the \a format is equal to this format.
Returns true if the \a format is equal to this format.
*/
bool Format::operator==(const Format &format) const
{
@ -1280,7 +1280,7 @@ bool Format::operator==(const Format &format) const
}
/*!
Returns ture if the \a format is not equal to this format.
Returns true if the \a format is not equal to this format.
*/
bool Format::operator!=(const Format &format) const
{

View File

@ -64,7 +64,7 @@ int SharedStrings::addSharedString(const RichString &string)
void SharedStrings::incRefByStringIndex(int idx)
{
if (idx < 0 || idx >= m_stringList.size()) {
qDebug("SharedStrings: invlid index");
qDebug("SharedStrings: invalid index");
return;
}

View File

@ -503,8 +503,8 @@ void Styles::writeFill(QXmlStreamWriter &writer, const Format &fill, bool isDxf)
writer.writeStartElement(QStringLiteral("fill"));
writer.writeStartElement(QStringLiteral("patternFill"));
Format::FillPattern pattern = fill.fillPattern();
// For normal fill formats, Excel prefer to outputing the default "none" attribute
// But for dxf, Excel prefer to omiting the default "none"
// For normal fill formats, Excel prefer to outputting the default "none" attribute
// But for dxf, Excel prefer to omitting the default "none"
// Though not make any difference, but it make easier to compare origin files with generate
// files during debug
if (!(pattern == Format::PatternNone && isDxf))
@ -585,7 +585,7 @@ void Styles::writeBorder(QXmlStreamWriter &writer, const Format &border, bool is
border.property(FormatPrivate::P_Border_DiagonalColor).value<XlsxColor>());
if (isDxf) {
// writeSubBorder(wirter, QStringLiteral("vertical"), );
// writeSubBorder(writer, QStringLiteral("vertical"), );
// writeSubBorder(writer, QStringLiteral("horizontal"), );
}
@ -773,7 +773,7 @@ bool Styles::readNumFmts(QXmlStreamReader &reader)
const auto hasCount = attributes.hasAttribute(QLatin1String("count"));
const auto count = hasCount ? attributes.value(QLatin1String("count")).toInt() : -1;
// Read utill we find the numFmts end tag or ....
// Read until we find the numFmts end tag or ....
while (!reader.atEnd() && !(reader.tokenType() == QXmlStreamReader::EndElement &&
reader.name() == QLatin1String("numFmts"))) {
reader.readNextStartElement();

View File

@ -141,7 +141,7 @@ void Workbook::setDefaultDateFormat(const QString &format)
* \param name The defined name
* \param formula The cell or range that the defined name refers to.
* \param comment
* \param scope The name of one worksheet, or empty which means golbal scope.
* \param scope The name of one worksheet, or empty which means global scope.
* \return Return false if the name invalid.
*/
bool Workbook::defineName(const QString &name,

View File

@ -172,7 +172,7 @@ int WorksheetPrivate::checkDimensions(int row, int col, bool ignore_row, bool ig
Worksheet::Worksheet(const QString &name, int id, Workbook *workbook, CreateFlag flag)
: AbstractSheet(name, id, workbook, new WorksheetPrivate(this, flag))
{
if (!workbook) // For unit test propose only. Ignore the memery leak.
if (!workbook) // For unit test propose only. Ignore the memory leak.
d_func()->workbook = new Workbook(flag);
}
@ -456,7 +456,7 @@ bool Worksheet::write(int row, int column, const QVariant &value, const Format &
} else if (value.userType() == QMetaType::QDateTime) // dev67
{
// DateTime, Date
// note that, QTime cann't convert to QDateTime
// note that, QTime can't convert to QDateTime
ret = writeDateTime(row, column, value.toDateTime(), format);
} else if (value.userType() == QMetaType::QDate) // dev67
{
@ -2043,7 +2043,7 @@ bool Worksheet::setRowFormat(int rowFirst, int rowLast, const Format &format)
}
/*!
Sets the \a hidden proeprty of the rows including and between \a rowFirst and \a rowLast.
Sets the \a hidden property of the rows including and between \a rowFirst and \a rowLast.
Rows are 1-indexed. If hidden is true rows will not be visible.
Returns true if success.

View File

@ -1756,7 +1756,7 @@ const char *ft_to_string(const ft_table_t *table)
int (*snprint_n_strings_)(char *, size_t, size_t, const char *) = snprint_n_strings;
assert(table);
/* Determing size of table string representation */
/* Determining size of table string representation */
size_t height = 0;
size_t width = 0;
int status = table_geometry(table, &height, &width);
@ -1858,7 +1858,7 @@ const wchar_t *ft_to_wstring(const ft_table_t *table)
assert(table);
/* Determing size of table string representation */
/* Determining size of table string representation */
size_t height = 0;
size_t width = 0;
int status = table_geometry(table, &height, &width);

View File

@ -121,7 +121,7 @@ typedef int fort_status_t;
#define FT_STR_2_CAT(arg1, arg2) FT_STR_2_CAT_(arg1, arg2)
/**
* @interanl
* @internal
*/
static FT_INLINE int ft_check_if_string_helper(const char *str)
{
@ -130,7 +130,7 @@ static FT_INLINE int ft_check_if_string_helper(const char *str)
}
/**
* @interanl
* @internal
*/
static FT_INLINE int ft_check_if_wstring_helper(const wchar_t *str)
{
@ -331,7 +331,7 @@ void ft_set_cur_cell(ft_table_t *table, size_t row, size_t col);
#if defined(FT_CLANG_COMPILER) || defined(FT_GCC_COMPILER)
/**
* Write data formatted acording to the format string to a variety of table
* Write data formatted according to the format string to a variety of table
* cells.
*
* @param table
@ -341,7 +341,7 @@ void ft_set_cur_cell(ft_table_t *table, size_t row, size_t col);
* the data. The format string consists of ordinary characters (except % and |),
* which are copied unchanged into the output stream, and conversion
* specifications. Conversion specifications are the same as for standard
* printf function. Character '|' (wich can be changed with
* printf function. Character '|' (which can be changed with
* {@link ft_set_default_printf_field_separator}) in the format string is treated as
* a cell separator.
* @param ...
@ -358,7 +358,7 @@ void ft_set_cur_cell(ft_table_t *table, size_t row, size_t col);
int ft_printf(ft_table_t *table, const char *fmt, ...) FT_PRINTF_ATTRIBUTE_FORMAT(2, 3);
/**
* Write data formatted acording to the format string to a variety of table
* Write data formatted according to the format string to a variety of table
* cells and move current position to the first cell of the next line(row).
*
* @param table
@ -368,7 +368,7 @@ int ft_printf(ft_table_t *table, const char *fmt, ...) FT_PRINTF_ATTRIBUTE_FORMA
* the data. The format string consists of ordinary characters (except % and |),
* which are copied unchanged into the output stream, and conversion
* specifications. Conversion specifications are the same as for standard
* printf function. Character '|' (wich can be changed with
* printf function. Character '|' (which can be changed with
* {@link ft_set_default_printf_field_separator}) in the format string is treated as
* a cell separator.
* @param ...

View File

@ -371,7 +371,7 @@ public:
}
/**
* Copy contstructor.
* Copy constructor.
*/
table(const table& tbl)
:property_owner(FT_ANY_ROW, FT_ANY_COLUMN, this), table_(NULL)
@ -390,7 +390,7 @@ public:
}
/**
* Move contstructor.
* Move constructor.
*/
table(table&& tbl)
:property_owner(FT_ANY_ROW, FT_ANY_COLUMN, this), table_(tbl.table_)
@ -488,7 +488,7 @@ public:
* std::ostream is used.
*
* @param arg
* Obect that would be inserted in the current cell.
* Object that would be inserted in the current cell.
* @return
* - Reference to the current table.
*/

View File

@ -80,7 +80,7 @@ int readGoogleSpreadsheet()
}
}
/* Deug Output
/* Debug Output
1 QVariant(double, 1) , style: 1 ""
2 QVariant(QString, "2") , style: 2 ""
3 QVariant(double, 3) , style: 3 ""
@ -96,7 +96,7 @@ int readGoogleSpreadsheet()
am/pm h:mm:ss" 13 QVariant(QString, "312:0:0") , style: 13 ""
*/
/* Testing fo read google spreadsheet file (made by google docs)
/* Testing of read google spreadsheet file (made by google docs)
https://github.com/j2doll/QXlsx/blob/master/image/LibreOffice-Google-XLSX.png
1 QVariant(double, 1) OK:it's auto style (1)

View File

@ -1,6 +1,6 @@
# To Test
- The following tests should be performed.
- Microsoft Excel, Google Spreadsheet, LibreOffice Calc Spreasheet
- Microsoft Excel, Google Spreadsheet, LibreOffice Calc Spreadsheet
- Unicode test (filename :cloud:, filepath :cloud:, data value :sunny:)

View File

@ -151,7 +151,7 @@ namespace Recurse
//!
//! \brief The HttpServer class
//! Http (unsecure) server class
//! Http (insecure) server class
//!
class HttpServer : public QObject
{

View File

@ -52,7 +52,7 @@ public:
//!
//! \brief secure
//! Shorthand for protocol == "HTTPS" to check if a requet was issued via TLS
//! Shorthand for protocol == "HTTPS" to check if a request was issued via TLS
//!
bool secure = protocol == "HTTPS";

View File

@ -1,6 +1,6 @@
# CMakeLists.txt for Console Application
# TODO: Set minumum cmake version
# TODO: Set minimum cmake version
cmake_minimum_required(VERSION 3.14)
# TODO: Set project name