From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx.html | 905 ++++++++++++++++++++++----------------------------------- 1 file changed, 355 insertions(+), 550 deletions(-) (limited to 'doc/Axlsx.html') diff --git a/doc/Axlsx.html b/doc/Axlsx.html index 0dc974f7..956a23f1 100644 --- a/doc/Axlsx.html +++ b/doc/Axlsx.html @@ -81,15 +81,14 @@

Overview

-

-xlsx generation with charts, images, automated column width, customizable + +

xlsx generation with charts, images, automated column width, customizable styles and full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all, you can validate your xlsx file before serialization so you know for sure that anything generated is going -to load on your client’s machine. -

+to load on your client's machine.

@@ -117,9 +116,8 @@ to load on your client’s machine.
VERSION =
-

-version -

+ +

version

@@ -129,15 +127,13 @@ version
-
"1.0.10a"
-
+
"1.0.10a"
ENCODING =
-

-XML Encoding -

+ +

XML Encoding

@@ -147,15 +143,13 @@ XML Encoding
-
"UTF-8"
-
+
"UTF-8"
XML_NS =
-

-spreadsheetML namespace -

+ +

spreadsheetML namespace

@@ -165,15 +159,13 @@ spreadsheetML namespace
-
"http://schemas.openxmlformats.org/spreadsheetml/2006/main"
-
+
"http://schemas.openxmlformats.org/spreadsheetml/2006/main"
XML_NS_T =
-

-content-types namespace -

+ +

content-types namespace

@@ -183,15 +175,13 @@ content-types namespace
-
"http://schemas.openxmlformats.org/package/2006/content-types"
-
+
"http://schemas.openxmlformats.org/package/2006/content-types"
APP_NS =
-

-extended-properties namespace -

+ +

extended-properties namespace

@@ -201,15 +191,13 @@ extended-properties namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
APP_NS_VT =
-

-doc props namespace -

+ +

doc props namespace

@@ -219,15 +207,13 @@ doc props namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
CORE_NS =
-

-core properties namespace -

+ +

core properties namespace

@@ -237,15 +223,13 @@ core properties namespace
-
"http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
-
+
"http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
CORE_NS_DC =
-

-dc elements (core) namespace -

+ +

dc elements (core) namespace

@@ -255,15 +239,13 @@ dc elements (core) namespace
-
"http://purl.org/dc/elements/1.1/"
-
+
"http://purl.org/dc/elements/1.1/"
CORE_NS_DCMIT =
-

-dcmit (core) namespcace -

+ +

dcmit (core) namespcace

@@ -273,15 +255,13 @@ dcmit (core) namespcace
-
"http://purl.org/dc/dcmitype/"
-
+
"http://purl.org/dc/dcmitype/"
CORE_NS_DCT =
-

-dc terms namespace -

+ +

dc terms namespace

@@ -291,15 +271,13 @@ dc terms namespace
-
"http://purl.org/dc/terms/"
-
+
"http://purl.org/dc/terms/"
CORE_NS_XSI =
-

-xml schema namespace -

+ +

xml schema namespace

@@ -309,15 +287,13 @@ xml schema namespace
-
"http://www.w3.org/2001/XMLSchema-instance"
-
+
"http://www.w3.org/2001/XMLSchema-instance"
XML_NS_XDR =
-

-spreadsheet drawing namespace -

+ +

spreadsheet drawing namespace

@@ -327,15 +303,13 @@ spreadsheet drawing namespace
-
"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
-
+
"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
XML_NS_A =
-

-drawing namespace -

+ +

drawing namespace

@@ -345,15 +319,13 @@ drawing namespace
-
"http://schemas.openxmlformats.org/drawingml/2006/main"
-
+
"http://schemas.openxmlformats.org/drawingml/2006/main"
XML_NS_C =
-

-chart namespace -

+ +

chart namespace

@@ -363,15 +335,13 @@ chart namespace
-
"http://schemas.openxmlformats.org/drawingml/2006/chart"
-
+
"http://schemas.openxmlformats.org/drawingml/2006/chart"
XML_NS_R =
-

-relationships namespace -

+ +

relationships namespace

@@ -381,15 +351,13 @@ relationships namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships"
RELS_R =
-

-relationships name space -

+ +

relationships name space

