use crate::refs::{CellRange, CellRef};
pub fn fcellref(row: u32, col: u32) -> String {
CellRef::local(row, col).to_formula()
}
pub fn fcellrefr(row: u32, col: u32) -> String {
CellRef::local(row, col).absolute_row().to_formula()
}
pub fn fcellrefc(row: u32, col: u32) -> String {
CellRef::local(row, col).absolute_col().to_formula()
}
pub fn fcellrefa(row: u32, col: u32) -> String {
CellRef::local(row, col).absolute().to_formula()
}
pub fn fcellref_table<S: Into<String>>(table: S, row: u32, col: u32) -> String {
CellRef::remote(table, row, col).to_formula()
}
pub fn fcellrefr_table<S: Into<String>>(table: S, row: u32, col: u32) -> String {
CellRef::remote(table, row, col).absolute_row().to_formula()
}
pub fn fcellrefc_table<S: Into<String>>(table: S, row: u32, col: u32) -> String {
CellRef::remote(table, row, col).absolute_col().to_formula()
}
pub fn fcellrefa_table<S: Into<String>>(table: S, row: u32, col: u32) -> String {
CellRef::remote(table, row, col).absolute().to_formula()
}
pub fn frangeref(row: u32, col: u32, row_to: u32, col_to: u32) -> String {
CellRange::local(row, col, row_to, col_to).to_formula()
}
pub fn frangerefr(row: u32, col: u32, row_to: u32, col_to: u32) -> String {
CellRange::local(row, col, row_to, col_to)
.absolute_rows()
.to_formula()
}
pub fn frangerefc(row: u32, col: u32, row_to: u32, col_to: u32) -> String {
CellRange::local(row, col, row_to, col_to)
.absolute_cols()
.to_formula()
}
pub fn frangerefa(row: u32, col: u32, row_to: u32, col_to: u32) -> String {
CellRange::local(row, col, row_to, col_to)
.absolute()
.to_formula()
}
pub fn frangeref_table<S: Into<String>>(
table: S,
row: u32,
col: u32,
row_to: u32,
col_to: u32,
) -> String {
CellRange::remote(table, row, col, row_to, col_to).to_formula()
}
pub fn frangerefr_table<S: Into<String>>(
table: S,
row: u32,
col: u32,
row_to: u32,
col_to: u32,
) -> String {
CellRange::remote(table, row, col, row_to, col_to)
.absolute_rows()
.to_formula()
}
pub fn frangerefc_table<S: Into<String>>(
table: S,
row: u32,
col: u32,
row_to: u32,
col_to: u32,
) -> String {
CellRange::remote(table, row, col, row_to, col_to)
.absolute_cols()
.to_formula()
}
pub fn frangerefa_table<S: Into<String>>(
table: S,
row: u32,
col: u32,
row_to: u32,
col_to: u32,
) -> String {
CellRange::remote(table, row, col, row_to, col_to)
.absolute()
.to_formula()
}