summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-13 09:47:10 +0900
committerRandy Morgan <[email protected]>2012-02-13 09:47:10 +0900
commit472b388df84eb278ee4df3e6c34371430fe9a8b4 (patch)
treed454ac437e0b1699ad40c71c888449329a99cd9c /lib/axlsx/stylesheet
parent5eccc5e560fd3f92508a6f131fe99ab054d1bb60 (diff)
downloadcaxlsx-472b388df84eb278ee4df3e6c34371430fe9a8b4.tar.gz
caxlsx-472b388df84eb278ee4df3e6c34371430fe9a8b4.zip
Remove entirely the dependancies on i18n and active support.
Diffstat (limited to 'lib/axlsx/stylesheet')
-rw-r--r--lib/axlsx/stylesheet/styles.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb
index 7c2913e5..421215c1 100644
--- a/lib/axlsx/stylesheet/styles.rb
+++ b/lib/axlsx/stylesheet/styles.rb
@@ -253,22 +253,22 @@ module Axlsx
# Creates the default set of styles the exel requires to be valid as well as setting up the
# Axlsx::STYLE_THIN_BORDER
def load_default_styles
- @numFmts = SimpleTypedList.new NumFmt
+ @numFmts = SimpleTypedList.new NumFmt, 'numFmts'
@numFmts << NumFmt.new(:numFmtId => NUM_FMT_YYYYMMDD, :formatCode=> "yyyy/mm/dd")
@numFmts << NumFmt.new(:numFmtId => NUM_FMT_YYYYMMDDHHMMSS, :formatCode=> "yyyy/mm/dd hh:mm:ss")
@numFmts.lock
- @fonts = SimpleTypedList.new Font
+ @fonts = SimpleTypedList.new Font, 'fonts'
@fonts << Font.new(:name => "Arial", :sz => 11, :family=>1)
@fonts.lock
- @fills = SimpleTypedList.new Fill
+ @fills = SimpleTypedList.new Fill, 'fills'
@fills << Fill.new(Axlsx::PatternFill.new(:patternType=>:none))
@fills << Fill.new(Axlsx::PatternFill.new(:patternType=>:gray125))
@fills.lock
- @borders = SimpleTypedList.new Border
+ @borders = SimpleTypedList.new Border, 'borders'
@borders << Border.new
black_border = Border.new
[:left, :right, :top, :bottom].each do |item|
@@ -281,7 +281,7 @@ module Axlsx
@cellStyleXfs << Xf.new(:borderId=>0, :numFmtId=>0, :fontId=>0, :fillId=>0)
@cellStyleXfs.lock
- @cellStyles = SimpleTypedList.new CellStyle
+ @cellStyles = SimpleTypedList.new CellStyle, 'cellStyles'
@cellStyles << CellStyle.new(:name =>"Normal", :builtinId =>0, :xfId=>0)
@cellStyles.lock