@@ -399,15 +367,13 @@ relationships name space
-
"http://schemas.openxmlformats.org/package/2006/relationships"
-
+
"http://schemas.openxmlformats.org/package/2006/relationships"
TABLE_R =
-

-table rels namespace -

+ +

table rels namespace

@@ -417,15 +383,13 @@ table rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"
WORKBOOK_R =
-

-workbook rels namespace -

+ +

workbook rels namespace

@@ -435,15 +399,13 @@ workbook rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
WORKSHEET_R =
-

-worksheet rels namespace -

+ +

worksheet rels namespace

@@ -453,15 +415,13 @@ worksheet rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"
APP_R =
-

-app rels namespace -

+ +

app rels namespace

@@ -471,15 +431,13 @@ app rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
CORE_R =
-

-core rels namespace -

+ +

core rels namespace

@@ -489,15 +447,13 @@ core rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/metadata/core-properties"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/metadata/core-properties"
STYLES_R =
-

-styles rels namespace -

+ +

styles rels namespace

@@ -507,15 +463,13 @@ styles rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"
DRAWING_R =
-

-drawing rels namespace -

+ +

drawing rels namespace

@@ -525,15 +479,13 @@ drawing rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"
CHART_R =
-

-chart rels namespace -

+ +

chart rels namespace

@@ -543,15 +495,13 @@ chart rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"
IMAGE_R =
-

-image rels namespace -

+ +

image rels namespace

@@ -561,15 +511,13 @@ image rels namespace
-
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
-
+
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
TABLE_CT =
-

-table content type -

+ +

table content type

@@ -579,15 +527,13 @@ table content type
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"
-
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"
WORKBOOK_CT =
-

-workbook content type -

+ +

workbook content type

@@ -597,15 +543,13 @@ workbook content type
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"
-
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"
APP_CT =
-

-app content type -

+ +

app content type

@@ -615,15 +559,13 @@ app content type
-
"application/vnd.openxmlformats-officedocument.extended-properties+xml"
-
+
"application/vnd.openxmlformats-officedocument.extended-properties+xml"
RELS_CT =
-

-rels content type -

+ +

rels content type

@@ -633,15 +575,13 @@ rels content type
-
"application/vnd.openxmlformats-package.relationships+xml"
-
+
"application/vnd.openxmlformats-package.relationships+xml"
STYLES_CT =
-

-styles content type -

+ +

styles content type

@@ -651,15 +591,13 @@ styles content type
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"
-
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"
XML_CT =
-

-xml content type -

+ +

xml content type

@@ -669,15 +607,13 @@ xml content type
-
"application/xml"
-
+
"application/xml"
WORKSHEET_CT =
-

-worksheet content type -

+ +

worksheet content type

@@ -687,15 +623,13 @@ worksheet content type
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"
-
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"
SHARED_STRINGS_CT =
-

-shared strings content type -

+ +

shared strings content type

@@ -705,15 +639,13 @@ shared strings content type
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"
-
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"
CORE_CT =
-

-core content type -

+ +

core content type

@@ -723,15 +655,13 @@ core content type
-
"application/vnd.openxmlformats-package.core-properties+xml"
-
+
"application/vnd.openxmlformats-package.core-properties+xml"
CHART_CT =
-

-chart content type -

+ +

chart content type

@@ -741,15 +671,13 @@ chart content type
-
"application/vnd.openxmlformats-officedocument.drawingml.chart+xml"
-
+
"application/vnd.openxmlformats-officedocument.drawingml.chart+xml"
JPEG_CT =
-

-jpeg content type -

+ +

jpeg content type

@@ -759,15 +687,13 @@ jpeg content type
-
"image/jpeg"
-
+
"image/jpeg"
GIF_CT =
-

-gif content type -

+ +

gif content type

@@ -777,15 +703,13 @@ gif content type
-
"image/gif"
-
+
"image/gif"
PNG_CT =
-

-png content type -

+ +

png content type

@@ -795,15 +719,13 @@ png content type
-
"image/png"
-
+
"image/png"
DRAWING_CT =
-

-drawing content type -

+ +

drawing content type

@@ -813,15 +735,13 @@ drawing content type
-
"application/vnd.openxmlformats-officedocument.drawing+xml"
-
+
"application/vnd.openxmlformats-officedocument.drawing+xml"
XML_EX =
-

