Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="visioContentType"></param>
        /// <param name="sourceLineNumbers"></param>
        /// <param name="attrib"></param>
        /// <param name="publishInfo"></param>
        /// <param name="addonAttrs"></param>

        private void ParseAddonAttrs(VisioContentType visioContentType, SourceLineNumberCollection sourceLineNumbers,
                                     XmlAttribute attrib, VisioPublishInfo publishInfo, AddonAttrs addonAttrs)
        {
            if (visioContentType != VisioContentType.Addon)
            {
                Core.UnexpectedAttribute(sourceLineNumbers, attrib);
            }
            else
            {
                if (YesNoType.Yes == Core.GetAttributeYesNoValue(sourceLineNumbers, attrib))
                {
                    publishInfo.AddonAttrs |= addonAttrs;
                }
                else
                {
                    publishInfo.AddonAttrs &= ~addonAttrs;
                }
            }
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="visioContentType"></param>
 /// <param name="sourceLineNumbers"></param>
 /// <param name="attrib"></param>
 /// <param name="publishInfo"></param>
 /// <param name="addonAttrs"></param>
 private void ParseAddonAttrs(VisioContentType visioContentType, SourceLineNumberCollection sourceLineNumbers,
                              XmlAttribute attrib, VisioPublishInfo publishInfo, AddonAttrs addonAttrs)
 {
     if (visioContentType != VisioContentType.Addon)
         Core.UnexpectedAttribute(sourceLineNumbers, attrib);
     else
     {
         if (YesNoType.Yes == Core.GetAttributeYesNoValue(sourceLineNumbers, attrib))
             publishInfo.AddonAttrs |= addonAttrs;
         else
             publishInfo.AddonAttrs &= ~addonAttrs;
     }
 }
Esempio n. 3
0
        public VisioPublishInfo(string fileName)
        {
            VisioVersion = VisioVersion.Default;
            VisioEdition = VisioEdition.Default;
            AddonAttrs = AddonAttrs.PerformsActions;

            MenuPath = Path.GetFileName(fileName);
            AltNames = "";

            VisioLanguage = 1;

            QuickShapesCount = 0;
            FeaturedTemplate = true;

            LocalizedName = Path.GetFileName(fileName);
            UniversalName = Path.GetFileName(fileName);

            EnablingPolicy = EnablingPolicy.AlwaysEnabled;
            StaticEnableConditions = StaticEnableConditions.Document;

            Ordinal = 1;
        }