package jxl;

import jxl.biff.CellReferenceHelper;
import jxl.biff.formula.ExternalSheet;
import jxl.write.WritableWorkbook;

public final class CellReferenceHelper {
  public static void getCellReference(int column, int row, StringBuffer buf) {
    CellReferenceHelper.getCellReference(column, row, buf);
  }
  
  public static void getCellReference(int column, boolean colabs, int row, boolean rowabs, StringBuffer buf) {
    CellReferenceHelper.getCellReference(column, colabs, row, rowabs, buf);
  }
  
  public static String getCellReference(int column, int row) {
    return CellReferenceHelper.getCellReference(column, row);
  }
  
  public static int getColumn(String s) {
    return CellReferenceHelper.getColumn(s);
  }
  
  public static String getColumnReference(int c) {
    return CellReferenceHelper.getColumnReference(c);
  }
  
  public static int getRow(String s) {
    return CellReferenceHelper.getRow(s);
  }
  
  public static boolean isColumnRelative(String s) {
    return CellReferenceHelper.isColumnRelative(s);
  }
  
  public static boolean isRowRelative(String s) {
    return CellReferenceHelper.isRowRelative(s);
  }
  
  public static void getCellReference(int sheet, int column, int row, Workbook workbook, StringBuffer buf) {
    CellReferenceHelper.getCellReference(sheet, column, row, (ExternalSheet)workbook, buf);
  }
  
  public static void getCellReference(int sheet, int column, int row, WritableWorkbook workbook, StringBuffer buf) {
    CellReferenceHelper.getCellReference(sheet, column, row, (ExternalSheet)workbook, buf);
  }
  
  public static void getCellReference(int sheet, int column, boolean colabs, int row, boolean rowabs, Workbook workbook, StringBuffer buf) {
    CellReferenceHelper.getCellReference(sheet, column, colabs, row, rowabs, (ExternalSheet)workbook, buf);
  }
  
  public static String getCellReference(int sheet, int column, int row, Workbook workbook) {
    return CellReferenceHelper.getCellReference(sheet, column, row, (ExternalSheet)workbook);
  }
  
  public static String getCellReference(int sheet, int column, int row, WritableWorkbook workbook) {
    return CellReferenceHelper.getCellReference(sheet, column, row, (ExternalSheet)workbook);
  }
  
  public static String getSheet(String ref) {
    return CellReferenceHelper.getSheet(ref);
  }
}
