C# Class SimpleEpub2.MainForm

Inheritance: DevComponents.DotNetBar.Metro.MetroForm, AutoUpdater.AutoUpdatable
显示文件 Open project: henryxrl/SimpleEpub2

Public Methods

Method Description
MainForm ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

清理所有正在使用的资源。

OnTitlebarClick ( Point pos ) : void
WndProc ( Message &m ) : void

Private Methods

Method Description
ApplyAlphaMask ( Bitmap bmp, Bitmap alphaMaskImage ) : void
ClickToSelect ( object sender, EventArgs e ) : void
CountStringOccurrences ( String text, String pattern ) : Int32
CreateFontSubSetB ( ) : void
CreateFontSubSetT ( ) : void
DrawNotePic ( Int32 width, Int32 height, String word, String bodyfont ) : Image
DrawText ( Int32 width, Int32 height, System.Boolean vertical, String bookfont, String authorfont ) : Image
Extract ( String outDirectory, String internalFilePath, String resourceName ) : void
FormHelpButtonClick ( object sender, EventArgs e ) : void
FormHelpButtonClicked ( object sender, EventArgs e ) : void
FormSettingsButtonClick ( object sender, EventArgs e ) : void
GetDeviceCaps ( IntPtr hDC, int nIndex ) : int
GetEncoderInfo ( String mimeType ) : System.Drawing.Imaging.ImageCodecInfo
HTMLHead ( String chapterTitle, String picName, Int32 flag ) : String
HexConverter ( System c ) : String
InitializeComponent ( ) : void

设计器支持所需的方法 - 不要 使用代码编辑器修改此方法的内容。

