Upload
marylou-warren
View
214
Download
0
Embed Size (px)
Citation preview
EBookRibbon
-ribbon : IRibbonUI
+fileToDelete : String[]
+New()
+GetCustomUI(ribbonID:: String)
+Ribbon_Load(ribbonUI: IRibbonUI)
+HtmlSaveAction(control : IRibbonControl)
+EpubSaveAction(control:IRibbonControl)
-getFilenameFromPath(path:String)
-correctPathHTML(path:String)
-correctPathEpub(path:String)
-GetResourceText(resourceName:String)
-getDocumentXmlPart(package:Package)
-getImagePart(docXmlPart:PackagePart)
-copyStream(source:Stream, destiation:Stream)
-cutUri(path:String)
-extractImages(destFolder:String,document:Document)
+rgbIntoHex(int:Integer)
-findWordColorCode(code:Integer)
-readWordDocument(Doc:Document,destinationFolder:String)
EpubCreator
-bookName:String
-imgCount:Integer
-fileImage:
-dirName:String
-dirOebps:String
-dirMetaInf:String
-dirImages:String
-mimeTypeContent:String
-fileMimetype:String
-fileStylesheet:String
-stylesheetContent:String
-fileContainer:String
-fileTitle:String
-titleCount:Integer
-title:String
-fileContentOpf:String
-tocCount:Integer
-fileContentHtml:String
-contentHtml:StreamWriter
-utf8:Encoding
+New(bookName:String,path:String)
+WriteFileFunc(filename:String,content:String)
+AddImageContent(fileImage:String)
+writeText(str:String)
+writeText(textString:String,sizeValue:Integer,colorValue:String,textStyle:String,boldStyle:Boolean,cursiveStyle:Boolean,underlineStyle:Boolean)
+openDivision()
+closeDivision()
+OpenParagraph()
+CloseParagraph()
+insertTab()
+writeSpace()
+writeBlankLine()
+AddContentOpf(filename:String, ending:String)
+FinishTitleContent(fileCover:String)
+contentOpfFinish()
+finishBook()
+ImageFileInsert(ImageData:Image,FilePath:String)
+getImage(pfad:String)
+zipEpub(epubName:String)
HtmlWriter
-path:String
-imageNumber:Integer
-indexType:Integer
-pageNumber:Integer
-linkNumber:Integer
-bookStream:StreamWriter
-bookHtml:String
-indexScriptStream:StreamWriter
-indexScript:String
-indexHtml:String
-bookNameString:String
-utf8:Encoding
-newTitle:Boolean
-bewTitleString:String
-new(bookName:String,pathString:String)
-writeTitle(textString:String,sizeValue:Integer,colorValue:String,textStyle:String, boldStyle:Boolean,cursiveStyle:Boolean,underlineStyle:Boolean,indexTypeValue:Integer)
+newTitleatTheSameSide()
-writeText(textString:String,sizeValue:Integer,colorValue:String,textStyle:String, boldStyle:Boolean,cursiveStyle:Boolean,underlineStyle:Boolean=
-writeLineBrake()
-writeTab()
-writeSpace()
-setImage(imagepath:String,width:Integer:height:Integer,topValue:Integer,leftValue:Integer)
-setImageWithText(imagepath:String,width:Integer,height:Integer,textPosition:String,horizontalSpace:Integer,verticalSpace:Integer)
+nextPage()
-writeIndex(textString:String)
+finishBook()
MyDocument
+paragraphs:MyParagraph[]
+globalFormats:MyFormats[]
+pictures:MyPicture[]
+New(numberOfItems:Integer)
+indexByFormat(format:MyFormat)
+insertPicture(pic:MyPicture)
-picture_pushFront(pic:MyPicture,position:Integer)
-picture_pushBack(pic:MyPicture)
+relateFilenamesToPicture()
+insertFormatByStyle(style:Style)
+insertFormat(format:MyFormat)
MyParagraph
+sentences:MySentence[]
+empty:Boolean[]
+New()
+New(numberOfItems:Integer)
MyFormat
+font:String
+size:Integer
+bold:Boolean
I+talic:Boolean
+Underline:Boolean
+colorCode:String
+formatName:String
+New()
+New(fontName:String,fontSize:Integer, bold:Boolean,italic:Boolean,underline:Boolean,colorCode:String)
+New(word:Range)
+isEqual(aFormat:MyFormat)
MySentence
+words:String[]
+specialChar:Dictionary(Integer,String)
commonFormat:Integer[]
specialFormat:Dictionary(Integer:Integer)
+New()
+New(numberOfItems:Integer)
+cleanArray()
MyPicture
+height:Decimal
+width:Decimal
+toLeft:Decimal
+toTop:Decimal
+page:Integer
+fileName:String
+New(_height:Decimal,_width:Decimal,_toLeft:Decimal,_toTop:Decimal,_page:Integer)
Writer
+writerHtml(title:String,doc:Object,path:String)
+writeEpub(title:String:doc:Object:path:String)
-calcHtmlOutputFont(size:Integer)
-calcLines(fontSize:Integer)
-lineLength(fontSize:Integer)
MyFormat
+font:String
+size:Integer
+bold:Boolean
I+talic:Boolean
+Underline:Boolean
+colorCode:String
+formatName:String
+New()
+New(fontName:String,fontSize:Integer, bold:Boolean,italic:Boolean,underline:Boolean,colorCode:String)
+New(word:Range)
+isEqual(aFormat:MyFormat)