22#ifndef mspresentation_h
23#define mspresentation_h
28#include <tqvaluelist.h>
51class KPrMSPresentation
55 KPrMSPresentation( KPrDocument *_doc, KPrView *_view );
56 KPrMSPresentation(
const KPrMSPresentation &msPres );
58 void setTitle(
const TQString &_title )
60 void setBackColour(
const TQColor &_backColour )
61 { backColour = _backColour; }
62 void setTextColour(
const TQColor &_textColour )
63 { textColour = _textColour; }
64 void setPath(
const TQString &_path )
67 TQString getTitle()
const {
return title; }
68 TQColor getBackColour()
const {
return backColour; }
69 TQColor getTextColour()
const {
return textColour; }
70 TQString getPath()
const {
return path; }
75 TQValueList<SlideInfo> getSlideInfos()
const {
return slideInfos; }
77 int initSteps()
const {
return 7; }
78 int slidesSteps() {
return slideInfos.count(); }
79 int indexFileSteps()
const {
return 4 + slideInfos.count(); }
81 void initCreation( KProgress *progressBar );
82 void createSlidesPictures( KProgress *progressBar );
83 void createIndexFile( KProgress *progressBar );
92 TQValueList<SlideInfo> slideInfos;
93 TQColor backColour, textColour;
99class KPrMSPresentationSetup :
public TQDialog
105 KPrMSPresentationSetup( KPrDocument *_doc, KPrView *_view );
106 ~KPrMSPresentationSetup();
108 static void createMSPresentation( KPrDocument *_doc, KPrView *_view );
113 KPrMSPresentation msPres;
116 KColorButton *textColour, *backColour;
117 TQGroupBox *colourGroup;
118 TQVBoxLayout *mainLayout;
122 void slotChoosePath(
const TQString &);
123 virtual void finish();
124 virtual void helpMe();
125 void showColourGroup(
bool on);
128class KPrMSPresentationCreateDialog :
public TQDialog
134 KPrMSPresentationCreateDialog( KPrDocument *_doc, KPrView *_view,
const KPrMSPresentation &_msPres );
135 ~KPrMSPresentationCreateDialog();
137 static void createMSPresentation( KPrDocument *_doc, KPrView *_view,
const KPrMSPresentation &_msPres );
142 void createSlidesPictures();
143 void createIndexFile();
147 void resizeEvent( TQResizeEvent *e );
151 KPrMSPresentation msPres;
153 KProgress *progressBar;
154 TQLabel *step1, *step2, *step3;