internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { // property name: Width case 2591: simpleValue = new StringValue(); break; // property name: Percent case 2849: simpleValue = new StringValue(); break; // property name: FontSize case 2926: simpleValue = new StringValue(); break; // property name: ShapeId case 3073: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3082: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3086: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3091: simpleValue = new UInt32Value(); break; // property name: AdvanceAfterTime case 3152: simpleValue = new StringValue(); break; // property name: ShapeId case 3155: simpleValue = new UInt32Value(); break; default: Debug.Assert(false); break; } return(simpleValue); }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { default: Debug.Assert(false); break; } return(simpleValue); }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction, FileFormatVersions fileFormatVersion) { switch (fileFormatVersion) { case FileFormatVersions.Office2007: return O12UnionHelper.CreateTargetValueObject(redirectedRestriction); case FileFormatVersions.Office2010: return O14UnionHelper.CreateTargetValueObject(redirectedRestriction); case FileFormatVersions.Office2013: return O15UnionHelper.CreateTargetValueObject(redirectedRestriction); default: Debug.Assert(fileFormatVersion == FileFormatVersions.Office2007 || fileFormatVersion == FileFormatVersions.Office2010 || fileFormatVersion == FileFormatVersions.Office2013); break; } return null; }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction, FileFormatVersions fileFormatVersion) { switch (fileFormatVersion) { case FileFormatVersions.Office2007: return(O12UnionHelper.CreateTargetValueObject(redirectedRestriction)); case FileFormatVersions.Office2010: return(O14UnionHelper.CreateTargetValueObject(redirectedRestriction)); case FileFormatVersions.Office2013: return(O15UnionHelper.CreateTargetValueObject(redirectedRestriction)); default: Debug.Assert(fileFormatVersion.Any()); break; } return(null); }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { // property name: Width case 2389: simpleValue = new UInt32Value(); break; // property name: VerticalSpace case 2391: simpleValue = new UInt32Value(); break; // property name: HorizontalSpace case 2392: simpleValue = new UInt32Value(); break; // property name: X case 2396: simpleValue = new Int32Value(); break; // property name: Y case 2398: simpleValue = new Int32Value(); break; // property name: Before case 2411: simpleValue = new UInt32Value(); break; // property name: After case 2414: simpleValue = new UInt32Value(); break; // property name: Line case 2417: simpleValue = new Int32Value(); break; // property name: Left case 2419: simpleValue = new Int32Value(); break; // property name: Start case 2420: simpleValue = new Int32Value(); break; // property name: Right case 2423: simpleValue = new Int32Value(); break; // property name: End case 2424: simpleValue = new Int32Value(); break; // property name: Hanging case 2427: simpleValue = new UInt32Value(); break; // property name: FirstLine case 2429: simpleValue = new UInt32Value(); break; // property name: Val case 2475: simpleValue = new Int32Value(); break; // property name: Val case 2476: simpleValue = new UInt32Value(); break; // property name: Width case 2591: simpleValue = new Int32Value(); break; // property name: Distance case 2645: simpleValue = new UInt32Value(); break; // property name: Space case 2652: simpleValue = new UInt32Value(); break; // property name: Val case 2682: simpleValue = new StringValue(); break; // property name: Width case 2688: simpleValue = new UInt32Value(); break; // property name: Space case 2689: simpleValue = new UInt32Value(); break; // property name: Width case 2706: simpleValue = new UInt32Value(); break; // property name: Val case 2734: simpleValue = new UInt32Value(); break; // property name: LegacySpace case 2740: simpleValue = new UInt32Value(); break; // property name: LegacyIndent case 2741: simpleValue = new Int32Value(); break; // property name: Val case 2771: simpleValue = new Int32Value(); break; // property name: Percent case 2849: simpleValue = new Int32Value(); break; // property name: Val case 2874: simpleValue = new HexBinaryValue(); break; // property name: FontSize case 2926: simpleValue = new Int32Value(); break; // property name: Val case 2988: simpleValue = new StringValue(); break; // property name: Delay case 2993: simpleValue = new StringValue(); break; // property name: ShapeId case 3073: simpleValue = new StringValue(); break; // property name: AutoAdvance case 3081: simpleValue = new StringValue(); break; // property name: ShapeId case 3082: simpleValue = new StringValue(); break; // property name: ShapeId case 3086: simpleValue = new StringValue(); break; // property name: ShapeId case 3091: simpleValue = new StringValue(); break; // property name: AdvanceAfterTime case 3152: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3155: simpleValue = new StringValue(); break; default: Debug.Assert(false); break; } return(simpleValue); }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { // property name: Width case 2387: simpleValue = new UInt32Value(); break; // property name: VerticalSpace case 2389: simpleValue = new UInt32Value(); break; // property name: HorizontalSpace case 2390: simpleValue = new UInt32Value(); break; // property name: X case 2394: simpleValue = new Int32Value(); break; // property name: Y case 2396: simpleValue = new Int32Value(); break; // property name: Before case 2409: simpleValue = new UInt32Value(); break; // property name: After case 2412: simpleValue = new UInt32Value(); break; // property name: Line case 2415: simpleValue = new Int32Value(); break; // property name: Left case 2417: simpleValue = new Int32Value(); break; // property name: Start case 2418: simpleValue = new Int32Value(); break; // property name: Right case 2421: simpleValue = new Int32Value(); break; // property name: End case 2422: simpleValue = new Int32Value(); break; // property name: Hanging case 2425: simpleValue = new UInt32Value(); break; // property name: FirstLine case 2427: simpleValue = new UInt32Value(); break; // property name: Val case 2473: simpleValue = new Int32Value(); break; // property name: Val case 2474: simpleValue = new UInt32Value(); break; // property name: Width case 2589: simpleValue = new Int32Value(); break; // property name: Distance case 2643: simpleValue = new UInt32Value(); break; // property name: Space case 2650: simpleValue = new UInt32Value(); break; // property name: Val case 2680: simpleValue = new StringValue(); break; // property name: Width case 2686: simpleValue = new UInt32Value(); break; // property name: Space case 2687: simpleValue = new UInt32Value(); break; // property name: Width case 2704: simpleValue = new UInt32Value(); break; // property name: Val case 2732: simpleValue = new UInt32Value(); break; // property name: LegacySpace case 2738: simpleValue = new UInt32Value(); break; // property name: LegacyIndent case 2739: simpleValue = new Int32Value(); break; // property name: Val case 2769: simpleValue = new Int32Value(); break; // property name: Percent case 2847: simpleValue = new Int32Value(); break; // property name: Val case 2872: simpleValue = new HexBinaryValue(); break; // property name: FontSize case 2924: simpleValue = new Int32Value(); break; // property name: Val case 2986: simpleValue = new StringValue(); break; // property name: Delay case 2991: simpleValue = new StringValue(); break; // property name: ShapeId case 3071: simpleValue = new StringValue(); break; // property name: AutoAdvance case 3079: simpleValue = new StringValue(); break; // property name: ShapeId case 3080: simpleValue = new StringValue(); break; // property name: ShapeId case 3084: simpleValue = new StringValue(); break; // property name: ShapeId case 3089: simpleValue = new StringValue(); break; // property name: AdvanceAfterTime case 3150: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3153: simpleValue = new StringValue(); break; default: Debug.Assert(false); break; } return(simpleValue); }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { // property name: Width case 2387: simpleValue = new UInt32Value(); break; // property name: VerticalSpace case 2389: simpleValue = new UInt32Value(); break; // property name: HorizontalSpace case 2390: simpleValue = new UInt32Value(); break; // property name: X case 2394: simpleValue = new Int32Value(); break; // property name: Y case 2396: simpleValue = new Int32Value(); break; // property name: Before case 2409: simpleValue = new UInt32Value(); break; // property name: After case 2412: simpleValue = new UInt32Value(); break; // property name: Line case 2415: simpleValue = new Int32Value(); break; // property name: Left case 2417: simpleValue = new Int32Value(); break; // property name: Start case 2418: simpleValue = new Int32Value(); break; // property name: Right case 2421: simpleValue = new Int32Value(); break; // property name: End case 2422: simpleValue = new Int32Value(); break; // property name: Hanging case 2425: simpleValue = new UInt32Value(); break; // property name: FirstLine case 2427: simpleValue = new UInt32Value(); break; // property name: Val case 2473: simpleValue = new Int32Value(); break; // property name: Val case 2474: simpleValue = new UInt32Value(); break; // property name: Width case 2589: simpleValue = new Int32Value(); break; // property name: Distance case 2643: simpleValue = new UInt32Value(); break; // property name: Space case 2650: simpleValue = new UInt32Value(); break; // property name: Val case 2680: simpleValue = new StringValue(); break; // property name: Width case 2686: simpleValue = new UInt32Value(); break; // property name: Space case 2687: simpleValue = new UInt32Value(); break; // property name: Width case 2704: simpleValue = new UInt32Value(); break; // property name: Val case 2732: simpleValue = new UInt32Value(); break; // property name: LegacySpace case 2738: simpleValue = new UInt32Value(); break; // property name: LegacyIndent case 2739: simpleValue = new Int32Value(); break; // property name: Val case 2769: simpleValue = new Int32Value(); break; // property name: Percent case 2847: simpleValue = new Int32Value(); break; // property name: Val case 2872: simpleValue = new HexBinaryValue(); break; // property name: FontSize case 2924: simpleValue = new Int32Value(); break; // property name: Val case 2986: simpleValue = new StringValue(); break; // property name: Delay case 2991: simpleValue = new StringValue(); break; // property name: ShapeId case 3071: simpleValue = new StringValue(); break; // property name: AutoAdvance case 3079: simpleValue = new StringValue(); break; // property name: ShapeId case 3080: simpleValue = new StringValue(); break; // property name: ShapeId case 3084: simpleValue = new StringValue(); break; // property name: ShapeId case 3089: simpleValue = new StringValue(); break; // property name: AdvanceAfterTime case 3150: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3153: simpleValue = new StringValue(); break; default: Debug.Assert(false); break; } return simpleValue; }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { // property name: Width case 2391: simpleValue = new StringValue(); break; // property name: VerticalSpace case 2393: simpleValue = new StringValue(); break; // property name: HorizontalSpace case 2394: simpleValue = new StringValue(); break; // property name: X case 2398: simpleValue = new StringValue(); break; // property name: Y case 2400: simpleValue = new StringValue(); break; // property name: Before case 2413: simpleValue = new StringValue(); break; // property name: After case 2416: simpleValue = new StringValue(); break; // property name: Line case 2419: simpleValue = new StringValue(); break; // property name: Left case 2421: simpleValue = new StringValue(); break; // property name: Start case 2422: simpleValue = new StringValue(); break; // property name: Right case 2425: simpleValue = new StringValue(); break; // property name: End case 2426: simpleValue = new StringValue(); break; // property name: Hanging case 2429: simpleValue = new StringValue(); break; // property name: FirstLine case 2431: simpleValue = new StringValue(); break; // property name: Val case 2477: simpleValue = new StringValue(); break; // property name: Val case 2478: simpleValue = new StringValue(); break; // property name: Width case 2593: simpleValue = new StringValue(); break; // property name: Distance case 2647: simpleValue = new StringValue(); break; // property name: Space case 2654: simpleValue = new StringValue(); break; // property name: Val case 2684: simpleValue = new StringValue(); break; // property name: Width case 2690: simpleValue = new StringValue(); break; // property name: Space case 2691: simpleValue = new StringValue(); break; // property name: Width case 2708: simpleValue = new StringValue(); break; // property name: Val case 2736: simpleValue = new StringValue(); break; // property name: LegacySpace case 2742: simpleValue = new StringValue(); break; // property name: LegacyIndent case 2743: simpleValue = new StringValue(); break; // property name: Val case 2773: simpleValue = new StringValue(); break; // property name: Percent case 2851: simpleValue = new StringValue(); break; // property name: Val case 2876: simpleValue = new EnumValue <DocumentFormat.OpenXml.Wordprocessing.StylePaneSortMethodsValues>(); break; // property name: FontSize case 2928: simpleValue = new StringValue(); break; // property name: Val case 2990: simpleValue = new StringValue(); break; // property name: Delay case 2995: simpleValue = new StringValue(); break; // property name: ShapeId case 3075: simpleValue = new UInt32Value(); break; // property name: AutoAdvance case 3083: simpleValue = new StringValue(); break; // property name: ShapeId case 3084: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3088: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3093: simpleValue = new UInt32Value(); break; // property name: AdvanceAfterTime case 3154: simpleValue = new StringValue(); break; // property name: ShapeId case 3157: simpleValue = new UInt32Value(); break; default: Debug.Assert(false); break; } return(simpleValue); }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { // property name: Width case 2591: simpleValue = new StringValue(); break; // property name: Percent case 2849: simpleValue = new StringValue(); break; // property name: FontSize case 2926: simpleValue = new StringValue(); break; // property name: ShapeId case 3073: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3082: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3086: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3091: simpleValue = new UInt32Value(); break; // property name: AdvanceAfterTime case 3152: simpleValue = new StringValue(); break; // property name: ShapeId case 3155: simpleValue = new UInt32Value(); break; default: Debug.Assert(false); break; } return simpleValue; }
internal static OpenXmlSimpleType CreateTargetValueObject(RedirectedRestriction redirectedRestriction) { OpenXmlSimpleType simpleValue = null; switch (redirectedRestriction.AttributeId) { // property name: Width case 2389: simpleValue = new StringValue(); break; // property name: VerticalSpace case 2391: simpleValue = new StringValue(); break; // property name: HorizontalSpace case 2392: simpleValue = new StringValue(); break; // property name: X case 2396: simpleValue = new StringValue(); break; // property name: Y case 2398: simpleValue = new StringValue(); break; // property name: Before case 2411: simpleValue = new StringValue(); break; // property name: After case 2414: simpleValue = new StringValue(); break; // property name: Line case 2417: simpleValue = new StringValue(); break; // property name: Left case 2419: simpleValue = new StringValue(); break; // property name: Start case 2420: simpleValue = new StringValue(); break; // property name: Right case 2423: simpleValue = new StringValue(); break; // property name: End case 2424: simpleValue = new StringValue(); break; // property name: Hanging case 2427: simpleValue = new StringValue(); break; // property name: FirstLine case 2429: simpleValue = new StringValue(); break; // property name: Val case 2475: simpleValue = new StringValue(); break; // property name: Val case 2476: simpleValue = new StringValue(); break; // property name: Width case 2591: simpleValue = new StringValue(); break; // property name: Distance case 2645: simpleValue = new StringValue(); break; // property name: Space case 2652: simpleValue = new StringValue(); break; // property name: Val case 2682: simpleValue = new StringValue(); break; // property name: Width case 2688: simpleValue = new StringValue(); break; // property name: Space case 2689: simpleValue = new StringValue(); break; // property name: Width case 2706: simpleValue = new StringValue(); break; // property name: Val case 2734: simpleValue = new StringValue(); break; // property name: LegacySpace case 2740: simpleValue = new StringValue(); break; // property name: LegacyIndent case 2741: simpleValue = new StringValue(); break; // property name: Val case 2771: simpleValue = new StringValue(); break; // property name: Percent case 2849: simpleValue = new StringValue(); break; // property name: Val case 2874: simpleValue = new EnumValue<DocumentFormat.OpenXml.Wordprocessing.StylePaneSortMethodsValues>(); break; // property name: FontSize case 2926: simpleValue = new StringValue(); break; // property name: Val case 2988: simpleValue = new StringValue(); break; // property name: Delay case 2993: simpleValue = new StringValue(); break; // property name: ShapeId case 3073: simpleValue = new UInt32Value(); break; // property name: AutoAdvance case 3081: simpleValue = new StringValue(); break; // property name: ShapeId case 3082: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3086: simpleValue = new UInt32Value(); break; // property name: ShapeId case 3091: simpleValue = new UInt32Value(); break; // property name: AdvanceAfterTime case 3152: simpleValue = new StringValue(); break; // property name: ShapeId case 3155: simpleValue = new UInt32Value(); break; default: Debug.Assert(false); break; } return simpleValue; }