#include <render_result_impl.h>
Public Member Functions | |
PluginRenderResultImpl (PluginViewImpl *view, const PluginBitmapAttributes &, const unsigned long id, PluginRenderSettingsImpl *settings) | |
~PluginRenderResultImpl (void) | |
void | set_render_result_range (const Position &start, const Position &end) |
Data Fields | |
Signal< PluginRenderResultImpl * > | release_signal |
Definition at line 43 of file plaintext/plugin_impl/render_result_impl.h.
text::PluginRenderResultImpl::PluginRenderResultImpl | ( | PluginViewImpl * | view, | |
const PluginBitmapAttributes & | bmp, | |||
const unsigned long | id, | |||
PluginRenderSettingsImpl * | settings | |||
) |
Definition at line 36 of file plaintext/plugin_impl/render_result_impl.cpp.
References utils::ObjectTable< T >::add_interface(), IPluginRenderResult::get_anchor_from_coordinates, IPluginRenderResult::get_bitmap_attributes, IPluginRenderResult::get_bounding_rectangles_from_range, IPluginRenderResult::get_rendered_range, _IPluginUnknown::query_interface, and _IPluginUnknown::release.
00040 : view_impl(view) 00041 , atts(bmp) 00042 , ref_id(id) 00043 , settings(s) 00044 { 00045 // IPluginUnknown 00046 query_interface = query_interface_impl; 00047 release = release_impl; 00048 00049 // IPluginRenderResult 00050 get_bitmap_attributes = get_bitmap_attributes_impl; 00051 get_anchor_from_coordinates = get_anchor_from_coordinates_impl; 00052 get_bounding_rectangles_from_range = get_bounding_rectangles_from_range_impl; 00053 get_rendered_range = get_rendered_range_impl; 00054 00055 // IPluginRenderSettings, no method yet. 00056 00057 00058 // IPluginZoom 00059 // IPluginRotation 00060 00061 // Initialize all supported interfaces. In render result, 00062 // the render settings, zoom and rotation are read only. 00063 g_instances_table.add_interface<IPluginUnknown>(this); 00064 g_instances_table.add_interface<IPluginRenderResult>(this); 00065 g_instances_table.add_interface<IPluginRenderSettings>(this); 00066 }
text::PluginRenderResultImpl::~PluginRenderResultImpl | ( | void | ) |
Definition at line 68 of file plaintext/plugin_impl/render_result_impl.cpp.
References PluginBitmapAttributes::data, and utils::ObjectTable< T >::remove().
void text::PluginRenderResultImpl::set_render_result_range | ( | const Position & | start, | |
const Position & | end | |||
) | [inline] |
Definition at line 57 of file plaintext/plugin_impl/render_result_impl.h.
References text::Range::end, and text::Range::start.
Definition at line 62 of file plaintext/plugin_impl/render_result_impl.h.