Property | Type | Description | |
---|---|---|---|
sTheMostRecentBloomFileLocator |
Method | Description | |
---|---|---|
AddPath ( string path ) : void | ||
BloomFileLocator ( |
||
CloneAndCustomize ( IEnumerable |
||
GetBestLocalizableFileDistributedWithApplication ( bool existenceOfEnglishVersionIsOptional ) : string |
This can be used to find the best localized file when there is only one file with the given name, and the file is part of the files distributed with Bloom (i.e., not something in a downloaded template).
|
|
GetBestLocalizedFile ( string pathToEnglishFile ) : string |
If there is a file sitting next to the english one with the desired language, get that path. Otherwise, returns the English path.
|
|
GetBrowserDirectory ( ) : string | ||
GetBrowserFile ( ) : string | ||
GetFactoryBookTemplateDirectory ( string bookName ) : string | ||
GetInstalledXMatterDirectory ( ) : string | ||
GetOptionalBrandingFile ( string brandingNameOrFolderPath, string fileName ) : string |
Gets a file in the specified branding folder
|
|
IsInstalledFileOrDirectory ( string filepath ) : bool |
Check whether this file was installed with Bloom (and likely to be read-only on Linux or for allUsers install).
|
Method | Description | |
---|---|---|
GetSearchPaths ( ) : IEnumerable |
These are used (as of 26 aug 2016) only by LibPalaso's FileLocator.LocateFile(). Not used by GetFileDistributedWIthApplication().
|
public BloomFileLocator ( |
||
collectionSettings | ||
xMatterPackFinder | ||
factorySearchPaths | IEnumerable |
|
userInstalledSearchPaths | IEnumerable |
|
afterXMatterSearchPaths | IEnumerable |
|
return | System.Collections.Generic |
public CloneAndCustomize ( IEnumerable |
||
addedSearchPaths | IEnumerable |
|
return | IFileLocator |
public static GetBestLocalizableFileDistributedWithApplication ( bool existenceOfEnglishVersionIsOptional ) : string | ||
existenceOfEnglishVersionIsOptional | bool | |
return | string |
public static GetBestLocalizedFile ( string pathToEnglishFile ) : string | ||
pathToEnglishFile | string | |
return | string |
public static GetBrowserDirectory ( ) : string | ||
return | string |
public static GetFactoryBookTemplateDirectory ( string bookName ) : string | ||
bookName | string | |
return | string |
public static GetInstalledXMatterDirectory ( ) : string | ||
return | string |
public static GetOptionalBrandingFile ( string brandingNameOrFolderPath, string fileName ) : string | ||
brandingNameOrFolderPath | string | Normally, the branding is just a name, which we look up in the official branding folder // but unit tests can instead provide a path to the folder. /// |
fileName | string | |
return | string |
public static IsInstalledFileOrDirectory ( string filepath ) : bool | ||
filepath | string | |
return | bool |