MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / Export

Method Export

src/ass_exporter.cpp:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void AssExporter::Export(agi::fs::path const& filename, const char *charset, wxWindow *export_dialog) {
83 AssFile subs(*c->ass);
84
85 for (auto filter : filters) {
86 filter->LoadSettings(is_default, c);
87 filter->ProcessSubs(&subs, export_dialog);
88 }
89
90 const SubtitleFormat *writer = SubtitleFormat::GetWriter(filename);
91 if (!writer)
92 throw agi::InvalidInputException("Unknown file type.");
93
94 writer->ExportFile(&subs, filename, c->project->Timecodes(), charset);
95}
96
97wxSizer *AssExporter::GetSettingsSizer(std::string const& name) {
98 auto pos = Sizers.find(name);

Callers 1

OnProcessMethod · 0.80

Calls 3

LoadSettingsMethod · 0.45
ProcessSubsMethod · 0.45
ExportFileMethod · 0.45

Tested by

no test coverage detected