Describes how you want a dtSearch search report to be generated.
File: dtsearch.h
Data Member |
Description |
---|---|
Text inserted after each hit | |
For HTML output, an HREF for a BASE tag to be inserted in the header. | |
Text inserted before each hit | |
For HTML output, a DocType tag to go before the first tag in the output | |
Text inserted at the end of the file | |
Text inserted at the start of the file | |
Tags to insert after the HEAD tag in HTML output | |
Buffer to store output. | |
Size of the buffer pointed to by outputBuf. | |
Name of file to create, if the output is to be written to a file. | |
OutputFormat identifing the format of the output -- itHTML, itRTF, itUtf8 (Unicode), itUnformattedHTML, or itAnsi. | |
pData parameter passed to the pOutputFn callback. | |
Callback function to receive output. |
Data Member |
Description |
---|---|
Text inserted after each hit | |
For HTML output, an HREF for a BASE tag to be inserted in the header. | |
Text inserted before each hit | |
For HTML output, a DocType tag to go before the first tag in the output | |
Text inserted at the end of the file | |
Text inserted at the start of the file | |
Tags to insert after the HEAD tag in HTML output | |
Buffer to store output. | |
Size of the buffer pointed to by outputBuf. | |
Name of file to create, if the output is to be written to a file. | |
OutputFormat identifing the format of the output -- itHTML, itRTF, itUtf8 (Unicode), itUnformattedHTML, or itAnsi. | |
pData parameter passed to the pOutputFn callback. | |
Callback function to receive output. |
Method |
Description |
---|---|
Clear all data from a dtsOutputInfo | |
Copy another dtsOutputInfo (shallow copy) | |
Constructor |
Method |
Description |
---|---|
Clear all data from a dtsOutputInfo | |
Copy another dtsOutputInfo (shallow copy) | |
Constructor |
dtsOutputInfo provides ways to control the format (HTML, RTF, plain text) and appearance of the output (file format, headers, footers, etc.) as well as the manner in which the output is provided (in memory, to a file, or through a callback function).
The header, footer, beforeHit, and afterHit markings should be in the format of the output. For example, if the output format is HTML, then beforeHit and afterHit markings could be <b> and </b>.
beforeHit, afterHit, header, and footer control the appearance of converted text.
The header and footer strings are inserted before and after the body of the document.
The beforeHit and afterHit markers are inserted before and after each hit word. The beforeHit and afterHit markers can contain hypertext links.
To facilitate creation of hit navigation markers, the strings "%%ThisHit%%", "%%NextHit%%", and "%%PrevHit%%" will be replaced with ordinals representing the current hit, the next hit, and the previous hit in the document.
For example, the following code makes the beforeHit and nextHit marks act as HTML "Previous Hit" and "Next Hit" buttons.