![]() |
ScroogeXHTML for Delphi
6.7
|
In-memory picture adapter. More...
Public Member Functions | |
beforeConvert () | |
The converter will call this method before it starts to convert the RTF code. More... | |
addPicture () | |
The converter will call this method every time when it encounters an embedded picture in the RTF code. | |
TEmbeddedPicture | getCurrentPicture () |
For internal use only. | |
finalizePicture () | |
The converter will call this method every time when it reaches the end of an embedded picture. More... | |
string | getPictureHTML () |
This function returns the HTML code for the embedded picture. More... | |
TStrings | getPictures () |
Return the map of the pictures in the current document. More... | |
SetConverter (const IPictureConverter AConverter) | |
Set the picture converter. | |
SetBase (const string ABase) | |
The base URL. | |
In-memory picture adapter.
TMemoryPictureAdapter::beforeConvert | ( | ) |
The converter will call this method before it starts to convert the RTF code.
It can be used for initialization of the PictureAdapter implementation.
TMemoryPictureAdapter::finalizePicture | ( | ) |
The converter will call this method every time when it reaches the end of an embedded picture.
After calling this method, the converter will invoke the getPictureHTML method to build and add the HTML code to the output document.
References TEmbeddedPicture::complete(), TEmbeddedPicture::PictureFormat, and TEmbeddedPicture::PictureUrl.
string TMemoryPictureAdapter::getPictureHTML | ( | ) |
This function returns the HTML code for the embedded picture.
References TEmbeddedPicture::getPictureHTML().
TStrings TMemoryPictureAdapter::getPictures | ( | ) |
Return the map of the pictures in the current document.