Dragonfly command-module: direct setting of Word styles
This command-module can set styles in Microsoft Word.
The following commands are available:
"set style <style>" -- format the current selection with
the given style. The <style> extra is a literal name of
the style as is visible within Word.
"(update | synchronize) styles" -- refresh the list of
styles known to this grammar. This refresh action is also
done automatically every time the Word application comes
to the foreground.
This command-module makes use of various features of the
Dragonfly library. It uses the ConnectionGrammar to
maintain a COM connection with Word when a Word window is in
the foreground. Every time this connection is set up, the
list of styles available in the current document is
retrieved and made available to the "set style <style>"
command.
This command-module uses Dragonfly's configuration
framework to allow multi-language support.
| Attachment | Size |
|---|---|
| _word_styles.py_.txt | 5.38 KB |
