public GraphicsParameters(bool windowed, RectangleF rect, Format format, PresentParameters pparams, CreateFlags cflags, DeviceType dtype, Caps dcaps,float zNear,float zFar) { this.windowed = windowed; windowRect = rect; adapterFormat = format; presentParams = (PresentParameters)pparams.Clone(); createFlags = cflags; deviceType = dtype; deviceCaps = dcaps; zNearPlane = zNear; zFar = zFarPlane; }
/// <summary> /// Called during device initialization, this code checks the device for some /// minimum set of capabilities, and rejects those that don't pass by returning false. /// </summary> public bool IsDeviceAcceptable(Caps caps, Format adapterFormat, Format backBufferFormat, bool windowed) { // Skip back buffer formats that don't support alpha blending if (!Manager.CheckDeviceFormat(caps.AdapterOrdinal, caps.DeviceType, adapterFormat, Usage.QueryPostPixelShaderBlending, ResourceType.Textures, backBufferFormat)) return false; return true; }
private StringSet GetFeatures(CapsManager caps, Presence p) { if (p == null) return null; Caps c = p.GetChildElement<Caps>(); if (c == null) return null; DiscoInfo di = caps[c.Version]; if (di == null) return null; return di.FeatureSet; }
public void BeforeAll() { DesiredCapabilities capabilities = Caps.getIos82Caps(Apps.get("iosWebviewApp")); if (Env.isSauce()) { capabilities.SetCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.SetCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.SetCapability("tags", new string[] { "sample" }); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.LocalServiceURIForIOS; driver = new IOSDriver <IWebElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); driver.Manage().Timeouts().ImplicitlyWait(Env.IMPLICIT_TIMEOUT_SEC); }
/// <summary> /// Called during device initialization, this code checks the device /// for some minimum set of capabilities /// </summary> protected override bool ConfirmDevice(Caps caps, VertexProcessingType vertexProcessingType, Format adapterFormat, Format backBufferFormat) { // Make sure this device can support cube textures, software vertex processing, // and vertex shaders of at least v1.0 if ((!caps.TextureCaps.SupportsCubeMap) && (vertexProcessingType != VertexProcessingType.Software) && (caps.VertexShaderVersion.Major < 1)) { return(false); } // Check that we can create a cube texture that we can render into return(true); }
public static void Run(string[] args) { Application.Init(ref args); GtkSharp.GstreamerSharp.ObjectManager.Initialize(); _pipeline = CreatePipeline("cam_pipeline"); var bus = _pipeline.Bus; bus.AddWatch(OnBusMessage); _devMon = new DeviceMonitor(); var caps = new Caps("video/x-raw"); var filtId = _devMon.AddFilter("Video/Source", caps); if (!_devMon.Start()) { "Device monitor cannot start".PrintErr(); return; } if (_devMon.Devices.Length == 0) { Console.WriteLine("No video sources"); } else { Console.WriteLine($"Video devices count = {_devMon.Devices.Length}"); foreach (var dev in _devMon.Devices) { DumpDevice(dev); } var cam = _devMon.Devices.FirstOrDefault(d => d.DeviceClass == "Video/Source"); if (cam != null) { Console.WriteLine("Cam found"); ShowCamera(cam.DisplayName); } } var devMonBus = _devMon.Bus; devMonBus.AddWatch(OnBusMessage); var loop = new GLib.MainLoop(); loop.Run(); }
public RenderForm() { InitializeComponent(); SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); watch.Start(); // Read list of names names = Models.vornamen.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); // Read device-caps deviceCaps = Manager.GetDeviceCaps(0, DeviceType.Hardware); // Setup render-device presentParameters = new PresentParameters(); presentParameters.Windowed = true; presentParameters.SwapEffect = SwapEffect.Discard; presentParameters.PresentationInterval = PresentInterval.Immediate; presentParameters.BackBufferFormat = Manager.Adapters[0].CurrentDisplayMode.Format; presentParameters.BackBufferCount = 1; presentParameters.EnableAutoDepthStencil = true; presentParameters.AutoDepthStencilFormat = DepthFormat.D16; // If possible, use bether depth-buffer if ( Manager.CheckDepthStencilMatch ( 0, DeviceType.Hardware, Manager.Adapters[0].CurrentDisplayMode.Format, Manager.Adapters[0].CurrentDisplayMode.Format, DepthFormat.D24X8)) { presentParameters.AutoDepthStencilFormat = DepthFormat.D24X8; } // Check for multisampling if ( Manager.CheckDeviceMultiSampleType ( 0, DeviceType.Hardware, Manager.Adapters[0].CurrentDisplayMode.Format, true, MultiSampleType.TwoSamples)) { presentParameters.MultiSample = MultiSampleType.TwoSamples; } }
/// <summary> /// Initializes the device. /// </summary> public static void Initialize(Control renderTarget, Pool.Pool pool) { tagPool = pool; if (d3dInitialized) { MdxRender.Device.Dispose(); } RenderCore.renderTarget = renderTarget; int adapter = Manager.Adapters.Default.Adapter; caps = Manager.GetDeviceCaps(adapter, DeviceType); pp.PresentationInterval = PresentInterval.Default; pp.Windowed = true;// !MdxRender.FullScreen; pp.SwapEffect = SwapEffect.Discard; pp.EnableAutoDepthStencil = true; pp.AutoDepthStencilFormat = GetDepthFormat(adapter); //pp.MultiSample = GetMultiSampleType(adapter); //pp.MultiSampleQuality = 0; CreateFlags flags; flags = CreateFlags.SoftwareVertexProcessing; if (caps.DeviceCaps.SupportsHardwareTransformAndLight) { flags = CreateFlags.HardwareVertexProcessing; } // Disable built in events. Device.IsUsingEventHandlers = false; MdxRender.Device = new Device(adapter, DeviceType, renderTarget, flags, pp); SetupDevice(); //MdxRender.Device.DeviceResizing += new System.ComponentModel.CancelEventHandler(device_DeviceResizing); //MdxRender.Device.DeviceReset += new EventHandler(device_DeviceReset); camera = new Camera.Camera(); MdxRender.FrameTimer = new FPSCounter(50); SelectTool.InitializeHandleModel(); Billboard.LoadResources(0.5f, 0.5f); fontFPS = new DXFont(MdxRender.Device, new Font("Arial", 12, FontStyle.Bold)); DebugFont = new Microsoft.DirectX.Direct3D.Font(MdxRender.Device, new Font("Arial", 12, FontStyle.Bold)); console = new DebugConsole.DebugConsole(MdxRender.Device); d3dInitialized = true; }
/// <summary> /// Called during device initialization, this code checks the device for some /// minimum set of capabilities /// </summary> protected override bool ConfirmDevice(Caps caps, VertexProcessingType vertexProcessingType, Format adapterFormat, Format backBufferFormat) { // This sample uses the ADDSIGNED texture blending mode if (!caps.TextureOperationCaps.SupportsAddSigned) { return(false); } if (caps.MaxTextureBlendStages < 2) { return(false); } return(true); }
/// <summary> /// Creates a new <see cref="DisplayDevice"/> using a provided <see cref="DisplayAdapter"/> and <see cref="DeviceType"/>. /// </summary> /// <param name="displayAdapter">The display adapter you wish to use.</param> /// <param name="deviceType">The type of device you wish to use.</param> public DisplayDevice(DisplayAdapter displayAdapter, DeviceType deviceType) { this.adapter = displayAdapter; this.deviceType = deviceType; try { this.caps = Manager.GetDeviceCaps(adapter.Ordinal, deviceType); } catch (DirectXException) { // do nothing, this is expected } this.RefreshDeviceModes(); }
public AppiumIOSCapabilities(SaucePlatform platform, string testName) : base(testName) { var nativeApp = Enviro.SauceNativeApp; Console.WriteLine(SauceryConstants.SETTING_UP, testName, SauceryConstants.IOS_ON_APPIUM); Caps = platform.IsAnIPhone() ? DesiredCapabilities.IPhone() : DesiredCapabilities.IPad(); Caps.SetCapability(SauceryConstants.SAUCE_APPIUM_VERSION_CAPABILITY, SauceryConstants.SAUCE_APPIUM_VERSION); Caps.SetCapability(SauceryConstants.SAUCE_BROWSER_NAME_CAPABILITY, GetBrowser(nativeApp)); Caps.SetCapability(SauceryConstants.SAUCE_PLATFORM_VERSION_CAPABILITY, platform.BrowserVersion); Caps.SetCapability(SauceryConstants.SAUCE_PLATFORM_NAME_CAPABILITY, SauceryConstants.IOS_PLATFORM); Caps.SetCapability(SauceryConstants.SAUCE_DEVICE_NAME_CAPABILITY, platform.IsAnIPhone() ? SauceryConstants.IPHONE_SIMULATOR : SauceryConstants.IPAD_SIMULATOR); Caps.SetCapability(SauceryConstants.SAUCE_DEVICE_CAPABILITY, platform.IsAnIPhone() ? SauceryConstants.IPHONE_DEVICE : SauceryConstants.IPAD_DEVICE); Caps.SetCapability(SauceryConstants.SAUCE_DEVICE_ORIENTATION_CAPABILITY, platform.DeviceOrientation); AddSauceLabsCapabilities(nativeApp); }
/// <summary> /// Creates a new <see cref="DisplayDevice"/> using a provided <see cref="DisplayAdapter"/> and <see cref="DeviceType"/>. /// </summary> /// <param name="displayAdapter">The display adapter you wish to use.</param> /// <param name="deviceType">The type of device you wish to use.</param> public DisplayDevice(DisplayAdapter displayAdapter, DeviceType deviceType) { this.adapter = displayAdapter; this.deviceType = deviceType; try { this.caps = Manager.GetDeviceCaps(adapter.Ordinal, deviceType); } catch (DirectXException) { // do nothing, this is expected } this.RefreshDeviceModes(); }
public void BeforeAll() { AppiumOptions capabilities = Caps.getIos92Caps(Apps.get("iosTestApp")); if (Env.isSauce()) { capabilities.AddAdditionalCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.AddAdditionalCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.AddAdditionalCapability("name", "ios - actions"); capabilities.AddAdditionalCapability("tags", new string[] { "sample" }); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.LocalServiceURIForIOS; driver = new IOSDriver <IWebElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); driver.Manage().Timeouts().ImplicitWait = Env.IMPLICIT_TIMEOUT_SEC; }
public void BeforeAll() { AppiumOptions capabilities = Caps.getAndroid27Caps(Apps.get("androidApiDemos")); if (Env.isSauce()) { capabilities.AddAdditionalCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.AddAdditionalCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.AddAdditionalCapability("name", "android - complex"); capabilities.AddAdditionalCapability("tags", new string[] { "sample" }); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.LocalServiceURIAndroid; driver = new AndroidDriver <AndroidElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); driver.Manage().Timeouts().ImplicitWait = Env.IMPLICIT_TIMEOUT_SEC; }
public void BeforeAll() { DesiredCapabilities capabilities = Caps.getIos71Caps(Apps.get("iosTestApp")); if (Env.isSauce()) { capabilities.SetCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.SetCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.SetCapability("name", "ios - actions"); capabilities.SetCapability("tags", new string[] { "sample" }); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.localURI; driver = new AppiumDriver(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); driver.Manage().Timeouts().ImplicitlyWait(Env.IMPLICIT_TIMEOUT_SEC); }
public void BeforeAll() { var capabilities = Env.isSauce() ? Caps.getAndroid501Caps(Apps.get("selendroidTestApp")) : Caps.getAndroid19Caps(Apps.get("selendroidTestApp")); if (Env.isSauce()) { capabilities.SetCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.SetCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.SetCapability("name", "android - complex"); capabilities.SetCapability("tags", new[] {"sample"}); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.LocalServiceURIAndroid; driver = new AndroidDriver<IWebElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); driver.Manage().Timeouts().ImplicitWait = Env.IMPLICIT_TIMEOUT_SEC; }
public void BeforeAll() { var capabilities = Caps.GetIosCaps(Apps.Get("iosTestApp")); if (Env.ServerIsRemote()) { capabilities.AddAdditionalCapability("username", Env.GetEnvVar("SAUCE_USERNAME")); capabilities.AddAdditionalCapability("accessKey", Env.GetEnvVar("SAUCE_ACCESS_KEY")); capabilities.AddAdditionalCapability("name", "ios - simple"); capabilities.AddAdditionalCapability("tags", new[] { "sample" }); } var serverUri = Env.ServerIsRemote() ? AppiumServers.RemoteServerUri : AppiumServers.LocalServiceUri; _driver = new IOSDriver <IOSElement>(serverUri, capabilities, Env.InitTimeoutSec); _driver.Manage().Timeouts().ImplicitWait = Env.ImplicitTimeoutSec; }
private void InitializeGraphics() { try { PresentParameters presentParams = new PresentParameters(); presentParams.Windowed = true; presentParams.SwapEffect = SwapEffect.Discard; presentParams.BackBufferFormat = Format.Unknown; presentParams.AutoDepthStencilFormat = DepthFormat.D16; presentParams.EnableAutoDepthStencil = true; // Store the default adapter int adapterOrdinal = Manager.Adapters.Default.Adapter; CreateFlags flags = CreateFlags.SoftwareVertexProcessing; // Check to see if we can use a pure hardware device Caps caps = Manager.GetDeviceCaps(adapterOrdinal, DeviceType.Hardware); // Do we support hardware vertex processing? if (caps.DeviceCaps.SupportsHardwareTransformAndLight) { // Replace the software vertex processing flags = CreateFlags.HardwareVertexProcessing; } // Do we support a pure device? if (caps.DeviceCaps.SupportsPureDevice) { flags |= CreateFlags.PureDevice; } device = new Device(0, DeviceType.Hardware, this, flags, presentParams); device.DeviceReset += new System.EventHandler(this.OnResetDevice); OnResetDevice(device, null); tileSheet = TextureLoader.FromFile(device, MediaUtilities.FindFile("donuts.bmp"), 1024, 1024, 1, 0, Format.A8R8G8B8, Pool.Managed, Filter.Point, Filter.Point, (unchecked ((int)0xff000000))); //Uncomment these lines to see the spite border areas // donutTexture = TextureLoader.FromFile(device, MediaUtilities.FindFile("donuts.bmp"), 1024, 1024, // 1, 0,Format.A8R8G8B8, Pool.Managed, Filter.Point, Filter.Point, 0); tileSet = new TileSet(tileSheet, 0, 0, 6, 5, 32, 32); tilePosition = new Rectangle(tileSet.XOrigin, tileSet.YOrigin, tileSet.ExtentX * 2, tileSet.ExtentY * 2); } catch (DirectXException) { // Catch any errors and return a failure } }
public static void Create() { Parameters = new PresentParameters { BackBufferFormat = Format.X8R8G8B8, PresentFlag = PresentFlag.LockableBackBuffer, BackBufferWidth = Settings.ScreenWidth, BackBufferHeight = Settings.ScreenHeight, SwapEffect = SwapEffect.Discard, PresentationInterval = Settings.FPSCap ? PresentInterval.One : PresentInterval.Immediate, Windowed = !Settings.FullScreen, }; Caps devCaps = Manager.GetDeviceCaps(0, DeviceType.Hardware); DeviceType devType = DeviceType.Reference; CreateFlags devFlags = CreateFlags.HardwareVertexProcessing; if (devCaps.VertexShaderVersion.Major >= 2 && devCaps.PixelShaderVersion.Major >= 2) { devType = DeviceType.Hardware; } if (devCaps.DeviceCaps.SupportsHardwareTransformAndLight) { devFlags = CreateFlags.HardwareVertexProcessing; } if (devCaps.DeviceCaps.SupportsPureDevice) { devFlags |= CreateFlags.PureDevice; } Device = new Device(Manager.Adapters.Default.Adapter, devType, Program.Form, devFlags, Parameters); Device.DeviceLost += (o, e) => DeviceLost = true; Device.DeviceResizing += (o, e) => e.Cancel = true; Device.DeviceReset += (o, e) => LoadTextures(); Device.Disposing += (o, e) => Clean(); Device.SetDialogBoxesEnabled(true); LoadTextures(); LoadPixelsShaders(); }
/// <summary> /// Plugin entry point - All plugins must implement this function /// </summary> public override void Load() { Caps caps = Global.worldWindow.DrawArgs.device.DeviceCaps; if (!caps.DestinationBlendCaps.SupportsBlendFactor || !caps.SourceBlendCaps.SupportsBlendFactor) { throw new ApplicationException("The graphics adapter is not compatible, no blend factor support."); } layer = new StereoLayer(LayerName, Global.worldWindow); Global.worldWindow.CurrentWorld.RenderableObjects.Add(layer); layer.IsOn = false; //turn off // menuItem_Click(null, null); //And on to trigger check and warning // !!!!!!!!!=========Uncomment the above line to enable on startup===============!!!!!!!!!!!! }
public AppiumAndroidCapabilities(SaucePlatform platform, string testName) : base(testName) { var nativeApp = Enviro.SauceNativeApp; var useChromeOnAndroid = Enviro.SauceUseChromeOnAndroid; Console.WriteLine(SauceryConstants.SETTING_UP, testName, SauceryConstants.ANDROID_ON_APPIUM); Caps = DesiredCapabilities.Android(); Caps.SetCapability(SauceryConstants.SAUCE_BROWSER_NAME_CAPABILITY, GetBrowser(nativeApp, useChromeOnAndroid)); Caps.SetCapability(SauceryConstants.SAUCE_PLATFORM_VERSION_CAPABILITY, platform.LongVersion); Caps.SetCapability(SauceryConstants.SAUCE_APPIUM_VERSION_CAPABILITY, SauceryConstants.SAUCE_APPIUM_VERSION); Caps.SetCapability(SauceryConstants.SAUCE_PLATFORM_NAME_CAPABILITY, SauceryConstants.ANDROID); Caps.SetCapability(SauceryConstants.SAUCE_DEVICE_NAME_CAPABILITY, platform.LongName); Caps.SetCapability(SauceryConstants.SAUCE_DEVICE_ORIENTATION_CAPABILITY, platform.DeviceOrientation); AddSauceLabsCapabilities(nativeApp); }
public TgcD3dDevice(Control panel3d) { this.panel3d = panel3d; aspectRatio = (float)this.panel3d.Width / this.panel3d.Height; Caps caps = Manager.GetDeviceCaps(Manager.Adapters.Default.Adapter, DeviceType.Hardware); CreateFlags flags; Console.WriteLine("Max primitive count:" + caps.MaxPrimitiveCount); if (caps.DeviceCaps.SupportsHardwareTransformAndLight) { flags = CreateFlags.HardwareVertexProcessing; } else { flags = CreateFlags.SoftwareVertexProcessing; } PresentParameters d3dpp = new PresentParameters(); d3dpp.BackBufferFormat = Format.Unknown; d3dpp.SwapEffect = SwapEffect.Discard; d3dpp.Windowed = true; d3dpp.EnableAutoDepthStencil = true; d3dpp.AutoDepthStencilFormat = DepthFormat.D24S8; d3dpp.PresentationInterval = PresentInterval.Immediate; //Antialiasing if (Manager.CheckDeviceMultiSampleType(Manager.Adapters.Default.Adapter, DeviceType.Hardware, Manager.Adapters.Default.CurrentDisplayMode.Format, true, MultiSampleType.NonMaskable)) { d3dpp.MultiSample = MultiSampleType.TwoSamples; d3dpp.MultiSampleQuality = 0; } else { d3dpp.MultiSample = MultiSampleType.None; } //Crear Graphics Device Device.IsUsingEventHandlers = false; d3dDevice = new Device(0, DeviceType.Hardware, panel3d, flags, d3dpp); d3dDevice.DeviceReset += new System.EventHandler(this.OnResetDevice); }
/// <summary> /// Called during device initialization, this code checks the device for some /// minimum set of capabilities, and rejects those that don't pass by returning false. /// </summary> public bool IsDeviceAcceptable(Caps caps, Format adapterFormat, Format backBufferFormat, bool windowed) { // No fallback, need at least PS1.1 if (caps.PixelShaderVersion < new Version(1, 1)) { return(false); } // Skip back buffer formats that don't support alpha blending if (!Manager.CheckDeviceFormat(caps.AdapterOrdinal, caps.DeviceType, adapterFormat, Usage.QueryPostPixelShaderBlending, ResourceType.Textures, backBufferFormat)) { return(false); } return(true); }
private void OnCapsSet(object o, Gst.GLib.NotifyArgs args) { Structure s = null; int width, height, fps_n, fps_d, par_n, par_d; Caps caps = ((Pad)o).NegotiatedCaps; width = height = fps_n = fps_d = 0; if (caps == null) { return; } /* Get video decoder caps */ s = caps [0]; if (s != null) { /* We need at least width/height and framerate */ if (!(s.HasField("framerate") && s.HasField("width") && s.HasField("height"))) { return; } Fraction f = new Fraction(s.GetValue("framerate")); fps_n = f.Numerator; fps_d = f.Denominator; Gst.GLib.Value val; width = (int)s.GetValue("width"); height = (int)s.GetValue("height"); /* Get the PAR if available */ val = s.GetValue("pixel-aspect-ratio"); if (!val.Equals(Gst.GLib.Value.Empty)) { Fraction par = new Fraction(val); par_n = par.Numerator; par_d = par.Denominator; } else /* Square pixels */ { par_n = 1; par_d = 1; } /* Notify PlayerEngine if a callback was set */ RaiseVideoGeometry(width, height, fps_n, fps_d, par_n, par_d); } }
public void StartingIosAppWithCapabilitiesOnlyTest() { var app = Apps.Get("iosTestApp"); var capabilities = Caps.GetIosCaps(app); IOSDriver <AppiumWebElement> driver = null; try { driver = new IOSDriver <AppiumWebElement>(capabilities, Env.InitTimeoutSec); driver.CloseApp(); } finally { driver?.Quit(); } }
/*------------------------------------------------------------------------- * 쉐이더が사용가능か調べる * ---------------------------------------------------------------------------*/ private void check_shader_support() { // 버전が쉐이더 1.1 以降であることを確認する Version v1_1 = new Version(1, 1); // デバイスの能力 Caps caps = base.caps; // サ포트される쉐이더の버전を確認します. if ((caps.VertexShaderVersion >= v1_1) && (caps.PixelShaderVersion >= v1_1)) { m_is_use_ve1_1_ps1_1 = true; } else { m_is_use_ve1_1_ps1_1 = false; } }
public void BeforeAll() { DesiredCapabilities capabilities = Env.isSauce() ? Caps.getAndroid18Caps(Apps.get("androidApiDemos")) : Caps.getAndroid19Caps(Apps.get("androidApiDemos")); if (Env.isSauce()) { capabilities.SetCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.SetCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.SetCapability("name", "android - complex"); capabilities.SetCapability("tags", new string[] { "sample" }); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.localURI; driver = new AndroidDriver <AndroidElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); driver.Manage().Timeouts().ImplicitlyWait(Env.IMPLICIT_TIMEOUT_SEC); }
public void TestCaps() { Gst.Buffer buffer = new Gst.Buffer(4); Caps caps = Caps.FromString("audio/x-raw-int"); Assert.IsNull(buffer.Caps, "buffer.Caps should be null"); buffer.Caps = caps; Assert.IsNotNull(buffer.Caps, "buffer.Caps is null"); Caps caps2 = Caps.FromString("audio/x-raw-float"); buffer.Caps = caps2; Assert.AreNotEqual(buffer.Caps, caps); Assert.AreEqual(buffer.Caps, caps2); buffer.Caps = null; Assert.IsNull(buffer.Caps, "buffer.Caps should be null"); }
public void StartingAndroidAppWithCapabilitiesOnlyTest() { var app = Apps.Get("androidApiDemos"); var capabilities = Caps.GetAndroidUIAutomatorCaps(app); AndroidDriver <AppiumWebElement> driver = null; try { driver = new AndroidDriver <AppiumWebElement>(capabilities); driver.CloseApp(); } finally { driver?.Quit(); } }
public void BeforeAll() { AppiumOptions capabilities = Env.isSauce() ? Caps.getAndroid501Caps(Apps.get("selendroidTestApp")) : Caps.getAndroid19Caps(Apps.get("selendroidTestApp")); if (Env.isSauce()) { capabilities.AddAdditionalCapability("username", Env.getEnvVar("SAUCE_USERNAME")); capabilities.AddAdditionalCapability("accessKey", Env.getEnvVar("SAUCE_ACCESS_KEY")); capabilities.AddAdditionalCapability("tags", new string[] { "sample" }); } Uri serverUri = Env.isSauce() ? AppiumServers.sauceURI : AppiumServers.LocalServiceURIAndroid; driver = new AndroidDriver <AppiumWebElement>(serverUri, capabilities, Env.INIT_TIMEOUT_SEC); pageObject = new AndroidJavaScriptTestPageObject(driver); driver.StartActivity("io.selendroid.testapp", ".WebViewActivity"); }
static bool Register() { GLib.GType gtype = (GLib.GType) typeof(TransformSample); SetDetails(gtype, "Transform Sample", "Filter/Effect/Video", "Draws a moving line on top of a video stream and handles mouse clicks", "Sebastian Dröge <*****@*****.**>"); Caps tmp = VideoUtil.FormatToTemplateCaps((BitConverter.IsLittleEndian) ? VideoFormat.BGRX : VideoFormat.XRGB); Caps caps = tmp.Copy(); caps[0]["width"] = 640; caps[0]["height"] = 480; caps.Append(tmp); AddPadTemplate(gtype, new PadTemplate("src", PadDirection.Src, PadPresence.Always, caps)); AddPadTemplate(gtype, new PadTemplate("sink", PadDirection.Sink, PadPresence.Always, caps)); return(ElementFactory.Register(null, "transformsample", (uint)Gst.Rank.None, gtype)); }
/*------------------------------------------------------------------------- * シェーダが使用可能か調べる * ---------------------------------------------------------------------------*/ private void check_shader_support() { // バージョンがシェーダ 1.1 以降であることを確認する Version v1_1 = new Version(1, 1); // デバイスの能力 Caps caps = base.caps; // サポートされるシェーダのバージョンを確認します。 if ((caps.VertexShaderVersion >= v1_1) && (caps.PixelShaderVersion >= v1_1)) { m_is_use_ve1_1_ps1_1 = true; } else { m_is_use_ve1_1_ps1_1 = false; } }
public void TestBufferOwnershipNIp() { MyTransformNIp.Register(); Pipeline pipeline = new Pipeline(); Element src = ElementFactory.Make("fakesrc"); src["sizetype"] = 2; Element capsfilter = ElementFactory.Make("capsfilter"); capsfilter["caps"] = Caps.FromString("foo/bar"); src["num-buffers"] = 10; MyTransformNIp transform = new MyTransformNIp(); Element sink = ElementFactory.Make("fakesink"); pipeline.Add(src, capsfilter, transform, sink); Element.Link(src, capsfilter, transform, sink); GLib.MainLoop loop = new GLib.MainLoop(); pipeline.Bus.AddWatch(delegate(Bus bus, Message message) { switch (message.Type) { case MessageType.Error: Enum err; string msg; message.ParseError(out err, out msg); Assert.Fail(String.Format("Error message: {0}", msg)); loop.Quit(); break; case MessageType.Eos: loop.Quit(); break; } return(true); }); pipeline.SetState(State.Playing); loop.Run(); Assert.IsTrue(transform.transformed); pipeline.SetState(State.Null); }
/// <summary> /// This callback function is called immediately before a device is created to allow the /// application to modify the device settings. The supplied settings parameter /// contains the settings that the framework has selected for the new device, and the /// application can make any desired changes directly to this structure. Note however that /// the sample framework will not correct invalid device settings so care must be taken /// to return valid device settings, otherwise creating the Device will fail. /// </summary> public void ModifyDeviceSettings(DeviceSettings settings, Caps caps) { // If device doesn't support HW T&L or doesn't support 1.1 vertex shaders in HW // then switch to SWVP. if ( (!caps.DeviceCaps.SupportsHardwareTransformAndLight) || (caps.VertexShaderVersion < new Version(1,1)) ) { settings.BehaviorFlags = CreateFlags.SoftwareVertexProcessing; } else { settings.BehaviorFlags = CreateFlags.HardwareVertexProcessing; } // This application is designed to work on a pure device by not using // any get methods, so create a pure device if supported and using HWVP. if ( (caps.DeviceCaps.SupportsPureDevice) && ((settings.BehaviorFlags & CreateFlags.HardwareVertexProcessing) != 0 ) ) settings.BehaviorFlags |= CreateFlags.PureDevice; // Debugging vertex shaders requires either REF or software vertex processing // and debugging pixel shaders requires REF. #if(DEBUG_VS) if (settings.DeviceType != DeviceType.Reference ) { settings.BehaviorFlags &= ~CreateFlags.HardwareVertexProcessing; settings.BehaviorFlags |= CreateFlags.SoftwareVertexProcessing; } #endif #if(DEBUG_PS) settings.DeviceType = DeviceType.Reference; #endif // For the first device created if its a REF device, optionally display a warning dialog box if (settings.DeviceType == DeviceType.Reference) { Utility.DisplaySwitchingToRefWarning(Framework, "Simbiosis"); } }
private void Initialize3DEnvironment() { DisplayAdapter adapterInfo = graphicsSettings.DisplayAdapter; DisplayDevice deviceInfo = graphicsSettings.DisplayDevice; isWindowed = graphicsSettings.IsWindowed; // Prepare window for possible windowed/fullscreen change // AdjustWindowForChange(); // Set up the presentation parameters RefreshPresentParameters(); if(deviceInfo.Caps.PrimitiveMiscCaps.IsNullReference) { // Warn user about null ref device that can't render anything throw new ApplicationException("null reference device"); } CreateFlags createFlags = new CreateFlags(); switch(graphicsSettings.VertexProcessingType) { case VertexProcessingType.Software: createFlags = CreateFlags.SoftwareVertexProcessing; break; case VertexProcessingType.Mixed: createFlags = CreateFlags.MixedVertexProcessing; break; case VertexProcessingType.Hardware: createFlags = CreateFlags.HardwareVertexProcessing; break; case VertexProcessingType.PureHardware: createFlags = CreateFlags.HardwareVertexProcessing | CreateFlags.PureDevice; break; default: throw new ApplicationException("Unable to determine vertex processing method."); } // Create the device device = new Device(graphicsSettings.AdapterOrdinal, graphicsSettings.DisplayDevice.DeviceType, this.viewport, createFlags, this.presentParameters); if( device != null ) { // Cache our local objects renderStates = device.RenderState; samplerStates = device.SamplerState; textureStates = device.TextureState; // When moving from fullscreen to windowed mode, it is important to // adjust the window size after recreating the device rather than // beforehand to ensure that you get the window size you want. For // example, when switching from 640x480 fullscreen to windowed with // a 1000x600 window on a 1024x768 desktop, it is impossible to set // the window size to 1000x600 until after the display mode has // changed to 1024x768, because windows cannot be larger than the // desktop. if(graphicsSettings.IsWindowed && (this.viewport is System.Windows.Forms.Form)) { // Make sure main window isn't topmost, so error message is visible this.viewport.Location = new System.Drawing.Point(rectWindowBounds.Left, rectWindowBounds.Top); this.viewport.Size = new System.Drawing.Size(( rectWindowBounds.Right - rectWindowBounds.Left ), ( rectWindowBounds.Bottom - rectWindowBounds.Top)); } // Store device Caps graphicsCaps = device.DeviceCaps; behavior = createFlags; // Store render target surface desc Surface BackBuffer = device.GetBackBuffer(0,0, BackBufferType.Mono); backBufferDesc = BackBuffer.Description; BackBuffer.Dispose(); BackBuffer = null; // Set up the fullscreen cursor if(showFullScreenCursor && !graphicsSettings.IsWindowed) { System.Windows.Forms.Cursor ourCursor = this.viewport.Cursor; device.SetCursor(ourCursor, true); device.ShowCursor(true); } // Confine cursor to fullscreen window if(clipFullScreenCursor) { if (!isWindowed) { System.Drawing.Rectangle rcWindow = this.viewport.ClientRectangle; } } // Setup the event handlers for our device device.DeviceLost += InvalidateDeviceObjects; device.DeviceReset += RestoreDeviceObjects; device.Disposing += DeleteDeviceObjects; device.DeviceResizing += new CancelEventHandler(EnvironmentResized); // Initialize the app's device-dependent objects try { if(InitDeviceObjects != null) InitDeviceObjects(null, null); if(RestoreDeviceObjects != null) RestoreDeviceObjects(null, null); return; } catch { // Cleanup before we try again if(InvalidateDeviceObjects != null) InvalidateDeviceObjects(null, null); if(DeleteDeviceObjects != null) DeleteDeviceObjects(null, null); device.Dispose(); device = null; if(this.viewport.Disposing) return; } } // HACK: removed fallback to reference rasterizer /* // If that failed, fall back to the reference rasterizer if( deviceInfo.DevType == Direct3D.DeviceType.Hardware ) { if (FindBestWindowedMode(false, true)) { isWindowed = true; if(viewport is System.Windows.Forms.Form) { // Make sure main window isn't topmost, so error message is visible this.viewport.Location = new System.Drawing.Point(windowBoundsRect.Left, windowBoundsRect.Top); this.viewport.Size = new System.Drawing.Size(( windowBoundsRect.Right - windowBoundsRect.Left ), ( windowBoundsRect.Bottom - windowBoundsRect.Top)); //AdjustWindowForChange(); } // Let the user know we are switching from HAL to the reference rasterizer //DisplayErrorMsg( null, AppMsgType.WarnSwitchToRef); Initialize3DEnvironment(); } } */ }
public static void GetDeviceCaps() { Device.IsUsingEventHandlers=false; adapter=(int)Microsoft.Win32.Registry.GetValue(Statics.reg_key_bethesda.Name + "\\" + Statics.reg_morrowind, "Adapter", 0); if(Manager.Adapters.Count <= adapter) throw new ApplicationException("Morrowind is set up to use an adapter which could not be found on your system"); for(int i=2;i<=16;i++) { if(Manager.CheckDeviceMultiSampleType(adapter, DeviceType.Hardware, Format.X8R8G8B8, false, (MultiSampleType)i)) mCaps.MaxFullscreenAA=i; if(Manager.CheckDeviceMultiSampleType(adapter, DeviceType.Hardware, Format.X8R8G8B8, true, (MultiSampleType)i)) mCaps.MaxWindowedAA=i; } caps = Manager.GetDeviceCaps(adapter, DeviceType.Hardware); mCaps.MaxAF=caps.MaxAnisotropy; mCaps.SupportsSM1=(caps.VertexShaderVersion>=new Version(1,1))&&(caps.PixelShaderVersion>=new Version(1,4)); mCaps.SupportsSM2=(caps.VertexShaderVersion.Major>=2)&&(caps.PixelShaderVersion.Major>=2); mCaps.SupportsSM3=(caps.VertexShaderVersion.Major>=3)&&(caps.PixelShaderVersion.Major>=3); mCaps.MaxTexSize=Math.Min(caps.MaxTextureHeight, caps.MaxTextureWidth); mCaps.MaxPrimitives=caps.MaxPrimitiveCount; mCaps.MaxIndicies=caps.MaxVertexIndex; }
public static extern Result GetCaps(void* PreparsedData, out Caps Capabilities);
/// <summary> /// /// </summary> /// <param name="caps"></param> /// <param name="vertexProcessingType"></param> /// <param name="adapterFormat"></param> /// <param name="backBufferFormat"></param> /// <returns></returns> private static bool ConfirmDevice(Caps caps, VertexProcessingType vertexProcessingType, Format adapterFormat, Format backBufferFormat) { return true; }
public DXCreateParametersEventArgs( int adapterOrdinal, DeviceType deviceType, Format deviceFormat, PresentParameters presentParameters ) { if( adapterOrdinal < 0 || adapterOrdinal >= Manager.Adapters.Count ) throw new ArgumentOutOfRangeException( "adapterOrdinal" ); if( presentParameters == null ) throw new ArgumentNullException( "presentParamaters" ); this.adapterOrdinal = adapterOrdinal; this.deviceType = deviceType; this.deviceFormat = deviceFormat; this.presentParameters = presentParameters; this.caps = Manager.GetDeviceCaps( adapterOrdinal, deviceType ); }
/// <summary> /// Initialize the graphics environment /// </summary> public void InitializeEnvironment() { GraphicsAdapterInfo adapterInfo = graphicsSettings.AdapterInfo; GraphicsDeviceInfo deviceInfo = graphicsSettings.DeviceInfo; try { Log.Info("d3dapp: Graphic adapter '{0}' is using driver version '{1}'", adapterInfo.AdapterDetails.Description.Trim(), adapterInfo.AdapterDetails.DriverVersion.ToString()); Log.Info("d3dapp: Pixel shaders supported: {0} (Version: {1}), Vertex shaders supported: {2} (Version: {3})", deviceInfo.Caps.PixelShaderCaps.NumberInstructionSlots, deviceInfo.Caps.PixelShaderVersion.ToString(), deviceInfo.Caps.VertexShaderCaps.NumberTemps, deviceInfo.Caps.VertexShaderVersion.ToString()); } catch (Exception lex) { Log.Warn("d3dapp: Error logging graphic device details - {0}", lex.Message); } // Set up the presentation parameters, we start in none exclusive mode BuildPresentParamsFromSettings(true); if (deviceInfo.Caps.PrimitiveMiscCaps.IsNullReference) { // Warn user about null ref device that can't render anything HandleSampleException(new NullReferenceDeviceException(), ApplicationMessage.None); } CreateFlags createFlags = new CreateFlags(); if (graphicsSettings.VertexProcessingType == VertexProcessingType.Software) { createFlags = CreateFlags.SoftwareVertexProcessing; } else if (graphicsSettings.VertexProcessingType == VertexProcessingType.Mixed) { createFlags = CreateFlags.MixedVertexProcessing; } else if (graphicsSettings.VertexProcessingType == VertexProcessingType.Hardware) { createFlags = CreateFlags.HardwareVertexProcessing; } else if (graphicsSettings.VertexProcessingType == VertexProcessingType.PureHardware) { createFlags = CreateFlags.HardwareVertexProcessing; // | CreateFlags.PureDevice; } else { throw new ApplicationException(); } // Make sure to allow multithreaded apps if we need them presentParams.ForceNoMultiThreadedFlag = !isMultiThreaded; try { // Create the device if (GUIGraphicsContext.IsDirectX9ExUsed()) { // Vista or later, use DirectX9 Ex device Log.Info("Creating DirectX9 Ex device"); CreateDirectX9ExDevice(createFlags); } else { Log.Info("Creating DirectX9 device"); GUIGraphicsContext.DX9Device = new Device(graphicsSettings.AdapterOrdinal, graphicsSettings.DevType, windowed ? ourRenderTarget : this, createFlags | CreateFlags.MultiThreaded | CreateFlags.FpuPreserve, presentParams); } // Cache our local objects //renderState = GUIGraphicsContext.DX9Device.RenderState; //sampleState = GUIGraphicsContext.DX9Device.SamplerState; //textureStates = GUIGraphicsContext.DX9Device.TextureState; // When moving from fullscreen to windowed mode, it is important to // adjust the window size after recreating the device rather than // beforehand to ensure that you get the window size you want. For // example, when switching from 640x480 fullscreen to windowed with // a 1000x600 window on a 1024x768 desktop, it is impossible to set // the window size to 1000x600 until after the display mode has // changed to 1024x768, because windows cannot be larger than the // desktop. if (windowed) { // Make sure main window isn't topmost, so error message is visible Size currentClientSize = this.ClientSize; this.Size = this.ClientSize; this.SendToBack(); this.BringToFront(); this.ClientSize = currentClientSize; this.TopMost = alwaysOnTop; } // Store device Caps graphicsCaps = GUIGraphicsContext.DX9Device.DeviceCaps; behavior = createFlags; StringBuilder sb = new StringBuilder(); // Store device description if (deviceInfo.DevType == DeviceType.Reference) { sb.Append("REF"); } else if (deviceInfo.DevType == DeviceType.Hardware) { sb.Append("HAL"); } else if (deviceInfo.DevType == DeviceType.Software) { sb.Append("SW"); } BehaviorFlags behaviorFlags = new BehaviorFlags(createFlags); if ((behaviorFlags.HardwareVertexProcessing) && (behaviorFlags.PureDevice)) { if (deviceInfo.DevType == DeviceType.Hardware) { sb.Append(" (pure hw vp)"); } else { sb.Append(" (simulated pure hw vp)"); } } else if (behaviorFlags.HardwareVertexProcessing) { if (deviceInfo.DevType == DeviceType.Hardware) { sb.Append(" (hw vp)"); } else { sb.Append(" (simulated hw vp)"); } } else if (behaviorFlags.MixedVertexProcessing) { if (deviceInfo.DevType == DeviceType.Hardware) { sb.Append(" (mixed vp)"); } else { sb.Append(" (simulated mixed vp)"); } } else if (behaviorFlags.SoftwareVertexProcessing) { sb.Append(" (sw vp)"); } if (deviceInfo.DevType == DeviceType.Hardware) { sb.Append(": "); sb.Append(adapterInfo.AdapterDetails.Description); } // Set device stats string deviceStats = sb.ToString(); // Set up the fullscreen cursor if (showCursorWhenFullscreen && !windowed) { Cursor ourCursor = this.Cursor; GUIGraphicsContext.DX9Device.SetCursor(ourCursor, true); GUIGraphicsContext.DX9Device.ShowCursor(true); } // Confine cursor to fullscreen window if (clipCursorWhenFullscreen && !windowed) { Rectangle rcWindow = this.ClientRectangle; } // Setup the event handlers for our device GUIGraphicsContext.DX9Device.DeviceLost += new EventHandler(this.OnDeviceLost); GUIGraphicsContext.DX9Device.DeviceReset += new EventHandler(this.OnDeviceReset); //GUIGraphicsContext.DX9Device.Disposing += new System.EventHandler(this.OnDeviceDisposing); //GUIGraphicsContext.DX9Device.DeviceResizing += new System.ComponentModel.CancelEventHandler(this.EnvironmentResized); // Initialize the app's device-dependent objects try { InitializeDeviceObjects(); //OnDeviceReset(null, null); active = true; } catch (Exception ex) { Log.Error("D3D: InitializeDeviceObjects - Exception: {0}", ex.ToString()); // Cleanup before we try again //OnDeviceLost(null, null); //OnDeviceDisposing(null, null); GUIGraphicsContext.DX9Device.Dispose(); GUIGraphicsContext.DX9Device = null; if (this.Disposing) { return; } } } catch (Exception ex) { Log.Error(ex); // If that failed, fall back to the reference rasterizer if (deviceInfo.DevType == DeviceType.Hardware) { if (FindBestWindowedMode(false, true)) { windowed = true; // Make sure main window isn't topmost, so error message is visible Size currentClientSize = this.ClientSize; this.Size = this.ClientSize; this.SendToBack(); this.BringToFront(); this.ClientSize = currentClientSize; this.TopMost = alwaysOnTop; // Let the user know we are switching from HAL to the reference rasterizer HandleSampleException(null, ApplicationMessage.WarnSwitchToRef); InitializeEnvironment(); } } } }
/// <summary> /// Initializes DirectX graphics /// </summary> /// <returns>true on success, false on failure</returns> public bool InitializeGraphics() { GM.GeneralLog.BeginBlock("InitializeGraphics() called"); m_displayMode = Manager.Adapters[0].CurrentDisplayMode; m_caps = Manager.GetDeviceCaps(0, DeviceType.Hardware); //Check for hardware T&L if (m_caps.DeviceCaps.SupportsHardwareTransformAndLight) { m_deviceFlags = CreateFlags.HardwareVertexProcessing; //Check for pure device if (m_caps.DeviceCaps.SupportsPureDevice) { //m_deviceFlags |= CreateFlags.PureDevice; } } else { m_deviceFlags = CreateFlags.SoftwareVertexProcessing; } //m_deviceFlags = CreateFlags.SoftwareVertexProcessing; //Prepare 2 sets of parameters //(for windowed and fullscreen mode) bool status = BuildPresentParameters(ref m_windowedParameters, true); status &= BuildPresentParameters(ref m_fullscreenParameters, false); if (!status) { return false; } try { if (m_windowed) m_graphicsParams = new GraphicsParameters(true, new RectangleF((float)Location.X, (float)Location.Y, (float)ClientSize.Width, (float)ClientSize.Height), m_displayMode.Format, m_windowedParameters, m_deviceFlags, DeviceType.Hardware, m_caps); else m_graphicsParams = new GraphicsParameters(false, new RectangleF(0, 0, (float)ClientSize.Width, (float)ClientSize.Height), Format.X8R8G8B8, m_fullscreenParameters, m_deviceFlags, DeviceType.Hardware, m_caps); ChangeDevice(m_windowed ? m_windowedParameters : m_fullscreenParameters, m_deviceFlags); GM.GeneralLog.EndBlock("InitializeGraphics() finished"); m_disableResize = false; return true; } catch (DirectXException e) { MessageBox.Show(e.ToString()); return false; } }
private static void SetCap(Caps cap, bool value) { if (GetCap(cap) == value) return; int caps = (int)OVRP_0_1_0.ovrp_GetCaps(); if (value) caps |= (1 << (int)cap); else caps &= ~(1 << (int)cap); OVRP_0_1_0.ovrp_SetCaps((Caps)caps); }
public static extern Bool ovrp_SetCaps(Caps caps);
// Generates content of styleDefinitionsPart1. private void GenerateStyleDefinitionsPart1Content(StyleDefinitionsPart styleDefinitionsPart1) { Styles styles1 = new Styles(); DocDefaults docDefaults1 = new DocDefaults(); RunPropertiesDefault runPropertiesDefault1 = new RunPropertiesDefault(); RunPropertiesBaseStyle runPropertiesBaseStyle1 = new RunPropertiesBaseStyle(); RunFonts runFonts6 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman", EastAsia = "MS Mincho", ComplexScript = "Times New Roman" }; Languages languages13 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA", Bidi = "ar-SA" }; runPropertiesBaseStyle1.Append(runFonts6); runPropertiesBaseStyle1.Append(languages13); runPropertiesDefault1.Append(runPropertiesBaseStyle1); ParagraphPropertiesDefault paragraphPropertiesDefault1 = new ParagraphPropertiesDefault(); docDefaults1.Append(runPropertiesDefault1); docDefaults1.Append(paragraphPropertiesDefault1); LatentStyles latentStyles1 = new LatentStyles() { DefaultLockedState = false, DefaultUiPriority = 0, DefaultSemiHidden = false, DefaultUnhideWhenUsed = false, DefaultPrimaryStyle = false, Count = 267 }; LatentStyleException latentStyleException1 = new LatentStyleException() { Name = "Normal", PrimaryStyle = true }; LatentStyleException latentStyleException2 = new LatentStyleException() { Name = "heading 1", PrimaryStyle = true }; LatentStyleException latentStyleException3 = new LatentStyleException() { Name = "heading 2", PrimaryStyle = true }; LatentStyleException latentStyleException4 = new LatentStyleException() { Name = "heading 3", PrimaryStyle = true }; LatentStyleException latentStyleException5 = new LatentStyleException() { Name = "heading 4", SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleException latentStyleException6 = new LatentStyleException() { Name = "heading 5", SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleException latentStyleException7 = new LatentStyleException() { Name = "heading 6", SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleException latentStyleException8 = new LatentStyleException() { Name = "heading 7", SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleException latentStyleException9 = new LatentStyleException() { Name = "heading 8", SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleException latentStyleException10 = new LatentStyleException() { Name = "heading 9", SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleException latentStyleException11 = new LatentStyleException() { Name = "caption", SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; LatentStyleException latentStyleException12 = new LatentStyleException() { Name = "Title", PrimaryStyle = true }; LatentStyleException latentStyleException13 = new LatentStyleException() { Name = "Subtitle", PrimaryStyle = true }; LatentStyleException latentStyleException14 = new LatentStyleException() { Name = "Strong", PrimaryStyle = true }; LatentStyleException latentStyleException15 = new LatentStyleException() { Name = "Emphasis", PrimaryStyle = true }; LatentStyleException latentStyleException16 = new LatentStyleException() { Name = "Placeholder Text", UiPriority = 99, SemiHidden = true }; LatentStyleException latentStyleException17 = new LatentStyleException() { Name = "No Spacing", UiPriority = 1, PrimaryStyle = true }; LatentStyleException latentStyleException18 = new LatentStyleException() { Name = "Light Shading", UiPriority = 60 }; LatentStyleException latentStyleException19 = new LatentStyleException() { Name = "Light List", UiPriority = 61 }; LatentStyleException latentStyleException20 = new LatentStyleException() { Name = "Light Grid", UiPriority = 62 }; LatentStyleException latentStyleException21 = new LatentStyleException() { Name = "Medium Shading 1", UiPriority = 63 }; LatentStyleException latentStyleException22 = new LatentStyleException() { Name = "Medium Shading 2", UiPriority = 64 }; LatentStyleException latentStyleException23 = new LatentStyleException() { Name = "Medium List 1", UiPriority = 65 }; LatentStyleException latentStyleException24 = new LatentStyleException() { Name = "Medium List 2", UiPriority = 66 }; LatentStyleException latentStyleException25 = new LatentStyleException() { Name = "Medium Grid 1", UiPriority = 67 }; LatentStyleException latentStyleException26 = new LatentStyleException() { Name = "Medium Grid 2", UiPriority = 68 }; LatentStyleException latentStyleException27 = new LatentStyleException() { Name = "Medium Grid 3", UiPriority = 69 }; LatentStyleException latentStyleException28 = new LatentStyleException() { Name = "Dark List", UiPriority = 70 }; LatentStyleException latentStyleException29 = new LatentStyleException() { Name = "Colorful Shading", UiPriority = 71 }; LatentStyleException latentStyleException30 = new LatentStyleException() { Name = "Colorful List", UiPriority = 72 }; LatentStyleException latentStyleException31 = new LatentStyleException() { Name = "Colorful Grid", UiPriority = 73 }; LatentStyleException latentStyleException32 = new LatentStyleException() { Name = "Light Shading Accent 1", UiPriority = 60 }; LatentStyleException latentStyleException33 = new LatentStyleException() { Name = "Light List Accent 1", UiPriority = 61 }; LatentStyleException latentStyleException34 = new LatentStyleException() { Name = "Light Grid Accent 1", UiPriority = 62 }; LatentStyleException latentStyleException35 = new LatentStyleException() { Name = "Medium Shading 1 Accent 1", UiPriority = 63 }; LatentStyleException latentStyleException36 = new LatentStyleException() { Name = "Medium Shading 2 Accent 1", UiPriority = 64 }; LatentStyleException latentStyleException37 = new LatentStyleException() { Name = "Medium List 1 Accent 1", UiPriority = 65 }; LatentStyleException latentStyleException38 = new LatentStyleException() { Name = "Revision", UiPriority = 99, SemiHidden = true }; LatentStyleException latentStyleException39 = new LatentStyleException() { Name = "List Paragraph", UiPriority = 34, PrimaryStyle = true }; LatentStyleException latentStyleException40 = new LatentStyleException() { Name = "Quote", UiPriority = 29, PrimaryStyle = true }; LatentStyleException latentStyleException41 = new LatentStyleException() { Name = "Intense Quote", UiPriority = 30, PrimaryStyle = true }; LatentStyleException latentStyleException42 = new LatentStyleException() { Name = "Medium List 2 Accent 1", UiPriority = 66 }; LatentStyleException latentStyleException43 = new LatentStyleException() { Name = "Medium Grid 1 Accent 1", UiPriority = 67 }; LatentStyleException latentStyleException44 = new LatentStyleException() { Name = "Medium Grid 2 Accent 1", UiPriority = 68 }; LatentStyleException latentStyleException45 = new LatentStyleException() { Name = "Medium Grid 3 Accent 1", UiPriority = 69 }; LatentStyleException latentStyleException46 = new LatentStyleException() { Name = "Dark List Accent 1", UiPriority = 70 }; LatentStyleException latentStyleException47 = new LatentStyleException() { Name = "Colorful Shading Accent 1", UiPriority = 71 }; LatentStyleException latentStyleException48 = new LatentStyleException() { Name = "Colorful List Accent 1", UiPriority = 72 }; LatentStyleException latentStyleException49 = new LatentStyleException() { Name = "Colorful Grid Accent 1", UiPriority = 73 }; LatentStyleException latentStyleException50 = new LatentStyleException() { Name = "Light Shading Accent 2", UiPriority = 60 }; LatentStyleException latentStyleException51 = new LatentStyleException() { Name = "Light List Accent 2", UiPriority = 61 }; LatentStyleException latentStyleException52 = new LatentStyleException() { Name = "Light Grid Accent 2", UiPriority = 62 }; LatentStyleException latentStyleException53 = new LatentStyleException() { Name = "Medium Shading 1 Accent 2", UiPriority = 63 }; LatentStyleException latentStyleException54 = new LatentStyleException() { Name = "Medium Shading 2 Accent 2", UiPriority = 64 }; LatentStyleException latentStyleException55 = new LatentStyleException() { Name = "Medium List 1 Accent 2", UiPriority = 65 }; LatentStyleException latentStyleException56 = new LatentStyleException() { Name = "Medium List 2 Accent 2", UiPriority = 66 }; LatentStyleException latentStyleException57 = new LatentStyleException() { Name = "Medium Grid 1 Accent 2", UiPriority = 67 }; LatentStyleException latentStyleException58 = new LatentStyleException() { Name = "Medium Grid 2 Accent 2", UiPriority = 68 }; LatentStyleException latentStyleException59 = new LatentStyleException() { Name = "Medium Grid 3 Accent 2", UiPriority = 69 }; LatentStyleException latentStyleException60 = new LatentStyleException() { Name = "Dark List Accent 2", UiPriority = 70 }; LatentStyleException latentStyleException61 = new LatentStyleException() { Name = "Colorful Shading Accent 2", UiPriority = 71 }; LatentStyleException latentStyleException62 = new LatentStyleException() { Name = "Colorful List Accent 2", UiPriority = 72 }; LatentStyleException latentStyleException63 = new LatentStyleException() { Name = "Colorful Grid Accent 2", UiPriority = 73 }; LatentStyleException latentStyleException64 = new LatentStyleException() { Name = "Light Shading Accent 3", UiPriority = 60 }; LatentStyleException latentStyleException65 = new LatentStyleException() { Name = "Light List Accent 3", UiPriority = 61 }; LatentStyleException latentStyleException66 = new LatentStyleException() { Name = "Light Grid Accent 3", UiPriority = 62 }; LatentStyleException latentStyleException67 = new LatentStyleException() { Name = "Medium Shading 1 Accent 3", UiPriority = 63 }; LatentStyleException latentStyleException68 = new LatentStyleException() { Name = "Medium Shading 2 Accent 3", UiPriority = 64 }; LatentStyleException latentStyleException69 = new LatentStyleException() { Name = "Medium List 1 Accent 3", UiPriority = 65 }; LatentStyleException latentStyleException70 = new LatentStyleException() { Name = "Medium List 2 Accent 3", UiPriority = 66 }; LatentStyleException latentStyleException71 = new LatentStyleException() { Name = "Medium Grid 1 Accent 3", UiPriority = 67 }; LatentStyleException latentStyleException72 = new LatentStyleException() { Name = "Medium Grid 2 Accent 3", UiPriority = 68 }; LatentStyleException latentStyleException73 = new LatentStyleException() { Name = "Medium Grid 3 Accent 3", UiPriority = 69 }; LatentStyleException latentStyleException74 = new LatentStyleException() { Name = "Dark List Accent 3", UiPriority = 70 }; LatentStyleException latentStyleException75 = new LatentStyleException() { Name = "Colorful Shading Accent 3", UiPriority = 71 }; LatentStyleException latentStyleException76 = new LatentStyleException() { Name = "Colorful List Accent 3", UiPriority = 72 }; LatentStyleException latentStyleException77 = new LatentStyleException() { Name = "Colorful Grid Accent 3", UiPriority = 73 }; LatentStyleException latentStyleException78 = new LatentStyleException() { Name = "Light Shading Accent 4", UiPriority = 60 }; LatentStyleException latentStyleException79 = new LatentStyleException() { Name = "Light List Accent 4", UiPriority = 61 }; LatentStyleException latentStyleException80 = new LatentStyleException() { Name = "Light Grid Accent 4", UiPriority = 62 }; LatentStyleException latentStyleException81 = new LatentStyleException() { Name = "Medium Shading 1 Accent 4", UiPriority = 63 }; LatentStyleException latentStyleException82 = new LatentStyleException() { Name = "Medium Shading 2 Accent 4", UiPriority = 64 }; LatentStyleException latentStyleException83 = new LatentStyleException() { Name = "Medium List 1 Accent 4", UiPriority = 65 }; LatentStyleException latentStyleException84 = new LatentStyleException() { Name = "Medium List 2 Accent 4", UiPriority = 66 }; LatentStyleException latentStyleException85 = new LatentStyleException() { Name = "Medium Grid 1 Accent 4", UiPriority = 67 }; LatentStyleException latentStyleException86 = new LatentStyleException() { Name = "Medium Grid 2 Accent 4", UiPriority = 68 }; LatentStyleException latentStyleException87 = new LatentStyleException() { Name = "Medium Grid 3 Accent 4", UiPriority = 69 }; LatentStyleException latentStyleException88 = new LatentStyleException() { Name = "Dark List Accent 4", UiPriority = 70 }; LatentStyleException latentStyleException89 = new LatentStyleException() { Name = "Colorful Shading Accent 4", UiPriority = 71 }; LatentStyleException latentStyleException90 = new LatentStyleException() { Name = "Colorful List Accent 4", UiPriority = 72 }; LatentStyleException latentStyleException91 = new LatentStyleException() { Name = "Colorful Grid Accent 4", UiPriority = 73 }; LatentStyleException latentStyleException92 = new LatentStyleException() { Name = "Light Shading Accent 5", UiPriority = 60 }; LatentStyleException latentStyleException93 = new LatentStyleException() { Name = "Light List Accent 5", UiPriority = 61 }; LatentStyleException latentStyleException94 = new LatentStyleException() { Name = "Light Grid Accent 5", UiPriority = 62 }; LatentStyleException latentStyleException95 = new LatentStyleException() { Name = "Medium Shading 1 Accent 5", UiPriority = 63 }; LatentStyleException latentStyleException96 = new LatentStyleException() { Name = "Medium Shading 2 Accent 5", UiPriority = 64 }; LatentStyleException latentStyleException97 = new LatentStyleException() { Name = "Medium List 1 Accent 5", UiPriority = 65 }; LatentStyleException latentStyleException98 = new LatentStyleException() { Name = "Medium List 2 Accent 5", UiPriority = 66 }; LatentStyleException latentStyleException99 = new LatentStyleException() { Name = "Medium Grid 1 Accent 5", UiPriority = 67 }; LatentStyleException latentStyleException100 = new LatentStyleException() { Name = "Medium Grid 2 Accent 5", UiPriority = 68 }; LatentStyleException latentStyleException101 = new LatentStyleException() { Name = "Medium Grid 3 Accent 5", UiPriority = 69 }; LatentStyleException latentStyleException102 = new LatentStyleException() { Name = "Dark List Accent 5", UiPriority = 70 }; LatentStyleException latentStyleException103 = new LatentStyleException() { Name = "Colorful Shading Accent 5", UiPriority = 71 }; LatentStyleException latentStyleException104 = new LatentStyleException() { Name = "Colorful List Accent 5", UiPriority = 72 }; LatentStyleException latentStyleException105 = new LatentStyleException() { Name = "Colorful Grid Accent 5", UiPriority = 73 }; LatentStyleException latentStyleException106 = new LatentStyleException() { Name = "Light Shading Accent 6", UiPriority = 60 }; LatentStyleException latentStyleException107 = new LatentStyleException() { Name = "Light List Accent 6", UiPriority = 61 }; LatentStyleException latentStyleException108 = new LatentStyleException() { Name = "Light Grid Accent 6", UiPriority = 62 }; LatentStyleException latentStyleException109 = new LatentStyleException() { Name = "Medium Shading 1 Accent 6", UiPriority = 63 }; LatentStyleException latentStyleException110 = new LatentStyleException() { Name = "Medium Shading 2 Accent 6", UiPriority = 64 }; LatentStyleException latentStyleException111 = new LatentStyleException() { Name = "Medium List 1 Accent 6", UiPriority = 65 }; LatentStyleException latentStyleException112 = new LatentStyleException() { Name = "Medium List 2 Accent 6", UiPriority = 66 }; LatentStyleException latentStyleException113 = new LatentStyleException() { Name = "Medium Grid 1 Accent 6", UiPriority = 67 }; LatentStyleException latentStyleException114 = new LatentStyleException() { Name = "Medium Grid 2 Accent 6", UiPriority = 68 }; LatentStyleException latentStyleException115 = new LatentStyleException() { Name = "Medium Grid 3 Accent 6", UiPriority = 69 }; LatentStyleException latentStyleException116 = new LatentStyleException() { Name = "Dark List Accent 6", UiPriority = 70 }; LatentStyleException latentStyleException117 = new LatentStyleException() { Name = "Colorful Shading Accent 6", UiPriority = 71 }; LatentStyleException latentStyleException118 = new LatentStyleException() { Name = "Colorful List Accent 6", UiPriority = 72 }; LatentStyleException latentStyleException119 = new LatentStyleException() { Name = "Colorful Grid Accent 6", UiPriority = 73 }; LatentStyleException latentStyleException120 = new LatentStyleException() { Name = "Subtle Emphasis", UiPriority = 19, PrimaryStyle = true }; LatentStyleException latentStyleException121 = new LatentStyleException() { Name = "Intense Emphasis", UiPriority = 21, PrimaryStyle = true }; LatentStyleException latentStyleException122 = new LatentStyleException() { Name = "Subtle Reference", UiPriority = 31, PrimaryStyle = true }; LatentStyleException latentStyleException123 = new LatentStyleException() { Name = "Intense Reference", UiPriority = 32, PrimaryStyle = true }; LatentStyleException latentStyleException124 = new LatentStyleException() { Name = "Book Title", UiPriority = 33, PrimaryStyle = true }; LatentStyleException latentStyleException125 = new LatentStyleException() { Name = "Bibliography", UiPriority = 37, SemiHidden = true, UnhideWhenUsed = true }; LatentStyleException latentStyleException126 = new LatentStyleException() { Name = "TOC Heading", UiPriority = 39, SemiHidden = true, UnhideWhenUsed = true, PrimaryStyle = true }; latentStyles1.Append(latentStyleException1); latentStyles1.Append(latentStyleException2); latentStyles1.Append(latentStyleException3); latentStyles1.Append(latentStyleException4); latentStyles1.Append(latentStyleException5); latentStyles1.Append(latentStyleException6); latentStyles1.Append(latentStyleException7); latentStyles1.Append(latentStyleException8); latentStyles1.Append(latentStyleException9); latentStyles1.Append(latentStyleException10); latentStyles1.Append(latentStyleException11); latentStyles1.Append(latentStyleException12); latentStyles1.Append(latentStyleException13); latentStyles1.Append(latentStyleException14); latentStyles1.Append(latentStyleException15); latentStyles1.Append(latentStyleException16); latentStyles1.Append(latentStyleException17); latentStyles1.Append(latentStyleException18); latentStyles1.Append(latentStyleException19); latentStyles1.Append(latentStyleException20); latentStyles1.Append(latentStyleException21); latentStyles1.Append(latentStyleException22); latentStyles1.Append(latentStyleException23); latentStyles1.Append(latentStyleException24); latentStyles1.Append(latentStyleException25); latentStyles1.Append(latentStyleException26); latentStyles1.Append(latentStyleException27); latentStyles1.Append(latentStyleException28); latentStyles1.Append(latentStyleException29); latentStyles1.Append(latentStyleException30); latentStyles1.Append(latentStyleException31); latentStyles1.Append(latentStyleException32); latentStyles1.Append(latentStyleException33); latentStyles1.Append(latentStyleException34); latentStyles1.Append(latentStyleException35); latentStyles1.Append(latentStyleException36); latentStyles1.Append(latentStyleException37); latentStyles1.Append(latentStyleException38); latentStyles1.Append(latentStyleException39); latentStyles1.Append(latentStyleException40); latentStyles1.Append(latentStyleException41); latentStyles1.Append(latentStyleException42); latentStyles1.Append(latentStyleException43); latentStyles1.Append(latentStyleException44); latentStyles1.Append(latentStyleException45); latentStyles1.Append(latentStyleException46); latentStyles1.Append(latentStyleException47); latentStyles1.Append(latentStyleException48); latentStyles1.Append(latentStyleException49); latentStyles1.Append(latentStyleException50); latentStyles1.Append(latentStyleException51); latentStyles1.Append(latentStyleException52); latentStyles1.Append(latentStyleException53); latentStyles1.Append(latentStyleException54); latentStyles1.Append(latentStyleException55); latentStyles1.Append(latentStyleException56); latentStyles1.Append(latentStyleException57); latentStyles1.Append(latentStyleException58); latentStyles1.Append(latentStyleException59); latentStyles1.Append(latentStyleException60); latentStyles1.Append(latentStyleException61); latentStyles1.Append(latentStyleException62); latentStyles1.Append(latentStyleException63); latentStyles1.Append(latentStyleException64); latentStyles1.Append(latentStyleException65); latentStyles1.Append(latentStyleException66); latentStyles1.Append(latentStyleException67); latentStyles1.Append(latentStyleException68); latentStyles1.Append(latentStyleException69); latentStyles1.Append(latentStyleException70); latentStyles1.Append(latentStyleException71); latentStyles1.Append(latentStyleException72); latentStyles1.Append(latentStyleException73); latentStyles1.Append(latentStyleException74); latentStyles1.Append(latentStyleException75); latentStyles1.Append(latentStyleException76); latentStyles1.Append(latentStyleException77); latentStyles1.Append(latentStyleException78); latentStyles1.Append(latentStyleException79); latentStyles1.Append(latentStyleException80); latentStyles1.Append(latentStyleException81); latentStyles1.Append(latentStyleException82); latentStyles1.Append(latentStyleException83); latentStyles1.Append(latentStyleException84); latentStyles1.Append(latentStyleException85); latentStyles1.Append(latentStyleException86); latentStyles1.Append(latentStyleException87); latentStyles1.Append(latentStyleException88); latentStyles1.Append(latentStyleException89); latentStyles1.Append(latentStyleException90); latentStyles1.Append(latentStyleException91); latentStyles1.Append(latentStyleException92); latentStyles1.Append(latentStyleException93); latentStyles1.Append(latentStyleException94); latentStyles1.Append(latentStyleException95); latentStyles1.Append(latentStyleException96); latentStyles1.Append(latentStyleException97); latentStyles1.Append(latentStyleException98); latentStyles1.Append(latentStyleException99); latentStyles1.Append(latentStyleException100); latentStyles1.Append(latentStyleException101); latentStyles1.Append(latentStyleException102); latentStyles1.Append(latentStyleException103); latentStyles1.Append(latentStyleException104); latentStyles1.Append(latentStyleException105); latentStyles1.Append(latentStyleException106); latentStyles1.Append(latentStyleException107); latentStyles1.Append(latentStyleException108); latentStyles1.Append(latentStyleException109); latentStyles1.Append(latentStyleException110); latentStyles1.Append(latentStyleException111); latentStyles1.Append(latentStyleException112); latentStyles1.Append(latentStyleException113); latentStyles1.Append(latentStyleException114); latentStyles1.Append(latentStyleException115); latentStyles1.Append(latentStyleException116); latentStyles1.Append(latentStyleException117); latentStyles1.Append(latentStyleException118); latentStyles1.Append(latentStyleException119); latentStyles1.Append(latentStyleException120); latentStyles1.Append(latentStyleException121); latentStyles1.Append(latentStyleException122); latentStyles1.Append(latentStyleException123); latentStyles1.Append(latentStyleException124); latentStyles1.Append(latentStyleException125); latentStyles1.Append(latentStyleException126); Style style1 = new Style() { Type = StyleValues.Paragraph, StyleId = "Normal", Default = true }; StyleName styleName1 = new StyleName() { Val = "Normal" }; PrimaryStyle primaryStyle1 = new PrimaryStyle(); Rsid rsid615 = new Rsid() { Val = "006F57DE" }; StyleParagraphProperties styleParagraphProperties1 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines24 = new SpacingBetweenLines() { After = "120" }; styleParagraphProperties1.Append(spacingBetweenLines24); StyleRunProperties styleRunProperties1 = new StyleRunProperties(); RunFonts runFonts7 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman" }; FontSize fontSize13 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript22 = new FontSizeComplexScript() { Val = "22" }; Languages languages14 = new Languages() { Val = "en-US", EastAsia = "en-US" }; styleRunProperties1.Append(runFonts7); styleRunProperties1.Append(fontSize13); styleRunProperties1.Append(fontSizeComplexScript22); styleRunProperties1.Append(languages14); style1.Append(styleName1); style1.Append(primaryStyle1); style1.Append(rsid615); style1.Append(styleParagraphProperties1); style1.Append(styleRunProperties1); Style style2 = new Style() { Type = StyleValues.Paragraph, StyleId = "Titre1" }; StyleName styleName2 = new StyleName() { Val = "heading 1" }; NextParagraphStyle nextParagraphStyle1 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle1 = new LinkedStyle() { Val = "Titre1Car" }; PrimaryStyle primaryStyle2 = new PrimaryStyle(); Rsid rsid616 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties2 = new StyleParagraphProperties(); KeepNext keepNext3 = new KeepNext(); SpacingBetweenLines spacingBetweenLines25 = new SpacingBetweenLines() { Before = "120", Line = "280", LineRule = LineSpacingRuleValues.Exact }; OutlineLevel outlineLevel1 = new OutlineLevel() { Val = 0 }; styleParagraphProperties2.Append(keepNext3); styleParagraphProperties2.Append(spacingBetweenLines25); styleParagraphProperties2.Append(outlineLevel1); StyleRunProperties styleRunProperties2 = new StyleRunProperties(); RunFonts runFonts8 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman", ComplexScript = "Arial" }; Bold bold13 = new Bold(); BoldComplexScript boldComplexScript2 = new BoldComplexScript(); Caps caps2 = new Caps(); Kern kern2 = new Kern() { Val = (UInt32Value)20U }; Languages languages15 = new Languages() { Val = "en-US", EastAsia = "en-US" }; styleRunProperties2.Append(runFonts8); styleRunProperties2.Append(bold13); styleRunProperties2.Append(boldComplexScript2); styleRunProperties2.Append(caps2); styleRunProperties2.Append(kern2); styleRunProperties2.Append(languages15); style2.Append(styleName2); style2.Append(nextParagraphStyle1); style2.Append(linkedStyle1); style2.Append(primaryStyle2); style2.Append(rsid616); style2.Append(styleParagraphProperties2); style2.Append(styleRunProperties2); Style style3 = new Style() { Type = StyleValues.Paragraph, StyleId = "Titre2" }; StyleName styleName3 = new StyleName() { Val = "heading 2" }; NextParagraphStyle nextParagraphStyle2 = new NextParagraphStyle() { Val = "Normal" }; PrimaryStyle primaryStyle3 = new PrimaryStyle(); Rsid rsid617 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties3 = new StyleParagraphProperties(); KeepNext keepNext4 = new KeepNext(); SpacingBetweenLines spacingBetweenLines26 = new SpacingBetweenLines() { Before = "120", Line = "280", LineRule = LineSpacingRuleValues.Exact }; OutlineLevel outlineLevel2 = new OutlineLevel() { Val = 1 }; styleParagraphProperties3.Append(keepNext4); styleParagraphProperties3.Append(spacingBetweenLines26); styleParagraphProperties3.Append(outlineLevel2); StyleRunProperties styleRunProperties3 = new StyleRunProperties(); RunFonts runFonts9 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman", ComplexScript = "Arial" }; Bold bold14 = new Bold(); BoldComplexScript boldComplexScript3 = new BoldComplexScript(); ItalicComplexScript italicComplexScript1 = new ItalicComplexScript(); FontSize fontSize14 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript23 = new FontSizeComplexScript() { Val = "22" }; Languages languages16 = new Languages() { Val = "en-US", EastAsia = "en-US" }; styleRunProperties3.Append(runFonts9); styleRunProperties3.Append(bold14); styleRunProperties3.Append(boldComplexScript3); styleRunProperties3.Append(italicComplexScript1); styleRunProperties3.Append(fontSize14); styleRunProperties3.Append(fontSizeComplexScript23); styleRunProperties3.Append(languages16); style3.Append(styleName3); style3.Append(nextParagraphStyle2); style3.Append(primaryStyle3); style3.Append(rsid617); style3.Append(styleParagraphProperties3); style3.Append(styleRunProperties3); Style style4 = new Style() { Type = StyleValues.Paragraph, StyleId = "Titre3" }; StyleName styleName4 = new StyleName() { Val = "heading 3" }; BasedOn basedOn1 = new BasedOn() { Val = "Titre2" }; NextParagraphStyle nextParagraphStyle3 = new NextParagraphStyle() { Val = "Normal" }; PrimaryStyle primaryStyle4 = new PrimaryStyle(); Rsid rsid618 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties4 = new StyleParagraphProperties(); OutlineLevel outlineLevel3 = new OutlineLevel() { Val = 2 }; styleParagraphProperties4.Append(outlineLevel3); StyleRunProperties styleRunProperties4 = new StyleRunProperties(); Bold bold15 = new Bold() { Val = false }; BoldComplexScript boldComplexScript4 = new BoldComplexScript() { Val = false }; Italic italic1 = new Italic(); FontSizeComplexScript fontSizeComplexScript24 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties4.Append(bold15); styleRunProperties4.Append(boldComplexScript4); styleRunProperties4.Append(italic1); styleRunProperties4.Append(fontSizeComplexScript24); style4.Append(styleName4); style4.Append(basedOn1); style4.Append(nextParagraphStyle3); style4.Append(primaryStyle4); style4.Append(rsid618); style4.Append(styleParagraphProperties4); style4.Append(styleRunProperties4); Style style5 = new Style() { Type = StyleValues.Character, StyleId = "Policepardfaut", Default = true }; StyleName styleName5 = new StyleName() { Val = "Default Paragraph Font" }; UIPriority uIPriority1 = new UIPriority() { Val = 1 }; UnhideWhenUsed unhideWhenUsed1 = new UnhideWhenUsed(); style5.Append(styleName5); style5.Append(uIPriority1); style5.Append(unhideWhenUsed1); Style style6 = new Style() { Type = StyleValues.Table, StyleId = "TableauNormal", Default = true }; StyleName styleName6 = new StyleName() { Val = "Normal Table" }; UIPriority uIPriority2 = new UIPriority() { Val = 99 }; SemiHidden semiHidden1 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed2 = new UnhideWhenUsed(); PrimaryStyle primaryStyle5 = new PrimaryStyle(); StyleTableProperties styleTableProperties1 = new StyleTableProperties(); TableIndentation tableIndentation1 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableCellMarginDefault tableCellMarginDefault3 = new TableCellMarginDefault(); TopMargin topMargin1 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin3 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin1 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin3 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault3.Append(topMargin1); tableCellMarginDefault3.Append(tableCellLeftMargin3); tableCellMarginDefault3.Append(bottomMargin1); tableCellMarginDefault3.Append(tableCellRightMargin3); styleTableProperties1.Append(tableIndentation1); styleTableProperties1.Append(tableCellMarginDefault3); style6.Append(styleName6); style6.Append(uIPriority2); style6.Append(semiHidden1); style6.Append(unhideWhenUsed2); style6.Append(primaryStyle5); style6.Append(styleTableProperties1); Style style7 = new Style() { Type = StyleValues.Numbering, StyleId = "Aucuneliste", Default = true }; StyleName styleName7 = new StyleName() { Val = "No List" }; UIPriority uIPriority3 = new UIPriority() { Val = 99 }; SemiHidden semiHidden2 = new SemiHidden(); UnhideWhenUsed unhideWhenUsed3 = new UnhideWhenUsed(); style7.Append(styleName7); style7.Append(uIPriority3); style7.Append(semiHidden2); style7.Append(unhideWhenUsed3); Style style8 = new Style() { Type = StyleValues.Paragraph, StyleId = "En-tte" }; StyleName styleName8 = new StyleName() { Val = "header" }; BasedOn basedOn2 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle2 = new LinkedStyle() { Val = "En-tteCar" }; Rsid rsid619 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties5 = new StyleParagraphProperties(); ParagraphBorders paragraphBorders5 = new ParagraphBorders(); BottomBorder bottomBorder6 = new BottomBorder() { Val = BorderValues.Single, Color = "264C73", Size = (UInt32Value)48U, Space = (UInt32Value)1U }; paragraphBorders5.Append(bottomBorder6); Tabs tabs2 = new Tabs(); TabStop tabStop2 = new TabStop() { Val = TabStopValues.Right, Position = 10800 }; tabs2.Append(tabStop2); SpacingBetweenLines spacingBetweenLines27 = new SpacingBetweenLines() { After = "0" }; Justification justification3 = new Justification() { Val = JustificationValues.Right }; styleParagraphProperties5.Append(paragraphBorders5); styleParagraphProperties5.Append(tabs2); styleParagraphProperties5.Append(spacingBetweenLines27); styleParagraphProperties5.Append(justification3); StyleRunProperties styleRunProperties5 = new StyleRunProperties(); Caps caps3 = new Caps(); Kern kern3 = new Kern() { Val = (UInt32Value)16U }; FontSize fontSize15 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript25 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties5.Append(caps3); styleRunProperties5.Append(kern3); styleRunProperties5.Append(fontSize15); styleRunProperties5.Append(fontSizeComplexScript25); style8.Append(styleName8); style8.Append(basedOn2); style8.Append(linkedStyle2); style8.Append(rsid619); style8.Append(styleParagraphProperties5); style8.Append(styleRunProperties5); Style style9 = new Style() { Type = StyleValues.Paragraph, StyleId = "Pieddepage" }; StyleName styleName9 = new StyleName() { Val = "footer" }; BasedOn basedOn3 = new BasedOn() { Val = "Normal" }; Rsid rsid620 = new Rsid() { Val = "00233025" }; StyleParagraphProperties styleParagraphProperties6 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines28 = new SpacingBetweenLines() { After = "0" }; Justification justification4 = new Justification() { Val = JustificationValues.Center }; styleParagraphProperties6.Append(spacingBetweenLines28); styleParagraphProperties6.Append(justification4); StyleRunProperties styleRunProperties6 = new StyleRunProperties(); FontSize fontSize16 = new FontSize() { Val = "16" }; styleRunProperties6.Append(fontSize16); style9.Append(styleName9); style9.Append(basedOn3); style9.Append(rsid620); style9.Append(styleParagraphProperties6); style9.Append(styleRunProperties6); Style style10 = new Style() { Type = StyleValues.Table, StyleId = "Grilledutableau" }; StyleName styleName10 = new StyleName() { Val = "Table Grid" }; BasedOn basedOn4 = new BasedOn() { Val = "TableauNormal" }; Rsid rsid621 = new Rsid() { Val = "00233025" }; StyleParagraphProperties styleParagraphProperties7 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines29 = new SpacingBetweenLines() { After = "120", Line = "280", LineRule = LineSpacingRuleValues.Exact }; styleParagraphProperties7.Append(spacingBetweenLines29); StyleRunProperties styleRunProperties7 = new StyleRunProperties(); RunFonts runFonts10 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman" }; styleRunProperties7.Append(runFonts10); StyleTableProperties styleTableProperties2 = new StyleTableProperties(); TableIndentation tableIndentation2 = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBorders4 = new TableBorders(); TopBorder topBorder6 = new TopBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder4 = new LeftBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorder7 = new BottomBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder4 = new RightBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorder4 = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorder4 = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "auto", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBorders4.Append(topBorder6); tableBorders4.Append(leftBorder4); tableBorders4.Append(bottomBorder7); tableBorders4.Append(rightBorder4); tableBorders4.Append(insideHorizontalBorder4); tableBorders4.Append(insideVerticalBorder4); TableCellMarginDefault tableCellMarginDefault4 = new TableCellMarginDefault(); TopMargin topMargin2 = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMargin4 = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMargin2 = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMargin4 = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefault4.Append(topMargin2); tableCellMarginDefault4.Append(tableCellLeftMargin4); tableCellMarginDefault4.Append(bottomMargin2); tableCellMarginDefault4.Append(tableCellRightMargin4); styleTableProperties2.Append(tableIndentation2); styleTableProperties2.Append(tableBorders4); styleTableProperties2.Append(tableCellMarginDefault4); style10.Append(styleName10); style10.Append(basedOn4); style10.Append(rsid621); style10.Append(styleParagraphProperties7); style10.Append(styleRunProperties7); style10.Append(styleTableProperties2); Style style11 = new Style() { Type = StyleValues.Character, StyleId = "Numrodepage" }; StyleName styleName11 = new StyleName() { Val = "page number" }; BasedOn basedOn5 = new BasedOn() { Val = "Policepardfaut" }; Rsid rsid622 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties8 = new StyleRunProperties(); RunFonts runFonts11 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; styleRunProperties8.Append(runFonts11); style11.Append(styleName11); style11.Append(basedOn5); style11.Append(rsid622); style11.Append(styleRunProperties8); Style style12 = new Style() { Type = StyleValues.Paragraph, StyleId = "Listepuces" }; StyleName styleName12 = new StyleName() { Val = "List Bullet" }; BasedOn basedOn6 = new BasedOn() { Val = "Normal" }; Rsid rsid623 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties8 = new StyleParagraphProperties(); Tabs tabs3 = new Tabs(); TabStop tabStop3 = new TabStop() { Val = TabStopValues.Number, Position = 360 }; tabs3.Append(tabStop3); Indentation indentation1 = new Indentation() { Left = "360", Hanging = "360" }; styleParagraphProperties8.Append(tabs3); styleParagraphProperties8.Append(indentation1); style12.Append(styleName12); style12.Append(basedOn6); style12.Append(rsid623); style12.Append(styleParagraphProperties8); Style style13 = new Style() { Type = StyleValues.Paragraph, StyleId = "Titre" }; StyleName styleName13 = new StyleName() { Val = "Title" }; LinkedStyle linkedStyle3 = new LinkedStyle() { Val = "TitreCar" }; PrimaryStyle primaryStyle6 = new PrimaryStyle(); Rsid rsid624 = new Rsid() { Val = "00233025" }; StyleParagraphProperties styleParagraphProperties9 = new StyleParagraphProperties(); Justification justification5 = new Justification() { Val = JustificationValues.Right }; OutlineLevel outlineLevel4 = new OutlineLevel() { Val = 0 }; styleParagraphProperties9.Append(justification5); styleParagraphProperties9.Append(outlineLevel4); StyleRunProperties styleRunProperties9 = new StyleRunProperties(); RunFonts runFonts12 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman", ComplexScript = "Arial" }; BoldComplexScript boldComplexScript5 = new BoldComplexScript(); Color color1 = new Color() { Val = "264C73" }; Kern kern4 = new Kern() { Val = (UInt32Value)28U }; FontSize fontSize17 = new FontSize() { Val = "46" }; FontSizeComplexScript fontSizeComplexScript26 = new FontSizeComplexScript() { Val = "36" }; Languages languages17 = new Languages() { Val = "en-US", EastAsia = "en-US" }; styleRunProperties9.Append(runFonts12); styleRunProperties9.Append(boldComplexScript5); styleRunProperties9.Append(color1); styleRunProperties9.Append(kern4); styleRunProperties9.Append(fontSize17); styleRunProperties9.Append(fontSizeComplexScript26); styleRunProperties9.Append(languages17); style13.Append(styleName13); style13.Append(linkedStyle3); style13.Append(primaryStyle6); style13.Append(rsid624); style13.Append(styleParagraphProperties9); style13.Append(styleRunProperties9); Style style14 = new Style() { Type = StyleValues.Paragraph, StyleId = "ManagerName", CustomStyle = true }; StyleName styleName14 = new StyleName() { Val = "Manager Name" }; Rsid rsid625 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties10 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines30 = new SpacingBetweenLines() { After = "40" }; styleParagraphProperties10.Append(spacingBetweenLines30); StyleRunProperties styleRunProperties10 = new StyleRunProperties(); RunFonts runFonts13 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman" }; Bold bold16 = new Bold(); FontSize fontSize18 = new FontSize() { Val = "36" }; FontSizeComplexScript fontSizeComplexScript27 = new FontSizeComplexScript() { Val = "36" }; Languages languages18 = new Languages() { Val = "en-US", EastAsia = "en-US" }; styleRunProperties10.Append(runFonts13); styleRunProperties10.Append(bold16); styleRunProperties10.Append(fontSize18); styleRunProperties10.Append(fontSizeComplexScript27); styleRunProperties10.Append(languages18); style14.Append(styleName14); style14.Append(rsid625); style14.Append(styleParagraphProperties10); style14.Append(styleRunProperties10); Style style15 = new Style() { Type = StyleValues.Paragraph, StyleId = "TableText", CustomStyle = true }; StyleName styleName15 = new StyleName() { Val = "Table Text" }; BasedOn basedOn7 = new BasedOn() { Val = "Normal" }; LinkedStyle linkedStyle4 = new LinkedStyle() { Val = "TableTextChar" }; Rsid rsid626 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties11 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines31 = new SpacingBetweenLines() { After = "0" }; styleParagraphProperties11.Append(spacingBetweenLines31); StyleRunProperties styleRunProperties11 = new StyleRunProperties(); FontSize fontSize19 = new FontSize() { Val = "18" }; styleRunProperties11.Append(fontSize19); style15.Append(styleName15); style15.Append(basedOn7); style15.Append(linkedStyle4); style15.Append(rsid626); style15.Append(styleParagraphProperties11); style15.Append(styleRunProperties11); Style style16 = new Style() { Type = StyleValues.Paragraph, StyleId = "ProductsReviewedHeading", CustomStyle = true }; StyleName styleName16 = new StyleName() { Val = "Products Reviewed Heading" }; BasedOn basedOn8 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle4 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle5 = new LinkedStyle() { Val = "ProductsReviewedHeadingChar" }; Rsid rsid627 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties12 = new StyleParagraphProperties(); ParagraphBorders paragraphBorders6 = new ParagraphBorders(); TopBorder topBorder7 = new TopBorder() { Val = BorderValues.Single, Color = "808080", Size = (UInt32Value)4U, Space = (UInt32Value)7U }; paragraphBorders6.Append(topBorder7); SpacingBetweenLines spacingBetweenLines32 = new SpacingBetweenLines() { After = "140" }; styleParagraphProperties12.Append(paragraphBorders6); styleParagraphProperties12.Append(spacingBetweenLines32); StyleRunProperties styleRunProperties12 = new StyleRunProperties(); Bold bold17 = new Bold(); Caps caps4 = new Caps(); styleRunProperties12.Append(bold17); styleRunProperties12.Append(caps4); style16.Append(styleName16); style16.Append(basedOn8); style16.Append(nextParagraphStyle4); style16.Append(linkedStyle5); style16.Append(rsid627); style16.Append(styleParagraphProperties12); style16.Append(styleRunProperties12); Style style17 = new Style() { Type = StyleValues.Paragraph, StyleId = "Date" }; StyleName styleName17 = new StyleName() { Val = "Date" }; BasedOn basedOn9 = new BasedOn() { Val = "Normal" }; NextParagraphStyle nextParagraphStyle5 = new NextParagraphStyle() { Val = "Normal" }; LinkedStyle linkedStyle6 = new LinkedStyle() { Val = "DateCar" }; Rsid rsid628 = new Rsid() { Val = "00233025" }; StyleParagraphProperties styleParagraphProperties13 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines33 = new SpacingBetweenLines() { After = "0" }; Justification justification6 = new Justification() { Val = JustificationValues.Right }; styleParagraphProperties13.Append(spacingBetweenLines33); styleParagraphProperties13.Append(justification6); StyleRunProperties styleRunProperties13 = new StyleRunProperties(); Caps caps5 = new Caps(); Color color2 = new Color() { Val = "5C5C5C" }; Kern kern5 = new Kern() { Val = (UInt32Value)22U }; styleRunProperties13.Append(caps5); styleRunProperties13.Append(color2); styleRunProperties13.Append(kern5); style17.Append(styleName17); style17.Append(basedOn9); style17.Append(nextParagraphStyle5); style17.Append(linkedStyle6); style17.Append(rsid628); style17.Append(styleParagraphProperties13); style17.Append(styleRunProperties13); Style style18 = new Style() { Type = StyleValues.Paragraph, StyleId = "Header2", CustomStyle = true }; StyleName styleName18 = new StyleName() { Val = "Header 2" }; BasedOn basedOn10 = new BasedOn() { Val = "En-tte" }; Rsid rsid629 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties14 = new StyleParagraphProperties(); ParagraphBorders paragraphBorders7 = new ParagraphBorders(); BottomBorder bottomBorder8 = new BottomBorder() { Val = BorderValues.None, Color = "auto", Size = (UInt32Value)0U, Space = (UInt32Value)0U }; paragraphBorders7.Append(bottomBorder8); styleParagraphProperties14.Append(paragraphBorders7); StyleRunProperties styleRunProperties14 = new StyleRunProperties(); FontSize fontSize20 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript28 = new FontSizeComplexScript() { Val = "18" }; styleRunProperties14.Append(fontSize20); styleRunProperties14.Append(fontSizeComplexScript28); style18.Append(styleName18); style18.Append(basedOn10); style18.Append(rsid629); style18.Append(styleParagraphProperties14); style18.Append(styleRunProperties14); Style style19 = new Style() { Type = StyleValues.Paragraph, StyleId = "FooterPageNumber", CustomStyle = true }; StyleName styleName19 = new StyleName() { Val = "Footer Page Number" }; BasedOn basedOn11 = new BasedOn() { Val = "Pieddepage" }; Rsid rsid630 = new Rsid() { Val = "00314DD5" }; StyleRunProperties styleRunProperties15 = new StyleRunProperties(); FontSize fontSize21 = new FontSize() { Val = "20" }; styleRunProperties15.Append(fontSize21); style19.Append(styleName19); style19.Append(basedOn11); style19.Append(rsid630); style19.Append(styleRunProperties15); Style style20 = new Style() { Type = StyleValues.Paragraph, StyleId = "Textedebulles" }; StyleName styleName20 = new StyleName() { Val = "Balloon Text" }; BasedOn basedOn12 = new BasedOn() { Val = "Normal" }; SemiHidden semiHidden3 = new SemiHidden(); Rsid rsid631 = new Rsid() { Val = "00314DD5" }; StyleRunProperties styleRunProperties16 = new StyleRunProperties(); RunFonts runFonts14 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize22 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript29 = new FontSizeComplexScript() { Val = "16" }; styleRunProperties16.Append(runFonts14); styleRunProperties16.Append(fontSize22); styleRunProperties16.Append(fontSizeComplexScript29); style20.Append(styleName20); style20.Append(basedOn12); style20.Append(semiHidden3); style20.Append(rsid631); style20.Append(styleRunProperties16); Style style21 = new Style() { Type = StyleValues.Paragraph, StyleId = "Disclaimer", CustomStyle = true }; StyleName styleName21 = new StyleName() { Val = "Disclaimer" }; LinkedStyle linkedStyle7 = new LinkedStyle() { Val = "DisclaimerChar" }; AutoRedefine autoRedefine1 = new AutoRedefine(); Rsid rsid632 = new Rsid() { Val = "00233025" }; StyleParagraphProperties styleParagraphProperties15 = new StyleParagraphProperties(); KeepLines keepLines2 = new KeepLines(); ParagraphBorders paragraphBorders8 = new ParagraphBorders(); TopBorder topBorder8 = new TopBorder() { Val = BorderValues.Single, Color = "264C73", Size = (UInt32Value)18U, Space = (UInt32Value)6U }; paragraphBorders8.Append(topBorder8); SpacingBetweenLines spacingBetweenLines34 = new SpacingBetweenLines() { Before = "120", Line = "200", LineRule = LineSpacingRuleValues.Exact }; styleParagraphProperties15.Append(keepLines2); styleParagraphProperties15.Append(paragraphBorders8); styleParagraphProperties15.Append(spacingBetweenLines34); StyleRunProperties styleRunProperties17 = new StyleRunProperties(); RunFonts runFonts15 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman" }; Color color3 = new Color() { Val = "808080" }; FontSize fontSize23 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript30 = new FontSizeComplexScript() { Val = "22" }; Languages languages19 = new Languages() { Val = "en-US", EastAsia = "en-US" }; styleRunProperties17.Append(runFonts15); styleRunProperties17.Append(color3); styleRunProperties17.Append(fontSize23); styleRunProperties17.Append(fontSizeComplexScript30); styleRunProperties17.Append(languages19); style21.Append(styleName21); style21.Append(linkedStyle7); style21.Append(autoRedefine1); style21.Append(rsid632); style21.Append(styleParagraphProperties15); style21.Append(styleRunProperties17); Style style22 = new Style() { Type = StyleValues.Paragraph, StyleId = "TableHeading", CustomStyle = true }; StyleName styleName22 = new StyleName() { Val = "Table Heading" }; BasedOn basedOn13 = new BasedOn() { Val = "TableText" }; LinkedStyle linkedStyle8 = new LinkedStyle() { Val = "TableHeadingChar" }; Rsid rsid633 = new Rsid() { Val = "00314DD5" }; StyleRunProperties styleRunProperties18 = new StyleRunProperties(); Bold bold18 = new Bold(); Caps caps6 = new Caps(); Kern kern6 = new Kern() { Val = (UInt32Value)16U }; FontSizeComplexScript fontSizeComplexScript31 = new FontSizeComplexScript() { Val = "18" }; styleRunProperties18.Append(bold18); styleRunProperties18.Append(caps6); styleRunProperties18.Append(kern6); styleRunProperties18.Append(fontSizeComplexScript31); style22.Append(styleName22); style22.Append(basedOn13); style22.Append(linkedStyle8); style22.Append(rsid633); style22.Append(styleRunProperties18); Style style23 = new Style() { Type = StyleValues.Paragraph, StyleId = "HorizontalLine", CustomStyle = true }; StyleName styleName23 = new StyleName() { Val = "Horizontal Line" }; BasedOn basedOn14 = new BasedOn() { Val = "Normal" }; Rsid rsid634 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties16 = new StyleParagraphProperties(); ParagraphBorders paragraphBorders9 = new ParagraphBorders(); BottomBorder bottomBorder9 = new BottomBorder() { Val = BorderValues.Single, Color = "808080", Size = (UInt32Value)4U, Space = (UInt32Value)1U }; paragraphBorders9.Append(bottomBorder9); SpacingBetweenLines spacingBetweenLines35 = new SpacingBetweenLines() { After = "240" }; styleParagraphProperties16.Append(paragraphBorders9); styleParagraphProperties16.Append(spacingBetweenLines35); style23.Append(styleName23); style23.Append(basedOn14); style23.Append(rsid634); style23.Append(styleParagraphProperties16); Style style24 = new Style() { Type = StyleValues.Paragraph, StyleId = "FooterLogo", CustomStyle = true }; StyleName styleName24 = new StyleName() { Val = "Footer Logo" }; BasedOn basedOn15 = new BasedOn() { Val = "Pieddepage" }; Rsid rsid635 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties17 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines36 = new SpacingBetweenLines() { Before = "120" }; Justification justification7 = new Justification() { Val = JustificationValues.Right }; styleParagraphProperties17.Append(spacingBetweenLines36); styleParagraphProperties17.Append(justification7); style24.Append(styleName24); style24.Append(basedOn15); style24.Append(rsid635); style24.Append(styleParagraphProperties17); Style style25 = new Style() { Type = StyleValues.Paragraph, StyleId = "Header2ManagerName", CustomStyle = true }; StyleName styleName25 = new StyleName() { Val = "Header 2 Manager Name" }; BasedOn basedOn16 = new BasedOn() { Val = "Header2" }; Rsid rsid636 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties18 = new StyleParagraphProperties(); ParagraphBorders paragraphBorders10 = new ParagraphBorders(); TopBorder topBorder9 = new TopBorder() { Val = BorderValues.Single, Color = "264C73", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorder5 = new LeftBorder() { Val = BorderValues.Single, Color = "264C73", Size = (UInt32Value)4U, Space = (UInt32Value)1U }; BottomBorder bottomBorder10 = new BottomBorder() { Val = BorderValues.Single, Color = "264C73", Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorder5 = new RightBorder() { Val = BorderValues.Single, Color = "264C73", Size = (UInt32Value)4U, Space = (UInt32Value)1U }; paragraphBorders10.Append(topBorder9); paragraphBorders10.Append(leftBorder5); paragraphBorders10.Append(bottomBorder10); paragraphBorders10.Append(rightBorder5); Shading shading1 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "264C73" }; SpacingBetweenLines spacingBetweenLines37 = new SpacingBetweenLines() { After = "60" }; Justification justification8 = new Justification() { Val = JustificationValues.Left }; styleParagraphProperties18.Append(paragraphBorders10); styleParagraphProperties18.Append(shading1); styleParagraphProperties18.Append(spacingBetweenLines37); styleParagraphProperties18.Append(justification8); StyleRunProperties styleRunProperties19 = new StyleRunProperties(); Bold bold19 = new Bold(); Color color4 = new Color() { Val = "FFFFFF" }; styleRunProperties19.Append(bold19); styleRunProperties19.Append(color4); style25.Append(styleName25); style25.Append(basedOn16); style25.Append(rsid636); style25.Append(styleParagraphProperties18); style25.Append(styleRunProperties19); Style style26 = new Style() { Type = StyleValues.Paragraph, StyleId = "Header2Title", CustomStyle = true }; StyleName styleName26 = new StyleName() { Val = "Header 2 Title" }; BasedOn basedOn17 = new BasedOn() { Val = "Titre" }; LinkedStyle linkedStyle9 = new LinkedStyle() { Val = "Header2TitleChar" }; Rsid rsid637 = new Rsid() { Val = "00233025" }; StyleParagraphProperties styleParagraphProperties19 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines38 = new SpacingBetweenLines() { After = "60" }; styleParagraphProperties19.Append(spacingBetweenLines38); StyleRunProperties styleRunProperties20 = new StyleRunProperties(); FontSize fontSize24 = new FontSize() { Val = "26" }; styleRunProperties20.Append(fontSize24); style26.Append(styleName26); style26.Append(basedOn17); style26.Append(linkedStyle9); style26.Append(rsid637); style26.Append(styleParagraphProperties19); style26.Append(styleRunProperties20); Style style27 = new Style() { Type = StyleValues.Paragraph, StyleId = "ProductName", CustomStyle = true }; StyleName styleName27 = new StyleName() { Val = "Product Name" }; Rsid rsid638 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties20 = new StyleParagraphProperties(); ParagraphBorders paragraphBorders11 = new ParagraphBorders(); BottomBorder bottomBorder11 = new BottomBorder() { Val = BorderValues.Single, Color = "808080", Size = (UInt32Value)4U, Space = (UInt32Value)7U }; paragraphBorders11.Append(bottomBorder11); SpacingBetweenLines spacingBetweenLines39 = new SpacingBetweenLines() { Before = "60", After = "240" }; styleParagraphProperties20.Append(paragraphBorders11); styleParagraphProperties20.Append(spacingBetweenLines39); StyleRunProperties styleRunProperties21 = new StyleRunProperties(); RunFonts runFonts16 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", EastAsia = "Times New Roman" }; Bold bold20 = new Bold(); Caps caps7 = new Caps(); Kern kern7 = new Kern() { Val = (UInt32Value)16U }; FontSize fontSize25 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript32 = new FontSizeComplexScript() { Val = "22" }; Languages languages20 = new Languages() { Val = "en-US", EastAsia = "en-US" }; styleRunProperties21.Append(runFonts16); styleRunProperties21.Append(bold20); styleRunProperties21.Append(caps7); styleRunProperties21.Append(kern7); styleRunProperties21.Append(fontSize25); styleRunProperties21.Append(fontSizeComplexScript32); styleRunProperties21.Append(languages20); style27.Append(styleName27); style27.Append(rsid638); style27.Append(styleParagraphProperties20); style27.Append(styleRunProperties21); Style style28 = new Style() { Type = StyleValues.Paragraph, StyleId = "DislaimerHeading", CustomStyle = true }; StyleName styleName28 = new StyleName() { Val = "Dislaimer Heading" }; BasedOn basedOn18 = new BasedOn() { Val = "Disclaimer" }; NextParagraphStyle nextParagraphStyle6 = new NextParagraphStyle() { Val = "Disclaimer" }; LinkedStyle linkedStyle10 = new LinkedStyle() { Val = "DislaimerHeadingChar" }; AutoRedefine autoRedefine2 = new AutoRedefine(); Rsid rsid639 = new Rsid() { Val = "00782598" }; StyleParagraphProperties styleParagraphProperties21 = new StyleParagraphProperties(); KeepNext keepNext5 = new KeepNext(); styleParagraphProperties21.Append(keepNext5); StyleRunProperties styleRunProperties22 = new StyleRunProperties(); Bold bold21 = new Bold(); styleRunProperties22.Append(bold21); style28.Append(styleName28); style28.Append(basedOn18); style28.Append(nextParagraphStyle6); style28.Append(linkedStyle10); style28.Append(autoRedefine2); style28.Append(rsid639); style28.Append(styleParagraphProperties21); style28.Append(styleRunProperties22); Style style29 = new Style() { Type = StyleValues.Character, StyleId = "DateCar", CustomStyle = true }; StyleName styleName29 = new StyleName() { Val = "Date Car" }; BasedOn basedOn19 = new BasedOn() { Val = "Policepardfaut" }; LinkedStyle linkedStyle11 = new LinkedStyle() { Val = "Date" }; Rsid rsid640 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties23 = new StyleRunProperties(); RunFonts runFonts17 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Caps caps8 = new Caps(); Color color5 = new Color() { Val = "5C5C5C" }; Kern kern8 = new Kern() { Val = (UInt32Value)22U }; FontSize fontSize26 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript33 = new FontSizeComplexScript() { Val = "22" }; Languages languages21 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties23.Append(runFonts17); styleRunProperties23.Append(caps8); styleRunProperties23.Append(color5); styleRunProperties23.Append(kern8); styleRunProperties23.Append(fontSize26); styleRunProperties23.Append(fontSizeComplexScript33); styleRunProperties23.Append(languages21); style29.Append(styleName29); style29.Append(basedOn19); style29.Append(linkedStyle11); style29.Append(rsid640); style29.Append(styleRunProperties23); Style style30 = new Style() { Type = StyleValues.Character, StyleId = "TitreCar", CustomStyle = true }; StyleName styleName30 = new StyleName() { Val = "Titre Car" }; BasedOn basedOn20 = new BasedOn() { Val = "Policepardfaut" }; LinkedStyle linkedStyle12 = new LinkedStyle() { Val = "Titre" }; Rsid rsid641 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties24 = new StyleRunProperties(); RunFonts runFonts18 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; BoldComplexScript boldComplexScript6 = new BoldComplexScript(); Color color6 = new Color() { Val = "264C73" }; Kern kern9 = new Kern() { Val = (UInt32Value)28U }; FontSize fontSize27 = new FontSize() { Val = "46" }; FontSizeComplexScript fontSizeComplexScript34 = new FontSizeComplexScript() { Val = "36" }; Languages languages22 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties24.Append(runFonts18); styleRunProperties24.Append(boldComplexScript6); styleRunProperties24.Append(color6); styleRunProperties24.Append(kern9); styleRunProperties24.Append(fontSize27); styleRunProperties24.Append(fontSizeComplexScript34); styleRunProperties24.Append(languages22); style30.Append(styleName30); style30.Append(basedOn20); style30.Append(linkedStyle12); style30.Append(rsid641); style30.Append(styleRunProperties24); Style style31 = new Style() { Type = StyleValues.Character, StyleId = "Header2TitleChar", CustomStyle = true }; StyleName styleName31 = new StyleName() { Val = "Header 2 Title Char" }; BasedOn basedOn21 = new BasedOn() { Val = "TitreCar" }; LinkedStyle linkedStyle13 = new LinkedStyle() { Val = "Header2Title" }; Rsid rsid642 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties25 = new StyleRunProperties(); RunFonts runFonts19 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; BoldComplexScript boldComplexScript7 = new BoldComplexScript(); Color color7 = new Color() { Val = "264C73" }; Kern kern10 = new Kern() { Val = (UInt32Value)28U }; FontSize fontSize28 = new FontSize() { Val = "26" }; FontSizeComplexScript fontSizeComplexScript35 = new FontSizeComplexScript() { Val = "36" }; Languages languages23 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties25.Append(runFonts19); styleRunProperties25.Append(boldComplexScript7); styleRunProperties25.Append(color7); styleRunProperties25.Append(kern10); styleRunProperties25.Append(fontSize28); styleRunProperties25.Append(fontSizeComplexScript35); styleRunProperties25.Append(languages23); style31.Append(styleName31); style31.Append(basedOn21); style31.Append(linkedStyle13); style31.Append(rsid642); style31.Append(styleRunProperties25); Style style32 = new Style() { Type = StyleValues.Character, StyleId = "Titre1Car", CustomStyle = true }; StyleName styleName32 = new StyleName() { Val = "Titre 1 Car" }; BasedOn basedOn22 = new BasedOn() { Val = "Policepardfaut" }; LinkedStyle linkedStyle14 = new LinkedStyle() { Val = "Titre1" }; Rsid rsid643 = new Rsid() { Val = "00314DD5" }; StyleRunProperties styleRunProperties26 = new StyleRunProperties(); RunFonts runFonts20 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial", ComplexScript = "Arial" }; Bold bold22 = new Bold(); BoldComplexScript boldComplexScript8 = new BoldComplexScript(); Caps caps9 = new Caps(); Kern kern11 = new Kern() { Val = (UInt32Value)20U }; Languages languages24 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties26.Append(runFonts20); styleRunProperties26.Append(bold22); styleRunProperties26.Append(boldComplexScript8); styleRunProperties26.Append(caps9); styleRunProperties26.Append(kern11); styleRunProperties26.Append(languages24); style32.Append(styleName32); style32.Append(basedOn22); style32.Append(linkedStyle14); style32.Append(rsid643); style32.Append(styleRunProperties26); Style style33 = new Style() { Type = StyleValues.Character, StyleId = "TableTextChar", CustomStyle = true }; StyleName styleName33 = new StyleName() { Val = "Table Text Char" }; BasedOn basedOn23 = new BasedOn() { Val = "Policepardfaut" }; LinkedStyle linkedStyle15 = new LinkedStyle() { Val = "TableText" }; Rsid rsid644 = new Rsid() { Val = "00314DD5" }; StyleRunProperties styleRunProperties27 = new StyleRunProperties(); RunFonts runFonts21 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; FontSize fontSize29 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript36 = new FontSizeComplexScript() { Val = "22" }; Languages languages25 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties27.Append(runFonts21); styleRunProperties27.Append(fontSize29); styleRunProperties27.Append(fontSizeComplexScript36); styleRunProperties27.Append(languages25); style33.Append(styleName33); style33.Append(basedOn23); style33.Append(linkedStyle15); style33.Append(rsid644); style33.Append(styleRunProperties27); Style style34 = new Style() { Type = StyleValues.Character, StyleId = "TableHeadingChar", CustomStyle = true }; StyleName styleName34 = new StyleName() { Val = "Table Heading Char" }; BasedOn basedOn24 = new BasedOn() { Val = "TableTextChar" }; LinkedStyle linkedStyle16 = new LinkedStyle() { Val = "TableHeading" }; Rsid rsid645 = new Rsid() { Val = "00314DD5" }; StyleRunProperties styleRunProperties28 = new StyleRunProperties(); RunFonts runFonts22 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Bold bold23 = new Bold(); Caps caps10 = new Caps(); Kern kern12 = new Kern() { Val = (UInt32Value)16U }; FontSize fontSize30 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript37 = new FontSizeComplexScript() { Val = "18" }; Languages languages26 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties28.Append(runFonts22); styleRunProperties28.Append(bold23); styleRunProperties28.Append(caps10); styleRunProperties28.Append(kern12); styleRunProperties28.Append(fontSize30); styleRunProperties28.Append(fontSizeComplexScript37); styleRunProperties28.Append(languages26); style34.Append(styleName34); style34.Append(basedOn24); style34.Append(linkedStyle16); style34.Append(rsid645); style34.Append(styleRunProperties28); Style style35 = new Style() { Type = StyleValues.Paragraph, StyleId = "Liste" }; StyleName styleName35 = new StyleName() { Val = "List" }; BasedOn basedOn25 = new BasedOn() { Val = "Normal" }; Rsid rsid646 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties22 = new StyleParagraphProperties(); Tabs tabs4 = new Tabs(); TabStop tabStop4 = new TabStop() { Val = TabStopValues.Number, Position = 360 }; tabs4.Append(tabStop4); styleParagraphProperties22.Append(tabs4); style35.Append(styleName35); style35.Append(basedOn25); style35.Append(rsid646); style35.Append(styleParagraphProperties22); Style style36 = new Style() { Type = StyleValues.Paragraph, StyleId = "Listepuces2" }; StyleName styleName36 = new StyleName() { Val = "List Bullet 2" }; BasedOn basedOn26 = new BasedOn() { Val = "Normal" }; Rsid rsid647 = new Rsid() { Val = "00314DD5" }; StyleParagraphProperties styleParagraphProperties23 = new StyleParagraphProperties(); Tabs tabs5 = new Tabs(); TabStop tabStop5 = new TabStop() { Val = TabStopValues.Number, Position = 360 }; tabs5.Append(tabStop5); styleParagraphProperties23.Append(tabs5); style36.Append(styleName36); style36.Append(basedOn26); style36.Append(rsid647); style36.Append(styleParagraphProperties23); Style style37 = new Style() { Type = StyleValues.Character, StyleId = "En-tteCar", CustomStyle = true }; StyleName styleName37 = new StyleName() { Val = "En-tête Car" }; BasedOn basedOn27 = new BasedOn() { Val = "Policepardfaut" }; LinkedStyle linkedStyle17 = new LinkedStyle() { Val = "En-tte" }; Rsid rsid648 = new Rsid() { Val = "00314DD5" }; StyleRunProperties styleRunProperties29 = new StyleRunProperties(); RunFonts runFonts23 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Caps caps11 = new Caps(); Kern kern13 = new Kern() { Val = (UInt32Value)16U }; Languages languages27 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties29.Append(runFonts23); styleRunProperties29.Append(caps11); styleRunProperties29.Append(kern13); styleRunProperties29.Append(languages27); style37.Append(styleName37); style37.Append(basedOn27); style37.Append(linkedStyle17); style37.Append(rsid648); style37.Append(styleRunProperties29); Style style38 = new Style() { Type = StyleValues.Paragraph, StyleId = "RankStatement", CustomStyle = true }; StyleName styleName38 = new StyleName() { Val = "Rank Statement" }; BasedOn basedOn28 = new BasedOn() { Val = "TableText" }; LinkedStyle linkedStyle18 = new LinkedStyle() { Val = "RankStatementChar" }; AutoRedefine autoRedefine3 = new AutoRedefine(); Rsid rsid649 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties30 = new StyleRunProperties(); Bold bold24 = new Bold(); Color color8 = new Color() { Val = "DD6600" }; styleRunProperties30.Append(bold24); styleRunProperties30.Append(color8); style38.Append(styleName38); style38.Append(basedOn28); style38.Append(linkedStyle18); style38.Append(autoRedefine3); style38.Append(rsid649); style38.Append(styleRunProperties30); Style style39 = new Style() { Type = StyleValues.Character, StyleId = "RankStatementChar", CustomStyle = true }; StyleName styleName39 = new StyleName() { Val = "Rank Statement Char" }; BasedOn basedOn29 = new BasedOn() { Val = "TableTextChar" }; LinkedStyle linkedStyle19 = new LinkedStyle() { Val = "RankStatement" }; Rsid rsid650 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties31 = new StyleRunProperties(); RunFonts runFonts24 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Bold bold25 = new Bold(); Color color9 = new Color() { Val = "DD6600" }; FontSize fontSize31 = new FontSize() { Val = "18" }; FontSizeComplexScript fontSizeComplexScript38 = new FontSizeComplexScript() { Val = "22" }; Languages languages28 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties31.Append(runFonts24); styleRunProperties31.Append(bold25); styleRunProperties31.Append(color9); styleRunProperties31.Append(fontSize31); styleRunProperties31.Append(fontSizeComplexScript38); styleRunProperties31.Append(languages28); style39.Append(styleName39); style39.Append(basedOn29); style39.Append(linkedStyle19); style39.Append(rsid650); style39.Append(styleRunProperties31); Style style40 = new Style() { Type = StyleValues.Paragraph, StyleId = "RankHeading", CustomStyle = true }; StyleName styleName40 = new StyleName() { Val = "Rank Heading" }; BasedOn basedOn30 = new BasedOn() { Val = "Titre1" }; NextParagraphStyle nextParagraphStyle7 = new NextParagraphStyle() { Val = "Normal" }; Rsid rsid651 = new Rsid() { Val = "00EE7B69" }; StyleParagraphProperties styleParagraphProperties24 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines40 = new SpacingBetweenLines() { Before = "0", After = "120" }; styleParagraphProperties24.Append(spacingBetweenLines40); style40.Append(styleName40); style40.Append(basedOn30); style40.Append(nextParagraphStyle7); style40.Append(rsid651); style40.Append(styleParagraphProperties24); Style style41 = new Style() { Type = StyleValues.Character, StyleId = "CategoryRankGraphic", CustomStyle = true }; StyleName styleName41 = new StyleName() { Val = "Category Rank Graphic" }; BasedOn basedOn31 = new BasedOn() { Val = "Policepardfaut" }; Rsid rsid652 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties32 = new StyleRunProperties(); RunFonts runFonts25 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Position position2 = new Position() { Val = "-4" }; styleRunProperties32.Append(runFonts25); styleRunProperties32.Append(position2); style41.Append(styleName41); style41.Append(basedOn31); style41.Append(rsid652); style41.Append(styleRunProperties32); Style style42 = new Style() { Type = StyleValues.Paragraph, StyleId = "FooterRankLegend", CustomStyle = true }; StyleName styleName42 = new StyleName() { Val = "Footer Rank Legend" }; BasedOn basedOn32 = new BasedOn() { Val = "Normal" }; Rsid rsid653 = new Rsid() { Val = "003F2779" }; StyleParagraphProperties styleParagraphProperties25 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines41 = new SpacingBetweenLines() { Before = "360" }; styleParagraphProperties25.Append(spacingBetweenLines41); style42.Append(styleName42); style42.Append(basedOn32); style42.Append(rsid653); style42.Append(styleParagraphProperties25); Style style43 = new Style() { Type = StyleValues.Character, StyleId = "DisclaimerChar", CustomStyle = true }; StyleName styleName43 = new StyleName() { Val = "Disclaimer Char" }; BasedOn basedOn33 = new BasedOn() { Val = "Policepardfaut" }; LinkedStyle linkedStyle20 = new LinkedStyle() { Val = "Disclaimer" }; Rsid rsid654 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties33 = new StyleRunProperties(); RunFonts runFonts26 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Color color10 = new Color() { Val = "808080" }; FontSize fontSize32 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript39 = new FontSizeComplexScript() { Val = "22" }; Languages languages29 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties33.Append(runFonts26); styleRunProperties33.Append(color10); styleRunProperties33.Append(fontSize32); styleRunProperties33.Append(fontSizeComplexScript39); styleRunProperties33.Append(languages29); style43.Append(styleName43); style43.Append(basedOn33); style43.Append(linkedStyle20); style43.Append(rsid654); style43.Append(styleRunProperties33); Style style44 = new Style() { Type = StyleValues.Character, StyleId = "DislaimerHeadingChar", CustomStyle = true }; StyleName styleName44 = new StyleName() { Val = "Dislaimer Heading Char" }; BasedOn basedOn34 = new BasedOn() { Val = "DisclaimerChar" }; LinkedStyle linkedStyle21 = new LinkedStyle() { Val = "DislaimerHeading" }; Rsid rsid655 = new Rsid() { Val = "00782598" }; StyleRunProperties styleRunProperties34 = new StyleRunProperties(); RunFonts runFonts27 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Bold bold26 = new Bold(); Color color11 = new Color() { Val = "808080" }; FontSize fontSize33 = new FontSize() { Val = "16" }; FontSizeComplexScript fontSizeComplexScript40 = new FontSizeComplexScript() { Val = "22" }; Languages languages30 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties34.Append(runFonts27); styleRunProperties34.Append(bold26); styleRunProperties34.Append(color11); styleRunProperties34.Append(fontSize33); styleRunProperties34.Append(fontSizeComplexScript40); styleRunProperties34.Append(languages30); style44.Append(styleName44); style44.Append(basedOn34); style44.Append(linkedStyle21); style44.Append(rsid655); style44.Append(styleRunProperties34); Style style45 = new Style() { Type = StyleValues.Character, StyleId = "ProductsReviewedHeadingChar", CustomStyle = true }; StyleName styleName45 = new StyleName() { Val = "Products Reviewed Heading Char" }; BasedOn basedOn35 = new BasedOn() { Val = "Policepardfaut" }; LinkedStyle linkedStyle22 = new LinkedStyle() { Val = "ProductsReviewedHeading" }; Rsid rsid656 = new Rsid() { Val = "00443CD0" }; StyleRunProperties styleRunProperties35 = new StyleRunProperties(); RunFonts runFonts28 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Bold bold27 = new Bold(); Caps caps12 = new Caps(); FontSize fontSize34 = new FontSize() { Val = "22" }; FontSizeComplexScript fontSizeComplexScript41 = new FontSizeComplexScript() { Val = "22" }; Languages languages31 = new Languages() { Val = "en-US", EastAsia = "en-US", Bidi = "ar-SA" }; styleRunProperties35.Append(runFonts28); styleRunProperties35.Append(bold27); styleRunProperties35.Append(caps12); styleRunProperties35.Append(fontSize34); styleRunProperties35.Append(fontSizeComplexScript41); styleRunProperties35.Append(languages31); style45.Append(styleName45); style45.Append(basedOn35); style45.Append(linkedStyle22); style45.Append(rsid656); style45.Append(styleRunProperties35); Style style46 = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleAfter0pt", CustomStyle = true }; StyleName styleName46 = new StyleName() { Val = "Style After: 0 pt" }; BasedOn basedOn36 = new BasedOn() { Val = "Normal" }; Rsid rsid657 = new Rsid() { Val = "00983F27" }; StyleParagraphProperties styleParagraphProperties26 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines42 = new SpacingBetweenLines() { After = "0" }; styleParagraphProperties26.Append(spacingBetweenLines42); StyleRunProperties styleRunProperties36 = new StyleRunProperties(); FontSizeComplexScript fontSizeComplexScript42 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties36.Append(fontSizeComplexScript42); style46.Append(styleName46); style46.Append(basedOn36); style46.Append(rsid657); style46.Append(styleParagraphProperties26); style46.Append(styleRunProperties36); Style style47 = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleHeading2Before0ptAfter2pt", CustomStyle = true }; StyleName styleName47 = new StyleName() { Val = "Style Heading 2 + Before: 0 pt After: 2 pt" }; BasedOn basedOn37 = new BasedOn() { Val = "Titre2" }; Rsid rsid658 = new Rsid() { Val = "00AC1437" }; StyleParagraphProperties styleParagraphProperties27 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines43 = new SpacingBetweenLines() { Before = "0", After = "40", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphProperties27.Append(spacingBetweenLines43); StyleRunProperties styleRunProperties37 = new StyleRunProperties(); RunFonts runFonts29 = new RunFonts() { ComplexScript = "Times New Roman" }; ItalicComplexScript italicComplexScript2 = new ItalicComplexScript() { Val = false }; FontSizeComplexScript fontSizeComplexScript43 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties37.Append(runFonts29); styleRunProperties37.Append(italicComplexScript2); styleRunProperties37.Append(fontSizeComplexScript43); style47.Append(styleName47); style47.Append(basedOn37); style47.Append(rsid658); style47.Append(styleParagraphProperties27); style47.Append(styleRunProperties37); Style style48 = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleProductsReviewedHeadingBefore12pt", CustomStyle = true }; StyleName styleName48 = new StyleName() { Val = "Style Products Reviewed Heading + Before: 12 pt" }; BasedOn basedOn38 = new BasedOn() { Val = "ProductsReviewedHeading" }; Rsid rsid659 = new Rsid() { Val = "009F7E7F" }; StyleParagraphProperties styleParagraphProperties28 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines44 = new SpacingBetweenLines() { Before = "360" }; styleParagraphProperties28.Append(spacingBetweenLines44); StyleRunProperties styleRunProperties38 = new StyleRunProperties(); BoldComplexScript boldComplexScript9 = new BoldComplexScript(); FontSizeComplexScript fontSizeComplexScript44 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties38.Append(boldComplexScript9); styleRunProperties38.Append(fontSizeComplexScript44); style48.Append(styleName48); style48.Append(basedOn38); style48.Append(rsid659); style48.Append(styleParagraphProperties28); style48.Append(styleRunProperties38); Style style49 = new Style() { Type = StyleValues.Paragraph, StyleId = "NumberedList", CustomStyle = true }; StyleName styleName49 = new StyleName() { Val = "Numbered List" }; BasedOn basedOn39 = new BasedOn() { Val = "Normal" }; Rsid rsid660 = new Rsid() { Val = "00BB632E" }; StyleParagraphProperties styleParagraphProperties29 = new StyleParagraphProperties(); NumberingProperties numberingProperties1 = new NumberingProperties(); NumberingId numberingId1 = new NumberingId() { Val = 2 }; numberingProperties1.Append(numberingId1); styleParagraphProperties29.Append(numberingProperties1); style49.Append(styleName49); style49.Append(basedOn39); style49.Append(rsid660); style49.Append(styleParagraphProperties29); Style style50 = new Style() { Type = StyleValues.Paragraph, StyleId = "Explorateurdedocuments" }; StyleName styleName50 = new StyleName() { Val = "Document Map" }; BasedOn basedOn40 = new BasedOn() { Val = "Normal" }; SemiHidden semiHidden4 = new SemiHidden(); Rsid rsid661 = new Rsid() { Val = "002A7539" }; StyleParagraphProperties styleParagraphProperties30 = new StyleParagraphProperties(); Shading shading2 = new Shading() { Val = ShadingPatternValues.Clear, Color = "auto", Fill = "000080" }; styleParagraphProperties30.Append(shading2); StyleRunProperties styleRunProperties39 = new StyleRunProperties(); RunFonts runFonts30 = new RunFonts() { Ascii = "Tahoma", HighAnsi = "Tahoma", ComplexScript = "Tahoma" }; FontSize fontSize35 = new FontSize() { Val = "20" }; FontSizeComplexScript fontSizeComplexScript45 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties39.Append(runFonts30); styleRunProperties39.Append(fontSize35); styleRunProperties39.Append(fontSizeComplexScript45); style50.Append(styleName50); style50.Append(basedOn40); style50.Append(semiHidden4); style50.Append(rsid661); style50.Append(styleParagraphProperties30); style50.Append(styleRunProperties39); Style style51 = new Style() { Type = StyleValues.Character, StyleId = "Style10ptBold", CustomStyle = true }; StyleName styleName51 = new StyleName() { Val = "Style 10 pt Bold" }; BasedOn basedOn41 = new BasedOn() { Val = "Policepardfaut" }; Rsid rsid662 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties40 = new StyleRunProperties(); RunFonts runFonts31 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Bold bold28 = new Bold(); BoldComplexScript boldComplexScript10 = new BoldComplexScript(); FontSize fontSize36 = new FontSize() { Val = "20" }; styleRunProperties40.Append(runFonts31); styleRunProperties40.Append(bold28); styleRunProperties40.Append(boldComplexScript10); styleRunProperties40.Append(fontSize36); style51.Append(styleName51); style51.Append(basedOn41); style51.Append(rsid662); style51.Append(styleRunProperties40); Style style52 = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleBefore9ptAfter0pt", CustomStyle = true }; StyleName styleName52 = new StyleName() { Val = "Style Before: 9 pt After: 0 pt" }; BasedOn basedOn42 = new BasedOn() { Val = "Normal" }; AutoRedefine autoRedefine4 = new AutoRedefine(); Rsid rsid663 = new Rsid() { Val = "00DD5BAE" }; StyleParagraphProperties styleParagraphProperties31 = new StyleParagraphProperties(); KeepNext keepNext6 = new KeepNext(); SpacingBetweenLines spacingBetweenLines45 = new SpacingBetweenLines() { Before = "180", After = "0" }; styleParagraphProperties31.Append(keepNext6); styleParagraphProperties31.Append(spacingBetweenLines45); StyleRunProperties styleRunProperties41 = new StyleRunProperties(); FontSizeComplexScript fontSizeComplexScript46 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties41.Append(fontSizeComplexScript46); style52.Append(styleName52); style52.Append(basedOn42); style52.Append(autoRedefine4); style52.Append(rsid663); style52.Append(styleParagraphProperties31); style52.Append(styleRunProperties41); Style style53 = new Style() { Type = StyleValues.Character, StyleId = "StyleBodoniMT", CustomStyle = true }; StyleName styleName53 = new StyleName() { Val = "Style Bodoni MT" }; BasedOn basedOn43 = new BasedOn() { Val = "Policepardfaut" }; Rsid rsid664 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties42 = new StyleRunProperties(); RunFonts runFonts32 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; styleRunProperties42.Append(runFonts32); style53.Append(styleName53); style53.Append(basedOn43); style53.Append(rsid664); style53.Append(styleRunProperties42); Style style54 = new Style() { Type = StyleValues.Character, StyleId = "StyleCategoryRankGraphic10pt", CustomStyle = true }; StyleName styleName54 = new StyleName() { Val = "Style Category Rank Graphic + 10 pt" }; BasedOn basedOn44 = new BasedOn() { Val = "CategoryRankGraphic" }; Rsid rsid665 = new Rsid() { Val = "00233025" }; StyleRunProperties styleRunProperties43 = new StyleRunProperties(); RunFonts runFonts33 = new RunFonts() { Ascii = "Arial", HighAnsi = "Arial" }; Position position3 = new Position() { Val = "0" }; FontSize fontSize37 = new FontSize() { Val = "20" }; styleRunProperties43.Append(runFonts33); styleRunProperties43.Append(position3); styleRunProperties43.Append(fontSize37); style54.Append(styleName54); style54.Append(basedOn44); style54.Append(rsid665); style54.Append(styleRunProperties43); Style style55 = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleProductNameBefore0ptAfter8pt", CustomStyle = true }; StyleName styleName55 = new StyleName() { Val = "Style Product Name + Before: 0 pt After: 8 pt" }; BasedOn basedOn45 = new BasedOn() { Val = "ProductName" }; AutoRedefine autoRedefine5 = new AutoRedefine(); Rsid rsid666 = new Rsid() { Val = "00397A9E" }; StyleParagraphProperties styleParagraphProperties32 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines46 = new SpacingBetweenLines() { Before = "0", After = "160" }; styleParagraphProperties32.Append(spacingBetweenLines46); StyleRunProperties styleRunProperties44 = new StyleRunProperties(); BoldComplexScript boldComplexScript11 = new BoldComplexScript(); FontSizeComplexScript fontSizeComplexScript47 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties44.Append(boldComplexScript11); styleRunProperties44.Append(fontSizeComplexScript47); style55.Append(styleName55); style55.Append(basedOn45); style55.Append(autoRedefine5); style55.Append(rsid666); style55.Append(styleParagraphProperties32); style55.Append(styleRunProperties44); Style style56 = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleProductsReviewedHeading6ptBefore15ptAfter0pt", CustomStyle = true }; StyleName styleName56 = new StyleName() { Val = "Style Products Reviewed Heading + 6 pt Before: 15 pt After: 0 pt" }; BasedOn basedOn46 = new BasedOn() { Val = "ProductsReviewedHeading" }; AutoRedefine autoRedefine6 = new AutoRedefine(); Rsid rsid667 = new Rsid() { Val = "00397A9E" }; StyleParagraphProperties styleParagraphProperties33 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines47 = new SpacingBetweenLines() { Before = "300", After = "0" }; styleParagraphProperties33.Append(spacingBetweenLines47); StyleRunProperties styleRunProperties45 = new StyleRunProperties(); BoldComplexScript boldComplexScript12 = new BoldComplexScript(); FontSize fontSize38 = new FontSize() { Val = "12" }; FontSizeComplexScript fontSizeComplexScript48 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties45.Append(boldComplexScript12); styleRunProperties45.Append(fontSize38); styleRunProperties45.Append(fontSizeComplexScript48); style56.Append(styleName56); style56.Append(basedOn46); style56.Append(autoRedefine6); style56.Append(rsid667); style56.Append(styleParagraphProperties33); style56.Append(styleRunProperties45); Style style57 = new Style() { Type = StyleValues.Paragraph, StyleId = "StyleProductsReviewedHeading4ptBefore15ptAfter0pt", CustomStyle = true }; StyleName styleName57 = new StyleName() { Val = "Style Products Reviewed Heading + 4 pt Before: 15 pt After: 0 pt" }; BasedOn basedOn47 = new BasedOn() { Val = "ProductsReviewedHeading" }; AutoRedefine autoRedefine7 = new AutoRedefine(); Rsid rsid668 = new Rsid() { Val = "00397A9E" }; StyleParagraphProperties styleParagraphProperties34 = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLines48 = new SpacingBetweenLines() { Before = "300", After = "0" }; styleParagraphProperties34.Append(spacingBetweenLines48); StyleRunProperties styleRunProperties46 = new StyleRunProperties(); BoldComplexScript boldComplexScript13 = new BoldComplexScript(); FontSize fontSize39 = new FontSize() { Val = "8" }; FontSizeComplexScript fontSizeComplexScript49 = new FontSizeComplexScript() { Val = "20" }; styleRunProperties46.Append(boldComplexScript13); styleRunProperties46.Append(fontSize39); styleRunProperties46.Append(fontSizeComplexScript49); style57.Append(styleName57); style57.Append(basedOn47); style57.Append(autoRedefine7); style57.Append(rsid668); style57.Append(styleParagraphProperties34); style57.Append(styleRunProperties46); Style styleUnorderedList = new Style() { Type = StyleValues.Paragraph, StyleId = "UnorderedListStyle", CustomStyle = true }; StyleName styleNameUnorderedList = new StyleName() { Val = "UnorderedList Style" }; BasedOn basedOnUnorderedList = new BasedOn() { Val = "Normal" }; StyleParagraphProperties styleParagraphPropertiesUnorderedList = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLinesUnorderedList = new SpacingBetweenLines() { After = "0" }; styleParagraphPropertiesUnorderedList.Append(spacingBetweenLinesUnorderedList); StyleRunProperties styleRunPropertiesUnorderedList = new StyleRunProperties(); FontSizeComplexScript fontSizeComplexScriptUnorderedList = new FontSizeComplexScript() { Val = "20" }; styleRunPropertiesUnorderedList.Append(fontSizeComplexScriptUnorderedList); styleUnorderedList.Append(styleNameUnorderedList); styleUnorderedList.Append(basedOnUnorderedList); styleUnorderedList.Append(styleParagraphPropertiesUnorderedList); styleUnorderedList.Append(styleRunPropertiesUnorderedList); Style styleSimpleTable = new Style() { Type = StyleValues.Table, StyleId = "GrilledutableauSimpleTable" }; StyleName styleNameSimpleTable = new StyleName() { Val = "Table Grid SimpleTable" }; BasedOn basedOnSimpleTable = new BasedOn() { Val = "Grilledutableau" }; UIPriority uIPrioritySimpleTable = new UIPriority() { Val = 59 }; StyleParagraphProperties styleParagraphPropertiesSimpleTable = new StyleParagraphProperties(); SpacingBetweenLines spacingBetweenLinesSimpleTable = new SpacingBetweenLines() { After = "0", Line = "240", LineRule = LineSpacingRuleValues.Auto }; styleParagraphPropertiesSimpleTable.Append(spacingBetweenLinesSimpleTable); StyleTableProperties styleTablePropertiesSimpleTable = new StyleTableProperties(); TableIndentation tableIndentationSimpleTable = new TableIndentation() { Width = 0, Type = TableWidthUnitValues.Dxa }; TableBorders tableBordersSimpleTable = new TableBorders(); TopBorder topBorderSimpleTable = new TopBorder() { Val = BorderValues.Single, Color = "000000", ThemeColor = ThemeColorValues.Text1, Size = (UInt32Value)4U, Space = (UInt32Value)0U }; LeftBorder leftBorderSimpleTable = new LeftBorder() { Val = BorderValues.Single, Color = "000000", ThemeColor = ThemeColorValues.Text1, Size = (UInt32Value)4U, Space = (UInt32Value)0U }; BottomBorder bottomBorderSimpleTable = new BottomBorder() { Val = BorderValues.Single, Color = "000000", ThemeColor = ThemeColorValues.Text1, Size = (UInt32Value)4U, Space = (UInt32Value)0U }; RightBorder rightBorderSimpleTable = new RightBorder() { Val = BorderValues.Single, Color = "000000", ThemeColor = ThemeColorValues.Text1, Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideHorizontalBorder insideHorizontalBorderSimpleTable = new InsideHorizontalBorder() { Val = BorderValues.Single, Color = "000000", ThemeColor = ThemeColorValues.Text1, Size = (UInt32Value)4U, Space = (UInt32Value)0U }; InsideVerticalBorder insideVerticalBorderSimpleTable = new InsideVerticalBorder() { Val = BorderValues.Single, Color = "000000", ThemeColor = ThemeColorValues.Text1, Size = (UInt32Value)4U, Space = (UInt32Value)0U }; tableBordersSimpleTable.Append(topBorderSimpleTable); tableBordersSimpleTable.Append(leftBorderSimpleTable); tableBordersSimpleTable.Append(bottomBorderSimpleTable); tableBordersSimpleTable.Append(rightBorderSimpleTable); tableBordersSimpleTable.Append(insideHorizontalBorderSimpleTable); tableBordersSimpleTable.Append(insideVerticalBorderSimpleTable); TableCellMarginDefault tableCellMarginDefaultSimpleTable = new TableCellMarginDefault(); TopMargin topMarginSimpleTable = new TopMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellLeftMargin tableCellLeftMarginSimpleTable = new TableCellLeftMargin() { Width = 108, Type = TableWidthValues.Dxa }; BottomMargin bottomMarginSimpleTable = new BottomMargin() { Width = "0", Type = TableWidthUnitValues.Dxa }; TableCellRightMargin tableCellRightMarginSimpleTable = new TableCellRightMargin() { Width = 108, Type = TableWidthValues.Dxa }; tableCellMarginDefaultSimpleTable.Append(topMarginSimpleTable); tableCellMarginDefaultSimpleTable.Append(tableCellLeftMarginSimpleTable); tableCellMarginDefaultSimpleTable.Append(bottomMarginSimpleTable); tableCellMarginDefaultSimpleTable.Append(tableCellRightMarginSimpleTable); styleTablePropertiesSimpleTable.Append(tableIndentationSimpleTable); styleTablePropertiesSimpleTable.Append(tableBordersSimpleTable); styleTablePropertiesSimpleTable.Append(tableCellMarginDefaultSimpleTable); styleSimpleTable.Append(styleNameSimpleTable); styleSimpleTable.Append(basedOnSimpleTable); styleSimpleTable.Append(uIPrioritySimpleTable); styleSimpleTable.Append(styleParagraphPropertiesSimpleTable); styleSimpleTable.Append(styleTablePropertiesSimpleTable); styles1.Append(docDefaults1); styles1.Append(latentStyles1); styles1.Append(style1); styles1.Append(style2); styles1.Append(style3); styles1.Append(style4); styles1.Append(style5); styles1.Append(style6); styles1.Append(style7); styles1.Append(style8); styles1.Append(style9); styles1.Append(style10); styles1.Append(style11); styles1.Append(style12); styles1.Append(style13); styles1.Append(style14); styles1.Append(style15); styles1.Append(style16); styles1.Append(style17); styles1.Append(style18); styles1.Append(style19); styles1.Append(style20); styles1.Append(style21); styles1.Append(style22); styles1.Append(style23); styles1.Append(style24); styles1.Append(style25); styles1.Append(style26); styles1.Append(style27); styles1.Append(style28); styles1.Append(style29); styles1.Append(style30); styles1.Append(style31); styles1.Append(style32); styles1.Append(style33); styles1.Append(style34); styles1.Append(style35); styles1.Append(style36); styles1.Append(style37); styles1.Append(style38); styles1.Append(style39); styles1.Append(style40); styles1.Append(style41); styles1.Append(style42); styles1.Append(style43); styles1.Append(style44); styles1.Append(style45); styles1.Append(style46); styles1.Append(style47); styles1.Append(style48); styles1.Append(style49); styles1.Append(style50); styles1.Append(style51); styles1.Append(style52); styles1.Append(style53); styles1.Append(style54); styles1.Append(style55); styles1.Append(style56); styles1.Append(style57); styles1.Append(styleUnorderedList); styles1.Append(styleSimpleTable); styleDefinitionsPart1.Styles = styles1; }
private static bool GetCap(Caps cap) { if (version >= OVRP_0_1_3.version) return OVRP_0_1_3.ovrp_GetCaps2((uint)(1 << (int)cap)) != 0; else return ((int)OVRP_0_1_0.ovrp_GetCaps() & (1 << (int)cap)) != 0; }
private static Paragraph CreateTopicTitle(string title, string notation) { Paragraph paragraph21 = new Paragraph() { RsidParagraphMarkRevision = "00233025", RsidParagraphAddition = "00F8047A", RsidParagraphProperties = "00DD5BAE", RsidRunAdditionDefault = "00957E57" }; ParagraphProperties paragraphProperties21 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId21 = new ParagraphStyleId() { Val = "StyleBefore9ptAfter0pt" }; ParagraphMarkRunProperties paragraphMarkRunProperties13 = new ParagraphMarkRunProperties(); RunStyle runStyle4 = new RunStyle() { Val = "StyleCategoryRankGraphic10pt" }; paragraphMarkRunProperties13.Append(runStyle4); paragraphProperties21.Append(paragraphStyleId21); paragraphProperties21.Append(paragraphMarkRunProperties13); CustomXmlRun customXmlRun6 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "CatName" }; Run run33 = new Run() { RsidRunProperties = "00233025", RsidRunAddition = "00F8047A" }; RunProperties runProperties20 = new RunProperties(); RunStyle runStyle5 = new RunStyle() { Val = "Style10ptBold" }; runProperties20.Append(runStyle5); Text text24 = new Text(); text24.Text = title; run33.Append(runProperties20); run33.Append(text24); customXmlRun6.Append(run33); CustomXmlRun customXmlRun7 = new CustomXmlRun() { Uri = "http://hubblereports.com/namespace", Element = "CatRankValueImage" }; if (!string.IsNullOrEmpty(notation)) { Run run34 = new Run() { RsidRunAddition = "00740A1C" }; RunProperties runProperties21 = new RunProperties(); RunFonts runFonts3 = new RunFonts() { ComplexScript = "Arial" }; Bold bold12 = new Bold(); BoldComplexScript boldComplexScript1 = new BoldComplexScript(); Caps caps1 = new Caps(); NoProof noProof9 = new NoProof(); Kern kern1 = new Kern() { Val = (UInt32Value)20U }; Position position1 = new Position() { Val = "-4" }; FontSize fontSize9 = new FontSize() { Val = "20" }; Languages languages9 = new Languages() { Val = "fr-CA", EastAsia = "fr-CA" }; runProperties21.Append(runFonts3); runProperties21.Append(bold12); runProperties21.Append(boldComplexScript1); runProperties21.Append(caps1); runProperties21.Append(noProof9); runProperties21.Append(kern1); runProperties21.Append(position1); runProperties21.Append(fontSize9); runProperties21.Append(languages9); Drawing drawing9 = new Drawing(); Wp.Inline inline9 = new Wp.Inline() { DistanceFromTop = (UInt32Value)0U, DistanceFromBottom = (UInt32Value)0U, DistanceFromLeft = (UInt32Value)0U, DistanceFromRight = (UInt32Value)0U }; Wp.Extent extent9 = new Wp.Extent() { Cx = 838200L, Cy = 152400L }; Wp.EffectExtent effectExtent9 = new Wp.EffectExtent() { LeftEdge = 19050L, TopEdge = 0L, RightEdge = 0L, BottomEdge = 0L }; Wp.DocProperties docProperties9 = new Wp.DocProperties() { Id = (UInt32Value)20U, Name = "Image 20", Description = "rank_category_5" }; Wp.NonVisualGraphicFrameDrawingProperties nonVisualGraphicFrameDrawingProperties9 = new Wp.NonVisualGraphicFrameDrawingProperties(); A.GraphicFrameLocks graphicFrameLocks9 = new A.GraphicFrameLocks() { NoChangeAspect = true }; nonVisualGraphicFrameDrawingProperties9.Append(graphicFrameLocks9); A.Graphic graphic9 = new A.Graphic(); A.GraphicData graphicData9 = new A.GraphicData() { Uri = "http://schemas.openxmlformats.org/drawingml/2006/picture" }; Pic.Picture picture9 = new Pic.Picture(); Pic.NonVisualPictureProperties nonVisualPictureProperties9 = new Pic.NonVisualPictureProperties(); Pic.NonVisualDrawingProperties nonVisualDrawingProperties9 = new Pic.NonVisualDrawingProperties() { Id = (UInt32Value)0U, Name = "Picture 20", Description = "rank_category_5" }; Pic.NonVisualPictureDrawingProperties nonVisualPictureDrawingProperties9 = new Pic.NonVisualPictureDrawingProperties(); A.PictureLocks pictureLocks9 = new A.PictureLocks() { NoChangeAspect = true, NoChangeArrowheads = true }; nonVisualPictureDrawingProperties9.Append(pictureLocks9); nonVisualPictureProperties9.Append(nonVisualDrawingProperties9); nonVisualPictureProperties9.Append(nonVisualPictureDrawingProperties9); Pic.BlipFill blipFill9 = new Pic.BlipFill(); A.Blip blip9 = new A.Blip() { Embed = "rIdImgPartTopicRank" + notation, CompressionState = A.BlipCompressionValues.Print }; A.SourceRectangle sourceRectangle9 = new A.SourceRectangle(); A.Stretch stretch9 = new A.Stretch(); A.FillRectangle fillRectangle9 = new A.FillRectangle(); stretch9.Append(fillRectangle9); blipFill9.Append(blip9); blipFill9.Append(sourceRectangle9); blipFill9.Append(stretch9); Pic.ShapeProperties shapeProperties9 = new Pic.ShapeProperties() { BlackWhiteMode = A.BlackWhiteModeValues.Auto }; A.Transform2D transform2D9 = new A.Transform2D(); A.Offset offset9 = new A.Offset() { X = 0L, Y = 0L }; A.Extents extents9 = new A.Extents() { Cx = 838200L, Cy = 152400L }; transform2D9.Append(offset9); transform2D9.Append(extents9); A.PresetGeometry presetGeometry9 = new A.PresetGeometry() { Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList9 = new A.AdjustValueList(); presetGeometry9.Append(adjustValueList9); A.NoFill noFill17 = new A.NoFill(); A.Outline outline9 = new A.Outline() { Width = 9525 }; A.NoFill noFill18 = new A.NoFill(); A.Miter miter9 = new A.Miter() { Limit = 800000 }; A.HeadEnd headEnd9 = new A.HeadEnd(); A.TailEnd tailEnd9 = new A.TailEnd(); outline9.Append(noFill18); outline9.Append(miter9); outline9.Append(headEnd9); outline9.Append(tailEnd9); shapeProperties9.Append(transform2D9); shapeProperties9.Append(presetGeometry9); shapeProperties9.Append(noFill17); shapeProperties9.Append(outline9); picture9.Append(nonVisualPictureProperties9); picture9.Append(blipFill9); picture9.Append(shapeProperties9); graphicData9.Append(picture9); graphic9.Append(graphicData9); inline9.Append(extent9); inline9.Append(effectExtent9); inline9.Append(docProperties9); inline9.Append(nonVisualGraphicFrameDrawingProperties9); inline9.Append(graphic9); drawing9.Append(inline9); run34.Append(runProperties21); run34.Append(drawing9); customXmlRun7.Append(run34); } paragraph21.Append(paragraphProperties21); paragraph21.Append(customXmlRun6); paragraph21.Append(customXmlRun7); return paragraph21; }
/// <summary> /// This callback function is called immediately before a device is created to allow the /// application to modify the device settings. The supplied settings parameter /// contains the settings that the framework has selected for the new device, and the /// application can make any desired changes directly to this structure. Note however that /// the sample framework will not correct invalid device settings so care must be taken /// to return valid device settings, otherwise creating the Device will fail. /// </summary> public void ModifyDeviceSettings(DeviceSettings settings, Caps caps) { // If device doesn't support 2.0 pixel shaders, switch to reference device if(caps.PixelShaderVersion < new Version(2, 0)) { settings.DeviceType=DeviceType.Reference; settings.BehaviorFlags = CreateFlags.SoftwareVertexProcessing; MessageBox.Show("Your graphics card does not support the required pixel shader version.\n"+ "Switching to reference mod (expect a maximum fps of ~1)","Warning"); if(AA!=0 && AA!= 4 && AA!=9) { MessageBox.Show("Your chosen antialiasing setting is unsupported by the reference rasterizer.\n"+ "Defaulting to off", "Warning"); AA=0; } if(AF!=0 && AF!=2 && AF!=4 && AF!=8 && AF!=16) { MessageBox.Show("Your chosen anisotropic filtering setting is unsupported by the reference rasterizer.\n"+ "Defaulting to linear filters","Warning"); AF=0; } } else { // If device doesn't support HW T&L or doesn't support 2.0 vertex shaders in HW then switch to SWVP. if((!caps.DeviceCaps.SupportsHardwareTransformAndLight) || (caps.VertexShaderVersion < new Version(2, 0))) { settings.BehaviorFlags = CreateFlags.SoftwareVertexProcessing; } else { settings.BehaviorFlags = CreateFlags.HardwareVertexProcessing; } // This application is designed to work on a pure device by not using // any get methods, so create a pure device if supported and using HWVP. if((caps.DeviceCaps.SupportsPureDevice) && ((settings.BehaviorFlags & CreateFlags.HardwareVertexProcessing) != 0)) settings.BehaviorFlags |= CreateFlags.PureDevice; settings.BehaviorFlags |= CreateFlags.MultiThreaded; //Because .NET has a habit of randomly swapping threads if(AF!=0) { if((AF!=2 && AF!=4 && AF!=8 && AF!=16) || AF>caps.MaxAnisotropy) { MessageBox.Show("Your chosen anisotropic filtering setting is unsupported by your graphics hardware.\n"+ "Defaulting to linear filters","Warning"); AF=0; } } } settings.presentParams.MultiSample=(MultiSampleType)AA; }
private static extern Bool ovrp_SetCaps(Caps caps);
private bool useParallax; // Bool to enable/disable parallax mapping. #endregion Fields #region Constructors /// <summary> /// Primary Constructor. /// </summary> /// <param name="device">Copy of the device.</param> /// <param name="effect">Copy of the effect.</param> /// <param name="effectName">Name used for setting the texture in the shader.</param> /// <param name="effectBool">Name used for toggling the use of the texture in the shader.</param> public NormalClass(Device device, Effect effect, string effectName, string effectBool) { pathName = ""; this.device = device; this.effect = effect; textureEffectName = effectName; textureEffectBool = effectBool; normalStrength = 1.0f; heightStrength = 0.05f; minSamples = 5; maxSamples = 50; useParallax = false; devCaps = Manager.GetDeviceCaps(0, DeviceType.Hardware); }
private static bool GetCap(Caps cap) { if (version >= v0130) return OVRP0130.ovrp_GetCaps2((uint)(1 << (int)cap)) != 0; else return ((int)OVRP0100.ovrp_GetCaps() & (1 << (int)cap)) != 0; }
/// <summary> /// Called during device initialization, this code checks the device for some /// minimum set of capabilities, and rejects those that don't pass by returning false. /// </summary> public bool IsDeviceAcceptable(Caps caps, Format adapterFormat, Format backBufferFormat, bool windowed) { // No fallback defined by this app, so reject any device that // doesn't support at least ps1.1 if(caps.PixelShaderVersion < new Version(1, 1)) return false; // Skip back buffer formats that don't support alpha blending if(!Manager.CheckDeviceFormat(caps.AdapterOrdinal, caps.DeviceType, adapterFormat, Usage.QueryPostPixelShaderBlending, ResourceType.Textures, backBufferFormat)) return false; return true; }
/// <summary> /// Initialize the graphics environment /// </summary> public void InitializeEnvironment() { GraphicsAdapterInfo adapterInfo = graphicsSettings.AdapterInfo; GraphicsDeviceInfo deviceInfo = graphicsSettings.DeviceInfo; windowed = graphicsSettings.IsWindowed; // Set up the presentation parameters BuildPresentParamsFromSettings(); if (deviceInfo.Caps.PrimitiveMiscCaps.IsNullReference) { // Warn user about null ref device that can't render anything HandleSampleException(new NullReferenceDeviceException(), ApplicationMessage.None); } CreateFlags createFlags = new CreateFlags(); if (graphicsSettings.VertexProcessingType == VertexProcessingType.Software) createFlags = CreateFlags.SoftwareVertexProcessing; else if (graphicsSettings.VertexProcessingType == VertexProcessingType.Mixed) createFlags = CreateFlags.MixedVertexProcessing; else if (graphicsSettings.VertexProcessingType == VertexProcessingType.Hardware) createFlags = CreateFlags.HardwareVertexProcessing; else if (graphicsSettings.VertexProcessingType == VertexProcessingType.PureHardware) { createFlags = CreateFlags.HardwareVertexProcessing; } else throw new ApplicationException(); #if (DX9) #else // Make sure to allow multithreaded apps if we need them presentParams.ForceNoMultiThreadedFlag = !isMultiThreaded; #endif try { // Create the device device = new Device(graphicsSettings.AdapterOrdinal, graphicsSettings.DevType, windowed ? ourRenderTarget : this , createFlags, presentParams); // Cache our local objects renderState = device.RenderState; sampleState = device.SamplerState; textureStates = device.TextureState; // When moving from fullscreen to windowed mode, it is important to // adjust the window size after recreating the device rather than // beforehand to ensure that you get the window size you want. For // example, when switching from 640x480 fullscreen to windowed with // a 1000x600 window on a 1024x768 desktop, it is impossible to set // the window size to 1000x600 until after the display mode has // changed to 1024x768, because windows cannot be larger than the // desktop. if (windowed) { // Make sure main window isn't topmost, so error message is visible System.Drawing.Size currentClientSize = this.ClientSize; this.Size = this.ClientSize; this.SendToBack(); this.BringToFront(); this.ClientSize = currentClientSize; } // Store device Caps graphicsCaps = device.DeviceCaps; behavior = createFlags; System.Text.StringBuilder sb = new System.Text.StringBuilder(); // Store device description if (deviceInfo.DevType == DeviceType.Reference) sb.Append("REF"); else if (deviceInfo.DevType == DeviceType.Hardware) sb.Append("HAL"); else if (deviceInfo.DevType == DeviceType.Software) sb.Append("SW"); BehaviorFlags behaviorFlags = new BehaviorFlags(createFlags); if ((behaviorFlags.HardwareVertexProcessing) && (behaviorFlags.PureDevice)) { if (deviceInfo.DevType == DeviceType.Hardware) sb.Append(" (pure hw vp)"); else sb.Append(" (simulated pure hw vp)"); } else if (behaviorFlags.HardwareVertexProcessing) { if (deviceInfo.DevType == DeviceType.Hardware) sb.Append(" (hw vp)"); else sb.Append(" (simulated hw vp)"); } else if (behaviorFlags.MixedVertexProcessing) { if (deviceInfo.DevType == DeviceType.Hardware) sb.Append(" (mixed vp)"); else sb.Append(" (simulated mixed vp)"); } else if (behaviorFlags.SoftwareVertexProcessing) { sb.Append(" (sw vp)"); } if (deviceInfo.DevType == DeviceType.Hardware) { sb.Append(": "); sb.Append(adapterInfo.AdapterDetails.Description); } // Set device stats string deviceStats = sb.ToString(); // Set up the fullscreen cursor if (showCursorWhenFullscreen && !windowed) { System.Windows.Forms.Cursor ourCursor = this.Cursor; device.SetCursor(ourCursor, true); device.ShowCursor(true); } // Confine cursor to fullscreen window if (clipCursorWhenFullscreen) { if (!windowed) { System.Drawing.Rectangle rcWindow = this.ClientRectangle; } } // Setup the event handlers for our device device.DeviceLost += new System.EventHandler(this.InvalidateDeviceObjects); device.DeviceReset += new System.EventHandler(this.RestoreDeviceObjects); device.Disposing += new System.EventHandler(this.DeleteDeviceObjects); device.DeviceResizing += new System.ComponentModel.CancelEventHandler(this.EnvironmentResized); // Initialize the app's device-dependent objects try { InitializeDeviceObjects(); RestoreDeviceObjects(null, null); active = true; return; } catch { // Cleanup before we try again InvalidateDeviceObjects(null, null); DeleteDeviceObjects(null, null); device.Dispose(); device = null; if (this.Disposing) return; } } catch { // If that failed, fall back to the reference rasterizer if (deviceInfo.DevType == DeviceType.Hardware) { if (FindBestWindowedMode(false, true)) { windowed = true; // Make sure main window isn't topmost, so error message is visible System.Drawing.Size currentClientSize = this.ClientSize; this.Size = this.ClientSize; this.SendToBack(); this.BringToFront(); this.ClientSize = currentClientSize; // Let the user know we are switching from HAL to the reference rasterizer HandleSampleException(null, ApplicationMessage.WarnSwitchToRef); InitializeEnvironment(); } } } }
protected override bool OnSetCaps (Caps incaps, Caps outcaps) { Assert.IsTrue (incaps.IsEqual (outcaps)); return base.OnSetCaps (incaps, outcaps); }
// Overridable functions for the 3D scene created by the app protected virtual bool ConfirmDevice(Caps caps, VertexProcessingType vertexProcessingType, Format adapterFormat, Format backBufferFormat) { return true; }
public void TestPlainCreation() { Caps caps = new Caps(); Assert.IsNotNull (caps); Assert.IsFalse (caps.Handle == IntPtr.Zero, "Ooops, null handle"); }
private static bool GetCap(Caps cap) { return ((int)OVRP0100.ovrp_GetCaps() & (1 << (int)cap)) != 0; }
public static void Init(Caps Caps) { if (m_VertexStream != null) { m_VertexStream.Unlock(); } m_VertexStream = null; m_CanAAEdges = false; m_CanAADependent = false; m_CanAAIndependent = false; m_CanCullNone = Caps.get_PrimitiveMiscCaps().get_SupportsCullNone(); m_CanCullCW = Caps.get_PrimitiveMiscCaps().get_SupportsCullClockwise(); m_CanAntiAlias = m_CanAADependent || m_CanAAIndependent; m_AAEnable = false; m_EdgeAAEnable = false; m_AlphaTestEnable = false; m_CullEnable = true; m_AlphaEnable = false; Engine.m_Device.set_VertexFormat(0x144); Sampler sampler = Engine.m_Device.get_SamplerState().get_SamplerState(0); sampler.set_AddressU(3); sampler.set_AddressV(3); sampler.set_MinFilter(1); sampler.set_MagFilter(1); Engine.m_Device.get_RenderState().set_ZBufferEnable(true); Engine.m_Device.get_RenderState().set_ZBufferWriteEnable(true); }
protected override bool OnSetCaps (Caps incaps, Caps outcaps) { width = (int) incaps[0]["width"]; height = (int) incaps[0]["height"]; return base.OnSetCaps (incaps, outcaps); }
public static void ListGeneralCaps(Caps devCaps, ListBox listCaps) { listCaps.Items.Add(" ----- General Caps ------------------------"); if(devCaps.MaxActiveLights == -1) { listCaps.Items.Add("Maximum Active Lights: Unlimited"); } else { listCaps.Items.Add("Maximum Active Lights: " + devCaps.MaxActiveLights); } if(devCaps.MaxPointSize == 1) { listCaps.Items.Add("Device does not support point size control"); } else { listCaps.Items.Add("Maximum point primitive size: " + devCaps.MaxPointSize); } listCaps.Items.Add("Maximum Primitives in each DrawPrimitives call: " + devCaps.MaxPrimitiveCount); listCaps.Items.Add("Maximum textures simultaneously bound: " + devCaps.MaxSimultaneousTextures); listCaps.Items.Add("Maximum Texture aspect ratio: " + devCaps.MaxTextureAspectRatio); listCaps.Items.Add("Maximum Texture size: " + devCaps.MaxTextureWidth + "x" + devCaps.MaxTextureHeight); listCaps.Items.Add("Maximum matrixes blending: " + devCaps.MaxVertexBlendMatrices); listCaps.Items.Add("Maximum vertex shaders registers: " + devCaps.MaxVertexShaderConst); }
//*************************************************************************** // Private Methods // private void GetDeviceCaps(int adpNum) { this._devCaps = Manager.GetDeviceCaps(adpNum, DeviceType.Hardware); }