-xml content type extensions -

+ +

xml content type extensions

@@ -831,15 +751,13 @@ xml content type extensions
-
"xml"
-
+
"xml"
JPEG_EX =
-

-jpeg extension -

+ +

jpeg extension

@@ -849,15 +767,13 @@ jpeg extension
-
"jpeg"
-
+
"jpeg"
GIF_EX =
-

-gif extension -

+ +

gif extension

@@ -867,15 +783,13 @@ gif extension
-
"gif"
-
+
"gif"
PNG_EX =
-

-png extension -

+ +

png extension

@@ -885,15 +799,13 @@ png extension
-
"png"
-
+
"png"
RELS_EX =
-

-rels content type extension -

+ +

rels content type extension

@@ -903,15 +815,13 @@ rels content type extension
-
"rels"
-
+
"rels"
WORKBOOK_PN =
-

-workbook part -

+ +

workbook part

@@ -921,15 +831,13 @@ workbook part
-
"xl/workbook.xml"
-
+
"xl/workbook.xml"
STYLES_PN =
-

-styles part -

+ +

styles part

@@ -939,15 +847,13 @@ styles part
-
"styles.xml"
-
+
"styles.xml"
APP_PN =
-

-app part -

+ +

app part

@@ -957,15 +863,13 @@ app part
-
"docProps/app.xml"
-
+
"docProps/app.xml"
CORE_PN =
-

-core part -

+ +

core part

@@ -975,15 +879,13 @@ core part
-
"docProps/core.xml"
-
+
"docProps/core.xml"
CONTENT_TYPES_PN =
-

-content types part -

+ +

content types part

@@ -993,15 +895,13 @@ content types part
-
"[Content_Types].xml"
-
+
"[Content_Types].xml"
RELS_PN =
-

-rels part -

+ +

rels part

@@ -1011,15 +911,13 @@ rels part
-
"_rels/.rels"
-
+
"_rels/.rels"
WORKBOOK_RELS_PN =
-

-workbook rels part -

+ +

workbook rels part

@@ -1029,15 +927,13 @@ workbook rels part
-
"xl/_rels/workbook.xml.rels"
-
+
"xl/_rels/workbook.xml.rels"
WORKSHEET_PN =
-

-worksheet part -

+ +

worksheet part

@@ -1047,15 +943,13 @@ worksheet part
-
"worksheets/sheet%d.xml"
-
+
"worksheets/sheet%d.xml"
WORKSHEET_RELS_PN =
-

-worksheet rels part -

+ +

worksheet rels part

@@ -1065,15 +959,13 @@ worksheet rels part
-
"worksheets/_rels/sheet%d.xml.rels"
-
+
"worksheets/_rels/sheet%d.xml.rels"
DRAWING_PN =
-

-drawing part -

+ +

drawing part

@@ -1083,15 +975,13 @@ drawing part
-
"drawings/drawing%d.xml"
-
+
"drawings/drawing%d.xml"
DRAWING_RELS_PN =
-

-drawing rels part -

+ +

drawing rels part

@@ -1101,15 +991,13 @@ drawing rels part
-
"drawings/_rels/drawing%d.xml.rels"
-
+
"drawings/_rels/drawing%d.xml.rels"
CHART_PN =
-

-chart part -

+ +

chart part

@@ -1119,15 +1007,13 @@ chart part
-
"charts/chart%d.xml"
-
+
"charts/chart%d.xml"
IMAGE_PN =
-

-chart part -

+ +

chart part

@@ -1137,15 +1023,13 @@ chart part
-
"media/image%d.%s"
-
+
"media/image%d.%s"
APP_XSD =
-

-App validation schema -

+ +

App validation schema

@@ -1155,15 +1039,13 @@ App validation schema
-
"lib/schema/shared-documentPropertiesExtended.xsd"
-
+
"lib/schema/shared-documentPropertiesExtended.xsd"
CORE_XSD =
-

-core validation schema -

+ +

core validation schema

@@ -1173,15 +1055,13 @@ core validation schema
-
"lib/schema/opc-coreProperties.xsd"
-
+
"lib/schema/opc-coreProperties.xsd"
CONTENT_TYPES_XSD =
-

-content types validation schema -

+ +

content types validation schema

