#pragma once
#include <QtWidgets/QMainWindow>
#include "ui_PPT.h"
#include "powerpoint.h"
class OfficeContainer;
#include <QAxWidget>
//static QAxWidget* officeContent;
////当前打开文件的路径
//static QString currentFilePath;
//static PowerPoint::Presentations* presentations;
//static PowerPoint::Presentation* presentation;
//
//static PowerPoint::Slides* slides;
//static PowerPoint::Slide* slide;
//static PowerPoint::SlideShowSettings* slideshow;
//
//static PowerPoint::SlideShowWindows* slideShowWindows;
//static PowerPoint::SlideShowWindow* slideShowWindow =NULL;
//static PowerPoint::SlideShowView* slideShowView;
//
//static PowerPoint::Application *pptApp;
class PPT : public QMainWindow
{
Q_OBJECT
public:
PPT(QWidget *parent = Q_NULLPTR);
public slots:
void onNext();
protected:
bool eventFilter(QObject *target, QEvent *event);
void mousePressEvent(QMouseEvent *event);
private:
Ui::PPTClass ui;
//test
//文档打开控件
QAxWidget* officeContent;
//当前打开文件的路径
QString currentFilePath;
PowerPoint::Presentations* presentations;
PowerPoint::Presentation* presentation;
PowerPoint::Slides* slides;
PowerPoint::Slide* slide;
PowerPoint::SlideShowSettings* slideshow;
PowerPoint::SlideShowWindows* slideShowWindows;
PowerPoint::SlideShowWindow* slideShowWindow;
PowerPoint::SlideShowView* slideShowView;
PowerPoint::Application *pptApp;
QWidget *m_widget;
QWidget* upWidget;
};
PPT.h
最新推荐文章于 2024-01-22 20:23:09 发布