class RubyXL::Stylesheet

def self.default

def self.default
  self.new(:fonts          => RubyXL::Fonts.defaults,
           :fills          => RubyXL::Fills.defaults,
           :borders        => RubyXL::Borders.defaults,
           :cell_xfs       => RubyXL::CellXFs.defaults,
           :cell_styles    => RubyXL::CellStyles.defaults,
           :cell_style_xfs => RubyXL::CellStyleXFs.defaults)
end

def self.filepath

def self.filepath
  File.join('xl', 'styles.xml')
end

def get_number_format_by_id(format_id)

def get_number_format_by_id(format_id)
  @format_hash ||= {}
  
  if @format_hash[format_id].nil? then
    @format_hash[format_id] = NumberFormats::DEFAULT_NUMBER_FORMATS.find_by_format_id(format_id) ||
                                (number_formats && number_formats.find_by_format_id(format_id))
  end
  @format_hash[format_id]
end

def initialize(*args)

def initialize(*args)
  super
  @format_hash = nil
end