*User Interface [#t839a83d]
The MRI window has some controls and the menubar.

#contents

//#mapref(ui-mainwindow.png,map1){{
//r;1,0,447,28;[[#ui1]]
//r;1,28,441,55;[[#ui2]]
//r;8,56,86,145;[[#ui3]]
//r;94,55,306,79;[[#ui4]]
//r;94,85,306,110;[[#ui5]]
//r;92,115,306,138;[[#ui6]]
//r;314,118,359,139;[[#ui7]]
//r;367,116,413,138;[[#ui8]]
//r;313,56,375,79;[[#ui9]]
//r;377,58,413,77;[[#ui10]]
//r;313,84,413,111;[[#ui11]]
//r;9,157,431,265;[[#ui12]]
//r;8,273,441,293;[[#ui13]]
//}}
**Controls [#o1fce664]
&aname(ui1);''1: MRI Window''~
You can resize the MRI window. And you can use multiple MRI windows at a time.
MRI can change initial position and inilial size of MRI window, use Configuration Button for this purpose. See [[Configuration>../Configuration]] section in detail.

&aname(ui2);''2: Menubar''~
You can access to some functions from menu entries. Each entry is described in Menubar section.

#xhpbk(mytools.Mri:list_scope)

&aname(ui3);''3: Scope Listbox''~
&xhpa(mytools.Mri:list_scope,1,Select an item from scope list you want to take a kind of information about the current target.);

#xhpbk(mytools.Mri:edit_in)

&aname(ui4);''4: Implementation Name Edit''~
&xhpa(mytools.Mri:edit_in,1,This edit box shows ImplementationName of the target.); MRI can not get the object name of the target given in OOo Basic properties Dbg_xxx. These properties are availabled on OOo Basic.

Implementation Name of a target is sometimes the same as its object name but sometimes its not. Be careful about informations shown this control. If target is a struct, this edit shows object type name.

#xhpbk(mytools.Mri:edit_type)

&aname(ui5);''5: Object Type Name Edit''~
&xhpa(mytools.Mri:edit_type,0,Object type indicates the type of the target.); This value is taken from com.sun.star.reflection.CoreReflection service. 

#xhpbk(mytools.Mri:list_hist)

&aname(ui6);''6: History Listbox''~
&xhpa(mytools.Mri:list_hist,1,History Listbox has a list of targets.); Histories are updated when you call properties or methods returns an object. You can change the target using this listbox.

#xhpbk(mytools.Mri:btn_back)

&aname(ui7);''7: Go Back Button''~
&xhpa(mytools.Mri:btn_back,1,Show previous target form the history now selected.);

#xhpbk(mytools.Mri:btn_forward)

&aname(ui8);''8: Go Forward Button''~
&xhpa(mytools.Mri:btn_forward,1,Show previous target form the history now selected.);

#xhpbk(mytools.Mri:edit_search)

&aname(ui9);''9: Search Text Edit''~
&xhpa(mytools.Mri:edit_search,1,Words that you want to find inside the information edit.);

#xhpbk(mytools.Mri:btn_search)

&aname(ui10);''10: Search Button''~
Start searching from ending of the cursor position of the information edit.

#xhpbk(mytools.Mri:btn_ref)

&aname(ui11);''11: Open IDL Reference Button''~
&xhpa(mytools.Mri:btn_search,1,Open the IDL Reference page according to the selected scope.); If you want to use this button to open IDL Reference, see [[Configuration>../Configuration]] section and configure the settings.

If Properties or Methods scope is selected and selection begins "." in information edit, MRI ascribes a selected text connected with "com.sun.star". If Methods scope selected and not selected in information edit, IDL reference page of the interface of a method shown in carret line. A carret line text is used as IDL Reference page if Interfaces or Services scope is selected. You may not to select texts that you want to open the page of IDL Reference.

#xhpbk(mytools.Mri:edit_info)

&aname(ui12);''12: Information Edit''~
&xhpa(mytools.Mri:edit_info,1,All information about the target is shown here.);
Double click a line of the displayed text, you can get property value if Properties scope selected or invoke method and get its return value if Methods scope selected.

A font name and a character size used in this edit can be changed using Configuration button. See [[Configuration>../Configuration]] section.

&aname(ui13);''13: Information Label''~
&xhpa(mytools.Mri:label_status,1,MRI shows something informations here.);
**Menubar [#r21fc36b]

Descriptions of the menubar of the MRI window.
***File Menu [#ufada584]

#xhpbk(mytools.Mri:f_new)

:New|
Creates a new document and its model object is opened as a target for MRI.

#xhpbk(mytools.Mri:f_output)

:Output|Makes a document about information of current target.

#xhpbk(mytools.Mri:f_openidlref)

:OpenIdlRef.|Open an OpenIdlRef. window.

#xhpbk(mytools.Mri:f_close)

:Clse|Close the MRI window.
***Tools Menu [#t734c009]
States of these checkable options in Tools menu are stored in the settings。See [[Configuration>../Configuration]] section in detail.。

#xhpbk(mytools.Mri:t_sort)

:Sort A-z|
When this menu checked, information lines are sorted by A-Z, a-z order.

#xhpbk(mytools.Mri:t_abbr)

:Abbreviated|
If this menu checked, "com.sun.star." is replaced with "." (dot). For example, "com.sun.star.lang.XComponent" is shown like ".lang.XComponent". If Detailed menu entry is checked, Abbreviated menu is ignored.

#xhpbk(mytools.Mri:t_detd)

:Detailed|
If not checked, type names are indicated in their type class name. TypeClass names are listed in the com.sun.star.uno.TypeClass enums.

#xhpbk(mytools.Mri:t_showlabels)

:Show Labels|
If checked this menu entry, labels are displayed in the infromation edit.

#xhpbk(mytools.Mri:t_config)

:Configuration...|
If you want to set your IDL Reference directory and your browser path, choose this entry. Configuration dialog opens when this menu is selected. And you can set initial position and size of MRI window.
Configuration of MRI is described in [[Configuration>../Configuration]] section.
***Targets Menu [#m7a30a20]
The Desktop, ServiceManager, new service and new structs are accessed directly as a target from this menu entries. And all frames attached to Desktop are accessed too.

#xhpbk(mytools.Mri:o_desktop)

:Desktop|
If you select Desktop entry, new instance of com.sun.star.frame.Desktop service is created as a target.

#xhpbk(mytools.Mri:o_servicemanager)

:ServiceManager|
If ServiceManager entry is selected, com.sun.star.lang.XMultiComponentFactory interface is taken as a taraget from default context.

#xhpbk(mytools.Mri:o_service)

:Services|
If you select this entry, dialog box having the edit control is open and input a service name that you want to instantiate as a target. 

#xhpbk(mytools.Mri:o_struct)

:Structs|
You can create new struct as a target like the service.

#xhpbk(mytools.Mri:o_configuration)

:Configuration|
MRI makes com.sun.star.configuration.ConfigurationUpdateAccess service with your inputed node name.
:Frames|
General application frames are attached to Frames container that can be get through getFrames method of com.sun.star.frame.XFramesSupplier interface supported by com.sun.star.frame.Desktop service using append method of com.sun.star.frame.XFrames interface accessed . We can access to frames contained into its frames container through the Desktop. And we have no way to access to frames are not appended to its container. Child frames are accessed through its parent frames container. So, MRI can access frames attached to the Desktop.~
When you select a frame from menu entries, MRI tries to get it as a target. If the frame that you selected is not exist, MRI fails to get it. These entries are updeated automatically when you select the Targets menu.~
If you select a name from this list, MRI gets frame object having it from Desktop. After you select a frame object, the target is com.sun.star.frame.XFrame interface. If you want to see its model object, choose Controller property and next Model property of its controller (or use getController method and getModel method). See about how to get values of the target, Properties subsection.
***Mode Menu [#kc74efae]
This menu depends on only the property scope is selected. These Get and Set entries are radio type items.

#xhpbk(mytools.Mri:m_get)

:Get|
If Get mode selected, property values are got from the target and MRI shows them.

#xhpbk(mytools.Mri:m_set)

:Set|
Properties having numerical, string or boolean type value can be set their value.
***Help Menu [#g6760bd6]
Help about MRI.

#xhpbk(mytools.Mri:h_doc)

:Documents|Open this help file.

#xhpbk(mytools.Mri:h_what)

:What's This?|Show extended tool tip of the control.

#xhpbk(mytools.Mri:h_about)

:About MRI|
About MRI and its version information.

#xhpsection(relatedtopics){{
[[MRI Help Index>Extensions/HelpMaking/MakeXHP/MRI/en/index]]
}}

Reload   New Lower page making Edit Freeze Diff Upload Copy Rename   Front page List of pages Search Recent changes Backup   Help   RSS of recent changes