Universal Document Shell Plugin Renderer interface. Through IPluginRender, caller can:
#include <plugin_render.h>
Data Fields | |
PluginStatus(* | render )(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, const int page_offset, IPluginUnknown *settings, const RenderArea *area, const unsigned int render_id) |
Render content. The plugin would check whether the content has been rendered when caller call this function. The plugin can abort other job if necessary. Once the content has been successfully rendered, the plugin would notify the caller through the listeners. | |
IPluginUnknown *(* | create_render_settings )(IPluginUnknown *thiz) |
Create rendering settings. | |
PluginStatus(* | set_memory_limit )(IPluginUnknown *thiz, const unsigned int bytes) |
Set memory limit for plugin renderer. | |
PluginStatus(* | get_original_size )(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, unsigned int *width, unsigned int *height) |
Get the original size in pixel of the page (zoom = 100%). | |
PluginStatus(* | get_page_content_area )(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, RenderArea *area) |
Get the content area of a page. | |
PluginStatus(* | get_original_rotation )(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, PluginRotationDegree *rotation) |
Get the original orientation of the page. |
Universal Document Shell Plugin Renderer interface. Through IPluginRender, caller can:
Definition at line 59 of file plugin_render.h.
Create rendering settings.
thiz | IPluginUnknown pointer of the current view object. |
Referenced by text::PluginViewImpl::PluginViewImpl(), pdf::PluginViewImpl::PluginViewImpl(), and images::PluginViewImpl::PluginViewImpl().
PluginStatus(* IPluginRender::get_original_rotation)(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, PluginRotationDegree *rotation) |
Get the original orientation of the page.
thiz | IPluginUnknown pointer of the current view object. | |
start_of_page_anchor | Start anchor of the page. | |
rotation | How the page was rotated before it was stored in the file, e.g. Clockwise_Degrees_90 means the page was rotated 90 degrees before it was stored in the file, so for properly displaying it the page must be rotated (360 - 90) degrees clockwise |
Referenced by pdf::PluginViewImpl::PluginViewImpl(), and images::PluginViewImpl::PluginViewImpl().
PluginStatus(* IPluginRender::get_original_size)(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, unsigned int *width, unsigned int *height) |
Get the original size in pixel of the page (zoom = 100%).
thiz | IPluginUnknown pointer of the current view object. | |
start_of_page_anchor | Anchor of the requested page. | |
width | The returned width. | |
height | The returned height. |
Referenced by text::PluginViewImpl::PluginViewImpl(), pdf::PluginViewImpl::PluginViewImpl(), and images::PluginViewImpl::PluginViewImpl().
PluginStatus(* IPluginRender::get_page_content_area)(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, RenderArea *area) |
Get the content area of a page.
thiz | IPluginUnknown pointer of the current view object. | |
start_of_page_anchor | Start anchor of the page. | |
area | The content area of a page |
Referenced by text::PluginViewImpl::PluginViewImpl(), pdf::PluginViewImpl::PluginViewImpl(), and images::PluginViewImpl::PluginViewImpl().
PluginStatus(* IPluginRender::render)(IPluginUnknown *thiz, const UDSString *start_of_page_anchor, const int page_offset, IPluginUnknown *settings, const RenderArea *area, const unsigned int render_id) |
Render content. The plugin would check whether the content has been rendered when caller call this function. The plugin can abort other job if necessary. Once the content has been successfully rendered, the plugin would notify the caller through the listeners.
thiz | IPluginUnknown pointer of the current view object. | |
anchor | The content location where rendering starts. | |
offset | Number of pages to navigate away from the specified anchor | |
before | rendering can start. | |
settings | The rendering settings associated with this render | |
behavior. | ||
area | For fixed-page oriented document, this variable | |
specifies | which part of page need to be rendered. | |
refId | A ID used to refer the rendering result, including | |
rendered | image, paragraph text and something else. It is | |
generated | by caller |
Referenced by text::PluginViewImpl::PluginViewImpl(), pdf::PluginViewImpl::PluginViewImpl(), and images::PluginViewImpl::PluginViewImpl().
PluginStatus(* IPluginRender::set_memory_limit)(IPluginUnknown *thiz, const unsigned int bytes) |
Set memory limit for plugin renderer.
thiz | IPluginUnknown pointer of the current view object. | |
bytes | The memory budget in bytes. |
Referenced by text::PluginViewImpl::PluginViewImpl(), pdf::PluginViewImpl::PluginViewImpl(), and images::PluginViewImpl::PluginViewImpl().