Example #1
0
 protected ReferenceLink(DocBase parent, PBRoot link, bool cross)
 {
     this.linkText     = link.FullName;
     this.abstractLink = null;
     this.objectLink   = link;
     this.parent       = parent;
     this.parent.AddReference(this);
     this.crossLink = cross;
 }
Example #2
0
 public ReferenceLink(DocBase parent, string link_text, AbstractReferenceLinkResolver resolver)
 {
     this.linkText     = link_text;
     this.objectLink   = null;
     this.abstractLink = null;
     this.parent       = parent;
     resolver.AddLink(this);
     this.parent.AddReference(this);
     this.crossLink = false;
 }
Example #3
0
        public int CompareTo(object obj)
        {
            PBRoot root = obj as PBRoot;

            if (root != null)
            {
                return(this.Name.CompareTo(root.Name));
            }
            else
            {
                // TODO: vyhodit exception
            }

            return(0);
        }
        protected PBRoot TryStandard(ReferenceLink link)
        {
            Library lib = TryLibrary(link);

            if (lib != null)
            {
                return(lib);
            }

            PowerObject obj = TryPowerObject(link);

            if (obj != null)
            {
                return(obj);
            }

            obj = TryNestedPowerObject(link);
            if (obj != null)
            {
                return(obj);
            }

            ScriptBase script = TryScriptBase(link);

            if (script != null)
            {
                return(script);
            }

            PBRoot root = TryFullName(link);

            if (root != null)
            {
                return(root);
            }

            return(null);
        }
Example #5
0
 public PBRoot(PBRoot parent, string name)
 {
     this.name   = name.ToLower();
     this.parent = parent;
 }
Example #6
0
 public DocBase(PBRoot parent)
 {
     this.parent = parent;
 }