@@ -1191,15 +1071,13 @@ content types validation schema
-
"lib/schema/opc-contentTypes.xsd"
-
+
"lib/schema/opc-contentTypes.xsd"
RELS_XSD =
-

-rels validation schema -

+ +

rels validation schema

@@ -1209,15 +1087,13 @@ rels validation schema
-
"lib/schema/opc-relationships.xsd"
-
+
"lib/schema/opc-relationships.xsd"
SML_XSD =
-

-spreadsheetML validation schema -

+ +

spreadsheetML validation schema

@@ -1227,15 +1103,13 @@ spreadsheetML validation schema
-
"lib/schema/sml.xsd"
-
+
"lib/schema/sml.xsd"
DRAWING_XSD =
-

-drawing validation schema -

+ +

drawing validation schema

@@ -1245,15 +1119,13 @@ drawing validation schema
-
"lib/schema/dml-spreadsheetDrawing.xsd"
-
+
"lib/schema/dml-spreadsheetDrawing.xsd"
NUM_FMT_PERCENT =
-

-number format id for pecentage formatting using the default formatting id. -

+ +

number format id for pecentage formatting using the default formatting id.

@@ -1263,15 +1135,13 @@ number format id for pecentage formatting using the default formatting id.
-
9
-
+
9
NUM_FMT_YYYYMMDD =
-

-number format id for date format like 2011/11/13 -

+ +

number format id for date format like 2011/11/13

@@ -1281,15 +1151,13 @@ number format id for date format like 2011/11/13
-
100
-
+
100
NUM_FMT_YYYYMMDDHHMMSS =
-

-number format id for time format the creates 2011/11/13 12:23:10 -

+ +

number format id for time format the creates 2011/11/13 12:23:10

@@ -1299,15 +1167,13 @@ number format id for time format the creates 2011/11/13 12:23:10
-
101
-
+
101
STYLE_THIN_BORDER =
-

-cellXfs id for thin borders around the cell -

+ +

cellXfs id for thin borders around the cell

@@ -1317,15 +1183,13 @@ cellXfs id for thin borders around the cell
-
1
-
+
1
ERR_RESTRICTION =
-

-error messages RestrictionValidor -

+ +

error messages RestrictionValidor

@@ -1335,15 +1199,13 @@ error messages RestrictionValidor
-
"Invalid Data: %s. %s must be one of %s."
-
+
"Invalid Data: %s. %s must be one of %s."
ERR_TYPE =
-

-error message DataTypeValidator -

+ +

error message DataTypeValidator

@@ -1353,15 +1215,13 @@ error message DataTypeValidator
-
"Invalid Data %s for %s. must be %s."
-
+
"Invalid Data %s for %s. must be %s."
ERR_REGEX =
-

-error message for RegexValidator -

+ +

error message for RegexValidator

@@ -1371,8 +1231,7 @@ error message for RegexValidator
-
"Invalid Data. %s does not match %s."
-
+
"Invalid Data. %s does not match %s."
@@ -1405,9 +1264,8 @@ error message for RegexValidator -

-determines the cell range for the items provided. -

+
+

determines the cell range for the items provided.

@@ -1429,10 +1287,9 @@ determines the cell range for the items provided. -

-Requires that the value is a form that can be evaluated as a boolean in an -xml document. -

+
+

Requires that the value is a form that can be evaluated as a boolean in an +xml document.

@@ -1454,11 +1311,10 @@ xml document. -

-Requires that the value is a valid content_type TABLE_CT, WORKBOOK_CT, +

+

Requires that the value is a valid content_type TABLE_CT, WORKBOOK_CT, APP_CT, RELS_CT, STYLES_CT, XML_CT, WORKSHEET_CT, SHARED_STRINGS_CT, -CORE_CT, CHART_CT, DRAWING_CT are allowed. -

+CORE_CT, CHART_CT, DRAWING_CT are allowed.

@@ -1480,9 +1336,8 @@ CORE_CT, CHART_CT, DRAWING_CT are allowed. -

-Requires that the value is a Float. -

+
+

Requires that the value is a Float.

@@ -1504,9 +1359,8 @@ Requires that the value is a Float. -

-Requires that the value is a gradient_type. -

+
+

Requires that the value is a gradient_type.

@@ -1528,11 +1382,10 @@ Requires that the value is a gradient_type. -

