Example #1
0
 public void Clear()
 {
     if (_listItems != null)
     {
         _listItems = new BuildKeyedList <TocItem>();
     }
 }
Example #2
0
 public SnippetContent(SnippetContent source)
     : base(source)
 {
     _name                = source._name;
     _languages           = source._languages;
     _excludedUnitFolders = source._excludedUnitFolders;
 }
        public override void Unload()
        {
            _listTopics     = null;
            _listNamespaces = null;

            _isLoaded = false;
        }
Example #4
0
            public override void OnWriteTopic(ConceptualItem item)
            {
                ConceptualItemType itemType = item.ItemType;

                if (itemType == ConceptualItemType.Topic ||
                    itemType == ConceptualItemType.Related)
                {
                    _manifestWriter.WriteStartElement("topic"); // start-fileAsset
                    _manifestWriter.WriteAttributeString("id", item.TopicId);
                    _manifestWriter.WriteEndElement();          // end-fileAsset
                }
                else if (itemType == ConceptualItemType.Html)
                {
                    _context[item.TopicId] = item.TopicTitle;
                }
                else if (itemType == ConceptualItemType.Marker)
                {
                    if (_listMarkers == null)
                    {
                        _listMarkers = new BuildKeyedList <ConceptualMarkerTopic>();
                    }

                    _listMarkers.Add((ConceptualMarkerTopic)item);
                }
            }
 public override void Clear()
 {
     if (_listTopics != null)
     {
         _listTopics = new BuildKeyedList <BuildTopicTocInfo>();
     }
 }
Example #6
0
 public override void Clear()
 {
     if (_listItems != null)
     {
         _listItems = new BuildKeyedList <ConceptualItem>();
     }
 }
Example #7
0
        public void Add(string tocFile, BuildGroupType groupType,
                        string groupId, bool isRooted, bool isExcluded)
        {
            if (_listTocMerges == null)
            {
                _listTocMerges = new BuildKeyedList <TocMerge>();
            }
            if (String.IsNullOrEmpty(tocFile) || String.IsNullOrEmpty(groupId))
            {
                return;
            }

            if (groupType == BuildGroupType.Conceptual)
            {
                if (_conceptualGroups == null)
                {
                    _conceptualGroups = new List <string>();
                }
                _conceptualGroups.Add(groupId);
            }
            else if (groupType == BuildGroupType.Reference)
            {
                if (_referenceGroups == null)
                {
                    _referenceGroups = new List <string>();
                }
                _referenceGroups.Add(groupId);
            }

            _listTocMerges.Add(new TocMerge(this.ExpandPath(tocFile),
                                            groupType, groupId, isRooted, isExcluded));
        }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReferenceVersionRelated"/> class
 /// with properties from the specified source, a copy constructor.
 /// </summary>
 /// <param name="source">
 /// An instance of the <see cref="ReferenceVersionRelated"/> class from which the
 /// initialization parameters or values will be copied.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// If the parameter <paramref name="source"/> is <see langword="null"/>.
 /// </exception>
 public ReferenceVersionRelated(ReferenceVersionRelated source)
     : base(source)
 {
     _platformId    = source._platformId;
     _platformTitle = source._platformTitle;
     _listSources   = source._listSources;
 }
 public ReferenceVersions()
 {
     _groupIndex  = -1;
     _sourceIndex = -1;
     _sourceId    = String.Format("ApiPlatform{0:x}", Guid.NewGuid().ToString().GetHashCode());
     _platformId  = String.Copy(_sourceId);
     _versionDirs = new BuildList <string>();
     _listSources = new BuildKeyedList <ReferenceVersionSource>();
 }
Example #10
0
 /// <overloads>
 /// Initializes a new instance of the <see cref="ReferenceVersionInfo"/> class.
 /// </overloads>
 /// <summary>
 /// Initializes a new instance of the <see cref="ReferenceVersionInfo"/> class
 /// to the default properties or values.
 /// </summary>
 public ReferenceVersionInfo()
 {
     _ripOldApis      = true;
     _platformFilters = true;
     _versionId       = String.Format("VerId{0:x}", Guid.NewGuid().ToString().GetHashCode());
     _platformId      = String.Format("Plat{0:x}", Guid.NewGuid().ToString().GetHashCode());
     _listSources     = new BuildKeyedList <ReferenceVersionSource>();
     _listRelated     = new BuildKeyedList <ReferenceVersionRelated>();
 }
Example #11
0
 public TocItem(TocItem source)
     : base(source)
 {
     _name        = source._name;
     _tocId       = source._tocId;
     _sourceId    = source._sourceId;
     _sourceType  = source._sourceType;
     _listItems   = source._listItems;
     _isRecursive = source._isRecursive;
 }
