Included epub library in plugin project

This commit is contained in:
Marco Gavelli
2018-07-16 10:06:17 +02:00
parent a78428c698
commit a82cacd126
57 changed files with 57 additions and 61 deletions

View File

@@ -0,0 +1,14 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigation
{
public EpubNavigationHead Head { get; set; }
public EpubNavigationDocTitle DocTitle { get; set; }
public List<EpubNavigationDocAuthor> DocAuthors { get; set; }
public EpubNavigationMap NavMap { get; set; }
public EpubNavigationPageList PageList { get; set; }
public List<EpubNavigationList> NavLists { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
namespace VersOne.Epub.Schema
{
public class EpubNavigationContent
{
public string Id { get; set; }
public string Source { get; set; }
public override string ToString()
{
return String.Concat("Source: " + Source);
}
}
}

View File

@@ -0,0 +1,8 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationDocAuthor : List<string>
{
}
}

View File

@@ -0,0 +1,8 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationDocTitle : List<string>
{
}
}

View File

@@ -0,0 +1,8 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationHead : List<EpubNavigationHeadMeta>
{
}
}

View File

@@ -0,0 +1,9 @@
namespace VersOne.Epub.Schema
{
public class EpubNavigationHeadMeta
{
public string Name { get; set; }
public string Content { get; set; }
public string Scheme { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
namespace VersOne.Epub.Schema
{
public class EpubNavigationLabel
{
public string Text { get; set; }
public override string ToString()
{
return Text;
}
}
}

View File

@@ -0,0 +1,12 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationList
{
public string Id { get; set; }
public string Class { get; set; }
public List<EpubNavigationLabel> NavigationLabels { get; set; }
public List<EpubNavigationTarget> NavigationTargets { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationMap : List<EpubNavigationPoint>
{
}
}

View File

@@ -0,0 +1,8 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationPageList : List<EpubNavigationPageTarget>
{
}
}

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationPageTarget
{
public string Id { get; set; }
public string Value { get; set; }
public EpubNavigationPageTargetType Type { get; set; }
public string Class { get; set; }
public string PlayOrder { get; set; }
public List<EpubNavigationLabel> NavigationLabels { get; set; }
public EpubNavigationContent Content { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace VersOne.Epub.Schema
{
public enum EpubNavigationPageTargetType
{
FRONT = 1,
NORMAL,
SPECIAL
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationPoint
{
public string Id { get; set; }
public string Class { get; set; }
public string PlayOrder { get; set; }
public List<EpubNavigationLabel> NavigationLabels { get; set; }
public EpubNavigationContent Content { get; set; }
public List<EpubNavigationPoint> ChildNavigationPoints { get; set; }
public override string ToString()
{
return String.Format("Id: {0}, Content.Source: {1}", Id, Content.Source);
}
}
}

View File

@@ -0,0 +1,14 @@
using System.Collections.Generic;
namespace VersOne.Epub.Schema
{
public class EpubNavigationTarget
{
public string Id { get; set; }
public string Class { get; set; }
public string Value { get; set; }
public string PlayOrder { get; set; }
public List<EpubNavigationLabel> NavigationLabels { get; set; }
public EpubNavigationContent Content { get; set; }
}
}