Set to true to enable the trace prints that show how formulas are being translated
Set to true to enable the trace prints that show how formulas are being translated
(build-forward-table data-seq)
Build the translation table to from source to dest
Build the translation table to from source to dest
(build-reverse-table xlate-seq)
Build the translation from destination back to source
Build the translation from destination back to source
(build-translation-tables data-map)
Build the translation tables for all the worksheets mentioned in the data map
Build the translation tables for all the worksheets mentioned in the data map
(debug-println & args)
Print the arguments if debug-prints is bound to true.
Print the arguments if *debug-prints* is bound to true.
(external-sheets workbook sheet formula)
Find any references to external sheets in the formula (note: all referenced sheets need to actually exist).
Find any references to external sheets in the formula (note: all referenced sheets need to actually exist).
(map-values f m)
Build a new map that has [k v] -> [k (f v)]. I don't know why clojure doesn't have this
Build a new map that has [k v] -> [k (f v)]. I don't know why clojure doesn't have this
(parse workbook sheet-num formula-string)
Parse a formula into a PTG array
Parse a formula into a PTG array
Protocol to find any external sheet references in the formula and return them
Protocol to find any external sheet references in the formula and return them
(external-sheets-ptg ptg)
Protocol to handle translating various PTG classes by modifying cell references appropriately
Protocol to handle translating various PTG classes by modifying cell references appropriately
(relocate-ptg ptg old-index new-index)
Protocol to handle translating various PTG classes by modifying cell references appropriately
Protocol to handle translating various PTG classes by modifying cell references appropriately
(translate-ptg ptg translation-table sheet target-cell)
(relocate-formula workbook sheet old-index new-index formula)
Relocate any references to the sheet at old-index in the formula to refer to new-index
Relocate any references to the sheet at old-index in the formula to refer to new-index
(render workbook ptgs)
Render a PTG array back to a formula string
Render a PTG array back to a formula string
(sheet-number sheet)
Find the sheet number of this sheet object within its workbook
Find the sheet number of this sheet object within its workbook
(src->dst translation-table
worksheet
[row col]
[target-row target-col]
max?
abs?)
Translate a cell location from the source template to the target, accounting for cell motion and expansion. Returns a [row col] pair.
Translate a cell location from the source template to the target, accounting for cell motion and expansion. Returns a [row col] pair.
(translate-formula translation-table workbook sheet target-cell formula)
Translate a formula from the source sheet to the output workbook based on the translation table
Translate a formula from the source sheet to the output workbook based on the translation table
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close