MainForm_Load ( object sender, EventArgs e ) : void
RadialMenuItemClick ( object sender, EventArgs e ) : void
ReplaceFirst ( String text, String search, String replace ) : String
SaveJpeg ( String path, Image img, Int32 quality ) : void
SavePng ( String path, Image img, Int32 quality ) : void
TOCRadialMenu1ItemClick ( object sender, EventArgs e ) : void
TOCRadialMenu2ItemClick ( object sender, EventArgs e ) : void
TOCRadialMenu3ItemClick ( object sender, EventArgs e ) : void
TOC_button1_Click ( object sender, EventArgs e ) : void
TOC_button2_Click ( object sender, EventArgs e ) : void
TOC_clear_Click ( object sender, EventArgs e ) : void
TOC_export_Click ( object sender, EventArgs e ) : void
TOC_import_Click ( object sender, EventArgs e ) : void
TOC_list_DragDrop ( object sender, DragEventArgs e ) : void
ToSBC ( String input ) : String
addStringToUInt16CollectionB ( String s ) : void
addStringToUInt16CollectionT ( String s ) : void
appendFootNotes ( String>.Queue &footNoteQueuePost, StringBuilder &html ) : void
clearOverLay ( ) : void
clearTOC ( ) : void
clear_TOC ( ) : void
copyImageFile ( System.Boolean vertical, String bookfont, String authorfont ) : System.Boolean
cover_author_textbox_TextChanged ( object sender, EventArgs e ) : void
cover_bookname_textbox_TextChanged ( object sender, EventArgs e ) : void
cover_picturebox_DoubleClick ( object sender, EventArgs e ) : void
cover_picturebox_DragDrop ( object sender, DragEventArgs e ) : void
cover_picturebox_MouseClick ( object sender, MouseEventArgs e ) : void
crop ( String tempIMGNamePart1 ) : void
deleteAllTempFiles ( ) : void
disableAOT ( ) : void
enableAOT ( ) : void
epubWorker_DoWork ( object sender, System e ) : void
epubWorker_ProgressChanged ( object sender, System e ) : void
epubWorker_RunWorkerCompleted ( object sender, System e ) : void
eventToRedrawCover ( Int32 flag ) : void
exportTOC ( ) : void
generateCSS ( System.Boolean vertical, System.Single marginL, System.Single marginR, System.Single marginT, System.Single marginB, System.Single lineHeight, System.Boolean addParagraphSpacing, String titleFont, System titleColorC, String bodyFont, System bodyColorC, System pageColor, System.Boolean embedFontSubset ) : void
generateCoverFromFilePath ( ) : void
generateEpub ( ) : void
generateHTML ( System.Boolean coverFirstPage, Int32 translation, System.Boolean vertical, System.Boolean replace, System.Boolean embedFontSubset, System.Boolean dropCap, System.Boolean stickupCap ) : System.Boolean
generateMobi ( ) : void
generateNCX ( System.Boolean coverFirstPage, System.Boolean coverNoTOC, Int32 translation, System.Boolean replace ) : void
generateNotePic ( ) : void
generateOPF ( System.Boolean coverFirstPage, Int32 translation, System.Boolean vertical, System.Boolean embedFontSubset ) : void
generateTempCovers ( ) : void
getBookNameAndAuthorInfo ( String path, String filename ) : List
getDPI ( ) : Single>.Tuple
getINILanguage ( ) : String
getIntroInfo ( String path ) : String
getProcessTime ( ) : Double
getProcessTimeSoFar ( ) : Double
getROOTPath ( ) : String
getTOCPath ( ) : String
importTOC ( String TOCPath ) : void
linkFootNote ( String &nextLine, Int32>.Queue &footNoteQueuePre, String>.Queue &footNoteQueuePost ) : void
loadNewTOC ( ) : System.Boolean
manualTextWrap ( String s, Int32 length, System.Boolean vertical ) : String
newbook_button_Click ( object sender, EventArgs e ) : void
next_button_Click ( object sender, EventArgs e ) : void
notifyIcon1_DoubleClick ( object sender, EventArgs e ) : void
numberToHan ( String nextLine ) : String
previous_button_Click ( object sender, EventArgs e ) : void
processCover ( String file ) : void
processFirstLine ( String s ) : String>.Tuple
processTXT ( String file ) : void
processTXTWorker_DoWork ( object sender, System e ) : void
processTXTWorker_ProgressChanged ( object sender, System e ) : void
processTXTWorker_RunWorkerCompleted ( object sender, System e ) : void
resetPages ( ) : void
scaleFont ( Graphics g, String s, Font f, RectangleF r, StringFormat fm ) : Font
setAbout ( System.Boolean show ) : void
setLANG ( ) : void
setPage1 ( ) : void
setPage2 ( ) : void
setPage3 ( ) : void
setSettings ( System.Boolean show ) : void
setSubPages ( System.Boolean firstTime ) : void
setTitleFontSize ( Int32 len, Int32 width, String s, System.Boolean vertical ) : Int32>.Tuple
showBalloonTip ( String title, String text ) : void
storeFootNoteLocation ( String &nextLine, Int32>.Queue &footNoteQueuePre, Int32 &chapterFootNoteCount, Int32 flag, System.Boolean &titleHasFootNote ) : void
sts_IsOpenChanged ( object sender, EventArgs e ) : void
sts_pg1_settings1_3_vertical_ValueChanged ( object sender, EventArgs e ) : void
sts_pg2_settings2_3_authornamefont_TextChanged ( object sender, EventArgs e ) : void
sts_pg2_settings2_3_booknamefont_TextChanged ( object sender, EventArgs e ) : void
sts_pg4_settings4_3_reset_button_Click ( object sender, EventArgs e ) : void
sts_pg4_settings4_4_chkupd_button_Click ( object sender, EventArgs e ) : void
toostripmenu1_show_Click ( object sender, EventArgs e ) : void
toostripmenu2_exit_Click ( object sender, EventArgs e ) : void
translate ( String s, Int32 translation ) : String
translationState ( System.Boolean StT, System.Boolean TtS ) : Int32
txt_picturebox_DoubleClick ( object sender, EventArgs e ) : void
txt_picturebox_DragDrop ( object sender, DragEventArgs e ) : void

Method Details

Dispose() protected method

清理所有正在使用的资源。
protected Dispose ( bool disposing ) : void
disposing bool 如果应释放托管资源,为 true;否则为 false。
return void

MainForm() public method

public MainForm ( ) : System
return System

OnTitlebarClick() protected method

protected OnTitlebarClick ( Point pos ) : void
pos Point
return void

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void