C# 클래스 SIL.FieldWorks.XWorks.FwXWindow

Summary description for FwXWindow.
상속: XCore.XWindow, IFwMainWnd, ISettings, IRecordListOwner, IMainWindowDelegatedFunctions, IMainWindowDelegateCallbacks
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_StyleSheet FwStyleSheet
m_app SIL.FieldWorks.Common.Framework.FwApp
m_configFile string
m_delegate SIL.FieldWorks.Common.Framework.MainWindowDelegate
m_fWindowIsCopy bool
m_installedVirtualHandlers List
m_startupLink FwLinkArgs
m_viewHelper SIL.FieldWorks.Common.RootSites.ActiveViewHelper
s_wm_kmselectlang uint

공개 메소드들

메소드 설명
ClearInvalidatedStoredData ( ) : void
CreateMilestoneProgressState ( XCore.Mediator mediator ) : SIL.FieldWorks.Common.Controls.ProgressState

factory method for getting a progress state which is already hooked up to the correct progress panel

CreateNewFileName ( string fullName, string oldString, string newString ) : string

CreatePredictiveProgressState ( XCore.Mediator mediator, string taskLabel ) : SIL.FieldWorks.Common.Controls.ProgressState

factory method for getting a progress state which is already hooked up to the correct progress panel

CreateSimpleProgressState ( XCore.Mediator mediator ) : SIL.FieldWorks.Common.Controls.ProgressState

factory method for getting a simple progress state which is already hooked up to the correct progress panel

EnableBulkLoadingDisableIdleProcessing ( bool fEnable ) : void

Either enable bulk loading and disable idle processing, or disable bulk loading and enable idle processing.

EnableWindow ( bool fEnable ) : void

Enable or disable this window.

FindRecordListUpdater ( string name ) : IRecordListUpdater

Retrieve the IRecordListUpdater object named by the argument.

Part of the IRecordListOwner interface.

FinishRefresh ( ) : bool

Called in FwXApp.OnMasterRefresh AFTER clearing the cache, to reset everything.

FwXWindow ( ) : System

Default c'tor

FwXWindow ( FwApp app, Form wndCopyFrom, Stream iconStream, Stream configStream ) : System

Construct a new form

FwXWindow ( FwApp app, Form wndCopyFrom, Stream iconStream, string configFile, FwLinkArgs startupLink, bool inAutomatedTest ) : System

Construct a new form

FwXWindow ( FwApp app, string configFile ) : System

C'tor for TESTING with MockFwXWindow

GetMainWindowCaption ( SIL.FieldWorks.FDO.FdoCache cache ) : string

Gets the string that will go in the caption of the main window.

GetMessageTargets ( ) : IxCoreColleague[]

return an array of all of the objects which should 1) be queried when looking for someone to deliver a message to 2) be potential recipients of a broadcast

GetProjectName ( SIL.FieldWorks.FDO.FdoCache cache ) : string

Returns the project name from the specified cache. If the connection is to a remote server, the string returned will include the server name, formatted in a form suitable for including in a window caption.

InitAndShowClient ( ) : void

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

OnArchiveWithRamp ( object command ) : bool

Handle click on Archive With RAMP menu item

OnChooseLangProject ( object command ) : bool

OnCreateShortcut ( object args ) : bool

Handle the Create Shortcut on Desktop menu/toolbar item.

OnDisplayArchiveWithRamp ( object command, XCore.UIItemDisplayProperties &display ) : bool

Handle whether to enable Archive With RAMP menu item (enabled iff properly installed)

OnDisplayEditCopy ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

This is very similar to OnUpdateEditCopy, but for xCore applications.

OnDisplayEditCut ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

This is very similar to OnUpdateEditCut, but for xCore applications.

OnDisplayEditPaste ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

This is very similar to OnUpdateEditPaste, but for xCore applications.

OnDisplayEditSelectAll ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Enable the SelectAll command if appropriate

OnDisplayImportTranslatedLists ( object parameters, XCore.UIItemDisplayProperties &display ) : bool

Display this import command everywhere.

OnDisplayInsertLinkToFile ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Enable the InsertLinkToFile command

OnDisplayPasteUrl ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Enable the PasteUrl command

OnDisplaySaveLangProject ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

This is very similar to OnUpdateFileSave, but for xCore applications.

OnDisplayShowCharMap ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

