This structure defines the style mapping support for KVSTR
-defined styles. The first three members of KVStyle
are KVSTR
structures (see KVSTR). Each KVSTR
structure contains the text string and byte count for StyleName
, MarkUpStart
, and MarkUpEnd
. The structure is initialized by calling the function fpSetStyleMapping()
.
See fpSetStyleMapping() and Map Styles.
EndCharStyle
token from the format parser, the most recent character style is terminated.
typedef struct tag_KVStyles { KVSTR StyleName; KVSTR MarkUpStart; KVSTR MarkUpEnd; DWORD dwFlags; } KVStyle;
StyleName
|
The name of the word processing style (for example, "Heading 1") to which style mapping applies. A pointer to the Style names are case sensitive. |
MarkUpStart
|
The markup added to the beginning of a paragraph or character style. A pointer to the |
MarkUpEnd
|
The markup added to the end of a paragraph or character style. A pointer to the |
dwFlags
|
Instructions on how to process the content associated with a paragraph or character style. The flag can be one of the types defined in The value associated with each flag is a hexadecimal number. You can set an option by either entering the converted decimal value, or by entering the flag’s text (for example, The value of |
This structure applies to word processing documents only.
By default, HTML Export maps the heading style "Heading 1" to <h1></h1>
, and so on, for heading levels 1 through 6. If you use style mappings, the default mapping is overridden. Therefore, you must supply markup for all heading levels.
When the user-defined markup in KVStyle
conflicts with other markup generated by
|