public class DOCXDocumentController extends PageableDocumentController
| Constructor and Description |
|---|
DOCXDocumentController(DocumentViewer documentViewer) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferPages(int currentPageNum) |
void |
closeDocument() |
IDocument |
getActiveDocument() |
String |
getFileName() |
IPage |
getPage(int index) |
int |
getPageCount() |
List<IPage> |
getPages() |
boolean |
isDocumentLoaded() |
void |
loadDocument(InputStream inputStream,
String password,
List<DocumentListener> documentListeners) |
void |
loadDocument(String fileName,
String password,
List<DocumentListener> documentListeners) |
void |
renderingSettingsChanged(RenderingSettings renderingSettings) |
public DOCXDocumentController(DocumentViewer documentViewer)
public void closeDocument()
throws IOException
closeDocument in class PageableDocumentControllerIOExceptionpublic IDocument getActiveDocument()
getActiveDocument in class PageableDocumentControllerpublic String getFileName()
getFileName in class PageableDocumentControllerpublic int getPageCount()
throws XDocException
getPageCount in class PageableDocumentControllerXDocExceptionpublic List<IPage> getPages()
getPages in class PageableDocumentControllerpublic boolean isDocumentLoaded()
isDocumentLoaded in class PageableDocumentControllerpublic void loadDocument(String fileName, String password, List<DocumentListener> documentListeners) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in class PageableDocumentControllerFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic void loadDocument(InputStream inputStream, String password, List<DocumentListener> documentListeners) throws FormatNotSupportedException, IncorrectPasswordException, XDocException, IOException
loadDocument in class PageableDocumentControllerFormatNotSupportedExceptionIncorrectPasswordExceptionXDocExceptionIOExceptionpublic IPage getPage(int index) throws XDocException
getPage in class PageableDocumentControllerXDocExceptionpublic void bufferPages(int currentPageNum)
bufferPages in class PageableDocumentControllerpublic void renderingSettingsChanged(RenderingSettings renderingSettings)
renderingSettingsChanged in class PageableDocumentController