diff --git a/Makefile.am b/Makefile.am
index af82f57d..7e30a16c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -144,6 +144,7 @@ install:
$(INSTALL) -D static/js/libs/require/require.js $(SHARE)/www/static/js/libs/require/require.js
$(INSTALL) $(OUTPUT_JS)/*.js $(SHARE)/www/static/js
$(INSTALL) $(OUTPUT_JS)/libs/pdf/*.js $(SHARE)/www/static/js/libs/pdf
+ $(INSTALL) -D static/js/libs/webodf.js $(SHARE)/www/static/js/libs/webodf.js
clean:
GOPATH=$(GOPATH) $(GO) clean -i $(PKG)
diff --git a/src/styles/components/_presentation.scss b/src/styles/components/_presentation.scss
index 00728fe2..89138b34 100644
--- a/src/styles/components/_presentation.scss
+++ b/src/styles/components/_presentation.scss
@@ -78,6 +78,22 @@
display: block;
margin: 0 auto;
}
+ .odfcanvas {
+ user-select: none;
+ cursor: default;
+ body {
+ background-color: transparent;
+ }
+ }
+ .odfcontainer {
+ display: none;
+ padding: 0;
+ margin: 0;
+ }
+ .odfcontainer.showonepage {
+ overflow: hidden;
+ text-align: center;
+ }
}
.presentation .overlaybar {
diff --git a/static/js/directives/directives.js b/static/js/directives/directives.js
index ef9bbb0a..e2798a8a 100644
--- a/static/js/directives/directives.js
+++ b/static/js/directives/directives.js
@@ -39,7 +39,8 @@ define([
'directives/contactrequest',
'directives/defaultdialog',
'directives/pdfcanvas',
- 'directives/presentation'], function(_, onEnter, onEscape, statusMessage, buddyList, buddyPicture, settings, chat, audioVideo, usability, audioLevel, fileInfo, screenshare, roomBar, socialShare, page, contactRequest, defaultDialog, pdfcanvas, presentation) {
+ 'directives/odfcanvas',
+ 'directives/presentation'], function(_, onEnter, onEscape, statusMessage, buddyList, buddyPicture, settings, chat, audioVideo, usability, audioLevel, fileInfo, screenshare, roomBar, socialShare, page, contactRequest, defaultDialog, pdfcanvas, odfcanvas, presentation) {
var directives = {
onEnter: onEnter,
@@ -60,6 +61,7 @@ define([
contactRequest: contactRequest,
defaultDialog: defaultDialog,
pdfcanvas: pdfcanvas,
+ odfcanvas: odfcanvas,
presentation: presentation
};
diff --git a/static/js/directives/odfcanvas.js b/static/js/directives/odfcanvas.js
new file mode 100644
index 00000000..96b24691
--- /dev/null
+++ b/static/js/directives/odfcanvas.js
@@ -0,0 +1,274 @@
+/*
+ * Spreed WebRTC.
+ * Copyright (C) 2013-2014 struktur AG
+ *
+ * This file is part of Spreed WebRTC.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see
b?1:2048>b?2:65536>b?3:4;d=new h.Buf8(n);for(e=f=0;f {{_('Supported formats are PDF documents and OpenDocument files.')}} {{_('Documents are shared with everyone in this call.')}} {{_('You can drag files here too.')}}>3;f-=q;t-=q<<3;b.next_in=f;b.next_out=r;b.avail_in=f
t;t++)D[t+1]=D[t]+Y[t];for(u=0;u
{{_('Loading presentation ...')}}
{{_('Please upload a PDF document')}}
+ {{_('Please upload a document')}}