Class wrapper around dtsFileConvertJob2; used to convert files to HTML, RTF, or Ansi text.
File: dtsfc.h
Namespace: dtSearch
Data Member |
Description |
---|---|
Text inserted after each hit (Inherited from DOutputBase) | |
The location of the dtSearch alphabet file to use when highlighting hits. The alphabet file determines how dtSearch counts words, so it is important that the same alphabet file used to index or search a file also be used to highlight hits. For more information on how hit highlighting works, see Highlighting Hits in the online help. To ensure that the same alphabet used to index a file is used to highlight hits in that file, set the alphabetLocation to the folder where the index is located. The alphabet definition will be stored in this folder (in a file named... more | |
Text inserted before each hit (Inherited from DOutputBase) | |
For HTML output, a doctype declaration to go at the top of the output (Inherited from DOutputBase) | |
Text inserted at the end of the file (Inherited from DOutputBase) | |
Text inserted at the start of the file (Inherited from DOutputBase) | |
A null-delimited string set containing the data returned by a search when the dtsSearchWantHitsByWord and dtsSearchWantHitDetails search flags are set. This is only used when the flag dtsConvertMultiHighlight is set to use different highlighting strings for each search term. | |
For HTML output, an HREF for a BASE tag to be inserted in the header. (Inherited from DOutputBase) | |
For HTML output, HTML tags to insert in the header (Inherited from DOutputBase) | |
The index in which the document was found. SetInputItem will set this based on information in SearchResults. | |
Input file to be converted | |
Name of file to create, if the output is to be written to a file. (Inherited from DOutputBase) |
Method |
Description |
---|---|
Requests termination of the job in progress. For indexing jobs, the job will be halted after information in documents already indexed is saved in the index. (Inherited from DJobBase) | |
Requests immediate termination of the job in progress. Indexing jobs will be halted without saving anything in the index. (Inherited from DJobBase) | |
Requests immediate termination of the job in progress. Indexing jobs will be halted without saving anything in the index. The reason parameter is purely for diagnostic purposes. (Inherited from DJobBase) | |
Requests termination of the job in progress. For indexing jobs, the job will be halted after information in documents already indexed is saved in the index. The reason parameter is purely for diagnostic purposes. (Inherited from DJobBase) | |
Clear all fields to default values (Inherited from DOutputBase) | |
Execute the job | |
Called to execute a job. (Inherited from DJobBase) | |
Called to execute a job. (Inherited from DOutputBase) | |
Returns non-zero if the job failed (Inherited from DJobBase) | |
Format all errors that occurred during execution as a single string, with line breaks separating the errors (Inherited from DJobBase) | |
The file type of the input document, as detected by the dtSearch file parsers during the conversion | |
Returns the number of errors recorded during execution (Inherited from DJobBase) | |
Returns a dtsErrorInfo with any errors that occurred during execution (Inherited from DJobBase) | |
Returns the ConvertFlags for the job | |
Returns the document id for the document in the index it was retrieved from. (This must have been previously set either using SetInputItem or SetInputDocId). | |
If output was to a string, returns a pointer to the output string (Inherited from DOutputBase) | |
Get the length of the output string (Inherited from DOutputBase) | |
The file type of the input document when it was indexed. SetInputItem() will set this based on information in search results. | |
Returns true if the job has been cancelled (Inherited from DJobBase) | |
Returns true if output was directed to a string (Inherited from DOutputBase) | |
Returns true if the job has started and is not yet done. (Inherited from DJobBase) | |
Called while a job is executing every time the dtSearch Engine checks to see if the job has been cancelled. (Inherited from DJobBase) | |
Called while a job is executing every time the dtSearch Engine checks to see if the job has been cancelled. (Inherited from DOutputBase) | |
Called while a job is executing if an error is encountered, with the error code and message. (Inherited from DJobBase) | |
(Inherited from DOutputBase) | |
Callback function to receive output as it is generated (Inherited from DOutputBase) | |
Callback function to update the progress of the conversion or search report (Inherited from DOutputBase) | |
Not used (Inherited from DJobBase) | |
Set a ConvertFlags value for this job | |
Set ConvertFlags for this job | |
Set the word offsets of hits to highlight. SetInputItem will set this based on information in search results. | |
Use an IndexCache for faster extraction of cached documents from indexes | |
Set the build number used to index this file for purposes of maintaining backward compatibility (this will eliminate some compatibility issues but not all). | |
! Reserved for internal use | |
SetInputItem initializes a DFileConvertJob with information about a document that is available from search results. | |
SetInputItem initializes a DFileConvertJob with information about a document that is available from search results. | |
! obsolete -- use SetInputStream | |
DFileConvertJob can get input from a file, a memory buffer, or from a dtsInputStream. Use SetInputStream to attach a dtsInputStream to use as input. | |
Sets the input text to be converted, for conversion of a memory buffer instead of a disk file. The text must be a simple null-terminated string. | |
Sets the input text to be converted, for conversion of a memory buffer instead of a disk file. The text must be a simple null-terminated string. | |
Specifies the format of the converted text. Currently supported options are: it_HTML, it_RTF, it_Utf8 (Unicode text), and it_Ansi. (Inherited from DOutputBase) | |
Send output only to the virtual callback function, OnOutput (Inherited from DOutputBase) | |
Send output to a file (Inherited from DOutputBase) | |
Send output to a string buffer managed by the class, and set the maximum length of the output string. (Inherited from DOutputBase) | |
SetTimeout() causes a job to cancel automatically after the specified number of seconds (Inherited from DJobBase) | |
The file type of the input document when it was indexed. SetInputItem() will set this based on information in search results. | |
Do not pump waiting windows messages during callbacks (Inherited from DJobBase) | |
Conversion succeeded, but output truncated because of outputInfo.maxOutputLength | |
Optional reason for job cancellation, purely for diagnostic purposes Checks to make sure the reason is not already present, and also guards against excessive string size in case of repetitive cancellations. (Inherited from DJobBase) | |
Write an error message to the error handler object attached to this job (Inherited from DJobBase) |
Data Member |
Description |
---|---|
Text inserted after each hit (Inherited from DOutputBase) | |
The location of the dtSearch alphabet file to use when highlighting hits. The alphabet file determines how dtSearch counts words, so it is important that the same alphabet file used to index or search a file also be used to highlight hits. For more information on how hit highlighting works, see Highlighting Hits in the online help. To ensure that the same alphabet used to index a file is used to highlight hits in that file, set the alphabetLocation to the folder where the index is located. The alphabet definition will be stored in this folder (in a file named... more | |
Text inserted before each hit (Inherited from DOutputBase) | |
For HTML output, a doctype declaration to go at the top of the output (Inherited from DOutputBase) | |
Text inserted at the end of the file (Inherited from DOutputBase) | |
Text inserted at the start of the file (Inherited from DOutputBase) | |
A null-delimited string set containing the data returned by a search when the dtsSearchWantHitsByWord and dtsSearchWantHitDetails search flags are set. This is only used when the flag dtsConvertMultiHighlight is set to use different highlighting strings for each search term. | |
For HTML output, an HREF for a BASE tag to be inserted in the header. (Inherited from DOutputBase) | |
For HTML output, HTML tags to insert in the header (Inherited from DOutputBase) | |
The index in which the document was found. SetInputItem will set this based on information in SearchResults. | |
Input file to be converted | |
Name of file to create, if the output is to be written to a file. (Inherited from DOutputBase) |
Method |
Description |
---|---|
Requests termination of the job in progress. For indexing jobs, the job will be halted after information in documents already indexed is saved in the index. (Inherited from DJobBase) | |
Requests immediate termination of the job in progress. Indexing jobs will be halted without saving anything in the index. (Inherited from DJobBase) | |
Requests immediate termination of the job in progress. Indexing jobs will be halted without saving anything in the index. The reason parameter is purely for diagnostic purposes. (Inherited from DJobBase) | |
Requests termination of the job in progress. For indexing jobs, the job will be halted after information in documents already indexed is saved in the index. The reason parameter is purely for diagnostic purposes. (Inherited from DJobBase) | |
Clear all fields to default values (Inherited from DOutputBase) | |
Execute the job | |
Called to execute a job. (Inherited from DJobBase) | |
Called to execute a job. (Inherited from DOutputBase) | |
Returns non-zero if the job failed (Inherited from DJobBase) | |
Format all errors that occurred during execution as a single string, with line breaks separating the errors (Inherited from DJobBase) | |
The file type of the input document, as detected by the dtSearch file parsers during the conversion | |
Returns the number of errors recorded during execution (Inherited from DJobBase) | |
Returns a dtsErrorInfo with any errors that occurred during execution (Inherited from DJobBase) | |
Returns the ConvertFlags for the job | |
Returns the document id for the document in the index it was retrieved from. (This must have been previously set either using SetInputItem or SetInputDocId). | |
If output was to a string, returns a pointer to the output string (Inherited from DOutputBase) | |
Get the length of the output string (Inherited from DOutputBase) | |
The file type of the input document when it was indexed. SetInputItem() will set this based on information in search results. | |
Returns true if the job has been cancelled (Inherited from DJobBase) | |
Returns true if output was directed to a string (Inherited from DOutputBase) | |
Returns true if the job has started and is not yet done. (Inherited from DJobBase) | |
Called while a job is executing every time the dtSearch Engine checks to see if the job has been cancelled. (Inherited from DJobBase) | |
Called while a job is executing every time the dtSearch Engine checks to see if the job has been cancelled. (Inherited from DOutputBase) | |
Called while a job is executing if an error is encountered, with the error code and message. (Inherited from DJobBase) | |
(Inherited from DOutputBase) | |
Callback function to receive output as it is generated (Inherited from DOutputBase) | |
Callback function to update the progress of the conversion or search report (Inherited from DOutputBase) | |
Not used (Inherited from DJobBase) | |
Set a ConvertFlags value for this job | |
Set ConvertFlags for this job | |
Set the word offsets of hits to highlight. SetInputItem will set this based on information in search results. | |
Use an IndexCache for faster extraction of cached documents from indexes | |
Set the build number used to index this file for purposes of maintaining backward compatibility (this will eliminate some compatibility issues but not all). | |
! Reserved for internal use | |
SetInputItem initializes a DFileConvertJob with information about a document that is available from search results. | |
SetInputItem initializes a DFileConvertJob with information about a document that is available from search results. | |
! obsolete -- use SetInputStream | |
DFileConvertJob can get input from a file, a memory buffer, or from a dtsInputStream. Use SetInputStream to attach a dtsInputStream to use as input. | |
Sets the input text to be converted, for conversion of a memory buffer instead of a disk file. The text must be a simple null-terminated string. | |
Sets the input text to be converted, for conversion of a memory buffer instead of a disk file. The text must be a simple null-terminated string. | |
Specifies the format of the converted text. Currently supported options are: it_HTML, it_RTF, it_Utf8 (Unicode text), and it_Ansi. (Inherited from DOutputBase) | |
Send output only to the virtual callback function, OnOutput (Inherited from DOutputBase) | |
Send output to a file (Inherited from DOutputBase) | |
Send output to a string buffer managed by the class, and set the maximum length of the output string. (Inherited from DOutputBase) | |
SetTimeout() causes a job to cancel automatically after the specified number of seconds (Inherited from DJobBase) | |
The file type of the input document when it was indexed. SetInputItem() will set this based on information in search results. | |
Do not pump waiting windows messages during callbacks (Inherited from DJobBase) | |
Conversion succeeded, but output truncated because of outputInfo.maxOutputLength | |
Optional reason for job cancellation, purely for diagnostic purposes Checks to make sure the reason is not already present, and also guards against excessive string size in case of repetitive cancellations. (Inherited from DJobBase) | |
Write an error message to the error handler object attached to this job (Inherited from DJobBase) |
DFileConvertJob provides an easy way to display retrieved files in a web browser, web browser control, or other viewer with hits highlighted.
When working with search results, the recommended way to set up DFileConvertJob is to use SetInputItem, which automatically sets up the DFileConvertJob based on data in the search results object.
If a list of hits is provided, these hits will be highlighted using the BeforeHit and AfterHit markers in the output document. The Header and Footer markers will appear at the beginning and end of the output file. Output can go to a disk file (SetOutputToFile), a memory buffer (SetOutputToString) or a callback function (SetOutputToCallback). Input can come from a disk file (InputFile) or from a memory buffer (SetInputText).
See the DJobBase base class for execution control functions (Cancel(), GetErrors(), etc.) common to the C++ support classes.