This method enables the Character Map command if the exe exists in the system dir.

OnDisplayUtilities ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

OnDisplayWritingSystemProperties ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

This is very similar to OnUpdateEditCut, but for xCore applications.

OnEditCopy ( object arg ) : bool

OnEditCut ( object arg ) : bool

OnEditFind ( object args ) : bool

Handle the Find menu command.

OnEditPaste ( object arg ) : bool

OnEditReplace ( object args ) : bool

Handle the Find menu command.

OnEditSelectAll ( object arg ) : bool

Implement the SelectAll command (for the active view).

OnExitApplication ( object param ) : bool

Exits the application :)

OnFinishedInit ( ) : bool

Called when a window is finished being created and completely initialized.

OnIdle ( object sender ) : void

If a property requests it, do a db sync.

OnImportTranslatedLists ( object commandObject ) : bool

Import a file contained translated strings for one or more lists.

See FWR-1739.

OnInsertLinkToFile ( object arg ) : bool

Handle the InsertLinkToFile command

OnNewLangProject ( object command ) : bool

OnNewWindow ( object command ) : bool

OnPasteUrl ( object arg ) : bool

Paste what is in the clipboard as a URL

OnPropertyChanged ( string name ) : void

OnSaveLangProject ( object command ) : bool

OnShowCharMap ( object command ) : bool

