Skip to content

Commit

Permalink
LT-21785: Add more style support
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
mark-sil committed Jun 13, 2024
1 parent 1a301bf commit 43978ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/xWorks/LcmWordGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ internal static DocFragment GenerateLetterHeaderDocFragment(string str, string s

public static string GetWsStyleName(LcmCache cache, string styleName, ConfigurableDictionaryNode config, string writingSystem)
{
// If the config does not contain writing system options, then just return the style name.(custom fields)
// If the config does not contain writing system options, then just return the style name.(An example is custom fields.)
if (!(config.DictionaryNodeOptions is DictionaryNodeWritingSystemOptions))
{
return styleName;
Expand Down

0 comments on commit 43978ed

Please sign in to comment.