Skip to content

Commit 43978ed

Browse files
committed
LT-21785: Add more style support
- When a run is created set the style name. (It may get modified with basedOn information as we get other notifications.) - Add styles during run creation. - Allow styles to be based on other styles, which can be based on other styles… - Support different styles on different document fragments. TODO: A remaining task is to change the style names from the config.Style to the config.DisplayLabel. This will improve the style names that appear in Word. At that time we will need to add additional code to generate a unique style name if the properties of a style are different. Change-Id: I6b993e1f83b41a0ff2fb05afa1410ff336110427
1 parent 1a301bf commit 43978ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/xWorks/LcmWordGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ internal static DocFragment GenerateLetterHeaderDocFragment(string str, string s
250250

251251
public static string GetWsStyleName(LcmCache cache, string styleName, ConfigurableDictionaryNode config, string writingSystem)
252252
{
253-
// If the config does not contain writing system options, then just return the style name.(custom fields)
253+
// If the config does not contain writing system options, then just return the style name.(An example is custom fields.)
254254
if (!(config.DictionaryNodeOptions is DictionaryNodeWritingSystemOptions))
255255
{
256256
return styleName;

0 commit comments

Comments
 (0)