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

Defines methods for image extraction. More...

Inheritance diagram for IPictureAdapter:
TMemoryPictureAdapterDataURI

Public Member Functions

 addPicture ()
 The converter will call this method every time when it encounters an embedded picture in the RTF code.
 
 beforeConvert ()
 The converter will call this method before it starts to convert the RTF code.
 
 finalizePicture ()
 The converter will call this method every time when it reaches the end of an embedded picture.
 
TEmbeddedPicture getCurrentPicture ()
 For internal use only.
 
string getPictureHTML ()
 This function returns the HTML code for the embedded picture.
 
 SetBase (const string ABase)
 The base URL.
 
 SetConverter (const IPictureConverter AConverter)
 Set the picture converter.
 
<, > TObjectDictionary TEmbeddedPicture ()
 Return the map of the pictures in the current document.
 

Detailed Description

Defines methods for image extraction.

Member Function Documentation

◆ addPicture()

IPictureAdapter::addPicture ( )

The converter will call this method every time when it encounters an embedded picture in the RTF code.

◆ beforeConvert()

IPictureAdapter::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.

◆ finalizePicture()

IPictureAdapter::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.

◆ getCurrentPicture()

TEmbeddedPicture IPictureAdapter::getCurrentPicture ( )

For internal use only.

◆ getPictureHTML()

string IPictureAdapter::getPictureHTML ( )

This function returns the HTML code for the embedded picture.

Returns

Implemented in TMemoryPictureAdapterDataURI.

◆ SetBase()

IPictureAdapter::SetBase ( const string ABase)

The base URL.

Implemented in TMemoryPictureAdapterDataURI.

◆ SetConverter()

IPictureAdapter::SetConverter ( const IPictureConverter AConverter)

Set the picture converter.

Implemented in TMemoryPictureAdapterDataURI.

◆ TEmbeddedPicture()

<, > TObjectDictionary IPictureAdapter::TEmbeddedPicture ( )

Return the map of the pictures in the current document.

Returns

Implemented in TMemoryPictureAdapterDataURI.