def METHOD_NAME(self, theoofile, duplicatestyle="msgctxt"):
    """converts an entire oo file to a base class format (.po or XLIFF)"""
    thetargetfile = xliff.xlifffile()
    thetargetfile.setsourcelanguage(self.sourcelanguage)
    thetargetfile.settargetlanguage(self.targetlanguage)
    # go through the oo and convert each element
    for theoo in theoofile.units:
        unitlist = self.convertelement(theoo)
        for unit in unitlist:
            thetargetfile.addunit(unit)
    return thetargetfile