Example #12
0
        public XslTransformContent()
            : base(new BuildKeyedList <XslTransformItem>())
        {
            BuildKeyedList <XslTransformItem> keyedList =
                this.List as BuildKeyedList <XslTransformItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
Example #13
0
        public void AddRelated(ReferenceVersionRelated relatedVersion)
        {
            BuildExceptions.NotNull(relatedVersion, "relatedVersion");

            if (_listRelated == null)
            {
                _listRelated = new BuildKeyedList <ReferenceVersionRelated>();
            }

            _listRelated.Add(relatedVersion);
        }
Example #14
0
        public AttributeContent()
            : base(new BuildKeyedList <AttributeItem>())
        {
            BuildKeyedList <AttributeItem> keyedList =
                this.List as BuildKeyedList <AttributeItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
        public MathCommandContent()
            : base(new BuildKeyedList <MathCommandItem>())
        {
            BuildKeyedList <MathCommandItem> keyedList =
                this.List as BuildKeyedList <MathCommandItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
Example #16
0
        public void AddSource(ReferenceVersionSource source)
        {
            BuildExceptions.NotNull(source, "source");

            if (_listSources == null)
            {
                _listSources = new BuildKeyedList <ReferenceVersionSource>();
            }

            _listSources.Add(source);
        }
Example #17
0
        public TokenContent()
            : base(new BuildKeyedList <TokenItem>())
        {
            BuildKeyedList <TokenItem> keyedList =
                this.List as BuildKeyedList <TokenItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
Example #18
0
        public HierarchicalTocContent()
            : base(new BuildKeyedList <HierarchicalTocItem>())
        {
            BuildKeyedList <HierarchicalTocItem> keyedList =
                this.List as BuildKeyedList <HierarchicalTocItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
Example #19
0
        public BibliographyContent()
            : base(new BuildKeyedList <BibliographyItem>())
        {
            BuildKeyedList <BibliographyItem> keyedList =
                this.List as BuildKeyedList <BibliographyItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
Example #20
0
        public ConfiguratorContent()
            : base(new BuildKeyedList <ConfiguratorItem>())
        {
            BuildKeyedList <ConfiguratorItem> keyedList =
                this.List as BuildKeyedList <ConfiguratorItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
Example #21
0
        public CategoryContent()
            : base(new BuildKeyedList <CategoryItem>())
        {
            BuildKeyedList <CategoryItem> keyedList =
                this.List as BuildKeyedList <CategoryItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }
        }
Example #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReferenceVersionInfo"/> class
 /// with properties from the specified source, a copy constructor.
 /// </summary>
 /// <param name="source">
 /// An instance of the <see cref="ReferenceVersionInfo"/> class from which the
 /// initialization parameters or values will be copied.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// If the parameter <paramref name="source"/> is <see langword="null"/>.
 /// </exception>
 public ReferenceVersionInfo(ReferenceVersionInfo source)
     : base(source)
 {
     _versionId       = source._versionId;
     _versionLabel    = source._versionLabel;
     _platformTitle   = source._platformTitle;
     _platformId      = source._platformId;
     _platformFilters = source._platformFilters;
     _ripOldApis      = source._ripOldApis;
     _listSources     = source._listSources;
     _listRelated     = source._listRelated;
 }
Example #23
0
        public TocContent()
            : base(new BuildKeyedList <TocItem>())
        {
            BuildKeyedList <TocItem> keyedList =
                this.List as BuildKeyedList <TocItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }

            _isEnabled = true;
        }
Example #24
0
        public SharedContent()
            : base(new BuildKeyedList <SharedItem>())
        {
            BuildKeyedList <SharedItem> keyedList =
                this.List as BuildKeyedList <SharedItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }

            _contentName = Guid.NewGuid().ToString();
        }
        public DependencyContent()
            : base(new BuildKeyedList <DependencyItem>())
        {
            BuildKeyedList <DependencyItem> keyedList =
                this.List as BuildKeyedList <DependencyItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }

            _paths = new BuildList <BuildDirectoryPath>();
        }
Example #26
0
        public CommentContent()
            : base(new BuildKeyedList <CommentItem>())
        {
            BuildKeyedList <CommentItem> keyedList =
                this.List as BuildKeyedList <CommentItem>;

            if (keyedList != null)
            {
                _dicItems = keyedList.Dictionary;
            }

            _assemblyName = String.Empty;
        }
        public override void InsertRange(int index, BuildGroupTocInfo groupTocInfo)
        {
            if (groupTocInfo == null || groupTocInfo.Count == 0)
            {
                return;
            }
            if (_listTopics == null)
            {
                _listTopics = new BuildKeyedList <BuildTopicTocInfo>();
            }

            _listTopics.Insert(index, groupTocInfo.Items);
        }
        public override void InsertRange(int index, IList <BuildTopicTocInfo> items)
        {
            if (items == null || items.Count == 0)
            {
                return;
            }
            if (_listTopics == null)
            {
                _listTopics = new BuildKeyedList <BuildTopicTocInfo>();
            }

            _listTopics.Insert(index, items);
        }
        public override void AddRange(BuildGroupTocInfo groupTocInfo)
        {
            if (groupTocInfo == null || groupTocInfo.Count == 0)
            {
                return;
            }
            if (_listTopics == null)
            {
                _listTopics = new BuildKeyedList <BuildTopicTocInfo>();
            }

            _listTopics.Add(groupTocInfo.Items);
        }
        public override void AddRange(IList <BuildTopicTocInfo> items)
        {
            if (items == null || items.Count == 0)
            {
                return;
            }
            if (_listTopics == null)
            {
                _listTopics = new BuildKeyedList <BuildTopicTocInfo>();
            }

            _listTopics.Add(items);
        }