Start the Character Map program (if it's found).

OnStylesRenamedOrDeleted ( ) : void

Called when styles are renamed or deleted.

OnUpdateArchiveWithRamp ( object args ) : bool

Update Archive With RAMP menu item

OnUtilities ( object command ) : bool

OnWritingSystemProperties ( object arg ) : bool

Display the project properties dialog, but starting with the WS page.

PopulateParaStyleListOverride ( ) : bool

Allows individual implementations to override the default behavior when populating the paragraph style list.

PreSynchronize ( SyncMsg sync ) : void

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

PrepareToRefresh ( ) : void

Called in FwXApp.OnMasterRefresh BEFORE clearing the cache, typically to save any work in progress.

RefreshAllViews ( ) : void

JohnT: this might be a poorly named or obsolete message. Kept because there are some callers and I don't have time to analyze them all. Generally better to use RefreshDisplay().

RefreshDisplay ( ) : bool

Collect refreshable caches from every child which has one and refresh them (once each). Call RefreshDisplay for every child control (recursively) which implements it. returns true if all the children have been processed by this class.

SaveSettings ( ) : void
SaveSettingsNow ( ) : void

Save the persisted settings now.

ShowApplyStyleDialog ( string paraStyleName, string charStyleName, int maxStyleLevel ) : void

Shows the Format Apply Style dialog

ShowStylesDialog ( string paraStyleName, string charStyleName, Action setPropsToFactorySettings ) : bool

Required interface member to launch the style dialog.

Synchronize ( SyncMsg sync ) : bool

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

보호된 메소드들

메소드 설명
DiscardProperties ( ) : void

If we are discarding saved settings, we must not keep any saved sort sequences, as they may represent a filter we are not restoring (LT-11647)

Dispose ( bool disposing ) : void

Clean up any resources being used.

InitMediatorValues ( SIL.FieldWorks.FDO.FdoCache cache ) : void
OnActivated ( EventArgs e ) : void

This main window is now the active one handle any data changes made in other applications. (By analogy with FwMainWindow, may also need to do something about Find/Replace?? (JT)).

OnBackupThisProject ( object arg ) : bool

Handle the File/Backup and Restore menu command

OnClosed ( EventArgs e ) : void
OnDeleteProject ( object args ) : bool

Handle the File/"Project Management"/Delete... menu command

OnDisplayDeleteProject ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Disables/enables the File/"Project Management"/Delete... menu item

OnDisplayFileProjectSharingLocation ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Updates the enabled state of the File Project Sharing Location menu item

OnDisplayFormatApplyStyle ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Enable the menu command for Format/Styles, if we can.

OnDisplayRedo ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Disables/enables the Edit/Redo menu item

OnDisplayUndo ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

Disables/enables the Edit/Undo menu item

OnFileProjectProperties ( object command ) : bool

Display the project properties dialog

OnFileProjectSharingLocation ( object arg ) : bool

Handle the File/Restore menu command

OnFormatApplyStyle ( object args ) : bool

Shows the apply style dialog

OnFormatStyle ( object args ) : bool

Shows the Styles dialog

OnHandleCreated ( EventArgs e ) : void
OnHelpAbout ( object args ) : bool

Show Help About dialog

OnHelpCheckForUpdates ( object args ) : bool

Check if any updates to FW are available

OnHelpMakeSuggestion ( object args ) : bool

Show dialog to report a bug in the system

OnHelpReportProblem ( object args ) : bool

Show dialog to report a bug in the system

OnRedo ( object args ) : bool

This function will redo the last changes undone to the project. This function is executed when the user clicks the redo menu item.

OnRestoreAProject ( object arg ) : bool

Handle the File/Backup and Restore menu command

OnStartLogging ( object args ) : bool

Start logging events.

OnUndo ( object args ) : bool

This function will undo the last changes done to the project. This function is executed when the user clicks the undo menu item.

RestoreProperties ( ) : void

FwXWindow also restores database-specific properties.

WndProc ( Message &m ) : void

Keyman's select language message must be forwarded to the focus window to take useful effect.

XWindow_Closing ( object sender, System e ) : void

비공개 메소드들

메소드 설명
ActiveViewChanged ( object sender, EventArgs e ) : void

Different active view, we need to update the combo box.

BasicInit ( FwApp app ) : void
CollectCachesToRefresh ( Control c, HashSet cacheCollector, HashSet clerkCollector ) : void

Collect refreshable caches from the specified control and its subcontrols. We currently handle controls that are rootsites, and check their own SDAs as well as any base SDAs that those SDAs wrap.

FindAllRootBoxes ( Control control ) : List

FocusControlHandlesMessage ( string methodName, object args ) : bool

See whether the focus control wants to handle the specified message. It is assumed that if the focus control has a public or non-public method of the given name, it takes the supplied arguments and returns boolean. Call it and return what it returns. Special case: if the focus control is 'this', that is, the recipient xWindow has focus, just return false. This is because this method is called from, say, the implementation of OnDisplayUndo, to see whether some (other) focus control wants to handle the message. Returning false allows the correct default implementation of OnDisplayUndo when no (other) focused control wants to do it. Calling OnDisplayUndo on the focus control, on the other hand, leads to a stack overflow, since the first thing this.OnDisplayUndo does is to call FocusControlHandlesMessage again!

GetFocusControl ( ) : Control
HandleUndoResult ( UndoResult ures, bool fPrivate ) : void
ImportTranslatedLists ( string filename ) : void
Init ( Stream iconStream, Form wndCopyFrom, SIL.FieldWorks.FDO.FdoCache cache ) : void

Common initializations

LaunchProjPropertiesDlg ( bool startOnWSPage ) : void

Launches the proj properties DLG.

OnMasterRefresh ( object sender ) : void
OnProjectPropertiesChanged ( object sender, EventArgs eventArgs ) : void
ReconstructViews ( Control control ) : void

Call RefreshDisplay on the passed in control if it has a public (no argument) method of that name. Recursively call ReconstructViews on each control that the given control contains.

ResyncRootboxStyles ( ) : void

Get all the rootboxes we know about and reinitialize their stylesheets.

ResyncStylesheet ( ) : void

We need to resync the windows StyleSheet object during a MasterRefresh and Synchronize() LT-7382.

WindowHandleInfo ( string eventMsg ) : string

메소드 상세

ClearInvalidatedStoredData() 공개 메소드

public ClearInvalidatedStoredData ( ) : void
리턴 void

CreateMilestoneProgressState() 공개 정적인 메소드

factory method for getting a progress state which is already hooked up to the correct progress panel
public static CreateMilestoneProgressState ( XCore.Mediator mediator ) : SIL.FieldWorks.Common.Controls.ProgressState
mediator XCore.Mediator
리턴 SIL.FieldWorks.Common.Controls.ProgressState

CreateNewFileName() 공개 정적인 메소드

public static CreateNewFileName ( string fullName, string oldString, string newString ) : string
fullName string
oldString string
newString string
리턴 string

CreatePredictiveProgressState() 공개 정적인 메소드

factory method for getting a progress state which is already hooked up to the correct progress panel
public static CreatePredictiveProgressState ( XCore.Mediator mediator, string taskLabel ) : SIL.FieldWorks.Common.Controls.ProgressState
mediator XCore.Mediator
taskLabel string
리턴 SIL.FieldWorks.Common.Controls.ProgressState

CreateSimpleProgressState() 공개 정적인 메소드

factory method for getting a simple progress state which is already hooked up to the correct progress panel
public static CreateSimpleProgressState ( XCore.Mediator mediator ) : SIL.FieldWorks.Common.Controls.ProgressState
mediator XCore.Mediator
리턴 SIL.FieldWorks.Common.Controls.ProgressState

DiscardProperties() 보호된 메소드

If we are discarding saved settings, we must not keep any saved sort sequences, as they may represent a filter we are not restoring (LT-11647)
protected DiscardProperties ( ) : void
리턴 void

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged /// resources; false to release only unmanaged resources. ///
리턴 void

EnableBulkLoadingDisableIdleProcessing() 공개 메소드

Either enable bulk loading and disable idle processing, or disable bulk loading and enable idle processing.
public EnableBulkLoadingDisableIdleProcessing ( bool fEnable ) : void
fEnable bool
리턴 void

EnableWindow() 공개 메소드

Enable or disable this window.
public EnableWindow ( bool fEnable ) : void
fEnable bool Enable (true) or disable (false).
리턴 void

FindRecordListUpdater() 공개 메소드

Retrieve the IRecordListUpdater object named by the argument.
Part of the IRecordListOwner interface.
public FindRecordListUpdater ( string name ) : IRecordListUpdater
name string
리턴 IRecordListUpdater

FinishRefresh() 공개 메소드

Called in FwXApp.OnMasterRefresh AFTER clearing the cache, to reset everything.
public FinishRefresh ( ) : bool
리턴 bool

FwXWindow() 공개 메소드

Default c'tor
public FwXWindow ( ) : System
리턴 System

FwXWindow() 공개 메소드

Construct a new form
public FwXWindow ( FwApp app, Form wndCopyFrom, Stream iconStream, Stream configStream ) : System
app SIL.FieldWorks.Common.Framework.FwApp the app.
wndCopyFrom System.Windows.Forms.Form Source window to copy from.
iconStream Stream
configStream Stream
리턴 System

FwXWindow() 공개 메소드

Construct a new form
public FwXWindow ( FwApp app, Form wndCopyFrom, Stream iconStream, string configFile, FwLinkArgs startupLink, bool inAutomatedTest ) : System
app SIL.FieldWorks.Common.Framework.FwApp The app.
wndCopyFrom System.Windows.Forms.Form Source window to copy from
iconStream Stream The icon stream.
configFile string The config file.
startupLink FwLinkArgs The link to follow once the window is initialized.
inAutomatedTest bool if set to true, (well behaved) code will avoid /// bringing up dialogs that we cannot respond to (like confirmation and error dialogs) /// and it should cause the system to avoid saving the settings to a file (or at least /// saving them in some special way so as not to mess up the user.)
리턴 System

FwXWindow() 공개 메소드

C'tor for TESTING with MockFwXWindow
public FwXWindow ( FwApp app, string configFile ) : System
app SIL.FieldWorks.Common.Framework.FwApp
configFile string Only sets the member variable here, does NOT load UI.
리턴 System

GetMainWindowCaption() 공개 메소드

Gets the string that will go in the caption of the main window.
public GetMainWindowCaption ( SIL.FieldWorks.FDO.FdoCache cache ) : string
cache SIL.FieldWorks.FDO.FdoCache
리턴 string

GetMessageTargets() 공개 메소드

return an array of all of the objects which should 1) be queried when looking for someone to deliver a message to 2) be potential recipients of a broadcast
public GetMessageTargets ( ) : IxCoreColleague[]
리턴 IxCoreColleague[]