-Requires that the value is a valid horizontal_alignment :general, :left, +

+

Requires that the value is a valid horizontal_alignment :general, :left, :center, :right, :fill, :justify, :centerContinuous, :distributed are -allowed. -

+allowed.

@@ -1554,9 +1407,8 @@ allowed. -

-Requires that the value is a Fixnum or Integer. -

+
+

Requires that the value is a Fixnum or Integer.

@@ -1578,9 +1430,8 @@ Requires that the value is a Fixnum or Integer. -

-Requires that the value is valid pattern type. -

+
+

Requires that the value is valid pattern type.

@@ -1602,11 +1453,10 @@ Requires that the value is valid pattern type. -

-Requires that the value is a valid relationship_type XML_NS_R, TABLE_R, +

+

Requires that the value is a valid relationship_type XML_NS_R, TABLE_R, WORKBOOK_R, WORKSHEET_R, APP_R, RELS_R, CORE_R, STYLES_R, CHART_R, -DRAWING_R are allowed. -

+DRAWING_R are allowed.

@@ -1628,9 +1478,8 @@ DRAWING_R are allowed. -

-Requires that the value is a String. -

+
+

Requires that the value is a String.

@@ -1652,8 +1501,8 @@ Requires that the value is a String. -

-Requires that the value is a valid table element type :wholeTable, +

+

Requires that the value is a valid table element type :wholeTable, :headerRow, :totalRow, :firstColumn, :lastColumn, :firstRowStripe, :secondRowStripe, :firstColumnStripe, :secondColumnStripe, :firstHeaderCell, :lastHeaderCell, :firstTotalCell, :lastTotalCell, @@ -1661,8 +1510,7 @@ Requires that the value is a valid table element type :wholeTable, :firstSubtotalRow, :secondSubtotalRow, :thirdSubtotalRow, :blankRow, :firstColumnSubheading, :secondColumnSubheading, :thirdColumnSubheading, :firstRowSubheading, :secondRowSubheading, :thirdRowSubheading, -:pageFieldLabels, :pageFieldValues are allowed. -

+:pageFieldLabels, :pageFieldValues are allowed.

@@ -1684,10 +1532,9 @@ Requires that the value is a valid table element type :wholeTable, -

-Requires that the value is a Fixnum or Integer and is greater or equal to -0. -

+
+

Requires that the value is a Fixnum or Integer and is greater or equal to +0.

@@ -1709,10 +1556,9 @@ Requires that the value is a Fixnum or Integer and is greater or equal to -

-Requires that the value is a valid vertical_alignment :top, :center, -:bottom, :justify, :distributed are allowed. -

+
+

Requires that the value is a valid vertical_alignment :top, :center, +:bottom, :justify, :distributed are allowed.

@@ -1736,9 +1582,8 @@ Requires that the value is a valid vertical_alignment :top, :center,

-

-determines the cell range for the items provided -

+ +

determines the cell range for the items provided

@@ -1763,14 +1608,13 @@ determines the cell range for the items provided
# File 'lib/axlsx.rb', line 37
 
-def self.cell_range(items)
-  return "" unless items.first.is_a? Cell          
-  ref = "#{items.first.row.worksheet.name}!" +
-    "#{items.first.r_abs}"
-  ref += ":#{items.last.r_abs}" if items.size > 1
-  ref
-end
-
+def self.cell_range(items) + return "" unless items.first.is_a? Cell + ref = "#{items.first.row.worksheet.name}!" + + "#{items.first.r_abs}" + ref += ":#{items.last.r_abs}" if items.size > 1 + ref +end @@ -1785,13 +1629,11 @@ determines the cell range for the items provided

-

-Requires that the value is a form that can be evaluated as a boolean in an + +

Requires that the value is a form that can be evaluated as a boolean in an xml document. The value must be an instance of Fixnum, String, Integer, -Symbol, TrueClass or FalseClass and it must be one of 0, 1, -"true", "false", :true, :false, true, false, -"0", or "1" -

+Symbol, TrueClass or FalseClass and it must be one of 0, 1, "true", +"false", :true, :false, true, false, "0", or "1"

@@ -1810,9 +1652,8 @@ Symbol, TrueClass or FalseClass and it must be one of 0, 1, — -

-The value validated -

+
+

The value validated

@@ -1833,10 +1674,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 65
 
