mirror of https://github.com/odrling/Aegisub
Add override attributes to the subtitle formats
This commit is contained in:
parent
43d3fac178
commit
d5f36af87e
|
@ -38,12 +38,12 @@ class AssSubtitleFormat : public SubtitleFormat {
|
||||||
public:
|
public:
|
||||||
AssSubtitleFormat();
|
AssSubtitleFormat();
|
||||||
|
|
||||||
wxArrayString GetReadWildcards() const;
|
wxArrayString GetReadWildcards() const override;
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
|
|
||||||
// Naturally the ASS subtitle format can save all Ass files
|
// Naturally the ASS subtitle format can save all Ass files
|
||||||
bool CanSave(const AssFile*) const { return true; }
|
bool CanSave(const AssFile*) const override { return true; }
|
||||||
|
|
||||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
class Ebu3264SubtitleFormat : public SubtitleFormat {
|
class Ebu3264SubtitleFormat : public SubtitleFormat {
|
||||||
public:
|
public:
|
||||||
Ebu3264SubtitleFormat();
|
Ebu3264SubtitleFormat();
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||||
|
|
||||||
DEFINE_SIMPLE_EXCEPTION(ConversionFailed, agi::InvalidInputException, "subtitle_io/ebu3264/conversion_error")
|
DEFINE_SIMPLE_EXCEPTION(ConversionFailed, agi::InvalidInputException, "subtitle_io/ebu3264/conversion_error")
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
class EncoreSubtitleFormat : public SubtitleFormat {
|
class EncoreSubtitleFormat : public SubtitleFormat {
|
||||||
public:
|
public:
|
||||||
EncoreSubtitleFormat();
|
EncoreSubtitleFormat();
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
bool CanWriteFile(wxString const& filename) const;
|
bool CanWriteFile(wxString const& filename) const override;
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const&) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const&) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -38,11 +38,11 @@ class MicroDVDSubtitleFormat : public SubtitleFormat {
|
||||||
public:
|
public:
|
||||||
MicroDVDSubtitleFormat();
|
MicroDVDSubtitleFormat();
|
||||||
|
|
||||||
wxArrayString GetReadWildcards() const;
|
wxArrayString GetReadWildcards() const override;
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
|
|
||||||
bool CanReadFile(wxString const& filename) const;
|
bool CanReadFile(wxString const& filename) const override;
|
||||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||||
|
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
class MKVSubtitleFormat : public SubtitleFormat {
|
class MKVSubtitleFormat : public SubtitleFormat {
|
||||||
public:
|
public:
|
||||||
MKVSubtitleFormat();
|
MKVSubtitleFormat();
|
||||||
wxArrayString GetReadWildcards() const;
|
wxArrayString GetReadWildcards() const override;
|
||||||
|
|
||||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -40,11 +40,11 @@ class SRTSubtitleFormat : public SubtitleFormat {
|
||||||
wxString ConvertTags(const AssDialogue *diag) const;
|
wxString ConvertTags(const AssDialogue *diag) const;
|
||||||
public:
|
public:
|
||||||
SRTSubtitleFormat();
|
SRTSubtitleFormat();
|
||||||
wxArrayString GetReadWildcards() const;
|
wxArrayString GetReadWildcards() const override;
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
|
|
||||||
bool CanSave(const AssFile *file) const;
|
bool CanSave(const AssFile *file) const override;
|
||||||
|
|
||||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,7 +42,7 @@ class TranStationSubtitleFormat : public SubtitleFormat {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TranStationSubtitleFormat();
|
TranStationSubtitleFormat();
|
||||||
bool CanWriteFile(wxString const& filename) const;
|
bool CanWriteFile(wxString const& filename) const override;
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -48,9 +48,9 @@ class TTXTSubtitleFormat : public SubtitleFormat {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TTXTSubtitleFormat();
|
TTXTSubtitleFormat();
|
||||||
wxArrayString GetReadWildcards() const;
|
wxArrayString GetReadWildcards() const override;
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
|
|
||||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,13 +37,13 @@
|
||||||
class TXTSubtitleFormat : public SubtitleFormat {
|
class TXTSubtitleFormat : public SubtitleFormat {
|
||||||
public:
|
public:
|
||||||
TXTSubtitleFormat();
|
TXTSubtitleFormat();
|
||||||
wxArrayString GetReadWildcards() const;
|
wxArrayString GetReadWildcards() const override;
|
||||||
wxArrayString GetWriteWildcards() const;
|
wxArrayString GetWriteWildcards() const override;
|
||||||
|
|
||||||
// TXT format supports so little that it should always require an export
|
// TXT format supports so little that it should always require an export
|
||||||
bool CanSave(const AssFile*) const { return false; }
|
bool CanSave(const AssFile*) const override { return false; }
|
||||||
|
|
||||||
bool CanWriteFile(wxString const& filename) const;
|
bool CanWriteFile(wxString const& filename) const override;
|
||||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue