@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

    # -------------------------------------------------------------------------
Function to write the basic question details to a rtf document.
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3QuestionTypeAbstractWidget._writeToRTF