C# 클래스 SIL.FieldWorks.TE.TeMainWnd

Main window for Translation Editor
상속: SIL.FieldWorks.Common.Framework.FwMainWnd, IControlCreator, IPageSetupCallbacks, IMessageFilter, ITeImportCallbacks
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_bookFilter FilteredScrBooks
m_commonSelection IVwSelection
m_gotoRefCtrl DbScrPassageControl
m_lp ILangProject
m_scr IScripture
m_viewThatLostFocus IRootSite

Private Properties

프로퍼티 타입 설명
AddKtLeafNodes void
AddUserViews void
AdjustScriptureAnnotations void
BTStatusIconSelected bool
BookFilterChanged void
BooksChanged void
ChangeDefaultBTWritingSystem void
CreateBookFilterIfMissing void
DisplayScripturePropertiesDlg DialogResult
DisplayUsfmBrowser void
EnsureEnglishLdsExists void
GetBackTranslationWsForView int
GetBtWsRegistrySetting SIL.FieldWorks.Common.FwUtils.RegistryStringSetting
GetReferenceToCurrentBook ScrReference
InitializeComponent void
InitializePageSetupDlg void
InsertCrossRefFootnoteAllowed bool
InsertFootnoteAllowed bool
InsertGeneralFootnoteAllowed bool
InsertThePicture void
LookupTerm void
OnFileExportUsfmParatext bool
OnFinishedInit bool
OnInsertNote bool
OnUpdateBackTranslationNextMissingBtFootnoteMkr bool
OnUpdateFileExports bool
OnUpdateViewNotes bool
OpenTrainingDoc void
RefreshNotesWindow void
RegisterFocusableView void
RestoreSelection void
ScrollToReference void
SetupSideBarInfoBar void
ShowStylesHelp void
ShowUsfmResources void
UpdateBookFilter void
UpdateGoToFirstLast bool
UpdateKeyTermsBookFilter void
UpdateSpellingMenus bool
ViewGotFocus void
ViewLostFocus void

공개 메소드들

메소드 설명
CreateContextMenu ( string name ) : ContextMenuStrip

Create the desired context menu.

GotoVerse ( ScrReference targetRef ) : bool

Attempt to set the selection immediately following the last character of the closest verse number to the requested verse. If no section exists within one chapter of the requested verse, the selection will not be changed.

InitAndShowClient ( ) : void

Create the client windows and add corresponding stuff to the sidebar, View menu, etc.

InitializeInsertBookMenus ( ) : void

Populate the InsertBook menus with the book names from the database.

OnGoToFirstBook ( object args ) : bool

Navigate to the first Scripture book

OnGoToFirstChapter ( object args ) : bool

Navigate to the first chapter in the current book

OnGoToFirstSection ( object args ) : bool

Navigate to the first Scripture section in the current book

OnGoToLastBook ( object args ) : bool

Navigate to the last Scripture book

OnGoToLastChapter ( object args ) : bool

Navigate to the last chapter in the current book

OnGoToLastSection ( object args ) : bool

Navigate to the last Scripture section in the current book

OnGoToNextBook ( object args ) : bool

Navigate to the next Scripture book

OnGoToNextChapter ( object args ) : bool

Navigate to the next chapter

OnGoToNextFootnote ( object menuItem ) : bool

Navigate to the next footnote.

OnGoToNextSection ( object args ) : bool

Navigate to the next Scripture section

OnGoToPrevBook ( object args ) : bool

Navigate to the next footnote.

OnGoToPrevChapter ( object args ) : bool

Navigate to the previous chapter

OnGoToPrevFootnote ( object args ) : bool

Navigate to the previous Scripture book

OnGoToPrevSection ( object args ) : bool

Navigate to the previous Scripture section

OnGoToReference ( object args ) : bool

Displays the GotoReferenceDialog dialog box and lets the user input a reference to go to.

OnReceiveReferences ( object args ) : bool

Enables the receiving of sync messages.

OnSelectedPassageChanged ( object obj ) : bool

This is called through the message mediator from TeEditingHelper when the selection changes. Used to update the GoToReferenceControl on the information toolbar.

OnSendReferences ( object args ) : bool

Enables the sending of sync messages.

OnShowUsfmResources ( object args ) : bool

Turn on or off the control that shows USFM resources.

OnUpdateEditRemoveBook ( object args ) : bool

Handles updating the remove book menu.

OnUpdateFootnoteProperties ( object args ) : bool

Called to enable or disable the Footnote properties menu/toolbar item.

OnUpdateGoToReference ( object args ) : bool

Displays the GotoReferenceDialog dialog box and lets the user input a reference to go to.

OnUpdateImportStandardFormat ( object args ) : bool

Handles updating the Import Standard Format menu.

OnUpdateInsertBook ( object args ) : bool

Handle the popup of the Insert Book popup menu. When the submenu pops up, each of the books in the menu that already exist in the database needs to be disabled. You can not insert a book that already exists.

OnUpdateInsertChapterNumber ( object args ) : bool

Updates the insert chapter number toolbar button and menu option

OnUpdateInsertCrossRefFootnote ( object args ) : bool

Handles updating the insert cross reference menu.

OnUpdateInsertGeneralFootnote ( object args ) : bool

Handles updating the Insert Footnote menu. Disables the footnote menu command if (1) we are in a view that has no editing capabilities, (2) there are no books in the book filter, (3) if we are in key terms view, or (4) if the user has the insertion point in a footnote.

OnUpdateInsertIntroSection ( object args ) : bool

Updates the insert section toolbar button and menu option

OnUpdateInsertNoteParent ( object args ) : bool

Populate the Insert Note menu with subitems for each type of note the user is allowed to create.

OnUpdateInsertPictureDialog ( object args ) : bool

Handles updating the insert picture menu.

OnUpdateInsertSection ( object args ) : bool

Updates the insert section toolbar button and menu option

OnUpdateInsertVerseNumber ( object args ) : bool

Update the insert verse number toolbar button and menu option

OnUpdateInsertVerseNumbers ( object args ) : bool

Updates the insert verse numbers mode toolbar button and menu option

OnUpdatePictureProperties ( object args ) : bool

Handles updating the insert picture menu. Disables the picture properties menu command if a picture isn't selected.

OnUpdateReceiveReferences ( object args ) : bool

Called to enable or disable the Receive Scripture References menu/toolbar item.

OnUpdateScriptureProperties ( object args ) : bool

Called to enable or disable the Scripture properties menu/toolbar item.

OnUpdateSendReferences ( object args ) : bool

Called to enable or disable the Send Scripture References menu/toolbar item.

OnUpdateShowUsfmResources ( object args ) : bool

Called to enable or disable the Send Scripture References menu/toolbar item.

PreFilterMessage ( Message &message ) : bool

Prefilters the message for special handling of shortcuts.

PreSynchronize ( SyncMsg sync ) : void

Called just before a window synchronizes it's views with DB changes (e.g. when an undo or redo command is issued).

RespondToSyncScrollingMsgs ( bool enable ) : void

Enables or disables this editing helper's ability to respond to synchronizing to the notes window or external applications (e.g. Libronix, Paratext, etc.). Each view has its own TeEditingHelper and this is called whenever the active view changes. When a view becomes active, this method of its editing helper is called to enable responding and vice versa when the view becomes inactive... in case it isn't obvious.

SaveComprehensionCheckingSettings ( object sender, EventArgs e ) : void

Saves the Transcelerator settings.

ScrollToCitedText ( object sender, IScrScriptureNote annotation ) : void

Scrolls to cited text.

SetCurrentReference ( ScrReference sr ) : void

This method is called from FocusMessageHandling.SetUsfmFocus to set the current reference in the usfm browser if one is active.

SyncToScrLocation ( TeEditingHelper editingHelper, bool fSendInternalOnly ) : void

Syncs to the current Scripture reference location of the given editing helper.

Synchronize ( SyncMsg sync ) : bool

Called when a window synchronizes it's views with DB changes (e.g. when an undo or redo command is issued).

TeMainWnd ( ) : System

Default constructor for TeMainWnd.

TeMainWnd ( FwApp app, Form wndCopyFrom ) : System

Initializes a new instance of the TeMainWnd class

TeMainWnd ( FwApp app, Form wndCopyFrom, FwLinkArgs startupLink ) : System

Initializes a new instance of the TeMainWnd class

TurnOffAllFilters ( ) : void

Turns off all the active filters

UpdateGoToSubItems ( TMItemProperties itemProps, bool fSelectionRequired ) : bool

Updates the enabled status of sub items in the GoTo menus.

UpdateKeyTermsView ( ) : void

Updates the key terms view.

UpdateSpellingStatus ( bool status ) : void

Update the spelling status of all embedded simple views.

보호된 메소드들

메소드 설명
AddBackTransConsultantCheckView ( string viewName ) : void

Adds the Back Translation Review view

