예제 #1
0
        public WikiComponent(IWikiData rawData, WikiComponentType componentType, Node startNode, Node endNode)
        {
            RawData       = rawData;
            ComponentType = componentType;
            StartNode     = startNode;
            EndNode       = endNode;

            _children = new List <IWikiComponent>();
        }
예제 #2
0
 public ArticleContainer(IWikiData rawData, IWikiArticle wikiArticle, Node startNode, Node endNode) : base(rawData, WikiComponentType.Article, startNode, endNode)
 {
     Content = wikiArticle;
 }
예제 #3
0
 public ArticleContainer CreateArticleContainer(IWikiData rawData, IWikiArticle article, Node startNode, Node endNode)
 {
     return(new ArticleContainer(rawData, article, startNode, endNode));
 }
예제 #4
0
 public ImageContainer CreateImageContainer(IWikiData rawData, IWikiImage image, WikiComponentType componentType, Node startNode, Node endNode)
 {
     return(new ImageContainer(rawData, image, componentType, startNode, endNode));
 }
예제 #5
0
 public WikiComponent CreateComponent(IWikiData rawData, WikiComponentType componentType, Node startNode, Node endNode)
 {
     return(new WikiComponent(rawData, componentType, startNode, endNode));
 }
예제 #6
0
 public ImageContainer(IWikiData rawData, IWikiImage wikiImage, WikiComponentType componentType, Node startNode, Node endNode) : base(rawData, componentType, startNode, endNode)
 {
     Content = wikiImage;
 }