GetProjectName() 공개 메소드

Returns the project name from the specified cache. If the connection is to a remote server, the string returned will include the server name, formatted in a form suitable for including in a window caption.
public GetProjectName ( SIL.FieldWorks.FDO.FdoCache cache ) : string
cache SIL.FieldWorks.FDO.FdoCache The FDO cache
리턴 string

InitAndShowClient() 공개 메소드

Create the client windows and add corresponding stuff to the sidebar, View menu, etc.
public InitAndShowClient ( ) : void
리턴 void

InitMediatorValues() 보호된 메소드

protected InitMediatorValues ( SIL.FieldWorks.FDO.FdoCache cache ) : void
cache SIL.FieldWorks.FDO.FdoCache
리턴 void

OnActivated() 보호된 메소드

This main window is now the active one handle any data changes made in other applications. (By analogy with FwMainWindow, may also need to do something about Find/Replace?? (JT)).
protected OnActivated ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnArchiveWithRamp() 공개 메소드

Handle click on Archive With RAMP menu item
public OnArchiveWithRamp ( object command ) : bool
command object Not used
리턴 bool

OnBackupThisProject() 보호된 메소드

Handle the File/Backup and Restore menu command
protected OnBackupThisProject ( object arg ) : bool
arg object
리턴 bool

