You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/DOM/Contracts/IContentReader.cs

72 lines
1.7 KiB

6 years ago
using ZeroLevel.DocumentObjectModel.Flow;
namespace ZeroLevel.DocumentObjectModel
{
public interface IContentReader<T>
{
// Primitives
void ReadText(Text text);
6 years ago
void ReadQuote(Quote quote);
6 years ago
void ReadLink(Link link, int order);
6 years ago
void ReadImage(Image image, int order);
6 years ago
void ReadAudio(Audio audio, int order);
6 years ago
void ReadVideo(Video video, int order);
// Containers
void EnterSection(Section section);
6 years ago
void LeaveSection(Section section);
void EnterParagraph(Paragraph paragraph);
6 years ago
void LeaveParagraph(Paragraph paragraph);
void EnterList(List list);
6 years ago
void EnterListItem(List list, IContentElement item, int order);
6 years ago
void LeaveListItem(List list, IContentElement item, int order);
6 years ago
void LeaveList(List list);
void EnterTable(Table table);
6 years ago
void EnterColumns(Table table);
6 years ago
void ReadColumn(Table table, Column column, int order);
6 years ago
void LeaveColumns(Table table);
6 years ago
void EnterRow(Table table, Row row, int order);
6 years ago
void EnterRowCell(Table table, Row row, IContentElement cell, int order);
6 years ago
void LeaveRowCell(Table table, Row row, IContentElement cell, int order);
6 years ago
void LeaveRow(Table table, Row row, int order);
6 years ago
void LeaveTable(Table table);
void EnterGallery(Gallery gallery);
6 years ago
void LeaveGallery(Gallery gallery);
void EnterAudioplayer(Audioplayer player);
6 years ago
void LeaveAudioplayer(Audioplayer player);
void EnterVideoplayer(Videoplayer player);
6 years ago
void LeaveVideoplayer(Videoplayer player);
// Feature
void ReadForm(FormContent form);
T Complete();
}
}

Powered by TurnKey Linux.