-def self.validate_boolean(v)
-  DataTypeValidator.validate(:boolean, [Fixnum, String, Integer, Symbol, TrueClass, FalseClass], v, lambda { |arg| [0, 1, "true", "false", :true, :false, true, false, "0", "1"].include?(arg) })
-end
-
+def self.validate_boolean(v) + DataTypeValidator.validate(:boolean, [Fixnum, String, Integer, Symbol, TrueClass, FalseClass], v, lambda { |arg| [0, 1, "true", "false", :true, :false, true, false, "0", "1"].include?(arg) }) +end @@ -1851,11 +1691,10 @@ The value validated

-

-Requires that the value is a valid content_type TABLE_CT, WORKBOOK_CT, + +

Requires that the value is a valid content_type TABLE_CT, WORKBOOK_CT, APP_CT, RELS_CT, STYLES_CT, XML_CT, WORKSHEET_CT, SHARED_STRINGS_CT, -CORE_CT, CHART_CT, DRAWING_CT are allowed -

+CORE_CT, CHART_CT, DRAWING_CT are allowed

@@ -1874,9 +1713,8 @@ CORE_CT, CHART_CT, DRAWING_CT are allowed — -

-The value validated -

+
+

The value validated

@@ -1897,10 +1735,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 114
 
-def self.validate_content_type(v)
-  RestrictionValidator.validate :content_type, [TABLE_CT, WORKBOOK_CT, APP_CT, RELS_CT, STYLES_CT, XML_CT, WORKSHEET_CT, SHARED_STRINGS_CT, CORE_CT, CHART_CT, JPEG_CT, GIF_CT, PNG_CT, DRAWING_CT], v
-end
-
+def self.validate_content_type(v) + RestrictionValidator.validate :content_type, [TABLE_CT, WORKBOOK_CT, APP_CT, RELS_CT, STYLES_CT, XML_CT, WORKSHEET_CT, SHARED_STRINGS_CT, CORE_CT, CHART_CT, JPEG_CT, GIF_CT, PNG_CT, DRAWING_CT], v +end @@ -1915,9 +1752,8 @@ The value validated

-

-Requires that the value is a Float -

+ +

Requires that the value is a Float

@@ -1936,9 +1772,8 @@ Requires that the value is a Float — -

-The value validated -

+
+

The value validated

@@ -1959,10 +1794,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 77
 
-def self.validate_float(v)
-  DataTypeValidator.validate :float, Float, v
-end
-
+def self.validate_float(v) + DataTypeValidator.validate :float, Float, v +end @@ -1977,10 +1811,9 @@ The value validated

-

-Requires that the value is a gradient_type. valid types are :linear and -:path -

+ +

Requires that the value is a gradient_type. valid types are :linear and +:path

@@ -1999,9 +1832,8 @@ Requires that the value is a gradient_type. valid types are :linear and — -

-The value validated -

+
+

The value validated

@@ -2022,10 +1854,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 93
 
-def self.validate_gradient_type(v)
-  RestrictionValidator.validate :gradient_type, [:linear, :path], v
-end
-
+def self.validate_gradient_type(v) + RestrictionValidator.validate :gradient_type, [:linear, :path], v +end @@ -2040,11 +1871,10 @@ The value validated

-

-Requires that the value is a valid horizontal_alignment :general, :left, + +

Requires that the value is a valid horizontal_alignment :general, :left, :center, :right, :fill, :justify, :centerContinuous, :distributed are -allowed -

+allowed

@@ -2063,9 +1893,8 @@ allowed — -

-The value validated -

+
+

The value validated

@@ -2086,10 +1915,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 100
 
-def self.validate_horizontal_alignment(v)
-  RestrictionValidator.validate :horizontal_alignment, [:general, :left, :center, :right, :fill, :justify, :centerContinuous, :distributed], v
-end
-
+def self.validate_horizontal_alignment(v) + RestrictionValidator.validate :horizontal_alignment, [:general, :left, :center, :right, :fill, :justify, :centerContinuous, :distributed], v +end @@ -2104,9 +1932,8 @@ The value validated

-

-Requires that the value is a Fixnum or Integer -

+ +

Requires that the value is a Fixnum or Integer

@@ -2125,9 +1952,8 @@ Requires that the value is a Fixnum or Integer — -

-The value validated -

