Свойство | Type | Description | |
---|---|---|---|
AssertIsAlreadyInitialized | void | ||
AttemptToReplaceMissingImage | bool | ||
EnsureDoesntHaveLinkToStyleSheet | void | ||
EnsureHasLinkToStyleSheet | void | ||
EnsureHasLinksToStylesheets | void | ||
ExpensiveInitialization | void | ||
GetBaseForRelativePaths | string | ||
GetImagePathsRelativeToBook | List |
||
GetNameForATempFileInStorageFolder | string | ||
GetNormalizedPathForOS | string | ||
GetUniqueFolderName | string | ||
GetUniqueFolderPath | string | ||
IsPathReadonly | bool | ||
MakeCssLinksAppropriateForStoredFile | void | ||
ProcessAccessDeniedError | void | ||
RemoveDangerousCharacters | string | ||
SanitizeNameForFileSystem | string | ||
Update | void | ||
UpdateSupportFiles | void | ||
ValidateBook | string |
Méthode | Description | |
---|---|---|
BookStorage ( string folderPath, SIL baseFileLocator, BookRenamedEvent bookRenamedEvent, |
||
CheckBook ( IProgress progress, string pathToFolderOfReplacementImages = null ) : void |
The image-replacement feature is perhaps a one-off for a project where an advisor replaced the folders with a version that lacked most of the images (perhaps because dropbox copies small files first and didn't complete the sync) |
|
CleanupUnusedImageFiles ( ) : void |
Compare the images we find in the top level of the book folder to those referenced in the dom, and remove any unreferenced on
|
|
FindBookHtmlInFolder ( string folderPath ) : string | ||
GetBrokenBookRecommendationHtml ( ) : string | ||
GetFileLocator ( ) : IFileLocator |
this is a method because it wasn't clear if we will eventually generate it on the fly (book paths do change as they are renamed)
|
|
GetHtmlMessageIfVersionIsIncompatibleWithThisBloom ( |
||
GetLooksOk ( ) : bool | ||
GetRelocatableCopyOfDom ( IProgress log ) : |
creates a relocatable copy of our main HtmlDom
|
|
GetValidateErrors ( ) : string | ||
HandleRetiredXMatterPacks ( |
||
MakeDomRelocatable ( |
this one works on the dom passed to it
|
|
RemoveBookThumbnail ( string fileName ) : bool |
|
|
Save ( ) : void | ||
SaveHtml ( |
||
SetBaseForRelativePaths ( |
||
SetBookName ( string name ) : void | ||
TryGetPremadeThumbnail ( string fileName, Image &image ) : bool | ||
UpdateBookFileAndFolderName ( |
||
ValidateBook ( string path ) : string |
Méthode | Description | |
---|---|---|
OnFolderPathChanged ( ) : void |
Méthode | Description | |
---|---|---|
AssertIsAlreadyInitialized ( ) : void | ||
AttemptToReplaceMissingImage ( string missingFile, string pathToFolderOfReplacementImages, IProgress progress ) : bool | ||
EnsureDoesntHaveLinkToStyleSheet ( |
||
EnsureHasLinkToStyleSheet ( |
||
EnsureHasLinksToStylesheets ( |
||
ExpensiveInitialization ( ) : void |
Do whatever is needed to do more than just show a title and thumbnail
|
|
GetBaseForRelativePaths ( string folderPath ) : string | ||
GetImagePathsRelativeToBook ( |
Return the paths, relative to the book folder, of all the images referred to in the element.
|
|
GetNameForATempFileInStorageFolder ( ) : string |
Get a temporary file pathname in the current book's folder. This is needed to ensure proper permissions are granted to the resulting file later after FileUtils.ReplaceFileWithUserInteractionIfNeeded is called. That method may call File.Replace which replaces both the file content and the file metadata (permissions). The result of that if we use the user's temp directory is described in http://issues.bloomlibrary.org/youtrack/issue/BL-3954.
|
|
GetNormalizedPathForOS ( string path ) : string | ||
GetUniqueFolderName ( string parentPath, string name ) : string |
if necessary, append a number to make the subfolder name unique within the given folder
|
|
GetUniqueFolderPath ( string folderPath ) : string |
if necessary, append a number to make the folder path unique
|
|
IsPathReadonly ( string path ) : bool | ||
MakeCssLinksAppropriateForStoredFile ( |
/// Creates a relative path from one file or folder to another. ///
|
|
ProcessAccessDeniedError ( |
||
RemoveDangerousCharacters ( string name ) : string | ||
SanitizeNameForFileSystem ( string name ) : string | ||
Update ( string fileName, string factoryPath = "" ) : void | ||
UpdateSupportFiles ( ) : void |
we update these so that the file continues to look the same when you just open it in firefox
|
|
ValidateBook ( |
public BookStorage ( string folderPath, SIL baseFileLocator, BookRenamedEvent bookRenamedEvent, |
||
folderPath | string | |
baseFileLocator | SIL | |
bookRenamedEvent | BookRenamedEvent | |
collectionSettings | ||
Résultat | System |
public CheckBook ( IProgress progress, string pathToFolderOfReplacementImages = null ) : void | ||
progress | IProgress | |
pathToFolderOfReplacementImages | string | We'll find any matches in the entire folder, regardless of sub-folder name |
Résultat | void |
public static FindBookHtmlInFolder ( string folderPath ) : string | ||
folderPath | string | |
Résultat | string |
public GetBrokenBookRecommendationHtml ( ) : string | ||
Résultat | string |
public static GetHtmlMessageIfVersionIsIncompatibleWithThisBloom ( |
||
dom | ||
path | string | |
Résultat | string |
public GetRelocatableCopyOfDom ( IProgress log ) : |
||
log | IProgress | |
Résultat |
public HandleRetiredXMatterPacks ( |
||
dom | ||
nameOfXMatterPack | string | |
Résultat | string |
public MakeDomRelocatable ( |
||
dom | ||
log | IProgress | |
Résultat |
public RemoveBookThumbnail ( string fileName ) : bool | ||
fileName | string | |
Résultat | bool |
public static SetBaseForRelativePaths ( |
||
dom | ||
folderPath | string | |
Résultat | void |
public TryGetPremadeThumbnail ( string fileName, Image &image ) : bool | ||
fileName | string | |
image | Image | |
Résultat | bool |
public UpdateBookFileAndFolderName ( |
||
collectionSettings | ||
Résultat | void |
public static ValidateBook ( string path ) : string | ||
path | string | |
Résultat | string |