ScroogeXHTML for Delphi  6.7
 All Classes Functions Variables Pages
TMemoryPictureAdapter Class Reference

In-memory picture adapter. More...

Inheritance diagram for TMemoryPictureAdapter:
IPictureAdapter

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.
 

Detailed Description

In-memory picture adapter.

Member Function Documentation

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.

Returns

References TEmbeddedPicture::getPictureHTML().

TStrings TMemoryPictureAdapter::getPictures ( )

Return the map of the pictures in the current document.

Returns