# 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 `KVSTR` structure. See KVSTR. Style names are case sensitive.
`MarkUpStart` | The markup added to the beginning of a paragraph or character style. A pointer to the `KVSTR` structure. See KVSTR.
`MarkUpEnd` | The markup added to the end of a paragraph or character style. A pointer to the `KVSTR` structure. See KVSTR.
`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 `kvtypes.h`. They are described in Flags for Defining Styles. 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, `KVSTYLE_PRE`). The value of `Flags` in the template files is passed to this member of `KVStyle`.

## 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.

© Copyright 2006-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm