text::PluginRenderResultImpl Class Reference

#include <render_result_impl.h>

Inheritance diagram for text::PluginRenderResultImpl:
Inheritance graph
[legend]
Collaboration diagram for text::PluginRenderResultImpl:
Collaboration graph
[legend]

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

Detailed Description

Definition at line 43 of file plaintext/plugin_impl/render_result_impl.h.


Constructor & Destructor Documentation

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 }

Here is the call graph for this function:

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().

00069 {
00070     delete [] atts.data;
00071     g_instances_table.remove(this);
00072 }

Here is the call graph for this function:


Member Function Documentation

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.

00058     {
00059         page_range.start = start;
00060         page_range.end = end;
00061     }


Field Documentation

Definition at line 62 of file plaintext/plugin_impl/render_result_impl.h.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208