Add basic start/stop slideshow capability (that doesn't stop properly with openoffice...
[kworship.git] / unipresent / openoffice.org / UpOoPresentation.h
blobdf958d42fd4137274805ccb1bc35dafba9d11651
1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, see <http://www.gnu.org/licenses/>. *
17 ***************************************************************************/
19 #ifndef _UpOoPresentation_h_
20 #define _UpOoPresentation_h_
22 /**
23 * @file UpOoPresentation.h
24 * @brief OpenOffice.org presentation.
25 * @author James Hogan <james@albanarts.com>
28 #include "UpPresentation.h"
30 #include <com/sun/star/uno/Reference.h>
31 #include <com/sun/star/uno/XInterface.hpp>
33 using namespace com::sun::star;
35 /// OpenOffice.org presentation.
36 class UpOoPresentation : public UpPresentation
38 Q_OBJECT
39 public:
42 * Constructors + destructor
45 /// Primary constructor.
46 UpOoPresentation(uno::XInterface* interface, QObject* parent = 0);
48 /// Destructor.
49 virtual ~UpOoPresentation();
52 * Main interface
55 virtual void close();
57 virtual QUrl url() const;
60 * Slides
63 virtual int numSlides();
65 virtual UpSlide* slide(int);
68 * Slideshow control
71 virtual void startSlideshow();
73 virtual void stopSlideshow();
75 private:
78 * Variables
81 /// An interface to the document.
82 uno::Reference<uno::XInterface> m_interface;
84 /// The file's URL.
85 QUrl m_url;
88 #endif // _UpOoPresentation_h_