'@todo: docstring'

def addCell(self, row, col, data, style, horizontal=0, vertical=0):

    cell = survey_MatrixElement(row, col, data, style)
    if ((horizontal != 0) or (vertical != 0)):
        cell.merge(horizontal, vertical)
    try:
        self.addElement(cell)
    except Exception as msg:
        current.log.error(msg)
    return (((row + 1) + vertical), ((col + 1) + horizontal))