+
+

The value validated

@@ -2148,10 +1974,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 57
 
-def self.validate_int(v)
-  DataTypeValidator.validate :unsigned_int, [Fixnum, Integer], v
-end
-
+def self.validate_int(v) + DataTypeValidator.validate :unsigned_int, [Fixnum, Integer], v +end @@ -2166,13 +1991,12 @@ The value validated

-

-Requires that the value is valid pattern type. valid pattern types must be + +

Requires that the value is valid pattern type. valid pattern types must be one of :none, :solid, :mediumGray, :darkGray, :lightGray, :darkHorizontal, :darkVertical, :darkDown, :darkUp, :darkGrid, :darkTrellis, :lightHorizontal, :lightVertical, :lightDown, :lightUp, :lightGrid, -:lightTrellis, :gray125, or :gray0625. -

+:lightTrellis, :gray125, or :gray0625.

@@ -2191,9 +2015,8 @@ one of :none, :solid, :mediumGray, :darkGray, :lightGray, :darkHorizontal, — -

-The value validated -

+
+

The value validated

@@ -2215,11 +2038,10 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 85
 
-def self.validate_pattern_type(v)
-  RestrictionValidator.validate :pattern_type, [:none, :solid, :mediumGray, :darkGray, :lightGray, :darkHorizontal, :darkVertical, :darkDown, :darkUp, :darkGrid,
-     :darkTrellis, :lightHorizontal, :lightVertical, :lightDown, :lightUp, :lightGrid, :lightTrellis, :gray125, :gray0625], v
-end
-
+def self.validate_pattern_type(v) + RestrictionValidator.validate :pattern_type, [:none, :solid, :mediumGray, :darkGray, :lightGray, :darkHorizontal, :darkVertical, :darkDown, :darkUp, :darkGrid, + :darkTrellis, :lightHorizontal, :lightVertical, :lightDown, :lightUp, :lightGrid, :lightTrellis, :gray125, :gray0625], v +end @@ -2234,11 +2056,10 @@ The value validated

-

-Requires that the value is a valid relationship_type XML_NS_R, TABLE_R, + +

Requires that the value is a valid relationship_type XML_NS_R, TABLE_R, WORKBOOK_R, WORKSHEET_R, APP_R, RELS_R, CORE_R, STYLES_R, CHART_R, -DRAWING_R are allowed -

+DRAWING_R are allowed

@@ -2257,9 +2078,8 @@ DRAWING_R are allowed — -

-The value validated -

+
+

The value validated

@@ -2280,10 +2100,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 121
 
-def self.validate_relationship_type(v)
-  RestrictionValidator.validate :relationship_type, [XML_NS_R, TABLE_R, WORKBOOK_R, WORKSHEET_R, APP_R, RELS_R, CORE_R, STYLES_R, CHART_R, DRAWING_R, IMAGE_R], v
-end
-
+def self.validate_relationship_type(v) + RestrictionValidator.validate :relationship_type, [XML_NS_R, TABLE_R, WORKBOOK_R, WORKSHEET_R, APP_R, RELS_R, CORE_R, STYLES_R, CHART_R, DRAWING_R, IMAGE_R], v +end @@ -2298,9 +2117,8 @@ The value validated

-

-Requires that the value is a String -

+ +

Requires that the value is a String

@@ -2319,9 +2137,8 @@ Requires that the value is a String — -

-The value validated -

+
+

The value validated

@@ -2342,10 +2159,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 71
 
-def self.validate_string(v)
-  DataTypeValidator.validate :string, String, v
-end
-
+def self.validate_string(v) + DataTypeValidator.validate :string, String, v +end @@ -2360,8 +2176,8 @@ The value validated

-

-Requires that the value is a valid table element type :wholeTable, + +

Requires that the value is a valid table element type :wholeTable, :headerRow, :totalRow, :firstColumn, :lastColumn, :firstRowStripe, :secondRowStripe, :firstColumnStripe, :secondColumnStripe, :firstHeaderCell, :lastHeaderCell, :firstTotalCell, :lastTotalCell, @@ -2369,8 +2185,7 @@ Requires that the value is a valid table element type :wholeTable, :firstSubtotalRow, :secondSubtotalRow, :thirdSubtotalRow, :blankRow, :firstColumnSubheading, :secondColumnSubheading, :thirdColumnSubheading, :firstRowSubheading, :secondRowSubheading, :thirdRowSubheading, -:pageFieldLabels, :pageFieldValues are allowed -

