KVStyle
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.
HTML Export supports both paragraph styles and character styles. It works on the assumption that each style has a unique name. Only one paragraph style can be active at one time; therefore, the opening of a new paragraph style automatically closes the previous paragraph style. By contrast, several character styles can be active at once. When HTML Export receives an 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;
Member Descriptions
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 |
Discussion
-
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 HTML Export, the user-defined markup takes precedence.