// Token: 0x060014D6 RID: 5334 RVA: 0x0007EC44 File Offset: 0x0007CE44 private static void ParseNewItemMenuEntries(XmlTextReader reader, List <UIExtensionManager.NewMenuExtensionItem> entries) { while (reader.Read() && entries.Count < 10) { if (reader.NodeType == XmlNodeType.Element && reader.Name == "NewItemMenuEntry") { entries.Add(new UIExtensionManager.NewMenuExtensionItem(UIExtensionManager.CreateIconPath(reader, "Icon", false), reader.GetAttribute("ItemType"), UIExtensionManager.ParseMultiLanguageText(reader, "NewItemMenuEntry"))); } else if (reader.NodeType == XmlNodeType.EndElement && reader.Name == "NewItemMenuEntries") { return; } } }
// Token: 0x060014D5 RID: 5333 RVA: 0x0007EBB8 File Offset: 0x0007CDB8 private static void ParseNavigationBarEntries(XmlTextReader reader, List <UIExtensionManager.NavigationExtensionItem> entries) { while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == "MainNavigationBarEntry") { entries.Add(new UIExtensionManager.NavigationExtensionItem(UIExtensionManager.CreateIconPath(reader, "LargeIcon", false), UIExtensionManager.CreateIconPath(reader, "SmallIcon", false), reader.GetAttribute("URL"), UIExtensionManager.ParseMultiLanguageText(reader, "MainNavigationBarEntry"))); } else if (reader.NodeType == XmlNodeType.EndElement && reader.Name == "MainNavigationBarExtensions") { return; } } }
// Token: 0x060014D7 RID: 5335 RVA: 0x0007ECCC File Offset: 0x0007CECC private static void ParseRightClickMenuItemEntries(XmlTextReader reader, List <UIExtensionManager.RightClickMenuExtensionItem> entries) { while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == "RightClickMenuEntry") { entries.Add(new UIExtensionManager.RightClickMenuExtensionItem(UIExtensionManager.CreateIconPath(reader, "Icon", true), reader.GetAttribute("filter"), reader.GetAttribute("URL"), UIExtensionManager.ParseMultiLanguageText(reader, "RightClickMenuEntry"))); } else if (reader.NodeType == XmlNodeType.EndElement && reader.Name == "RightClickMenuExtensions") { return; } } }
// Token: 0x060014D4 RID: 5332 RVA: 0x0007EAB0 File Offset: 0x0007CCB0 internal static void Initialize() { if (!File.Exists(UIExtensionManager.FullExtensionFileName)) { return; } try { using (XmlTextReader xmlTextReader = SafeXmlFactory.CreateSafeXmlTextReader(UIExtensionManager.FullExtensionFileName)) { xmlTextReader.WhitespaceHandling = WhitespaceHandling.None; while (xmlTextReader.Read()) { if (xmlTextReader.NodeType == XmlNodeType.Element) { if (xmlTextReader.Name == "MainNavigationBarExtensions") { UIExtensionManager.ParseNavigationBarEntries(xmlTextReader, UIExtensionManager.navigationBarEntries); } else if (xmlTextReader.Name == "NewItemMenuEntries") { UIExtensionManager.ParseNewItemMenuEntries(xmlTextReader, UIExtensionManager.menuItemEntries); } else if (xmlTextReader.Name == "RightClickMenuExtensions") { UIExtensionManager.ParseRightClickMenuItemEntries(xmlTextReader, UIExtensionManager.contextMenuItemEntries); } } } } } catch (Exception) { OwaDiagnostics.LogEvent(ClientsEventLogConstants.Tuple_CustomizationUIExtensionParseError, string.Empty, new object[] { UIExtensionManager.FullExtensionFileName }); UIExtensionManager.navigationBarEntries.Clear(); UIExtensionManager.menuItemEntries.Clear(); UIExtensionManager.contextMenuItemEntries.Clear(); } }
internal void ExecuteApplicationStart(object sender, EventArgs e) { ExTraceGlobals.CoreCallTracer.TraceDebug(0L, "Global.Application_Start"); try { if (OwaApplicationBase.IsRunningDfpowa) { string localPath = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath; DirectoryInfo[] directories = Directory.GetParent(Directory.GetParent(localPath).FullName).GetDirectories("Config"); if (directories.Length > 0) { VariantConfiguration.Initialize(directories[0].FullName); } } Globals.Initialize(this.OwaVDirType); Kerberos.FlushTicketCache(); SmallIconManager.Initialize(); ThemeManager.Initialize(); FormsRegistryManager.Initialize(HttpRuntime.AppDomainAppPath); ADCustomPropertyParser.Initialize(HttpRuntime.AppDomainAppPath); PerformanceCounterManager.InitializePerformanceCounters(); ProxyEventHandler.Initialize(); ExRpcModule.Bind(); UIExtensionManager.Initialize(); HelpProvider.Initialize(HelpProvider.HelpAppName.Owa); this.ExecuteApplicationSpecificStart(); } catch (OwaSmallIconManagerInitializationException initializationError) { ExTraceGlobals.CoreTracer.TraceDebug(0L, "Application initialization failed"); Globals.InitializationError = initializationError; return; } catch (OwaThemeManagerInitializationException initializationError2) { ExTraceGlobals.CoreTracer.TraceDebug(0L, "Application initialization failed"); Globals.InitializationError = initializationError2; return; } catch (OwaFormsRegistryInitializationException initializationError3) { ExTraceGlobals.CoreTracer.TraceDebug(0L, "Application initialization failed"); Globals.InitializationError = initializationError3; return; } catch (OwaInvalidConfigurationException ex) { ExTraceGlobals.CoreTracer.TraceDebug(0L, "Application initialization failed because of a problem with configuration: " + ex.Message); Globals.InitializationError = ex; return; } catch (OwaWin32Exception ex2) { ExTraceGlobals.CoreTracer.TraceDebug <int>(0L, "Application initialization failed with a win32 error: {0}", ex2.LastError); Globals.InitializationError = ex2; return; } catch (Exception initializationError4) { ExTraceGlobals.CoreTracer.TraceDebug(0L, "Application initialization failed"); Globals.InitializationError = initializationError4; throw; } Globals.IsInitialized = true; ExTraceGlobals.CoreTracer.TraceDebug(0L, "Application initialization succeeded"); if (Globals.IsPreCheckinApp) { OwaDiagnostics.Logger.LogEvent(ClientsEventLogConstants.Tuple_DfpOwaStartedSuccessfully, string.Empty, new object[0]); return; } OwaDiagnostics.Logger.LogEvent(ClientsEventLogConstants.Tuple_OwaStartedSuccessfully, string.Empty, new object[0]); }