+:pageFieldLabels, :pageFieldValues are allowed

@@ -2389,9 +2204,8 @@ Requires that the value is a valid table element type :wholeTable, — -

-The value validated -

+
+

The value validated

@@ -2412,10 +2226,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 128
 
-def self.validate_table_element_type(v)
-  RestrictionValidator.validate :table_element_type, [:wholeTable, :headerRow, :totalRow, :firstColumn, :lastColumn, :firstRowStripe, :secondRowStripe, :firstColumnStripe, :secondColumnStripe, :firstHeaderCell, :lastHeaderCell, :firstTotalCell, :lastTotalCell, :firstSubtotalColumn, :secondSubtotalColumn, :thirdSubtotalColumn, :firstSubtotalRow, :secondSubtotalRow, :thirdSubtotalRow, :blankRow, :firstColumnSubheading, :secondColumnSubheading, :thirdColumnSubheading, :firstRowSubheading, :secondRowSubheading, :thirdRowSubheading, :pageFieldLabels, :pageFieldValues], v
-end
-
+def self.validate_table_element_type(v) + RestrictionValidator.validate :table_element_type, [:wholeTable, :headerRow, :totalRow, :firstColumn, :lastColumn, :firstRowStripe, :secondRowStripe, :firstColumnStripe, :secondColumnStripe, :firstHeaderCell, :lastHeaderCell, :firstTotalCell, :lastTotalCell, :firstSubtotalColumn, :secondSubtotalColumn, :thirdSubtotalColumn, :firstSubtotalRow, :secondSubtotalRow, :thirdSubtotalRow, :blankRow, :firstColumnSubheading, :secondColumnSubheading, :thirdColumnSubheading, :firstRowSubheading, :secondRowSubheading, :thirdRowSubheading, :pageFieldLabels, :pageFieldValues], v +end @@ -2430,9 +2243,8 @@ The value validated

-

-Requires that the value is a Fixnum or Integer and is greater or equal to 0 -

+ +

Requires that the value is a Fixnum or Integer and is greater or equal to 0

@@ -2451,9 +2263,8 @@ Requires that the value is a Fixnum or Integer and is greater or equal to 0 — -

-The value validated -

+
+

The value validated

@@ -2471,9 +2282,8 @@ The value validated — -

-true if the data is valid -

+
+

true if the data is valid

@@ -2490,9 +2300,8 @@ true if the data is valid — -

-raised if the value is not a Fixnum or Integer value greater or equal to 0 -

+
+

raised if the value is not a Fixnum or Integer value greater or equal to 0

@@ -2512,10 +2321,9 @@ raised if the value is not a Fixnum or Integer value greater or equal to 0
# File 'lib/axlsx/util/validators.rb', line 51
 
-def self.validate_unsigned_int(v)
-  DataTypeValidator.validate(:unsigned_int, [Fixnum, Integer], v, lambda { |arg| arg.respond_to?(:>=) && arg >= 0 })
-end
-
+def self.validate_unsigned_int(v) + DataTypeValidator.validate(:unsigned_int, [Fixnum, Integer], v, lambda { |arg| arg.respond_to?(:>=) && arg >= 0 }) +end @@ -2530,10 +2338,9 @@ raised if the value is not a Fixnum or Integer value greater or equal to 0

-

-Requires that the value is a valid vertical_alignment :top, :center, -:bottom, :justify, :distributed are allowed -

+ +

Requires that the value is a valid vertical_alignment :top, :center, +:bottom, :justify, :distributed are allowed

@@ -2552,9 +2359,8 @@ Requires that the value is a valid vertical_alignment :top, :center, — -

-The value validated -

+
+

The value validated

@@ -2575,10 +2381,9 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 107
 
-def self.validate_vertical_alignment(v)
-  RestrictionValidator.validate :vertical_alignment, [:top, :center, :bottom, :justify, :distributed], v
-end
-
+def self.validate_vertical_alignment(v) + RestrictionValidator.validate :vertical_alignment, [:top, :center, :bottom, :justify, :distributed], v +end @@ -2589,9 +2394,9 @@ The value validated
-- cgit v1.2.3