'Function to write the basic question details to a rtf document.
The basic details will be written to Cell objects that can be
added to a row in a table object.
@param ss: StyleSheet object
@param langDict: Dictionary of languages
@param full_name: Question name(label)
@param paragraph: Add paragraph from S3QuestionTypeTextWidget
@param para_list: List of paragraphs from S3QuestionTypeOptionWidget
@param question_name: Name of question from S3QuestionTypeGridWidget'

@staticmethod
def _writeToRTF(ss, langDict, full_name, paragraph=None, para_list=[], question_name=''):

    from gluon.contrib.pyrtf.Elements import Paragraph, Cell, B
    from gluon.contrib.pyrtf.PropertySets import BorderPS, FramePS
    thin_edge = BorderPS(width=20, style=BorderPS.SINGLE)
    thin_frame = FramePS(thin_edge, thin_edge, thin_edge, thin_edge)
    line = []
    if question_name:
        p = Paragraph(ss.ParagraphStyles.NormalCentre)
        p.append(B(question_name))
        line.append(Cell(p, thin_frame, span=2))
        return line
    p = Paragraph(ss.ParagraphStyles.Normal)
    p.append(B(str(full_name)))
    if paragraph:
        line.append(Cell(p, paragraph, paragraph, paragraph, thin_frame))
    else:
        line.append(Cell(p, thin_frame))
    if para_list:
        paras = []
        for option in para_list:
            p = Paragraph(ss.ParagraphStyles.Normal)
            p.append(survey_T(option, langDict))
            paras.append(p)
        line.append(Cell(thin_frame, *paras))
    else:
        p = Paragraph(ss.ParagraphStyles.NormalGrey)
        p.append('')
        line.append(Cell(p, thin_frame))
    return line
