Merge pull request #7206 from Snuffleupagus/viewer-expose-non-classes-on-PDFViewerApplication
Expose a few non-classes on `PDFViewerApplication`
This commit is contained in:
commit
7f90f5bfed
@ -194,6 +194,7 @@ var PDFViewerApplication = {
|
|||||||
pdfRenderingQueue.setThumbnailViewer(this.pdfThumbnailViewer);
|
pdfRenderingQueue.setThumbnailViewer(this.pdfThumbnailViewer);
|
||||||
|
|
||||||
Preferences.initialize();
|
Preferences.initialize();
|
||||||
|
this.preferences = Preferences;
|
||||||
|
|
||||||
this.pdfHistory = new PDFHistory({
|
this.pdfHistory = new PDFHistory({
|
||||||
linkService: pdfLinkService
|
linkService: pdfLinkService
|
||||||
@ -222,10 +223,13 @@ var PDFViewerApplication = {
|
|||||||
|
|
||||||
this.findController.setFindBar(this.findBar);
|
this.findController.setFindBar(this.findBar);
|
||||||
|
|
||||||
|
this.overlayManager = OverlayManager;
|
||||||
|
|
||||||
HandTool.initialize({
|
HandTool.initialize({
|
||||||
container: container,
|
container: container,
|
||||||
toggleHandTool: document.getElementById('toggleHandTool')
|
toggleHandTool: document.getElementById('toggleHandTool')
|
||||||
});
|
});
|
||||||
|
this.handTool = HandTool;
|
||||||
|
|
||||||
this.pdfDocumentProperties = new PDFDocumentProperties({
|
this.pdfDocumentProperties = new PDFDocumentProperties({
|
||||||
overlayName: 'documentPropertiesOverlay',
|
overlayName: 'documentPropertiesOverlay',
|
||||||
@ -261,6 +265,7 @@ var PDFViewerApplication = {
|
|||||||
pageRotateCcw: document.getElementById('pageRotateCcw'),
|
pageRotateCcw: document.getElementById('pageRotateCcw'),
|
||||||
documentPropertiesButton: document.getElementById('documentProperties')
|
documentPropertiesButton: document.getElementById('documentProperties')
|
||||||
});
|
});
|
||||||
|
this.secondaryToolbar = SecondaryToolbar;
|
||||||
|
|
||||||
if (this.supportsFullscreen) {
|
if (this.supportsFullscreen) {
|
||||||
var toolbar = SecondaryToolbar;
|
var toolbar = SecondaryToolbar;
|
||||||
@ -288,6 +293,7 @@ var PDFViewerApplication = {
|
|||||||
passwordSubmit: document.getElementById('passwordSubmit'),
|
passwordSubmit: document.getElementById('passwordSubmit'),
|
||||||
passwordCancel: document.getElementById('passwordCancel')
|
passwordCancel: document.getElementById('passwordCancel')
|
||||||
});
|
});
|
||||||
|
this.passwordPrompt = PasswordPrompt;
|
||||||
|
|
||||||
this.pdfOutlineViewer = new PDFOutlineViewer({
|
this.pdfOutlineViewer = new PDFOutlineViewer({
|
||||||
container: document.getElementById('outlineView'),
|
container: document.getElementById('outlineView'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user