AddBackTransDraftView ( string viewName ) : void

Adds the Back Translation/Draft View

AddBackTransPrintLayoutView ( string viewName, TeViewType viewType ) : void

Adds the Back Translation/Print Layout View

AddDraftView ( string viewName ) : void

Adds the Scripture/Draft View

AddEditorialChecksView ( string viewName ) : void

Adds the Editorial Checks View

AddFilters ( ) : void

Add filters to the side bar

AddKeyTermsView ( string viewName ) : void

Adds the Checking/Key Terms View

AddPrintLayoutView ( string viewName, TeViewType viewType, string pubName, TeResourceHelper sideBarIndex, string sideBarItemName ) : void

Adds the Scripture/Print layout View

AddVerticalView ( string viewName ) : void

Adds the Scripture/Vertical View.

CreateBackTransConsultantCheckView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Creates the Back Translation Review view

CreateBackTransDraftView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Creates the Back Translation/Draft View

CreateBackTransPrintLayoutView ( string viewName, TeViewType viewType, string pubName, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Creates the Back Translation/Print Layout View

CreateDraftView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Creates the Scripture/Draft View

CreateEditorialChecksView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Creates the editorial checks view when the user switches to it.

CreateKeyTermsView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Creates the key terms view when the user switches to it.

CreatePageSetupDialog ( IPubPageLayout pgl, IPublication pub, IPubDivision div ) : IPageSetupDialog

Creates the page setup dialog.

CreatePrintLayoutView ( string viewName, TeViewType viewType, string pubName, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Adds the Scripture/Print layout View

CreatePublicationView ( IPublication pub, TeViewType viewType, int btWs ) : ScripturePublication

Creates a publication view of the desired type

CreateVerticalView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView

Creates the Scripture/Vertical View.

DisplayFootnoteDialog ( ) : DialogResult

Displays footnote properties dialog.

Created so that dialog could be skipped in testing

Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

GetAppSpecificMenuToolBarDefinition ( ) : string

Add TE specific toolbars to the ones added by the framework's main window.

GetDefaultItemForTab ( string tabName ) : string

Get the name of the default sidebar item for the given tab

Init ( ) : void

Do required initializations

InitializeContextMenus ( string generalFile, string specificFile ) : void

Store the information needed to create context menus.

InsertFootnoteInternal ( string styleName ) : bool

Gets the ball rolling to insert a footnote.

LoadAppSpecificCustomToolBarControls ( string name, string tooltip ) : Control

Applications containing derivations of this class implement this if they have their own custom control they want on a toolbar.

OnAddToDictionary ( object args ) : bool

Called to add a word to spelling dictionary.

OnApplyUnTransWord ( object arg ) : bool

OnBackTranslationNextMissingBtFootnoteMkr ( object args ) : bool

Handles the BackTranslationNextMissingBtFootnoteMkr command by attempting to navigate to a position in the back translation that closely corresponds to a place in the verncaular that has a footnote whose marker has not been inserted into the back translation.

OnBookFilter ( object args ) : bool

Handle a click on the book filter menu

OnBookFilterToggle ( object args ) : bool

Handle a click on the "book filter" button

OnBookProperties ( object args ) : bool

Display the book properties dialog

OnChangeMultipleOccurrences ( object args ) : bool

Change Spelling of Multiple Occurences.

OnClosing ( CancelEventArgs e ) : void

Do stuff when the window is closing.

OnCorrectMisspelledWords ( object args ) : bool

This method implements the CorrectMisspelledWords menu item. It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdCorrectMisspelledWords. It launches Flex (if necessary) and configues it to show the Analyses view filtered for words where spelling status is Incorrect and occurrences in corpus is not zero.

OnDemos ( object args ) : bool

Handle the Help Demos menu item.

OnEditRemoveBook ( object args ) : bool

Handler for "Remove Book" option of Edit menu.

OnEditUndo ( object args ) : bool

Undo handler. Main undo is done in FwMainWnd, but we need this method to be able to deal with staying in verse insert mode.

OnFileExportPs ( object args ) : bool

Handle the File/Export/Open Office menu command

OnFileExportRtf ( object args ) : bool

Handle the File/Export/Rtf menu command

OnFileExportUsfmToolbox ( object args ) : bool

Handle the File/Export/Usfm Toolbox menu command

OnFileExportXhtml ( object args ) : bool

Handle the File/Export/Xhtml menu command

OnFileExportXml ( object args ) : bool

Handle the File/Export/Xml menu command

OnFilePrint ( object args ) : bool

Prints the current view

OnFindInDictionary ( object args ) : bool

This method implements the FindInDictionary menu item (both menu bar and context menu). It is called using reflection by xCore, not directly.

OnFindRelatedWords ( object args ) : bool

This method implements the FindRelatedWords menu item (both menu bar and context menu). It is called using reflection by xCore, not directly.

OnFootnoteClick ( object arg ) : bool

Clicking on a footnote in a draft view does the same as the menu item View Footnotes, except that the provided StFootnote forces the footnote window to show (instead of toggling).

OnFootnoteProperties ( object args ) : bool

handle the footnote properties context menu

OnHeaderFooterSetup ( object arg ) : bool

Brings up the header footer setup dialog from the View menu

OnHelpApplication ( object args ) : bool

Shows the help file for the application

OnImportOXES ( object args ) : bool

This method is called when the user selects File, Import, Open XML for Editing Scripture.

OnImportStandardFormat ( object args ) : bool

This method is called when the user selects File, Import, Standard Format. Despite of the name it handles both SF and PT imports.

OnInsertBackTransCV ( object args ) : bool

Generate chapter and verse numbers for the translations of the paragraphs in the current section content.

OnInsertBook ( object args ) : bool

For the Insert-Book menu, handle the click on the book in the book list. Create the requested book and title.

OnInsertChapterNumber ( object args ) : bool

Insert a new chapter number

OnInsertCrossRefFootnote ( object args ) : bool

Inserts a cross-reference footnote.

Called when the user clicks Insert Cross Reference on the main menu.

OnInsertGeneralFootnote ( object args ) : bool

Inserts a general footnote.

Called when the user clicks InsertFootnote on the main menu, as well as from DraftView when the user clicks InsertFootnote on the context menu.

OnInsertIntroSection ( object args ) : bool

For the Insert Section menu, if IP at the end of a section, inserts a new section. Sets the IP in the new para of the new section.

OnInsertPictureDialog ( object args ) : bool

Displays the insert picture dialog.

OnInsertSection ( object args ) : bool

For the Insert Section menu, if IP at the end of a section, inserts a new section. Sets the IP in the new para of the new section.

OnInsertVerseNumber ( object args ) : bool

Insert a verse number at the current location in the text.

OnInsertVerseNumbers ( object args ) : bool

Toggle the InsertVerseNumber mode

OnInterlinearize ( object args ) : bool

This method implements the Interlinearize menu item (in the Back Translation section). It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdInterlinearize. It launches Flex (if necessary) and configues it to show the the Interlinear Text view with the current StText selected.

OnLoad ( EventArgs e ) : void

OnNoFilters ( object args ) : bool

Handle a click on the "no filter" menu

OnPassageChanged ( ScrReference newReference ) : void

Called when the scripture passage changed.

OnPictureProperties ( object args ) : bool

Handles the clicking on the "Picture Properties" context menu.

OnRemoveCharacterStyle ( object args ) : bool

Handles the Remove Character Style menu/toolbar command.

OnResetParagraphStyle ( object args ) : bool

Handles the Reset Paragraph Style menu/toolbar command.

OnReviewMisspelledWords ( object args ) : bool

This method implements the ReviewMisspelledWords menu item. It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdReviewMisspelledWords. It launches Flex (if necessary) and configues it to show the Bulk Edit Wordforms view filtered for words where spelling status is Undecided and occurrences in corpus is not zero.

OnSavedVersions ( object args ) : bool

Handle the File/Saved Versions command

OnScriptureProperties ( object args ) : bool

Display the scripture properties dialog from the File menu

OnScripturePropertiesForCVCheck ( object args ) : bool

Display the scripture properties dialog from the chapter verse check dialog.

OnShowSpellingErrors ( object args ) : bool

Turn on or off vernacular spelling.

OnSideBarConfigure ( object arg ) : bool

Handle the configure event for any menu associated with the sidebar.

OnSpellingSuggestionChosen ( object args ) : bool

This method handles the case when the user has chosen one of the suggested spellings for a misspelled word on which they right-clicked.

OnSwitchActiveView ( object args ) : bool

Hide the previously active view and activate the new one (corresponding to the button clicked in the sidebar (or the menu item chosen).

OnToolsOptions ( object args ) : bool

Respond to the Tools/Options menu option to bring up the options dialog.

OnTrainingCopyPasteData ( object args ) : bool

Handle the Copy-and-paste Data menu item.

OnTrainingExercises ( object args ) : bool

Handle the Training Exercises menu item.

OnTrainingInstructorGuide ( object args ) : bool

Handle the Instructor Guide menu item.

OnTrainingStudentManual ( object args ) : bool

Handle the Student Training Manual menu item.

OnUnsQuestions ( object args ) : bool

This method implements the Translate UNS Questions menu item. It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdUnsQuestions.

OnUpdateAddToDictionary ( object args ) : bool

Called to enable or disable the Add to Spelling Dictionary command in the context menu.

OnUpdateApplyUnTransWord ( object args ) : bool

Update the Apply Untranslated Word menu/toolbar item

OnUpdateBookFilter ( object args ) : bool

Handle updating the book filter menu

OnUpdateBookFilterToggle ( object args ) : bool

Handle updating the book filter toolbar button

OnUpdateBookProperties ( object args ) : bool

Determine if the book properties menu item should be enabled

OnUpdateChangeMultipleOccurrences ( object args ) : bool

Called to enable or disable the Change Multiple Occurrences command in the context menu.

OnUpdateCorrectMisspelledWords ( object args ) : bool

This menu item is available if Flex is.

OnUpdateEditSelectAll ( object args ) : bool

Edit/Select All is not a valid command for TE. This will keep it disabled.

OnUpdateFileExportPs ( object args ) : bool

Update the File/Export/Pathway menu command

OnUpdateFileExportRtf ( object args ) : bool

Update the File/Export/Rtf menu command

OnUpdateFileExportUsfmParatext ( object args ) : bool

Update the File/Export/Usfm Paratext menu command

OnUpdateFileExportUsfmToolbox ( object args ) : bool

Update the File/Export/Usfm Toolbox menu command

OnUpdateFileExportXhtml ( object args ) : bool

Update the File/Export/Xhtml menu command

OnUpdateFileExportXml ( object args ) : bool

Update the File/Export/Xml menu command

OnUpdateFindInDictionary ( object args ) : bool

Handle updating the "Find in dictionary" menu item. If there is no selection we want to disable this menu item (TE-4805).

OnUpdateFindRelatedWords ( object args ) : bool

Handle updating the "Find in related words" menu item. If there is no selection we want to disable this menu item (TE-4805).

OnUpdateGoTo ( object args ) : bool

Handles enabling or disabling the Goto Menu.

OnUpdateGoToFirstBook ( object args ) : bool

Called when updating the enabled status of Go To First: Book submenu item.

OnUpdateGoToFirstChapter ( object args ) : bool

Display current book name in "First" menu

OnUpdateGoToFirstSection ( object args ) : bool

Display current book name in "First" menu

OnUpdateGoToLastBook ( object args ) : bool

Called when updating the enabled status of Go To Last: Book submenu item..

OnUpdateGoToLastChapter ( object args ) : bool

Display current book name in "Last" menu

OnUpdateGoToLastSection ( object args ) : bool

Display current book name in "Last" menu

OnUpdateGoToNextBook ( object args ) : bool

Called when updating the enabled status of Go To Next: Book submenu item..

OnUpdateGoToNextChapter ( object args ) : bool

Called when updating the enabled status of Go To Next: Chapter submenu item..

OnUpdateGoToNextFootnote ( object args ) : bool

Called when updating the enabled status of Go To Next: Footnote submenu item..

OnUpdateGoToNextSection ( object args ) : bool

Called when updating the enabled status of Go To Next: Section submenu item..

OnUpdateGoToPrevBook ( object args ) : bool

Called when updating the enabled status of Go To Prev: Book submenu item..

OnUpdateGoToPrevChapter ( object args ) : bool

Called when updating the enabled status of Go To Prev: Chapter submenu item..

OnUpdateGoToPrevFootnote ( object args ) : bool

Called when updating the enabled status of Go To Prev: Footnote submenu item..

OnUpdateGoToPrevSection ( object args ) : bool

Called when updating the enabled status of Go To Prev: Section submenu item..

OnUpdateGoToRelativeItem ( object args ) : bool

Handles enabling or disabling the Goto First, Next, Prev, and Last menus.

OnUpdateGotoReferenceCtrl ( object args ) : bool

Update the scripture reference control status. If there are no books then disable it.

OnUpdateHeaderFooterSetup ( object arg ) : bool

Updates the Edit/Header Footer Setup menu item.

OnUpdateInsertBackTransCV ( object args ) : bool

Determine if the back translation chapter and verse template menu item should be enabled.

OnUpdateInterlinearize ( object args ) : bool

Determine if the back translation Use Interlinear Text Tool menu item should be enabled.

OnUpdateNoFilters ( object args ) : bool

Handle updating the "no filter" menu

OnUpdateRemoveCharacterStyle ( object args ) : bool

Called to update the Remove Character Style menu or toolbar item.

OnUpdateResetParagraphStyle ( object args ) : bool

OnUpdateReviewMisspelledWords ( object args ) : bool

This menu item is available if Flex is.

OnUpdateShowSpellingErrors ( object args ) : bool

Make the item checked if we have a dictionary.

OnUpdateSideBarConfigure ( object args ) : bool

This updates the given configure menu item. This configure menu item is on the sidebar tab's context menu or on one of the view menu item's sub-menus or one of the context menus that pops-up when the user clicks on an info. bar button.

OnUpdateStyleComboBox ( object args ) : bool

Enables/disables the styles combobox

OnUpdateUnsQuestions ( object args ) : bool

Handler to update the menu item for translating UNS questions.

OnUpdateViewFootnotes ( object arg ) : bool

Updates the menu's checkmark status given the state of the footnote view.

OnUpdateViewStylePane ( object arg ) : bool

Updates the menu's checkmark status given the state of the style pane view.

OnUpdateViewUpdatePageBreak ( object args ) : bool

Handle updating the "Update Page Break" menu/toolbar item.

OnUpdateWritingSystem ( object args ) : bool

Makes the Writing System Selector combobox enabled or disabled

OnViewFootnotes ( object arg ) : bool

Toggles the visibility of the footnote view.

OnViewNotes ( object arg ) : bool

Toggles the visibility of the notes view.

RemoveBook ( int iBook ) : void

Removes requested book. If not running in test, message box will be displayed to confirm deletion.

SaveSettings ( RegistryKey key ) : void

Save UI settings specific to this window.

SetPropsToFactorySettings ( SIL.FieldWorks.FwCoreDlgControls.StyleInfo styleInfo ) : void

Set the properties of a StyleInfo to the factory default settings

ShowApplyStyleDialog ( string paraStyleName, string charStyleName ) : void

Shows the Format Apply Style dialog

TeMainWnd ( FdoCache cache ) : System

Initializes a new instance of the TeMainWnd class.

WndProc ( Message &msg ) : void

Processes Windows messages.

ZoomEnabledForView ( SimpleRootSite view ) : bool

Make sure zooming isn't allowed for style bars.

비공개 메소드들

메소드 설명
AddKtLeafNodes ( List keyTerms, ICmPossibility keyTerm ) : void

Adds the kt leaf nodes.

AddUserViews ( ) : void

Create the individual views (panes) and wrappers for each user view. Add the views to the side bar tabs.

AdjustScriptureAnnotations ( ) : void

Check scripture annotations for titles and introductions to make sure they point to paragraphs in the current version of books. This will ensure that they are included at the proper location in the export.

BTStatusIconSelected ( ) : bool

Determine if a status icon is selected in the BT view

BookFilterChanged ( object sender, EventArgs e ) : void

Update the filter panel in the status bar.

BooksChanged ( ICmObject sender ) : void

Updates the "Filtered" indicator on the status bar in response to a book being added or removed

ChangeDefaultBTWritingSystem ( int newWs ) : void

Change the default BT writing system for this main window and update any back translation views that have already been instantiated.

CreateBookFilterIfMissing ( ) : void

Create the "book" filter if it doesn't already exist.

DisplayScripturePropertiesDlg ( bool fOnFootnoteTab, bool showFootnoteTab ) : DialogResult
DisplayUsfmBrowser ( bool fDisplay ) : void

Displays or hides the USFM resource browser.

EnsureEnglishLdsExists ( ) : void
GetBackTranslationWsForView ( string viewName ) : int

Gets the back translation writing system to use for the given named view.

GetBtWsRegistrySetting ( string btViewName ) : SIL.FieldWorks.Common.FwUtils.RegistryStringSetting
GetReferenceToCurrentBook ( ) : ScrReference

Get a reference to the beginning of the current book.

InitializeComponent ( ) : void
InitializePageSetupDlg ( SIL.FieldWorks.TE.TePageSetupDlg dlg ) : void

Initializes the Page Setup dialog with TE-specific settings.

InsertCrossRefFootnoteAllowed ( ) : bool

Checks if a cross-reference footnote can be inserted

InsertFootnoteAllowed ( int &tagSelectedScrElement ) : bool

Checks if a footnote can be inserted

InsertGeneralFootnoteAllowed ( ) : bool

Checks if a general footnote can be inserted

InsertThePicture ( ICmPicture initialPicture, PicturePropertiesDialog dlg ) : void

Inserts the picture at the current selection (or updates the picture we are editing)

LookupTerm ( IEnumerable terms, int startRef, int endRef ) : void

Attempts to look up and select one of the given terms, if possible, selecting one that has an occurrence in the given reference range.

OnFileExportUsfmParatext ( object args ) : bool
OnFinishedInit ( ) : bool
OnInsertNote ( object args ) : bool
OnUpdateBackTranslationNextMissingBtFootnoteMkr ( object args ) : bool
OnUpdateFileExports ( object args ) : bool

Common code for updating the file/export menu items

OnUpdateViewNotes ( object arg ) : bool
OpenTrainingDoc ( string folder, string document ) : void

Open a training document in the associated application.

RefreshNotesWindow ( ) : void
RegisterFocusableView ( UserControl view ) : void

Registers a view.

RestoreSelection ( RestoreSelInfo restoreSelInfo ) : void

Restores the selection after applying a book filter.

ScrollToReference ( object sender, ScrReference scrRef, ITsString tssSelectedText ) : void
SetupSideBarInfoBar ( ) : void

Setup the sidebar/info. bar adapter.

ShowStylesHelp ( StyleListItem item ) : void

Show help topic for currently selected style. (This method is also in NotesMainWnd. I tried to move it out but the reference chain would have made it ugly).

ShowUsfmResources ( ) : void

Shows the usfm resources.

UpdateBookFilter ( IScrBook rghvoBooks ) : void

Update the book filter with new set of filtered books. Preserve any existing selections for all views.

UpdateGoToFirstLast ( TMItemProperties itemProps, SelectionHelper selLimitType ) : bool

Display current book name in "First" and "Last" menus

UpdateKeyTermsBookFilter ( ) : void

Updates the key terms book filter.

UpdateSpellingMenus ( TMItemProperties itemProps ) : bool

Helper method to determine if the spelling menu items should be visible.

ViewGotFocus ( object sender, EventArgs e ) : void
ViewLostFocus ( object sender, EventArgs e ) : void

Saves the selection of the view that loses focus

메소드 상세

AddBackTransConsultantCheckView() 보호된 메소드

Adds the Back Translation Review view
protected AddBackTransConsultantCheckView ( string viewName ) : void
viewName string
리턴 void

AddBackTransDraftView() 보호된 메소드

Adds the Back Translation/Draft View
protected AddBackTransDraftView ( string viewName ) : void
viewName string
리턴 void

AddBackTransPrintLayoutView() 보호된 메소드

Adds the Back Translation/Print Layout View
protected AddBackTransPrintLayoutView ( string viewName, TeViewType viewType ) : void
viewName string
viewType TeViewType
리턴 void

AddDraftView() 보호된 메소드

Adds the Scripture/Draft View
protected AddDraftView ( string viewName ) : void
viewName string
리턴 void

AddEditorialChecksView() 보호된 메소드

Adds the Editorial Checks View
protected AddEditorialChecksView ( string viewName ) : void
viewName string
리턴 void

AddFilters() 보호된 메소드

Add filters to the side bar
protected AddFilters ( ) : void
리턴 void

AddKeyTermsView() 보호된 메소드

Adds the Checking/Key Terms View
protected AddKeyTermsView ( string viewName ) : void
viewName string
리턴 void

AddPrintLayoutView() 보호된 메소드

Adds the Scripture/Print layout View
protected AddPrintLayoutView ( string viewName, TeViewType viewType, string pubName, TeResourceHelper sideBarIndex, string sideBarItemName ) : void
viewName string Name of the resource string for the view.
viewType TeViewType Type of the view.
pubName string Name of the publication.
sideBarIndex TeResourceHelper Index of the icon for the view in the side bar.
sideBarItemName string Name of the side bar item.
리턴 void

AddVerticalView() 보호된 메소드

Adds the Scripture/Vertical View.
protected AddVerticalView ( string viewName ) : void
viewName string
리턴 void

CreateBackTransConsultantCheckView() 보호된 메소드

Creates the Back Translation Review view
protected CreateBackTransConsultantCheckView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string Name of the view.
viewType TeViewType Type of the view.
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties The tab item.
리턴 ISelectableView

CreateBackTransDraftView() 보호된 메소드

Creates the Back Translation/Draft View
protected CreateBackTransDraftView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string Name of the view.
viewType TeViewType Type of the view.
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties The tab item.
리턴 ISelectableView

CreateBackTransPrintLayoutView() 보호된 메소드

Creates the Back Translation/Print Layout View
protected CreateBackTransPrintLayoutView ( string viewName, TeViewType viewType, string pubName, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string Name of the view.
viewType TeViewType Type of the view.
pubName string Name of the publication.
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties The tab item.
리턴 ISelectableView

CreateContextMenu() 공개 메소드

Create the desired context menu.
public CreateContextMenu ( string name ) : ContextMenuStrip
name string
리턴 System.Windows.Forms.ContextMenuStrip

CreateDraftView() 보호된 메소드

Creates the Scripture/Draft View
protected CreateDraftView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string Name of the view.
viewType TeViewType Type of the view.
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties The tab item.
리턴 ISelectableView

CreateEditorialChecksView() 보호된 메소드

Creates the editorial checks view when the user switches to it.
protected CreateEditorialChecksView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string Name of the view.
viewType TeViewType Type of the view.
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties The tab item.
리턴 ISelectableView

CreateKeyTermsView() 보호된 메소드

Creates the key terms view when the user switches to it.
protected CreateKeyTermsView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string Name of the view.
viewType TeViewType Type of the view.
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties The tab item.
리턴 ISelectableView

CreatePageSetupDialog() 보호된 메소드

Creates the page setup dialog.
protected CreatePageSetupDialog ( IPubPageLayout pgl, IPublication pub, IPubDivision div ) : IPageSetupDialog
pgl IPubPageLayout The PubPageLayout object
pub IPublication The Publication object
div IPubDivision The PubDivision object
리턴 IPageSetupDialog

CreatePrintLayoutView() 보호된 메소드

Adds the Scripture/Print layout View
protected CreatePrintLayoutView ( string viewName, TeViewType viewType, string pubName, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string Name of the view.
viewType TeViewType Type of the view.
pubName string Name of the publication.
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties The tab item.
리턴 ISelectableView

CreatePublicationView() 보호된 메소드

Creates a publication view of the desired type
protected CreatePublicationView ( IPublication pub, TeViewType viewType, int btWs ) : ScripturePublication
pub IPublication The DB representation of the publication
viewType TeViewType The type of view to create.
btWs int BacktTranslation WS
리턴 ScripturePublication

CreateVerticalView() 보호된 메소드

Creates the Scripture/Vertical View.
protected CreateVerticalView ( string viewName, TeViewType viewType, SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties tabItem ) : ISelectableView
viewName string
viewType TeViewType
tabItem SIL.FieldWorks.Common.UIAdapters.SBTabItemProperties
리턴 ISelectableView

DisplayFootnoteDialog() 보호된 메소드

Displays footnote properties dialog.
Created so that dialog could be skipped in testing
protected DisplayFootnoteDialog ( ) : DialogResult
리턴 DialogResult

Dispose() 보호된 메소드

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetAppSpecificMenuToolBarDefinition() 보호된 메소드

Add TE specific toolbars to the ones added by the framework's main window.
protected GetAppSpecificMenuToolBarDefinition ( ) : string
리턴 string

GetDefaultItemForTab() 보호된 메소드

Get the name of the default sidebar item for the given tab
protected GetDefaultItemForTab ( string tabName ) : string
tabName string Name of the sidebar tab
리턴 string

GotoVerse() 공개 메소드

Attempt to set the selection immediately following the last character of the closest verse number to the requested verse. If no section exists within one chapter of the requested verse, the selection will not be changed.
public GotoVerse ( ScrReference targetRef ) : bool
targetRef ScrReference Reference to seek
리턴 bool

Init() 보호된 메소드

Do required initializations
protected Init ( ) : void
리턴 void

InitAndShowClient() 공개 메소드

Create the client windows and add corresponding stuff to the sidebar, View menu, etc.
Invalid user view type in database
public InitAndShowClient ( ) : void
리턴 void

InitializeContextMenus() 보호된 메소드

Store the information needed to create context menus.
protected InitializeContextMenus ( string generalFile, string specificFile ) : void
generalFile string
specificFile string
리턴 void

InitializeInsertBookMenus() 공개 메소드

Populate the InsertBook menus with the book names from the database.
public InitializeInsertBookMenus ( ) : void
리턴 void

InsertFootnoteInternal() 보호된 메소드

Gets the ball rolling to insert a footnote.
protected InsertFootnoteInternal ( string styleName ) : bool
styleName string style name for the footnote paragraph
리턴 bool

LoadAppSpecificCustomToolBarControls() 보호된 메소드

Applications containing derivations of this class implement this if they have their own custom control they want on a toolbar.
protected LoadAppSpecificCustomToolBarControls ( string name, string tooltip ) : Control
name string Name of the toolbar container item for which a control is /// requested.
tooltip string The tooltip to assign to the custom control.
리턴 Control

OnAddToDictionary() 보호된 메소드

Called to add a word to spelling dictionary.
protected OnAddToDictionary ( object args ) : bool
args object
리턴 bool

OnApplyUnTransWord() 보호된 메소드

protected OnApplyUnTransWord ( object arg ) : bool
arg object
리턴 bool

OnBackTranslationNextMissingBtFootnoteMkr() 보호된 메소드

Handles the BackTranslationNextMissingBtFootnoteMkr command by attempting to navigate to a position in the back translation that closely corresponds to a place in the verncaular that has a footnote whose marker has not been inserted into the back translation.
protected OnBackTranslationNextMissingBtFootnoteMkr ( object args ) : bool
args object
리턴 bool

OnBookFilter() 보호된 메소드

Handle a click on the book filter menu
protected OnBookFilter ( object args ) : bool
args object
리턴 bool

OnBookFilterToggle() 보호된 메소드

Handle a click on the "book filter" button
protected OnBookFilterToggle ( object args ) : bool
args object
리턴 bool

OnBookProperties() 보호된 메소드

Display the book properties dialog
protected OnBookProperties ( object args ) : bool
args object
리턴 bool

OnChangeMultipleOccurrences() 보호된 메소드

Change Spelling of Multiple Occurences.
protected OnChangeMultipleOccurrences ( object args ) : bool
args object
리턴 bool

OnClosing() 보호된 메소드

Do stuff when the window is closing.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
리턴 void

OnCorrectMisspelledWords() 보호된 메소드

This method implements the CorrectMisspelledWords menu item. It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdCorrectMisspelledWords. It launches Flex (if necessary) and configues it to show the Analyses view filtered for words where spelling status is Incorrect and occurrences in corpus is not zero.
protected OnCorrectMisspelledWords ( object args ) : bool
args object
리턴 bool

OnDemos() 보호된 메소드

Handle the Help Demos menu item.
protected OnDemos ( object args ) : bool
args object The args.
리턴 bool

OnEditRemoveBook() 보호된 메소드

Handler for "Remove Book" option of Edit menu.
protected OnEditRemoveBook ( object args ) : bool
args object
리턴 bool

OnEditUndo() 보호된 메소드

Undo handler. Main undo is done in FwMainWnd, but we need this method to be able to deal with staying in verse insert mode.
protected OnEditUndo ( object args ) : bool
args object
리턴 bool

OnFileExportPs() 보호된 메소드

Handle the File/Export/Open Office menu command
protected OnFileExportPs ( object args ) : bool
args object
리턴 bool

OnFileExportRtf() 보호된 메소드

Handle the File/Export/Rtf menu command
protected OnFileExportRtf ( object args ) : bool
args object
리턴 bool

OnFileExportUsfmToolbox() 보호된 메소드

Handle the File/Export/Usfm Toolbox menu command
protected OnFileExportUsfmToolbox ( object args ) : bool
args object
리턴 bool

OnFileExportXhtml() 보호된 메소드

Handle the File/Export/Xhtml menu command
protected OnFileExportXhtml ( object args ) : bool
args object
리턴 bool

OnFileExportXml() 보호된 메소드

Handle the File/Export/Xml menu command
protected OnFileExportXml ( object args ) : bool
args object
리턴 bool

OnFilePrint() 보호된 메소드

Prints the current view
protected OnFilePrint ( object args ) : bool
args object
리턴 bool

OnFindInDictionary() 보호된 메소드

This method implements the FindInDictionary menu item (both menu bar and context menu). It is called using reflection by xCore, not directly.
protected OnFindInDictionary ( object args ) : bool
args object
리턴 bool

OnFindRelatedWords() 보호된 메소드

This method implements the FindRelatedWords menu item (both menu bar and context menu). It is called using reflection by xCore, not directly.
protected OnFindRelatedWords ( object args ) : bool
args object
리턴 bool

OnFootnoteClick() 보호된 메소드

Clicking on a footnote in a draft view does the same as the menu item View Footnotes, except that the provided StFootnote forces the footnote window to show (instead of toggling).
protected OnFootnoteClick ( object arg ) : bool
arg object The footnote that was clicked on.
리턴 bool

OnFootnoteProperties() 보호된 메소드

handle the footnote properties context menu
protected OnFootnoteProperties ( object args ) : bool
args object
리턴 bool

OnGoToFirstBook() 공개 메소드

Navigate to the first Scripture book
public OnGoToFirstBook ( object args ) : bool
args object
리턴 bool

OnGoToFirstChapter() 공개 메소드

Navigate to the first chapter in the current book
public OnGoToFirstChapter ( object args ) : bool
args object
리턴 bool

OnGoToFirstSection() 공개 메소드

Navigate to the first Scripture section in the current book
public OnGoToFirstSection ( object args ) : bool
args object
리턴 bool

OnGoToLastBook() 공개 메소드

Navigate to the last Scripture book
public OnGoToLastBook ( object args ) : bool
args object
리턴 bool

OnGoToLastChapter() 공개 메소드

Navigate to the last chapter in the current book
public OnGoToLastChapter ( object args ) : bool
args object
리턴 bool

OnGoToLastSection() 공개 메소드

Navigate to the last Scripture section in the current book
public OnGoToLastSection ( object args ) : bool
args object
리턴 bool

OnGoToNextBook() 공개 메소드

Navigate to the next Scripture book
public OnGoToNextBook ( object args ) : bool
args object
리턴 bool

OnGoToNextChapter() 공개 메소드

Navigate to the next chapter
public OnGoToNextChapter ( object args ) : bool
args object
리턴 bool

OnGoToNextFootnote() 공개 메소드

Navigate to the next footnote.
public OnGoToNextFootnote ( object menuItem ) : bool
menuItem object
리턴 bool

OnGoToNextSection() 공개 메소드

Navigate to the next Scripture section
public OnGoToNextSection ( object args ) : bool
args object
리턴 bool

OnGoToPrevBook() 공개 메소드

Navigate to the next footnote.
public OnGoToPrevBook ( object args ) : bool
args object
리턴 bool

OnGoToPrevChapter() 공개 메소드

Navigate to the previous chapter
public OnGoToPrevChapter ( object args ) : bool
args object
리턴 bool

OnGoToPrevFootnote() 공개 메소드

Navigate to the previous Scripture book
public OnGoToPrevFootnote ( object args ) : bool
args object
리턴 bool

OnGoToPrevSection() 공개 메소드

Navigate to the previous Scripture section
public OnGoToPrevSection ( object args ) : bool
args object
리턴 bool

OnGoToReference() 공개 메소드

Displays the GotoReferenceDialog dialog box and lets the user input a reference to go to.
public OnGoToReference ( object args ) : bool
args object
리턴 bool

OnHeaderFooterSetup() 보호된 메소드

Brings up the header footer setup dialog from the View menu
protected OnHeaderFooterSetup ( object arg ) : bool
arg object
리턴 bool

OnHelpApplication() 보호된 메소드

Shows the help file for the application
protected OnHelpApplication ( object args ) : bool
args object
리턴 bool

OnImportOXES() 보호된 메소드

This method is called when the user selects File, Import, Open XML for Editing Scripture.
protected OnImportOXES ( object args ) : bool
args object The args.
리턴 bool

OnImportStandardFormat() 보호된 메소드

This method is called when the user selects File, Import, Standard Format. Despite of the name it handles both SF and PT imports.
protected OnImportStandardFormat ( object args ) : bool
args object
리턴 bool

OnInsertBackTransCV() 보호된 메소드

Generate chapter and verse numbers for the translations of the paragraphs in the current section content.
protected OnInsertBackTransCV ( object args ) : bool
args object
리턴 bool

OnInsertBook() 보호된 메소드

For the Insert-Book menu, handle the click on the book in the book list. Create the requested book and title.
protected OnInsertBook ( object args ) : bool
args object
리턴 bool

OnInsertChapterNumber() 보호된 메소드

Insert a new chapter number
protected OnInsertChapterNumber ( object args ) : bool
args object
리턴 bool

OnInsertCrossRefFootnote() 보호된 메소드

Inserts a cross-reference footnote.
Called when the user clicks Insert Cross Reference on the main menu.
protected OnInsertCrossRefFootnote ( object args ) : bool
args object
리턴 bool

OnInsertGeneralFootnote() 보호된 메소드

Inserts a general footnote.
Called when the user clicks InsertFootnote on the main menu, as well as from DraftView when the user clicks InsertFootnote on the context menu.
protected OnInsertGeneralFootnote ( object args ) : bool
args object
리턴 bool

OnInsertIntroSection() 보호된 메소드

For the Insert Section menu, if IP at the end of a section, inserts a new section. Sets the IP in the new para of the new section.
protected OnInsertIntroSection ( object args ) : bool
args object
리턴 bool

OnInsertPictureDialog() 보호된 메소드

Displays the insert picture dialog.
protected OnInsertPictureDialog ( object args ) : bool
args object
리턴 bool

OnInsertSection() 보호된 메소드

For the Insert Section menu, if IP at the end of a section, inserts a new section. Sets the IP in the new para of the new section.
protected OnInsertSection ( object args ) : bool
args object
리턴 bool

OnInsertVerseNumber() 보호된 메소드

Insert a verse number at the current location in the text.
protected OnInsertVerseNumber ( object args ) : bool
args object
리턴 bool

OnInsertVerseNumbers() 보호된 메소드

Toggle the InsertVerseNumber mode
protected OnInsertVerseNumbers ( object args ) : bool
args object
리턴 bool

OnInterlinearize() 보호된 메소드

This method implements the Interlinearize menu item (in the Back Translation section). It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdInterlinearize. It launches Flex (if necessary) and configues it to show the the Interlinear Text view with the current StText selected.
protected OnInterlinearize ( object args ) : bool
args object The args.
리턴 bool

OnLoad() 보호된 메소드

protected OnLoad ( EventArgs e ) : void
e EventArgs
리턴 void

OnNoFilters() 보호된 메소드

Handle a click on the "no filter" menu
protected OnNoFilters ( object args ) : bool
args object
리턴 bool

OnPassageChanged() 보호된 메소드

Called when the scripture passage changed.
protected OnPassageChanged ( ScrReference newReference ) : void
newReference ScrReference The new reference.
리턴 void

OnPictureProperties() 보호된 메소드

Handles the clicking on the "Picture Properties" context menu.
protected OnPictureProperties ( object args ) : bool
args object
리턴 bool

OnReceiveReferences() 공개 메소드

Enables the receiving of sync messages.
public OnReceiveReferences ( object args ) : bool
args object
리턴 bool

OnRemoveCharacterStyle() 보호된 메소드

Handles the Remove Character Style menu/toolbar command.
protected OnRemoveCharacterStyle ( object args ) : bool
args object The arguments
리턴 bool

OnResetParagraphStyle() 보호된 메소드

Handles the Reset Paragraph Style menu/toolbar command.
protected OnResetParagraphStyle ( object args ) : bool
args object The arguments
리턴 bool

OnReviewMisspelledWords() 보호된 메소드

This method implements the ReviewMisspelledWords menu item. It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdReviewMisspelledWords. It launches Flex (if necessary) and configues it to show the Bulk Edit Wordforms view filtered for words where spelling status is Undecided and occurrences in corpus is not zero.
protected OnReviewMisspelledWords ( object args ) : bool
args object
리턴 bool

OnSavedVersions() 보호된 메소드

Handle the File/Saved Versions command
protected OnSavedVersions ( object args ) : bool
args object
리턴 bool

OnScriptureProperties() 보호된 메소드

Display the scripture properties dialog from the File menu
protected OnScriptureProperties ( object args ) : bool
args object
리턴 bool

OnScripturePropertiesForCVCheck() 보호된 메소드

Display the scripture properties dialog from the chapter verse check dialog.
protected OnScripturePropertiesForCVCheck ( object args ) : bool
args object
리턴 bool

OnSelectedPassageChanged() 공개 메소드

This is called through the message mediator from TeEditingHelper when the selection changes. Used to update the GoToReferenceControl on the information toolbar.
public OnSelectedPassageChanged ( object obj ) : bool
obj object
리턴 bool

OnSendReferences() 공개 메소드

Enables the sending of sync messages.
public OnSendReferences ( object args ) : bool
args object
리턴 bool

OnShowSpellingErrors() 보호된 메소드

Turn on or off vernacular spelling.
protected OnShowSpellingErrors ( object args ) : bool
args object
리턴 bool

OnShowUsfmResources() 공개 메소드

Turn on or off the control that shows USFM resources.
public OnShowUsfmResources ( object args ) : bool
args object
리턴 bool

OnSideBarConfigure() 보호된 메소드

Handle the configure event for any menu associated with the sidebar.
protected OnSideBarConfigure ( object arg ) : bool
arg object
리턴 bool

OnSpellingSuggestionChosen() 보호된 메소드

This method handles the case when the user has chosen one of the suggested spellings for a misspelled word on which they right-clicked.
protected OnSpellingSuggestionChosen ( object args ) : bool
args object
리턴 bool

OnSwitchActiveView() 보호된 메소드

Hide the previously active view and activate the new one (corresponding to the button clicked in the sidebar (or the menu item chosen).
protected OnSwitchActiveView ( object args ) : bool
args object
리턴 bool

OnToolsOptions() 보호된 메소드

Respond to the Tools/Options menu option to bring up the options dialog.
protected OnToolsOptions ( object args ) : bool
args object
리턴 bool

OnTrainingCopyPasteData() 보호된 메소드

Handle the Copy-and-paste Data menu item.
protected OnTrainingCopyPasteData ( object args ) : bool
args object The args.
리턴 bool

OnTrainingExercises() 보호된 메소드

Handle the Training Exercises menu item.
protected OnTrainingExercises ( object args ) : bool
args object
리턴 bool

OnTrainingInstructorGuide() 보호된 메소드

Handle the Instructor Guide menu item.
protected OnTrainingInstructorGuide ( object args ) : bool
args object
리턴 bool

OnTrainingStudentManual() 보호된 메소드

Handle the Student Training Manual menu item.
protected OnTrainingStudentManual ( object args ) : bool
args object
리턴 bool

OnUnsQuestions() 보호된 메소드

This method implements the Translate UNS Questions menu item. It is called using reflection by xCore, not directly. See TeTMDefinition.xml, look for CmdUnsQuestions.
protected OnUnsQuestions ( object args ) : bool
args object
리턴 bool

OnUpdateAddToDictionary() 보호된 메소드

Called to enable or disable the Add to Spelling Dictionary command in the context menu.
protected OnUpdateAddToDictionary ( object args ) : bool
args object
리턴 bool

OnUpdateApplyUnTransWord() 보호된 메소드

Update the Apply Untranslated Word menu/toolbar item
protected OnUpdateApplyUnTransWord ( object args ) : bool
args object
리턴 bool

OnUpdateBookFilter() 보호된 메소드

Handle updating the book filter menu
protected OnUpdateBookFilter ( object args ) : bool
args object
리턴 bool

OnUpdateBookFilterToggle() 보호된 메소드

Handle updating the book filter toolbar button
protected OnUpdateBookFilterToggle ( object args ) : bool
args object
리턴 bool

OnUpdateBookProperties() 보호된 메소드

Determine if the book properties menu item should be enabled
protected OnUpdateBookProperties ( object args ) : bool
args object
리턴 bool

OnUpdateChangeMultipleOccurrences() 보호된 메소드

Called to enable or disable the Change Multiple Occurrences command in the context menu.
protected OnUpdateChangeMultipleOccurrences ( object args ) : bool
args object
리턴 bool

OnUpdateCorrectMisspelledWords() 보호된 메소드

This menu item is available if Flex is.
protected OnUpdateCorrectMisspelledWords ( object args ) : bool
args object
리턴 bool

OnUpdateEditRemoveBook() 공개 메소드

Handles updating the remove book menu.
public OnUpdateEditRemoveBook ( object args ) : bool
args object
리턴 bool

OnUpdateEditSelectAll() 보호된 메소드

Edit/Select All is not a valid command for TE. This will keep it disabled.
protected OnUpdateEditSelectAll ( object args ) : bool
args object
리턴 bool

OnUpdateFileExportPs() 보호된 메소드

Update the File/Export/Pathway menu command
protected OnUpdateFileExportPs ( object args ) : bool
args object
리턴 bool

OnUpdateFileExportRtf() 보호된 메소드

Update the File/Export/Rtf menu command
protected OnUpdateFileExportRtf ( object args ) : bool
args object
리턴 bool

OnUpdateFileExportUsfmParatext() 보호된 메소드

Update the File/Export/Usfm Paratext menu command
protected OnUpdateFileExportUsfmParatext ( object args ) : bool
args object
리턴 bool

OnUpdateFileExportUsfmToolbox() 보호된 메소드

Update the File/Export/Usfm Toolbox menu command
protected OnUpdateFileExportUsfmToolbox ( object args ) : bool
args object
리턴 bool

OnUpdateFileExportXhtml() 보호된 메소드

Update the File/Export/Xhtml menu command
protected OnUpdateFileExportXhtml ( object args ) : bool
args object
리턴 bool

OnUpdateFileExportXml() 보호된 메소드

Update the File/Export/Xml menu command
protected OnUpdateFileExportXml ( object args ) : bool
args object
리턴 bool

OnUpdateFindInDictionary() 보호된 메소드

Handle updating the "Find in dictionary" menu item. If there is no selection we want to disable this menu item (TE-4805).
protected OnUpdateFindInDictionary ( object args ) : bool
args object true if we handled this message.
리턴 bool

OnUpdateFindRelatedWords() 보호된 메소드

Handle updating the "Find in related words" menu item. If there is no selection we want to disable this menu item (TE-4805).
protected OnUpdateFindRelatedWords ( object args ) : bool
args object true if we handled this message.
리턴 bool

OnUpdateFootnoteProperties() 공개 메소드

Called to enable or disable the Footnote properties menu/toolbar item.
public OnUpdateFootnoteProperties ( object args ) : bool
args object The args.
리턴 bool

OnUpdateGoTo() 보호된 메소드

Handles enabling or disabling the Goto Menu.
protected OnUpdateGoTo ( object args ) : bool
args object
리턴 bool

OnUpdateGoToFirstBook() 보호된 메소드

Called when updating the enabled status of Go To First: Book submenu item.
protected OnUpdateGoToFirstBook ( object args ) : bool
args object
리턴 bool

OnUpdateGoToFirstChapter() 보호된 메소드

Display current book name in "First" menu
protected OnUpdateGoToFirstChapter ( object args ) : bool
args object The menu item about to display
리턴 bool

OnUpdateGoToFirstSection() 보호된 메소드

Display current book name in "First" menu
protected OnUpdateGoToFirstSection ( object args ) : bool
args object The menu item about to display
리턴 bool

OnUpdateGoToLastBook() 보호된 메소드

Called when updating the enabled status of Go To Last: Book submenu item..
protected OnUpdateGoToLastBook ( object args ) : bool
args object The args.
리턴 bool

OnUpdateGoToLastChapter() 보호된 메소드

Display current book name in "Last" menu
protected OnUpdateGoToLastChapter ( object args ) : bool
args object The menu item about to display
리턴 bool

OnUpdateGoToLastSection() 보호된 메소드

Display current book name in "Last" menu
protected OnUpdateGoToLastSection ( object args ) : bool
args object The menu item about to display
리턴 bool

OnUpdateGoToNextBook() 보호된 메소드

Called when updating the enabled status of Go To Next: Book submenu item..
protected OnUpdateGoToNextBook ( object args ) : bool
args object
리턴 bool

OnUpdateGoToNextChapter() 보호된 메소드

Called when updating the enabled status of Go To Next: Chapter submenu item..
protected OnUpdateGoToNextChapter ( object args ) : bool
args object
리턴 bool

OnUpdateGoToNextFootnote() 보호된 메소드

Called when updating the enabled status of Go To Next: Footnote submenu item..
protected OnUpdateGoToNextFootnote ( object args ) : bool
args object
리턴 bool

OnUpdateGoToNextSection() 보호된 메소드

Called when updating the enabled status of Go To Next: Section submenu item..
protected OnUpdateGoToNextSection ( object args ) : bool
args object
리턴 bool

OnUpdateGoToPrevBook() 보호된 메소드

Called when updating the enabled status of Go To Prev: Book submenu item..
protected OnUpdateGoToPrevBook ( object args ) : bool
args object
리턴 bool

OnUpdateGoToPrevChapter() 보호된 메소드

Called when updating the enabled status of Go To Prev: Chapter submenu item..
protected OnUpdateGoToPrevChapter ( object args ) : bool
args object
리턴 bool

OnUpdateGoToPrevFootnote() 보호된 메소드

Called when updating the enabled status of Go To Prev: Footnote submenu item..
protected OnUpdateGoToPrevFootnote ( object args ) : bool
args object
리턴 bool

OnUpdateGoToPrevSection() 보호된 메소드

Called when updating the enabled status of Go To Prev: Section submenu item..
protected OnUpdateGoToPrevSection ( object args ) : bool
args object
리턴 bool

OnUpdateGoToReference() 공개 메소드

Displays the GotoReferenceDialog dialog box and lets the user input a reference to go to.
public OnUpdateGoToReference ( object args ) : bool
args object
리턴 bool

OnUpdateGoToRelativeItem() 보호된 메소드

Handles enabling or disabling the Goto First, Next, Prev, and Last menus.
protected OnUpdateGoToRelativeItem ( object args ) : bool
args object
리턴 bool

OnUpdateGotoReferenceCtrl() 보호된 메소드

Update the scripture reference control status. If there are no books then disable it.
protected OnUpdateGotoReferenceCtrl ( object args ) : bool
args object
리턴 bool

OnUpdateHeaderFooterSetup() 보호된 메소드

Updates the Edit/Header Footer Setup menu item.
protected OnUpdateHeaderFooterSetup ( object arg ) : bool
arg object
리턴 bool

OnUpdateImportStandardFormat() 공개 메소드

Handles updating the Import Standard Format menu.
public OnUpdateImportStandardFormat ( object args ) : bool
args object
리턴 bool

OnUpdateInsertBackTransCV() 보호된 메소드

Determine if the back translation chapter and verse template menu item should be enabled.
protected OnUpdateInsertBackTransCV ( object args ) : bool
args object
리턴 bool

OnUpdateInsertBook() 공개 메소드

Handle the popup of the Insert Book popup menu. When the submenu pops up, each of the books in the menu that already exist in the database needs to be disabled. You can not insert a book that already exists.
public OnUpdateInsertBook ( object args ) : bool
args object The Insert Book menu being popped up
리턴 bool

OnUpdateInsertChapterNumber() 공개 메소드

Updates the insert chapter number toolbar button and menu option
public OnUpdateInsertChapterNumber ( object args ) : bool
args object
리턴 bool

OnUpdateInsertCrossRefFootnote() 공개 메소드

Handles updating the insert cross reference menu.
public OnUpdateInsertCrossRefFootnote ( object args ) : bool
args object
리턴 bool

OnUpdateInsertGeneralFootnote() 공개 메소드

Handles updating the Insert Footnote menu. Disables the footnote menu command if (1) we are in a view that has no editing capabilities, (2) there are no books in the book filter, (3) if we are in key terms view, or (4) if the user has the insertion point in a footnote.
public OnUpdateInsertGeneralFootnote ( object args ) : bool
args object
리턴 bool

OnUpdateInsertIntroSection() 공개 메소드

Updates the insert section toolbar button and menu option
public OnUpdateInsertIntroSection ( object args ) : bool
args object
리턴 bool

OnUpdateInsertNoteParent() 공개 메소드

Populate the Insert Note menu with subitems for each type of note the user is allowed to create.
public OnUpdateInsertNoteParent ( object args ) : bool
args object
리턴 bool

OnUpdateInsertPictureDialog() 공개 메소드

Handles updating the insert picture menu.
public OnUpdateInsertPictureDialog ( object args ) : bool
args object
리턴 bool

OnUpdateInsertSection() 공개 메소드

Updates the insert section toolbar button and menu option
public OnUpdateInsertSection ( object args ) : bool
args object
리턴 bool

OnUpdateInsertVerseNumber() 공개 메소드

Update the insert verse number toolbar button and menu option
public OnUpdateInsertVerseNumber ( object args ) : bool
args object
리턴 bool

OnUpdateInsertVerseNumbers() 공개 메소드

Updates the insert verse numbers mode toolbar button and menu option
public OnUpdateInsertVerseNumbers ( object args ) : bool
args object
리턴 bool

OnUpdateInterlinearize() 보호된 메소드

Determine if the back translation Use Interlinear Text Tool menu item should be enabled.
protected OnUpdateInterlinearize ( object args ) : bool
args object
리턴 bool

OnUpdateNoFilters() 보호된 메소드

Handle updating the "no filter" menu
protected OnUpdateNoFilters ( object args ) : bool
args object
리턴 bool

OnUpdatePictureProperties() 공개 메소드

Handles updating the insert picture menu. Disables the picture properties menu command if a picture isn't selected.
public OnUpdatePictureProperties ( object args ) : bool
args object
리턴 bool

OnUpdateReceiveReferences() 공개 메소드

Called to enable or disable the Receive Scripture References menu/toolbar item.
public OnUpdateReceiveReferences ( object args ) : bool
args object The args.
리턴 bool

OnUpdateRemoveCharacterStyle() 보호된 메소드

Called to update the Remove Character Style menu or toolbar item.
protected OnUpdateRemoveCharacterStyle ( object args ) : bool
args object The menu item
리턴 bool

OnUpdateResetParagraphStyle() 보호된 메소드

protected OnUpdateResetParagraphStyle ( object args ) : bool
args object The menu item
리턴 bool

OnUpdateReviewMisspelledWords() 보호된 메소드

This menu item is available if Flex is.
protected OnUpdateReviewMisspelledWords ( object args ) : bool
args object
리턴 bool

OnUpdateScriptureProperties() 공개 메소드

Called to enable or disable the Scripture properties menu/toolbar item.
public OnUpdateScriptureProperties ( object args ) : bool
args object The args.
리턴 bool

OnUpdateSendReferences() 공개 메소드

Called to enable or disable the Send Scripture References menu/toolbar item.
public OnUpdateSendReferences ( object args ) : bool
args object The args.
리턴 bool

OnUpdateShowSpellingErrors() 보호된 메소드

Make the item checked if we have a dictionary.
protected OnUpdateShowSpellingErrors ( object args ) : bool
args object
리턴 bool

OnUpdateShowUsfmResources() 공개 메소드

Called to enable or disable the Send Scripture References menu/toolbar item.
public OnUpdateShowUsfmResources ( object args ) : bool
args object The args.
리턴 bool

OnUpdateSideBarConfigure() 보호된 메소드

This updates the given configure menu item. This configure menu item is on the sidebar tab's context menu or on one of the view menu item's sub-menus or one of the context menus that pops-up when the user clicks on an info. bar button.
protected OnUpdateSideBarConfigure ( object args ) : bool
args object
리턴 bool

OnUpdateStyleComboBox() 보호된 메소드

Enables/disables the styles combobox
protected OnUpdateStyleComboBox ( object args ) : bool
args object
리턴 bool

OnUpdateUnsQuestions() 보호된 메소드

Handler to update the menu item for translating UNS questions.
protected OnUpdateUnsQuestions ( object args ) : bool
args object
리턴 bool

OnUpdateViewFootnotes() 보호된 메소드

Updates the menu's checkmark status given the state of the footnote view.
protected OnUpdateViewFootnotes ( object arg ) : bool
arg object The menu or toolbar item
리턴 bool

OnUpdateViewStylePane() 보호된 메소드

Updates the menu's checkmark status given the state of the style pane view.
protected OnUpdateViewStylePane ( object arg ) : bool
arg object The menu or toolbar item
리턴 bool

OnUpdateViewUpdatePageBreak() 보호된 메소드

Handle updating the "Update Page Break" menu/toolbar item.
protected OnUpdateViewUpdatePageBreak ( object args ) : bool
args object menu/toolbar item
리턴 bool

OnUpdateWritingSystem() 보호된 메소드

Makes the Writing System Selector combobox enabled or disabled
protected OnUpdateWritingSystem ( object args ) : bool
args object
리턴 bool

OnViewFootnotes() 보호된 메소드

Toggles the visibility of the footnote view.
protected OnViewFootnotes ( object arg ) : bool
arg object The menu or toolbar item
리턴 bool

OnViewNotes() 보호된 메소드

Toggles the visibility of the notes view.
protected OnViewNotes ( object arg ) : bool
arg object The menu or toolbar item
리턴 bool

PreFilterMessage() 공개 메소드

Prefilters the message for special handling of shortcuts.
public PreFilterMessage ( Message &message ) : bool
message Message
리턴 bool

PreSynchronize() 공개 메소드

Called just before a window synchronizes it's views with DB changes (e.g. when an undo or redo command is issued).
public PreSynchronize ( SyncMsg sync ) : void
sync SyncMsg syncronization message
리턴 void

RemoveBook() 보호된 메소드

Removes requested book. If not running in test, message box will be displayed to confirm deletion.
protected RemoveBook ( int iBook ) : void
iBook int index of book to be deleted
리턴 void

RespondToSyncScrollingMsgs() 공개 메소드

Enables or disables this editing helper's ability to respond to synchronizing to the notes window or external applications (e.g. Libronix, Paratext, etc.). Each view has its own TeEditingHelper and this is called whenever the active view changes. When a view becomes active, this method of its editing helper is called to enable responding and vice versa when the view becomes inactive... in case it isn't obvious.
public RespondToSyncScrollingMsgs ( bool enable ) : void
enable bool
리턴 void

SaveComprehensionCheckingSettings() 공개 메소드

Saves the Transcelerator settings.
public SaveComprehensionCheckingSettings ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void

SaveSettings() 보호된 메소드

Save UI settings specific to this window.
protected SaveSettings ( RegistryKey key ) : void
key RegistryKey The Registry Key.
리턴 void

ScrollToCitedText() 공개 메소드

Scrolls to cited text.
public ScrollToCitedText ( object sender, IScrScriptureNote annotation ) : void
sender object The sender.
annotation IScrScriptureNote The annotation whose reference and cited text we should /// sync. to.
리턴 void

SetCurrentReference() 공개 메소드

This method is called from FocusMessageHandling.SetUsfmFocus to set the current reference in the usfm browser if one is active.
public SetCurrentReference ( ScrReference sr ) : void
sr ScrReference The target reference in the current project's versification
리턴 void

SetPropsToFactorySettings() 보호된 메소드

Set the properties of a StyleInfo to the factory default settings
protected SetPropsToFactorySettings ( SIL.FieldWorks.FwCoreDlgControls.StyleInfo styleInfo ) : void
styleInfo SIL.FieldWorks.FwCoreDlgControls.StyleInfo
리턴 void

ShowApplyStyleDialog() 보호된 메소드

Shows the Format Apply Style dialog
protected ShowApplyStyleDialog ( string paraStyleName, string charStyleName ) : void
paraStyleName string The currently-selected Paragraph style name
charStyleName string The currently-selected Character style name
리턴 void

SyncToScrLocation() 공개 메소드

Syncs to the current Scripture reference location of the given editing helper.
public SyncToScrLocation ( TeEditingHelper editingHelper, bool fSendInternalOnly ) : void
editingHelper TeEditingHelper The editing helper.
fSendInternalOnly bool if set to true does not send reference to /// third-party listeners.
리턴 void

Synchronize() 공개 메소드

Called when a window synchronizes it's views with DB changes (e.g. when an undo or redo command is issued).
public Synchronize ( SyncMsg sync ) : bool
sync SyncMsg synchronization information record
리턴 bool

TeMainWnd() 공개 메소드

Default constructor for TeMainWnd.
public TeMainWnd ( ) : System
리턴 System

TeMainWnd() 보호된 메소드

Initializes a new instance of the TeMainWnd class.
protected TeMainWnd ( FdoCache cache ) : System
cache FdoCache The cache.
리턴 System

TeMainWnd() 공개 메소드

Initializes a new instance of the TeMainWnd class
public TeMainWnd ( FwApp app, Form wndCopyFrom ) : System
app FwApp
wndCopyFrom Form
리턴 System

TeMainWnd() 공개 메소드

Initializes a new instance of the TeMainWnd class
public TeMainWnd ( FwApp app, Form wndCopyFrom, FwLinkArgs startupLink ) : System
app FwApp
wndCopyFrom Form
startupLink FwLinkArgs Optional link to jump to in OnFinishedInit
리턴 System

TurnOffAllFilters() 공개 메소드

Turns off all the active filters
public TurnOffAllFilters ( ) : void
리턴 void

UpdateGoToSubItems() 공개 메소드

Updates the enabled status of sub items in the GoTo menus.
public UpdateGoToSubItems ( TMItemProperties itemProps, bool fSelectionRequired ) : bool
itemProps TMItemProperties The item props.
fSelectionRequired bool if set to true selection is required in /// order for this command to be enabled.
리턴 bool

UpdateKeyTermsView() 공개 메소드

Updates the key terms view.
public UpdateKeyTermsView ( ) : void
리턴 void

UpdateSpellingStatus() 공개 메소드

Update the spelling status of all embedded simple views.
public UpdateSpellingStatus ( bool status ) : void
status bool
리턴 void

WndProc() 보호된 메소드

Processes Windows messages.
protected WndProc ( Message &msg ) : void
msg Message The Windows Message to process.
리턴 void

ZoomEnabledForView() 보호된 메소드

Make sure zooming isn't allowed for style bars.
protected ZoomEnabledForView ( SimpleRootSite view ) : bool
view SimpleRootSite
리턴 bool

프로퍼티 상세

m_bookFilter 보호되어 있는 프로퍼티

Virtual sequence of books
protected FilteredScrBooks m_bookFilter
리턴 FilteredScrBooks

m_commonSelection 보호되어 있는 프로퍼티

protected IVwSelection m_commonSelection
리턴 IVwSelection

m_gotoRefCtrl 보호되어 있는 프로퍼티

protected DbScrPassageControl m_gotoRefCtrl
리턴 DbScrPassageControl

m_lp 보호되어 있는 프로퍼티

protected ILangProject m_lp
리턴 ILangProject

m_scr 보호되어 있는 프로퍼티

protected IScripture m_scr
리턴 IScripture

m_viewThatLostFocus 보호되어 있는 프로퍼티

protected IRootSite m_viewThatLostFocus
리턴 IRootSite