C# 클래스 Bloom.Edit.EditingView

파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 메소드들

메소드 설명
AddMessageEventListener ( string eventName, Action action ) : void
CleanHtmlAndCopyToPageDom ( ) : void

this started as an experiment, where our textareas were not being read when we saved because of the need to change the picture

ClearOutDisplay ( ) : void
EditingView ( EditingModel model, PageListView pageListView, CutCommand cutCommand, CopyCommand copyCommand, PasteCommand pasteCommand, UndoCommand undoCommand, DuplicatePageCommand duplicatePageCommand, DeletePageCommand deletePageCommand, NavigationIsolator isolator, ControlKeyEvent controlKeyEvent ) : System
GetInstructionsForUnlockingBook ( ) : string
GetPageBody ( ) : GeckoElement
GetShowToolboxCheckbox ( ) : GeckoInputElement
OnVisibleChanged ( bool visible ) : void

this is called by our model, as a result of a "SelectedTabChangedEvent". So it's a lot more reliable than the normal winforms one.

RemoveMessageEventListener ( string eventName ) : void
ShowAddPageDialog ( ) : void
UpdateButtonLocalizations ( ) : void
UpdateDisplay ( ) : void
UpdateEditButtons ( ) : void
UpdatePageList ( bool emptyThumbnailCache ) : void
UpdateSingleDisplayedPage ( IPage page ) : void
UpdateThumbnailAsync ( IPage page ) : void

보호된 메소드들

메소드 설명
OnLoad ( EventArgs e ) : void
OnParentChanged ( EventArgs e ) : void

비공개 메소드들

메소드 설명
AddDropdownItemSafely ( ToolStripDropDownButton button, string text ) : ToolStripMenuItem

Add a menu item to a dropdown button and return it. Avoid creating a ToolStripSeparator instead of a ToolStripMenuItem even for a hyphen.

See https://silbloom.myjetbrains.com/youtrack/issue/BL-3796.

BackgroundColorsForLinux ( ) : void
CheckFontAvailablility ( ) : void
CheckIfLockedAndWarn ( string imagePath ) : bool

Returns true if it is either: a) OK to change images, or b) user overrides Returns false if user cancels message box

CopyImageToClipboard ( DomEventArgs ge, string bookFolderPath ) : bool
CycleEditButtons ( ) : void
CycleOneButton ( Button button, Command command ) : void
ExecuteCommandSafely ( Command cmdObject ) : void
GetImageFromClipboard ( ) : PalasoImage
GetImageNode ( DomEventArgs ge ) : GeckoHtmlElement
HandleControlKeyEvent ( object keyData ) : void
OnBrowserFocusChanged ( object sender, GeckoDomEventArgs e ) : void
OnChangeImage ( DomEventArgs ge ) : void
OnContentLanguageDropdownItem_CheckedChanged ( object sender, EventArgs e ) : void
OnCopyImage ( DomEventArgs ge ) : void
OnCutImage ( DomEventArgs ge ) : void
OnEditImageMetdata ( DomEventArgs ge ) : void
OnGeckoReady ( object sender, EventArgs e ) : void
OnPaperSizeAndOrientationMenuClick ( object sender, EventArgs e ) : void
OnPasteImage ( DomEventArgs ge ) : void
OnShowBookMetadataEditor ( ) : void
ParentForm_Activated ( object sender, EventArgs e ) : void
RememberSourceTabChoice ( GeckoHtmlElement target ) : void
RepositionButtonsForMono ( ) : void
RunJavaScript ( string script ) : string
SaveChangedImage ( GeckoHtmlElement imageElement, PalasoImage imageInfo, string exceptionMsg ) : void
SetModalState ( string isModal ) : void

Prevent navigation while a dialog box is showing in the browser control

SetTranslationPanelVisibility ( ) : void
SetupBrowserContextMenu ( ) : void
SetupThumnailLists ( ) : void
ShouldBailOutBecauseUserAgreedNotToUseJpeg ( PalasoImage imageInfo ) : bool
ShowChangeLayoutDialog ( IPage page ) : void
UpdateButtonEnabled ( Button button, Command command ) : void
VisibleNowAddSlowContents ( object sender, EventArgs e ) : void
WebBrowser_DocumentCompleted ( object sender, EventArgs e ) : void

