Interface ITerminologyProviderViewerWinFormsUI
This interface should be implemented by terminology provider implementers that are able to provide more information about a term when required in the Trados Studio Editor View Implementation of this interface should be marked up with the TerminologyProviderViewerWinFormsUIAttribute attribute for registration it with the plug-in manager.
Namespace: Sdl.Terminology.TerminologyProvider.Core
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public interface ITerminologyProviderViewerWinFormsUI
Properties
Control
The control to be displayed in the Termbase Viewer window in the Editor View
Declaration
Control Control { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Control |
Initialized
Determines whether the viewer was initialized.
Declaration
bool Initialized { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SelectedTerm
Gets or sets the term that is currently active in the Termbase Viewer window
Declaration
IEntry SelectedTerm { get; set; }
Property Value
Type | Description |
---|---|
IEntry |
Methods
AddAndEditTerm(IEntry, String, String)
The user triggered an add on an already existing term.
Declaration
void AddAndEditTerm(IEntry term, string source, string target)
Parameters
Type | Name | Description |
---|---|---|
IEntry | term | The term with the same source that already exists. |
System.String | source | The new text for the source. |
System.String | target | The text for the target. |
AddTerm(String, String)
The user requested to add a new entry into the terminology provider.
Declaration
void AddTerm(string source, string target)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The text for the source term. |
System.String | target | The text for the target term. |
EditTerm(IEntry)
The user triggered an editing on the specified term.
Declaration
void EditTerm(IEntry term)
Parameters
Type | Name | Description |
---|---|---|
IEntry | term | The term to edit. |
Initialize(ITerminologyProvider, CultureInfo, CultureInfo)
Called when the terminology provider viewer is initialized.
Declaration
void Initialize(ITerminologyProvider terminologyProvider, CultureInfo source, CultureInfo target)
Parameters
Type | Name | Description |
---|---|---|
ITerminologyProvider | terminologyProvider | The terminology provider to be used in the current viewer instance. |
System.Globalization.CultureInfo | source | The source language for the current document language direction. |
System.Globalization.CultureInfo | target | The target language for the current document language direction. |
JumpToTerm(IEntry)
The user requested to see more information about an entry. Usually triggered by the "View term details" action in the Term Recognition window from the Editor View.
Declaration
void JumpToTerm(IEntry entry)
Parameters
Type | Name | Description |
---|---|---|
IEntry | entry | The entry which should be displayed in the Termbase Viewer window |
Release()
Called when the terminology provider viewer is not needed anymore.
Declaration
void Release()
SupportsTerminologyProviderUri(Uri)
Returns true if this component supports the specified terminology provider URI.
Declaration
bool SupportsTerminologyProviderUri(Uri terminologyProviderUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | terminologyProviderUri | The uri. |
Returns
Type | Description |
---|---|
System.Boolean | True if this component supports the specified terminology provider URI. |
Events
SelectedTermChanged
Triggered when the active term has changed, when triggered it will save the specified term on the active document.
Declaration
event EventHandler<EntryEventArgs> SelectedTermChanged
Event Type
Type | Description |
---|---|
System.EventHandler<EntryEventArgs> |
TermChanged
Triggered when something has in the terminology provider. Usually used when adding, editing or removing a term. This event will trigger a new term recognition for the active segment.
Declaration
event EventHandler TermChanged
Event Type
Type | Description |
---|---|
System.EventHandler |