コード例 #1
0
        protected MDForm(IV8MetadataContainer Container, string formID) : base()
        {
            var Header = Container.GetElement(formID);

            SerializedList StringsBlock = FindStringsBlock(Header.ReadAll(), formID);

            ReadStringsBlock(StringsBlock);
            _Container = Container;
        }
コード例 #2
0
        ////////////////////////////////////////////////////////
        // static

        public static MDForm Create(IV8MetadataContainer Container, string ElementName)
        {
            var Data = Container.GetElement(ElementName + ".0");

            if (Data.ElemType == MDFileItem.ElementType.Directory)
            {
                return(MDOrdinaryForm.Create(Container, ElementName));
            }
            else
            {
                return(MDManagedForm.Create(Container, ElementName));
            }
        }
コード例 #3
0
        public static MDDataProcessor Create(IV8MetadataContainer Container, SerializedList Content)
        {
            MDDataProcessor NewMDObject = new MDDataProcessor();

            NewMDObject.Container = Container;

            StaticMDIdentifiers ids = new StaticMDIdentifiers();

            ids.AttributesCollection = "ec6bb5e5-b7a8-4d75-bec9-658107a699cf";
            ids.TablesCollection     = "2bcef0d1-0981-11d6-b9b8-0050bae0a95d";
            ids.FormsCollection      = "d5b0e5ed-256d-401c-9c36-f630cafd8a62";
            ids.TemplatesCollection  = "3daea016-69b7-4ed4-9453-127911372fe6";

            ReadFromStream(NewMDObject, Content, ids);

            return(NewMDObject);
        }
コード例 #4
0
ファイル: MDReport.cs プロジェクト: artamir/1SCodeAnalyze
        public static MDReport Create(IV8MetadataContainer Container, SerializedList Content)
        {
            MDReport NewReport = new MDReport();

            NewReport.Container = Container;

            StaticMDIdentifiers ids = new StaticMDIdentifiers();

            ids.AttributesCollection = "7e7123e0-29e2-11d6-a3c7-0050bae0a776";
            ids.TablesCollection     = "b077d780-29e2-11d6-a3c7-0050bae0a776";
            ids.FormsCollection      = "a3b368c0-29e2-11d6-a3c7-0050bae0a776";
            ids.TemplatesCollection  = "3daea016-69b7-4ed4-9453-127911372fe6";

            ReadFromStream(NewReport, Content, ids);

            return(NewReport);
        }
コード例 #5
0
        public MDTemplate(IV8MetadataContainer MDContainer, String ObjID)
        {
            _Container = MDContainer;

            SerializedList header = new SerializedList(_Container.GetElement(ObjID).ReadAll());

            Kind = (TemplateKind)Enum.Parse(typeof(TemplateKind), header.Items[1].Items[1].ToString());

            ReadStringsBlock((SerializedList)header.Items[1].Items[2]);

            switch (Kind)
            {
            case MDTemplate.TemplateKind.Moxel:
            case MDTemplate.TemplateKind.Text:
            case MDTemplate.TemplateKind.GEOSchema:
            case MDTemplate.TemplateKind.GraphicChart:
            case MDTemplate.TemplateKind.DCSAppearanceTemplate:
                m_Document = new PersistedTemplateStub(this);
                break;

            case MDTemplate.TemplateKind.BinaryData:
                m_Document = new BinaryDataDocument(this);
                break;

            case MDTemplate.TemplateKind.HTMLDocument:
                m_Document = new HTMLTemplate(this);
                break;

            case MDTemplate.TemplateKind.DataCompositionSchema:
                m_Document = new DCSSchemaDocument(this);
                break;

            default:
                break;
            }
        }
コード例 #6
0
        /// static
        ///

        new public static MDManagedForm Create(IV8MetadataContainer Container, string formID)
        {
            return(new MDManagedForm(Container, formID));
        }
コード例 #7
0
 private MDManagedForm(IV8MetadataContainer Container, string formID) : base(Container, formID)
 {
 }
コード例 #8
0
 private MDOrdinaryForm(IV8MetadataContainer Container, string formID) : base(Container, formID)
 {
 }
コード例 #9
0
 public HelpProviderImpl(IV8MetadataContainer Container, string HelpFile)
 {
     _Container = Container;
     _HelpFile  = HelpFile;
 }