OnChooseLangProject() 공개 메소드

public OnChooseLangProject ( object command ) : bool
command object
리턴 bool

OnClosed() 보호된 메소드

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnCreateShortcut() 공개 메소드

Handle the Create Shortcut on Desktop menu/toolbar item.
public OnCreateShortcut ( object args ) : bool
args object
리턴 bool

OnDeleteProject() 보호된 메소드

Handle the File/"Project Management"/Delete... menu command
protected OnDeleteProject ( object args ) : bool
args object
리턴 bool

OnDisplayArchiveWithRamp() 공개 메소드

Handle whether to enable Archive With RAMP menu item (enabled iff properly installed)
public OnDisplayArchiveWithRamp ( object command, XCore.UIItemDisplayProperties &display ) : bool
command object Not used
display XCore.UIItemDisplayProperties Display properties
리턴 bool

OnDisplayDeleteProject() 보호된 메소드

Disables/enables the File/"Project Management"/Delete... menu item
protected OnDisplayDeleteProject ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayEditCopy() 공개 메소드

This is very similar to OnUpdateEditCopy, but for xCore applications.
public OnDisplayEditCopy ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayEditCut() 공개 메소드

This is very similar to OnUpdateEditCut, but for xCore applications.
public OnDisplayEditCut ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayEditPaste() 공개 메소드

This is very similar to OnUpdateEditPaste, but for xCore applications.
public OnDisplayEditPaste ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayEditSelectAll() 공개 메소드

Enable the SelectAll command if appropriate
public OnDisplayEditSelectAll ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayFileProjectSharingLocation() 보호된 메소드

Updates the enabled state of the File Project Sharing Location menu item
protected OnDisplayFileProjectSharingLocation ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayFormatApplyStyle() 보호된 메소드

Enable the menu command for Format/Styles, if we can.
protected OnDisplayFormatApplyStyle ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayImportTranslatedLists() 공개 메소드

Display this import command everywhere.
public OnDisplayImportTranslatedLists ( object parameters, XCore.UIItemDisplayProperties &display ) : bool
parameters object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayInsertLinkToFile() 공개 메소드

Enable the InsertLinkToFile command
public OnDisplayInsertLinkToFile ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayPasteUrl() 공개 메소드

Enable the PasteUrl command
public OnDisplayPasteUrl ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayRedo() 보호된 메소드

Disables/enables the Edit/Redo menu item
protected OnDisplayRedo ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplaySaveLangProject() 공개 메소드

This is very similar to OnUpdateFileSave, but for xCore applications.
public OnDisplaySaveLangProject ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayShowCharMap() 공개 메소드

This method enables the Character Map command if the exe exists in the system dir.
public OnDisplayShowCharMap ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayUndo() 보호된 메소드

Disables/enables the Edit/Undo menu item
protected OnDisplayUndo ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayUtilities() 공개 메소드

public OnDisplayUtilities ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnDisplayWritingSystemProperties() 공개 메소드

This is very similar to OnUpdateEditCut, but for xCore applications.
public OnDisplayWritingSystemProperties ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
리턴 bool

OnEditCopy() 공개 메소드

public OnEditCopy ( object arg ) : bool
arg object
리턴 bool

OnEditCut() 공개 메소드

public OnEditCut ( object arg ) : bool
arg object
리턴 bool

OnEditFind() 공개 메소드

Handle the Find menu command.
public OnEditFind ( object args ) : bool
args object Arguments
리턴 bool

OnEditPaste() 공개 메소드

public OnEditPaste ( object arg ) : bool
arg object
리턴 bool

OnEditReplace() 공개 메소드

Handle the Find menu command.
public OnEditReplace ( object args ) : bool
args object Arguments
리턴 bool

OnEditSelectAll() 공개 메소드

