Wiki source code of Office Presentation Viewer

Last modified by Vincent Massol on 2024/11/19 16:13

Show last authors
1 == Community Feedback ==
2
3 {{info}}
4 [Proposal] Gallery macro: http://xwiki.markmail.org/thread/2ik62lcsijdtqpx5
5 [Discussion] Office Presentation Viewer: http://xwiki.markmail.org/thread/a2bgci4z34laliw4
6 {{/info}}
7
8 == Solution 1: Image Gallery ==
9
10 When importing or viewing an office presentation the Open Office server generates an image for each slide. It makes sense to show the presentation slides using an image gallery. Inspired by [[Galleria>>http://galleria.aino.se/]] I made a simple image gallery.
11
12 Let's say we create a wiki page from a presentation file ##wiki30-wysiwyg.odp##. Currently the generated wiki syntax looks like this:
13
14 {{code}}
15 image:wiki30-wysiwyg-slide0.jpg
16
17 image:wiki30-wysiwyg-slide1.jpg
18
19 image:wiki30-wysiwyg-slide2.jpg
20 {{/code}}
21
22 Changing this into:
23
24 {{code}}
25 {{velocity}}
26 $xwiki.ssx.use('OfficePresentationViewer')##
27 $xwiki.jsx.use('OfficePresentationViewer')##
28 {{/velocity}}
29 (% class="gallery" %)(((
30 image:wiki30-wysiwyg-slide0.jpg
31
32 image:wiki30-wysiwyg-slide1.jpg
33
34 image:wiki30-wysiwyg-slide2.jpg
35 )))
36 {{/code}}
37
38 will lead to:
39
40 {{velocity}}
41 $xwiki.ssx.use('OfficePresentationViewer')##
42 $xwiki.jsx.use('OfficePresentationViewer')##
43 {{/velocity}}
44
45 (% class="gallery" %)
46 (((
47 image:wiki30-wysiwyg-slide0.jpg
48
49 image:wiki30-wysiwyg-slide1.jpg
50
51 image:wiki30-wysiwyg-slide2.jpg
52 )))
53
54 The same result can be achieved with the office macro:
55
56 {{code}}
57 {{velocity}}
58 $xwiki.ssx.use('OfficePresentationViewer')##
59 $xwiki.jsx.use('OfficePresentationViewer')##
60 {{/velocity}}
61 (% class="gallery" %)(((
62 {{office attachment="wiki30-wysiwyg.odp"/}}
63 )))
64 {{/code}}

Get Connected