C# Class Bloom_ChorusPlugin.BloomHtmlFileTypeHandler

Inheritance: IChorusFileTypeHandler
Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
CanDiffFile ( string pathToFile ) : bool
CanMergeFile ( string pathToFile ) : bool
CanPresentFile ( string pathToFile ) : bool
CanValidateFile ( string pathToFile ) : bool
DescribeInitialContents ( FileInRevision fileInRevision, TempFile file ) : IEnumerable
Do3WayMerge ( MergeOrder mergeOrder ) : void

Do a 3-file merge, placing the result over the "ours" file and returning an error status

Implementations can exit with an exception, which the caller will catch and deal with. The must not have any UI, no interaction with the user.

Find2WayDifferences ( FileInRevision parent, FileInRevision child, HgRepository repository ) : IEnumerable
GetChangePresenter ( IChangeReport report, HgRepository repository ) : IChangePresenter
GetExtensionsOfKnownTextFileTypes ( ) : IEnumerable
ValidateFile ( string pathToFile, IProgress progress ) : string

Private Methods

Method Description
CarefullyWriteOutResultingXml ( HtmlFileForMerging oursXml, NodeMergeResult result ) : void
SetupElementStrategies ( XmlMerger merger ) : void

Method Details

CanDiffFile() public method

public CanDiffFile ( string pathToFile ) : bool
pathToFile string
return bool

CanMergeFile() public method

public CanMergeFile ( string pathToFile ) : bool
pathToFile string
return bool

CanPresentFile() public method

public CanPresentFile ( string pathToFile ) : bool
pathToFile string
return bool

CanValidateFile() public method

public CanValidateFile ( string pathToFile ) : bool
pathToFile string
return bool

DescribeInitialContents() public method

public DescribeInitialContents ( FileInRevision fileInRevision, TempFile file ) : IEnumerable
fileInRevision FileInRevision
file TempFile
return IEnumerable

Do3WayMerge() public method

Do a 3-file merge, placing the result over the "ours" file and returning an error status
Implementations can exit with an exception, which the caller will catch and deal with. The must not have any UI, no interaction with the user.
public Do3WayMerge ( MergeOrder mergeOrder ) : void
mergeOrder MergeOrder
return void

Find2WayDifferences() public method

public Find2WayDifferences ( FileInRevision parent, FileInRevision child, HgRepository repository ) : IEnumerable
parent FileInRevision
child FileInRevision
repository HgRepository
return IEnumerable

GetChangePresenter() public method

public GetChangePresenter ( IChangeReport report, HgRepository repository ) : IChangePresenter
report IChangeReport
repository HgRepository
return IChangePresenter

GetExtensionsOfKnownTextFileTypes() public method

public GetExtensionsOfKnownTextFileTypes ( ) : IEnumerable
return IEnumerable

ValidateFile() public method

public ValidateFile ( string pathToFile, IProgress progress ) : string
pathToFile string
progress IProgress
return string