<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def export_file(self, filepath, __filter, data, preview_data=None):
 """Export data for other applications Parameters filepath: String \tPath of export file __filter: String \tImport filter data: Object \tCode array result object slice, i. e. one object or iterable of \tsuch objects """


        if __filter.startswith("cell_"):
            self._export_figure(filepath, data, __filter[5:])

        elif __filter == "csv":
            self._export_csv(filepath, data, preview_data=preview_data)

        elif __filter in ["pdf", "svg"]:
            self.export_cairo(filepath, __filter)