Flag the PageSelection object that the current (former?) page selection has completed, so it's safe to select another page now.

WebBrowser_ReadyStateChanged ( object sender, EventArgs e ) : void
_browser1_OnBrowserClick ( object sender, EventArgs e ) : void
_copyButton_Click ( object sender, EventArgs e ) : void
_cutButton_Click ( object sender, EventArgs e ) : void
_deletePageButton_Click_1 ( object sender, EventArgs e ) : void
_duplicatePageButton_Click ( object sender, EventArgs e ) : void
_editButtonsUpdateTimer_Tick ( object sender, EventArgs e ) : void
_handleMessageTimer_Tick ( object sender, EventArgs e ) : void
_pasteButton_Click ( object sender, EventArgs e ) : void
_undoButton_Click ( object sender, EventArgs e ) : void

메소드 상세

AddMessageEventListener() 공개 메소드

public AddMessageEventListener ( string eventName, Action action ) : void
eventName string
action Action
리턴 void

CleanHtmlAndCopyToPageDom() 공개 메소드

this started as an experiment, where our textareas were not being read when we saved because of the need to change the picture
public CleanHtmlAndCopyToPageDom ( ) : void
리턴 void

ClearOutDisplay() 공개 메소드

public ClearOutDisplay ( ) : void
리턴 void

EditingView() 공개 메소드

public EditingView ( EditingModel model, PageListView pageListView, CutCommand cutCommand, CopyCommand copyCommand, PasteCommand pasteCommand, UndoCommand undoCommand, DuplicatePageCommand duplicatePageCommand, DeletePageCommand deletePageCommand, NavigationIsolator isolator, ControlKeyEvent controlKeyEvent ) : System
model EditingModel
pageListView PageListView
cutCommand CutCommand
copyCommand CopyCommand
pasteCommand PasteCommand
undoCommand UndoCommand
duplicatePageCommand DuplicatePageCommand
deletePageCommand DeletePageCommand
isolator NavigationIsolator
controlKeyEvent ControlKeyEvent
리턴 System

GetInstructionsForUnlockingBook() 공개 정적인 메소드

public static GetInstructionsForUnlockingBook ( ) : string
리턴 string

GetPageBody() 공개 메소드

public GetPageBody ( ) : GeckoElement
리턴 GeckoElement

GetShowToolboxCheckbox() 공개 메소드

public GetShowToolboxCheckbox ( ) : GeckoInputElement
리턴 GeckoInputElement

OnLoad() 보호된 메소드

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

OnParentChanged() 보호된 메소드

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

OnVisibleChanged() 공개 메소드

this is called by our model, as a result of a "SelectedTabChangedEvent". So it's a lot more reliable than the normal winforms one.
public OnVisibleChanged ( bool visible ) : void
visible bool
리턴 void

RemoveMessageEventListener() 공개 메소드

public RemoveMessageEventListener ( string eventName ) : void
eventName string
리턴 void

ShowAddPageDialog() 공개 메소드

public ShowAddPageDialog ( ) : void
리턴 void

UpdateButtonLocalizations() 공개 메소드

public UpdateButtonLocalizations ( ) : void
리턴 void

UpdateDisplay() 공개 메소드

public UpdateDisplay ( ) : void
리턴 void

UpdateEditButtons() 공개 메소드

public UpdateEditButtons ( ) : void
리턴 void

UpdatePageList() 공개 메소드

public UpdatePageList ( bool emptyThumbnailCache ) : void
emptyThumbnailCache bool
리턴 void

UpdateSingleDisplayedPage() 공개 메소드

public UpdateSingleDisplayedPage ( IPage page ) : void
page IPage
리턴 void

UpdateThumbnailAsync() 공개 메소드

public UpdateThumbnailAsync ( IPage page ) : void
page IPage
리턴 void