lib/osheet/xmlss_writer.rb
# The writer maintains a set of used xmlss styles and handles creating
# xmlss style objects as needed and manages style keys
The writer maintains a set of used xmlss styles and handles creating
xmlss style objects as needed and manages style keys
The writer maintains a set of used xmlss styles and handles creating xmlss style objects as needed and manages style keys
def cell(cell, &build)
      attrs = {
        :href => cell.href,
        :index => cell.index,
        :merge_across => cell_merge(cell.colspan),
        :merge_down => cell_merge(cell.rowspan),
        :formula => cell.formula
      }
      if s = @style_cache.get(cell.style_class, cell.format)
        attrs[:style_id] = s.id
      end
      @xmlss_workbook.cell(cell.data, attrs, &build)
    end
def cell ( cell , & build ) attrs = { :href => cell . href , :index => cell . index , :merge_across => cell_merge ( cell . colspan ) , :merge_down => cell_merge ( cell . rowspan ) , :formula => cell . formula } if s = @style_cache . get ( cell . style_class , cell . format ) attrs [ :style_id ] = s . id end @xmlss_workbook . cell ( cell . data , attrs , & build ) end
The writer maintains a set of used xmlss styles and handles creating
xmlss style objects as needed and manages style keys
The writer maintains a set of used xmlss styles and handles creating xmlss style objects as needed and manages style keys
cell
build