#ifndef __DEMO_TEST_WIDGET_H__
#define __DEMO_TEST_WIDGET_H__
#include "powerpoint.h"
class OfficeContainer;
#include <QAxWidget>
class DemoTestWidget: public QWidget
{
Q_OBJECT
public:
DemoTestWidget(QWidget *parent = NULL);
~DemoTestWidget();
private slots:
void sltBtnOpen();
void sltBtnSelect();
void sltBtnClose();
void sltBtnShowDlg();
protected:
bool eventFilter(QObject *target, QEvent *event);
void paintEvent(QPaintEvent *event);
private:
void initUI();
void initConnect();
QLabel *pLblPath;
QLineEdit *pTxtPath;
QPushButton *pBtnOpen;
QPushButton *pBtnSelect;
QPushButton *pBtnClose;
QComboBox *pComBox;
QPushButton *pBtnShowDlg;
QWidget *pCentrelWgt;
OfficeContainer *pOfficeContainer;
QAxWidget* officeContent;
QString currentFilePath;
PowerPoint::Presentations* presentations;
PowerPoint::Presentation* presentation;
PowerPoint::Slides* slides;
PowerPoint::Slide* slide;
PowerPoint::SlideShowSettings* slideshow;
PowerPoint::SlideShowWindow* slideShowWindow;
PowerPoint::SlideShowView* slideShowView;
int m_index;
int m_currentIndex;
QWidget* m_widget;
PowerPoint::Application *pptApp;
};
#endif