protected override DriverResult Display(LocationPickerPart part, String displayType, dynamic shapeHelper) { SettingsPart settings = this._orchardServices.WorkContext.CurrentSite.As <SettingsPart>(); return(this.ContentShape( "Parts_LocationPicker", () => shapeHelper.Parts_LocationPicker( LocationPickerPartId: part.Id, CurrentRegionId: this._webStoreServices.CurrentRegionId, CurrentCountryId: this._webStoreServices.CurrentCountryId, Countries: this._webStoreServices.StoreContext.AvailableCountries, Regions: settings.AllowRegionNavigation ? this.GetRegions() : null ) )); }
private void WriteSettings() { SettingsPart settingsPart = new SettingsPart(); CT_Settings cT_Settings = (CT_Settings)settingsPart.Root; cT_Settings.Compat = new CT_Compat { FootnoteLayoutLikeWW8 = this.On(), ShapeLayoutLikeWW8 = this.On(), AlignTablesRowByRow = this.On(), ForgetLastTabAlignment = this.On(), DoNotUseHTMLParagraphAutoSpacing = this.On(), LayoutRawTableWidth = this.On(), LayoutTableRowsApart = this.On(), UseWord97LineBreakRules = this.On(), DoNotBreakWrappedTables = this.On(), DoNotSnapToGridInCell = this.On(), SelectFldWithFirstOrLastChar = this.On(), DoNotWrapTextWithPunct = this.On(), DoNotUseEastAsianBreakRules = this.On(), UseWord2002TableStyleRules = this.On(), GrowAutofit = this.On(), UseNormalStyleForList = this.On(), DoNotUseIndentAsNumberingTabStop = this.On(), UseAltKinsokuLineBreakRules = this.On(), AllowSpaceOfSameStyleInTable = this.On(), DoNotSuppressIndentation = this.On(), DoNotAutofitConstrainedTables = this.On(), AutofitToFirstFixedWidthCell = this.On(), UnderlineTabInNumList = this.On(), DisplayHangulFixedWidth = this.On(), SplitPgBreakAndParaMark = this.On(), DoNotVertAlignCellWithSp = this.On(), DoNotBreakConstrainedForcedTable = this.On(), DoNotVertAlignInTxbx = this.On(), UseAnsiKerningPairs = this.On(), CachedColBalance = this.On() }; this._manager.WriteStaticPart(settingsPart, "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings", "word/settings.xml", this._manager.GetRootPart()); }