Class: Writeexcel::Worksheet::FilterRange
Instance Attribute Summary
Attributes inherited from CellRange
#col_max, #col_min, #row_max, #row_min
Instance Method Summary
collapse
Methods inherited from CellRange
#col, #increment_col_max, #increment_row_max, #initialize, #name_record_long, #row
Instance Method Details
#count ⇒ Object
197
198
199
200
201
202
203
|
# File 'lib/writeexcel/cell_range.rb', line 197
def count
if @col_min && @col_max
1 + @col_max - @col_min
else
0
end
end
|
#inside?(col) ⇒ Boolean
205
206
207
|
# File 'lib/writeexcel/cell_range.rb', line 205
def inside?(col)
@col_min <= col && col <= @col_max
end
|
#name_record_short(ext_ref, hidden) ⇒ Object
193
194
195
|
# File 'lib/writeexcel/cell_range.rb', line 193
def name_record_short(ext_ref, hidden)
super(0x0D, ext_ref, hidden) end
|
#store ⇒ Object
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
|
# File 'lib/writeexcel/cell_range.rb', line 209
def store
record = 0x00EC
spid = @worksheet.object_ids.spid
num_objects = @worksheet.images_size + @worksheet.charts_size
(0 .. count-1).each do |i|
if i == 0 && num_objects
spid, data = write_parent_msodrawing_record(count, @worksheet., spid, vertices(i))
else
spid, data = write_child_msodrawing_record(spid, vertices(i))
end
length = data.bytesize
= [record, length].pack("vv")
append(, data)
store_obj_filter(num_objects + i + 1, col_min + i)
end
spid
end
|