Lines Matching refs:slides

64 var slides = new Array();
244 // Gathering all the information about the transitions and effects of the slides, set the background
252 slides[counter] = new Object();
253 slides[counter]["original_element"] = originalNode;
254 slides[counter]["element"] = node;
257 slides[counter]["transitionIn"] = new Object();
266 slides[counter]["transitionIn"]["name"] = dict["name"];
267 slides[counter]["transitionIn"]["options"] = new Object();
271 slides[counter]["transitionIn"]["options"][key] = dict[key];
274 slides[counter]["transitionOut"] = new Object();
281 slides[counter]["transitionOut"]["name"] = dict["name"];
282 slides[counter]["transitionOut"]["options"] = new Object();
286 slides[counter]["transitionOut"]["options"][key] = dict[key];
392 slides[counter]["viewGroup"] = node.appendChild(viewGroup);
406 slides[counter]["viewGroup"].insertBefore(rectNode, slides[counter]["viewGroup"].firstChild);
415 slides[counter]["viewGroup"].setAttribute("transform", matrixOld.toAttribute());
416 slides[counter].initialView = matrixOld.toAttribute();
425 matrixOld = pointMatrixToTransformation(rectToMatrix(element)).mult((new matrixSVG()).fromSVGMatrix(slides[counter].viewGroup.getScreenCTM()).inv().mult((new matrixSVG()).fromSVGMatrix(element.parentNode.getScreenCTM())).inv());
426 slides[counter].initialView = matrixOld.toAttribute();
434 effectDict["element"] = slides[counter]["viewGroup"];
448 effectDict["options"]["matrixNew"] = pointMatrixToTransformation(rectToMatrix(element)).mult((new matrixSVG()).fromSVGMatrix(slides[counter].viewGroup.getScreenCTM()).inv().mult((new matrixSVG()).fromSVGMatrix(element.parentNode.getScreenCTM())).inv());
478 slides[counter]["effects"] = new Array();
483 slides[counter]["effects"][slides[counter]["effects"].length] = tempEffects[effectCounter];
542 if ((activeEffect < 0) || (!slides[activeSlide].effects))
546 else if (activeEffect > slides[activeSlide].effects.length)
548 activeEffect = slides[activeSlide].effects.length;
565 * @param numberOfSlides number of slides in the presentation
611 if (slides[activeSlide]["effects"] && (((dir == 1) && (activeEffect < slides[activeSlide]["effects"].length)) || ((dir == -1) && (activeEffect > 0))))
617 effectArray = slides[activeSlide]["effects"][activeEffect];
623 effectArray = slides[activeSlide]["effects"][activeEffect];
631 else if (((dir == 1) && (activeSlide < (slides.length - 1))) || (((dir == -1) && (activeSlide > 0))))
637 /** Function to skip effects and directly either put the slide into start or end state or change slides.
643 if (slides[activeSlide]["effects"] && (((dir == 1) && (activeEffect < slides[activeSlide]["effects"].length)) || ((dir == -1) && (activeEffect > 0))))
647 if (slides[activeSlide]["effects"] && (dir == 1))
648 activeEffect = slides[activeSlide]["effects"].length;
659 else if (((dir == 1) && (activeSlide < (slides.length - 1))) || (((dir == -1) && (activeSlide > 0))))
665 /** Function to change between slides.
677 effectArray[0]["effect"] = slides[activeSlide]["transitionOut"]["name"];
678 effectArray[0]["options"] = slides[activeSlide]["transitionOut"]["options"];
683 effectArray[0]["effect"] = slides[activeSlide]["transitionIn"]["name"];
684 effectArray[0]["options"] = slides[activeSlide]["transitionIn"]["options"];
687 effectArray[0]["element"] = slides[activeSlide]["element"];
696 effectArray[1]["effect"] = slides[activeSlide]["transitionIn"]["name"];
697 effectArray[1]["options"] = slides[activeSlide]["transitionIn"]["options"];
702 effectArray[1]["effect"] = slides[activeSlide]["transitionOut"]["name"];
703 effectArray[1]["options"] = slides[activeSlide]["transitionOut"]["options"];
707 effectArray[1]["element"] = slides[activeSlide]["element"];
709 if (slides[activeSlide]["effects"] && (dir == -1))
710 activeEffect = slides[activeSlide]["effects"].length;
740 for (var counter = 0; counter < slides.length; counter++)
742 slides[counter]["element"].setAttribute("transform","scale(1)");
746 slides[counter]["element"].style.display = "inherit";
747 slides[counter]["element"].setAttribute("opacity",1);
752 slides[counter]["element"].setAttribute("opacity",0);
753 slides[counter]["element"].style.display = "none";
832 else if (offsetNumber >= slides.length)
833 offsetNumber = slides.length - 1;
835 for (var counter = 0; counter < slides.length; counter++)
839 slides[counter]["element"].setAttribute("opacity",0);
840 slides[counter]["element"].style.display = "none";
847 slides[counter]["element"].setAttribute("transform","scale("+1/INDEX_COLUMNS+") translate("+offsetX+","+offsetY+")");
848 slides[counter]["element"].style.display = "inherit";
849 slides[counter]["element"].setAttribute("opacity",0.5);
866 if (nbr >= slides.length)
867 nbr = slides.length - 1;
871 slides[activeSlide]["element"].setAttribute("opacity",0);
872 slides[activeSlide]["element"].style.display = "none";
877 slides[activeSlide]["element"].style.display = "inherit";
878 slides[activeSlide]["element"].setAttribute("opacity",1);
890 if (nbr >= slides.length)
891 nbr = slides.length - 1;
895 slides[activeSlide]["element"].setAttribute("opacity",0.5);
900 slides[activeSlide]["element"].setAttribute("opacity",1);
918 if (nbr >= slides.length)
919 nbr = slides.length - 1;
1042 keyCodeDict[SLIDE_MODE][END_KEY] = function() { return slideSetActiveSlide(slides.length - 1); };
1052 keyCodeDict[INDEX_MODE][END_KEY] = function() { return indexSetPageSlide(slides.length - 1); };
1290 // Suspend redraw since we are going to mess with the slides.
1297 for (var counterSlides = 0; counterSlides < slides.length; counterSlides++)
1305 if (slides[counterSlides].effects)
1307 maxEffect = slides[counterSlides].effects.length;
1310 exportNode = slides[counterSlides].element.cloneNode(true);
1312 exportNode.setAttributeNS(NSS["inkscape"], "label", "slide_" + padString((counterSlides + 1).toString(), slides.length.toString().length) + "_effect_" + padString("0", maxEffect.toString().length));
1316 if (slides[counterSlides]["effects"])
1318 for (var counter = 0; counter < slides[counterSlides]["effects"].length; counter++)
1320 for (var subCounter = 0; subCounter < slides[counterSlides]["effects"][counter].length; subCounter++)
1322 var effect = slides[counterSlides]["effects"][counter][subCounter];
1333 var layerName = "slide_" + padString((counterSlides + 1).toString(), slides.length.toString().length) + "_effect_" + padString((counter + 1).toString(), maxEffect.toString().length);
1334 exportNode = slides[counterSlides].element.cloneNode(true);
1473 slides[activeSlide]["original_element"].appendChild(mouse_original_path);
1483 if (slides[activeSlide]["viewGroup"])
1484 slides[activeSlide]["viewGroup"].appendChild(mouse_presentation_path);
1486 slides[activeSlide]["element"].appendChild(mouse_presentation_path);
1627 var matrix = slides[activeSlide]["element"].getTransformToElement(ROOT_NODE);
1629 if (slides[activeSlide]["viewGroup"])
1630 matrix = slides[activeSlide]["viewGroup"].getTransformToElement(ROOT_NODE);
1652 var tempString = slides[activeSlide]["viewGroup"].getAttribute("transform");
1879 slides[slide]["viewGroup"].setAttribute("transform", slides[slide].initialView);
1881 if (slides[slide]["effects"])
1885 for (var counter = 0; counter < slides[slide]["effects"].length; counter++)
1887 for (var subCounter = 0; subCounter < slides[slide]["effects"][counter].length; subCounter++)
1889 var effect = slides[slide]["effects"][counter][subCounter];
1903 for (var counter = slides[slide]["effects"].length - 1; counter >= 0; counter--)
1905 for (var subCounter = 0; subCounter < slides[slide]["effects"][counter].length; subCounter++)
1907 var effect = slides[slide]["effects"][counter][subCounter];
1923 for (var counter = 0; counter < slides[slide]["effects"].length && counter < state; counter++)
1925 for (var subCounter = 0; subCounter < slides[slide]["effects"][counter].length; subCounter++)
1927 var effect = slides[slide]["effects"][counter][subCounter];
2112 else if (value >= slides.length - 1)
2121 value /= (slides.length - 2);
2124 var w = WIDTH / (slides.length - 2);
2180 var matrix = slides[activeSlide]["element"].getScreenCTM();
2182 if (slides[activeSlide]["viewGroup"])
2183 matrix = slides[activeSlide]["viewGroup"].getScreenCTM();
2237 substituteAutoTexts(g, "Whiteboard " + number_of_added_slides, "W" + number_of_added_slides, slides.length);
2283 var node = slides[after_slide]["element"];
2305 node = slides[after_slide]["original_element"];
2318 before_new_slide = slides.slice(0, after_slide + 1);
2319 after_new_slide = slides.slice(after_slide + 1);
2320 slides = before_new_slide.concat(new_slide, after_new_slide);
2322 //resetting the counter attributes on the slides that follow the new slide...
2323 for (var counter = after_slide+2; counter < slides.length; counter++)
2325 slides[counter]["element"].setAttribute("onmouseover", "if ((currentMode == INDEX_MODE) && ( activeSlide != " + counter + ")) { indexSetActiveSlide(" + counter + "); };");