1- // Copyright (c) 2017 SIL International
1+ // Copyright (c) 2017 SIL International
22// This software is licensed under the LGPL, version 2.1 or later
33// (http://www.gnu.org/licenses/lgpl-2.1.html)
44
@@ -129,17 +129,17 @@ public void Setup()
129129 {
130130 var styleFactory = Cache . ServiceLocator . GetInstance < IStStyleFactory > ( ) ;
131131 styleFactory . Create ( Cache . LangProject . StylesOC , "Dictionary-Headword" ,
132- ContextValues . InternalConfigureView , StructureValues . Undefined , FunctionValues . Line , true , 2 , true ) ;
133- var testStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "TestStyle" , ContextValues . InternalConfigureView , StructureValues . Undefined ,
134- FunctionValues . Line , true , 2 , false ) ;
132+ ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , true , 2 , true ) ;
133+ var testStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "TestStyle" , ContextValues . InternalConfigureView , StructureValues . Body ,
134+ FunctionValues . Prose , true , 2 , false ) ;
135135 testStyle . Usage . set_String ( Cache . DefaultAnalWs , "Test Style" ) ;
136- var normalStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Normal" , ContextValues . InternalConfigureView , StructureValues . Undefined ,
137- FunctionValues . Line , false , 2 , true ) ;
136+ var normalStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Normal" , ContextValues . InternalConfigureView , StructureValues . Body ,
137+ FunctionValues . Prose , false , 2 , true ) ;
138138 var propsBldr = TsStringUtils . MakePropsBldr ( ) ;
139139 propsBldr . SetIntPropValues ( ( int ) FwTextPropType . ktptBackColor , ( int ) FwTextPropVar . ktpvDefault , 0x2BACCA ) ; // arbitrary color to create para element
140140 normalStyle . Rules = propsBldr . GetTextProps ( ) ;
141141 var senseStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Dictionary-Sense" ,
142- ContextValues . InternalConfigureView , StructureValues . Undefined , FunctionValues . Line , false , 2 , true ) ;
142+ ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , false , 2 , true ) ;
143143 propsBldr . SetIntPropValues ( ( int ) FwTextPropType . ktptBackColor , ( int ) FwTextPropVar . ktpvDefault , 0x2BACCA ) ; // arbitrary color to create para element
144144 propsBldr . SetIntPropValues ( ( int ) FwTextPropType . ktptForeColor , ( int ) FwTextPropVar . ktpvDefault , NamedRedBGR ) ;
145145 propsBldr . SetStrPropValue ( ( int ) FwTextPropType . ktptFontFamily , "Arial" ) ;
@@ -148,15 +148,15 @@ public void Setup()
148148 propsBldr . SetStrPropValue ( ( int ) FwTextPropType . ktptBulNumFontInfo , "" ) ;
149149 senseStyle . Rules = propsBldr . GetTextProps ( ) ;
150150 senseStyle . BasedOnRA = normalStyle ;
151- var styleWithNamedColors = styleFactory . Create ( Cache . LangProject . StylesOC , "Nominal" , ContextValues . InternalConfigureView , StructureValues . Undefined ,
152- FunctionValues . Line , false , 2 , false ) ;
151+ var styleWithNamedColors = styleFactory . Create ( Cache . LangProject . StylesOC , "Nominal" , ContextValues . InternalConfigureView , StructureValues . Body ,
152+ FunctionValues . Prose , false , 2 , false ) ;
153153 styleWithNamedColors . BasedOnRA = normalStyle ;
154154 propsBldr = TsStringUtils . MakePropsBldr ( ) ;
155155 propsBldr . SetIntPropValues ( ( int ) FwTextPropType . ktptBackColor , ( int ) FwTextPropVar . ktpvDefault , NamedRedBGR ) ;
156156 propsBldr . SetIntPropValues ( ( int ) FwTextPropType . ktptForeColor , ( int ) FwTextPropVar . ktpvDefault , NamedRedBGR ) ;
157157 styleWithNamedColors . Rules = propsBldr . GetTextProps ( ) ;
158- var styleWithCustomColors = styleFactory . Create ( Cache . LangProject . StylesOC , "Abnormal" , ContextValues . InternalConfigureView , StructureValues . Undefined ,
159- FunctionValues . Line , false , 2 , false ) ;
158+ var styleWithCustomColors = styleFactory . Create ( Cache . LangProject . StylesOC , "Abnormal" , ContextValues . InternalConfigureView , StructureValues . Body ,
159+ FunctionValues . Prose , false , 2 , false ) ;
160160 styleWithCustomColors . BasedOnRA = normalStyle ;
161161 propsBldr = TsStringUtils . MakePropsBldr ( ) ;
162162 propsBldr . SetIntPropValues ( ( int ) FwTextPropType . ktptBackColor , ( int ) FwTextPropVar . ktpvDefault , CustomRedBGR ) ;
@@ -303,20 +303,20 @@ public void DoImport_UnhandledStylesLeftUnTouched()
303303 // Set up state of flex before the import happens.
304304 var styleFactory = Cache . ServiceLocator . GetInstance < IStStyleFactory > ( ) ;
305305 bulletStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Bulleted List" ,
306- ContextValues . InternalConfigureView , StructureValues . Undefined , FunctionValues . Line , false , 2 , true ) ;
306+ ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , false , 2 , true ) ;
307307 numberStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Numbered List" ,
308- ContextValues . InternalConfigureView , StructureValues . Undefined , FunctionValues . Line , false , 2 , true ) ;
308+ ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , false , 2 , true ) ;
309309
310- dictionaryHeadwordStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Dictionary-Headword" , ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Line , true , 2 , true ) ;
310+ dictionaryHeadwordStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Dictionary-Headword" , ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , true , 2 , true ) ;
311311
312312 // Create a style that we can link to before the import happens. It's not
313313 // important what it's named, just that it also exists in the exported zip
314314 // file made by Setup().
315315 nominalStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Nominal" ,
316- ContextValues . InternalConfigureView , StructureValues . Undefined , FunctionValues . Line , false , 2 , false ) ;
316+ ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , false , 2 , false ) ;
317317
318318 homographStyle = styleFactory . Create ( Cache . LangProject . StylesOC , "Homograph-Number" ,
319- ContextValues . InternalConfigureView , StructureValues . Undefined , FunctionValues . Line , true , 2 , true ) ;
319+ ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , true , 2 , true ) ;
320320
321321 // Style linking to later examine
322322 homographStyle . BasedOnRA = dictionaryHeadwordStyle ;
@@ -694,7 +694,7 @@ public void DoImport_CustomBulletInfoIsImported()
694694 {
695695 // Set up state of flex before the import happens.
696696 var styleFactory = Cache . ServiceLocator . GetInstance < IStStyleFactory > ( ) ;
697- styleFactory . Create ( Cache . LangProject . StylesOC , "Dictionary-Sense" , ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Line , false , 2 , true ) ;
697+ styleFactory . Create ( Cache . LangProject . StylesOC , "Dictionary-Sense" , ContextValues . InternalConfigureView , StructureValues . Body , FunctionValues . Prose , false , 2 , true ) ;
698698 } ) ;
699699 Assert . AreEqual ( 1 , Cache . LangProject . StylesOC . Count , "Setup problem. Unexpected number of styles before doing any import activity." ) ;
700700 _controller . PrepareImport ( _zipFile ) ;
0 commit comments