File: slideshow.js

package info (click to toggle)
libreoffice 1%3A4.2.5-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 2,610,340 kB
  • sloc: cpp: 4,073,558; java: 376,402; xml: 229,507; ansic: 77,459; perl: 34,757; python: 29,421; objc: 17,869; yacc: 12,574; sh: 9,058; makefile: 8,891; cs: 6,620; lex: 2,267; asm: 1,514; pascal: 910; awk: 807; lisp: 115; php: 104; csh: 46; sed: 5
file content (33 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function Slideshow() {

    var mSlides = 0;
    var mCurrentSlide;

    var mNotes = [];
    var mPreviews = [];

    this.setLength = function( aLength ) {
        mSlides = aLength;
    }

    this.setCurrentSlide = function( aSlide ) {
        mCurrentSlide = aSlide;
    }

    this.getCurrentSlide = function() {
        return mCurrentSlide;
    }

    this.putPreview = function( aSlide, aImage ) {
        mPreviews[ aSlide ] = aImage;
    }

    this.putNotes = function( aSlide, aNotes ) {
        mNotes[ aSlide ] = aNotes;
    }

    this.getPreview = function( aSlide ) {
        return mPreviews[ aSlide ];
    }

}