ScroogeXHTML for Object Pascal 9.3
Loading...
Searching...
No Matches
IPictureAdapter Interface Reference

Interface for image extraction. More...

Inheritance diagram for IPictureAdapter:

Public Member Functions

 addPicture ()
 Processes an embedded picture in the RTF code.
 beforeConvert ()
 Initializes the PictureAdapter implementation.
 finalizePicture ()
 Finalizes the processing of an embedded picture.
TEmbeddedPicture getCurrentPicture ()
 Retrieves the current embedded picture.
string getPictureHTML ()
 Generates the HTML code for the embedded picture.
 SetBase (const string ABase)
 Sets the base URL for picture references.
 SetConverter (const IPictureConverter AConverter)
 Sets the picture converter.
<, > TObjectDictionary TEmbeddedPicture ()
 Retrieves a map of all pictures in the current document.

Detailed Description

Interface for image extraction.

This interface defines methods for handling embedded pictures in RTF code. It provides functionality for initialization, processing, and finalizing embedded pictures, as well as generating HTML output and managing picture data.

Member Function Documentation

◆ addPicture()

IPictureAdapter::addPicture ( )

Processes an embedded picture in the RTF code.

This method is called by the converter every time it encounters an embedded picture.

◆ beforeConvert()

IPictureAdapter::beforeConvert ( )

Initializes the PictureAdapter implementation.

This method is called by the converter before it starts processing the RTF code.

◆ finalizePicture()

IPictureAdapter::finalizePicture ( )

Finalizes the processing of an embedded picture.

This method is called by the converter when it reaches the end of an embedded picture. After this, the converter invokes the getPictureHTML method to generate the HTML code.

◆ getCurrentPicture()

TEmbeddedPicture IPictureAdapter::getCurrentPicture ( )

Retrieves the current embedded picture.

Returns
The current TEmbeddedPicture object.

◆ getPictureHTML()

string IPictureAdapter::getPictureHTML ( )

Generates the HTML code for the embedded picture.

Returns
A string containing the HTML representation of the picture.

◆ SetBase()

IPictureAdapter::SetBase ( const string ABase)

Sets the base URL for picture references.

Parameters
ABaseThe base URL as a string.

◆ SetConverter()

IPictureAdapter::SetConverter ( const IPictureConverter AConverter)

Sets the picture converter.

Parameters
AConverterThe IPictureConverter to be used for picture conversion.

◆ TEmbeddedPicture()

<, > TObjectDictionary IPictureAdapter::TEmbeddedPicture ( )

Retrieves a map of all pictures in the current document.

Returns
A TObjectDictionary containing picture data, where the key is a string and the value is a TEmbeddedPicture object.