Implement the SelectAll command (for the active view).
public OnEditSelectAll ( object arg ) : bool
arg object
리턴 bool

OnExitApplication() 공개 메소드

Exits the application :)
public OnExitApplication ( object param ) : bool
param object
리턴 bool

OnFileProjectProperties() 보호된 메소드

Display the project properties dialog
protected OnFileProjectProperties ( object command ) : bool
command object
리턴 bool

OnFileProjectSharingLocation() 보호된 메소드

Handle the File/Restore menu command
protected OnFileProjectSharingLocation ( object arg ) : bool
arg object
리턴 bool

OnFinishedInit() 공개 메소드

Called when a window is finished being created and completely initialized.
public OnFinishedInit ( ) : bool
리턴 bool

OnFormatApplyStyle() 보호된 메소드

Shows the apply style dialog
protected OnFormatApplyStyle ( object args ) : bool
args object ignored
리턴 bool

OnFormatStyle() 보호된 메소드

Shows the Styles dialog
protected OnFormatStyle ( object args ) : bool
args object ignored
리턴 bool

OnHandleCreated() 보호된 메소드

protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnHelpAbout() 보호된 메소드

Show Help About dialog
protected OnHelpAbout ( object args ) : bool
args object
리턴 bool

OnHelpCheckForUpdates() 보호된 메소드

Check if any updates to FW are available
protected OnHelpCheckForUpdates ( object args ) : bool
args object
리턴 bool

OnHelpMakeSuggestion() 보호된 메소드

Show dialog to report a bug in the system
protected OnHelpMakeSuggestion ( object args ) : bool
args object
리턴 bool

OnHelpReportProblem() 보호된 메소드

Show dialog to report a bug in the system
protected OnHelpReportProblem ( object args ) : bool
args object
리턴 bool

OnIdle() 공개 메소드

If a property requests it, do a db sync.
public OnIdle ( object sender ) : void
sender object
리턴 void

OnImportTranslatedLists() 공개 메소드

Import a file contained translated strings for one or more lists.
See FWR-1739.
public OnImportTranslatedLists ( object commandObject ) : bool
commandObject object
리턴 bool

OnInsertLinkToFile() 공개 메소드

Handle the InsertLinkToFile command
public OnInsertLinkToFile ( object arg ) : bool
arg object
리턴 bool

OnNewLangProject() 공개 메소드

public OnNewLangProject ( object command ) : bool
command object
리턴 bool

OnNewWindow() 공개 메소드

public OnNewWindow ( object command ) : bool
command object
리턴 bool

OnPasteUrl() 공개 메소드

Paste what is in the clipboard as a URL
public OnPasteUrl ( object arg ) : bool
arg object
리턴 bool

OnPropertyChanged() 공개 메소드

public OnPropertyChanged ( string name ) : void
name string
리턴 void

OnRedo() 보호된 메소드

This function will redo the last changes undone to the project. This function is executed when the user clicks the redo menu item.
protected OnRedo ( object args ) : bool
args object
리턴 bool

OnRestoreAProject() 보호된 메소드

Handle the File/Backup and Restore menu command
protected OnRestoreAProject ( object arg ) : bool
arg object
리턴 bool

OnSaveLangProject() 공개 메소드

public OnSaveLangProject ( object command ) : bool
command object
리턴 bool

OnShowCharMap() 공개 메소드

