Lomse library. API documentation  0.30.0
RequestDynamic Class Reference

#include <lomse_events.h>

Inheritance diagram for RequestDynamic:
Request

Detailed Description

While parsing an LDP document, a (dynamic) tag has been found. Lomse sends this request to the user application, asking for the content that must be inserted in the Document to replace the (dynamic) tag.

The user application has to answer this request by invoking method RequestDynamic::set_object() passing as argument a pointer to the ImoObj that must be inserted in the Document.

See page-dynamic-content.

Public Member Functions

 RequestDynamic (Document *pDoc, ImoObj *pObj)
 
AObject get_object ()
 
ADocument get_document ()
 
void set_object (AObject &obj)
 
- Public Member Functions inherited from Request
virtual ~Request ()
 
int get_request_type ()
 
bool is_dynamic_content_request ()
 
bool is_get_font_filename ()
 

Constructor & Destructor Documentation

◆ RequestDynamic()

RequestDynamic::RequestDynamic ( Document *  pDoc,
ImoObj *  pObj 
)
inline

Constructor.

Member Function Documentation

◆ get_document()

ADocument RequestDynamic::get_document ( )

Returns the document to which this request refers to. */.

◆ get_object()

AObject RequestDynamic::get_object ( )

If the user application has not yet handled this request, this method returns the dynamic object that should be replaced. Otherwise, returns the replacement object set by the user application.

◆ set_object()

void RequestDynamic::set_object ( AObject obj)

for setting requested data