Universal Document Shell Plugin Document Object Navigator interafce. Through IPluginDocNavigator, caller is able to navigate among different objects inside a document. Particularly, callers can get object(range) by input anchor; get text from specified range; compare position of two anchors. More...
#include <plugin_doc_navigator.h>
Data Fields | |
PluginStatus(* | get_initial_anchor )(IPluginUnknown *thiz, UDSString *anchor) |
Get initial anchor of current document. The initial anchor is normally the first page of text, or the table of content. | |
PluginStatus(* | get_object_from_anchor )(IPluginUnknown *thiz, const UDSString *anchor, PluginRange *range) |
Get the object where the anchor resides. | |
PluginDocObjectType(* | get_type_of_object )(IPluginUnknown *thiz, const PluginRange *range) |
Get the object type for a specified object. | |
PluginStatus(* | get_words_from_range )(IPluginUnknown *thiz, const PluginRange *char_range, PluginRange *words_range) |
Extends the range from specified char to the word. | |
PluginStatus(* | get_text_from_range )(IPluginUnknown *thiz, const PluginRange *range, UDSString *result) |
Get the text within the specific range. | |
PluginBool(* | is_anchor_in_current_document )(IPluginUnknown *thiz, const UDSString *anchor) |
Check whether the specified anchor is in the current document. | |
PluginStatus(* | get_file_name_from_anchor )(IPluginUnknown *thiz, const UDSString *anchor, UDSString *file_name) |
Retrieve filename for given anchor. When the document is made up of several files, the plugin should return the file name according to the anchor. | |
PluginStatus(* | get_file_position_from_anchor )(IPluginUnknown *thiz, const UDSString *anchor, signed long long *position) |
Retrieve object position specified by anchor inside the file. | |
PluginStatus(* | get_uri_from_anchor )(IPluginUnknown *thiz, const UDSString *anchor, UDSString *url) |
Retrieve the url pointed by an anchor. | |
int(* | compare_anchor_location )(IPluginUnknown *thiz, const UDSString *anchor_a, const UDSString *anchor_b) |
Compare position of two anchor objects. |
Universal Document Shell Plugin Document Object Navigator interafce. Through IPluginDocNavigator, caller is able to navigate among different objects inside a document. Particularly, callers can get object(range) by input anchor; get text from specified range; compare position of two anchors.
Definition at line 57 of file plugin_doc_navigator.h.
int(* IPluginDocNavigator::compare_anchor_location)(IPluginUnknown *thiz, const UDSString *anchor_a, const UDSString *anchor_b) |
Compare position of two anchor objects.
thiz | IPluginUnknown pointer of document object. | |
anchor_a | The first anchor. | |
anchor_b | The second anchor. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginStatus(* IPluginDocNavigator::get_file_name_from_anchor)(IPluginUnknown *thiz, const UDSString *anchor, UDSString *file_name) |
Retrieve filename for given anchor. When the document is made up of several files, the plugin should return the file name according to the anchor.
thiz | IPluginUnknown pointer of document object. | |
anchor | Location of user specified content. | |
file_name. | The output variable stores the file name that contains the object specified by anchor. The file name must be in UTF-8 with extension name. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginStatus(* IPluginDocNavigator::get_file_position_from_anchor)(IPluginUnknown *thiz, const UDSString *anchor, signed long long *position) |
Retrieve object position specified by anchor inside the file.
thiz | IPluginUnknown pointer of document object. | |
anchor | Location of user specified content. | |
position. | The object position inside the file. The position must be able to be compared. Usually the position is the distance of the object from file beginning. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginStatus(* IPluginDocNavigator::get_initial_anchor)(IPluginUnknown *thiz, UDSString *anchor) |
Get initial anchor of current document. The initial anchor is normally the first page of text, or the table of content.
thiz | IPluginUnknown pinter of document object. | |
anchor | The returned anchor. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginStatus(* IPluginDocNavigator::get_object_from_anchor)(IPluginUnknown *thiz, const UDSString *anchor, PluginRange *range) |
Get the object where the anchor resides.
thiz | IPluginUnknown pointer of document object. | |
anchor | Location of user specified content. | |
range | The range for returned object. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginStatus(* IPluginDocNavigator::get_text_from_range)(IPluginUnknown *thiz, const PluginRange *range, UDSString *result) |
Get the text within the specific range.
thiz | IPluginUnknown pointer of document object. | |
range | User specified range. NOTE: The corresponding object within the range should be text. | |
result | The result text. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginDocObjectType(* IPluginDocNavigator::get_type_of_object)(IPluginUnknown *thiz, const PluginRange *range) |
Get the object type for a specified object.
thiz | IPluginUnknown pointer of document object. | |
range | The range of the specified object. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginStatus(* IPluginDocNavigator::get_uri_from_anchor)(IPluginUnknown *thiz, const UDSString *anchor, UDSString *url) |
Retrieve the url pointed by an anchor.
thiz | IPluginUnknown pointer of document object. | |
anchor | The anchor which contains or points to a URL. | |
url | The URL retrieved. |
PluginStatus(* IPluginDocNavigator::get_words_from_range)(IPluginUnknown *thiz, const PluginRange *char_range, PluginRange *words_range) |
Extends the range from specified char to the word.
thiz | IPluginUnknown pointer of document object. | |
char_range | The range of the specified character. | |
words_range | The range of extended word. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().
PluginBool(* IPluginDocNavigator::is_anchor_in_current_document)(IPluginUnknown *thiz, const UDSString *anchor) |
Check whether the specified anchor is in the current document.
thiz | IPluginUnknown pointer of document object. | |
anchor | Location of user specified content. |
Referenced by text::PluginDocImpl::PluginDocImpl(), pdf::PluginDocImpl::PluginDocImpl(), and images::PluginDocImpl::PluginDocImpl().