Start the Character Map program (if it's found).
public OnShowCharMap ( object command ) : bool
command object
리턴 bool

OnStartLogging() 보호된 메소드

Start logging events.
protected OnStartLogging ( object args ) : bool
args object
리턴 bool

OnStylesRenamedOrDeleted() 공개 메소드

Called when styles are renamed or deleted.
public OnStylesRenamedOrDeleted ( ) : void
리턴 void

OnUndo() 보호된 메소드

This function will undo the last changes done to the project. This function is executed when the user clicks the undo menu item.
protected OnUndo ( object args ) : bool
args object Unused
리턴 bool

OnUpdateArchiveWithRamp() 공개 메소드

Update Archive With RAMP menu item
public OnUpdateArchiveWithRamp ( object args ) : bool
args object the toolbar/menu item properties
리턴 bool

OnUtilities() 공개 메소드

public OnUtilities ( object command ) : bool
command object
리턴 bool

OnWritingSystemProperties() 공개 메소드

Display the project properties dialog, but starting with the WS page.
public OnWritingSystemProperties ( object arg ) : bool
arg object
리턴 bool

PopulateParaStyleListOverride() 공개 메소드

Allows individual implementations to override the default behavior when populating the paragraph style list.
public PopulateParaStyleListOverride ( ) : bool
리턴 bool

PreSynchronize() 공개 메소드

Called just before a window syncronizes 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

PrepareToRefresh() 공개 메소드

Called in FwXApp.OnMasterRefresh BEFORE clearing the cache, typically to save any work in progress.
public PrepareToRefresh ( ) : void
리턴 void

RefreshAllViews() 공개 메소드

JohnT: this might be a poorly named or obsolete message. Kept because there are some callers and I don't have time to analyze them all. Generally better to use RefreshDisplay().
public RefreshAllViews ( ) : void
리턴 void

RefreshDisplay() 공개 메소드

Collect refreshable caches from every child which has one and refresh them (once each). Call RefreshDisplay for every child control (recursively) which implements it. returns true if all the children have been processed by this class.
public RefreshDisplay ( ) : bool
리턴 bool

RestoreProperties() 보호된 메소드

FwXWindow also restores database-specific properties.
protected RestoreProperties ( ) : void
리턴 void

SaveSettings() 공개 메소드

public SaveSettings ( ) : void
리턴 void

SaveSettingsNow() 공개 메소드

Save the persisted settings now.
public SaveSettingsNow ( ) : void
리턴 void

ShowApplyStyleDialog() 공개 메소드

Shows the Format Apply Style dialog
public ShowApplyStyleDialog ( string paraStyleName, string charStyleName, int maxStyleLevel ) : void
paraStyleName string The currently-selected Paragraph style name
charStyleName string The currently-selected Character style name
maxStyleLevel int The maximum style level that will be shown in this /// dialog. (apps that do not use style levels in their stylesheets can pass 0)
리턴 void

ShowStylesDialog() 공개 메소드

Required interface member to launch the style dialog.
public ShowStylesDialog ( string paraStyleName, string charStyleName, Action setPropsToFactorySettings ) : bool
paraStyleName string Name of the initially selected paragraph style.
charStyleName string Name of the initially selected character style.
setPropsToFactorySettings Action Delegate to set style info properties back /// to the default facotry settings
리턴 bool

Synchronize() 공개 메소드

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

WndProc() 보호된 메소드

Keyman's select language message must be forwarded to the focus window to take useful effect.
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
리턴 void

XWindow_Closing() 보호된 메소드

protected XWindow_Closing ( object sender, System e ) : void
sender object
e System
리턴 void

프로퍼티 상세

m_StyleSheet 보호되어 있는 프로퍼티

The stylesheet used for all views in this window.
protected FwStyleSheet m_StyleSheet
리턴 FwStyleSheet

m_app 보호되어 있는 프로퍼티

protected FwApp,SIL.FieldWorks.Common.Framework m_app
리턴 SIL.FieldWorks.Common.Framework.FwApp

m_configFile 보호되어 있는 프로퍼티

Configuration file pathname.
protected string m_configFile
리턴 string

m_delegate 보호되어 있는 프로퍼티

Shared functionality of FwXWindow and FwMainWnd may be delegated here.
protected MainWindowDelegate,SIL.FieldWorks.Common.Framework m_delegate
리턴 SIL.FieldWorks.Common.Framework.MainWindowDelegate

m_fWindowIsCopy 보호되어 있는 프로퍼티

Flag indicating whether or not this instance of MainWnd is a copy of another Wnd (i.e. created by choosing the "Window/New Window" menu).
protected bool m_fWindowIsCopy
리턴 bool

m_installedVirtualHandlers 보호되어 있는 프로퍼티

list of the virtual handlers we loaded.
protected List m_installedVirtualHandlers
리턴 List

m_startupLink 보호되어 있는 프로퍼티

Set by the owning application during startup when it has a url/link command line parameter
protected FwLinkArgs m_startupLink
리턴 FwLinkArgs

m_viewHelper 보호되어 있는 프로퍼티

protected ActiveViewHelper,SIL.FieldWorks.Common.RootSites m_viewHelper
리턴 SIL.FieldWorks.Common.RootSites.ActiveViewHelper

s_wm_kmselectlang 보호되어 있는 정적으로 프로퍼티

Keyman select language message
protected static uint s_wm_kmselectlang
리턴 uint