20#include "KPrViewIface.h"
25#include "KPrDocument.h"
27#include <tdeapplication.h>
28#include <dcopclient.h>
30KPrViewIface::KPrViewIface( KPrView *view_ )
31 : KoViewIface( view_ )
36void KPrViewIface::editCut()
41void KPrViewIface::editCopy()
46void KPrViewIface::editPaste()
51void KPrViewIface::editDelete()
56void KPrViewIface::editSelectAll()
58 view->editSelectAll();
61void KPrViewIface::editDuplicatePage()
63 view->editDuplicatePage();
66void KPrViewIface::editDelPage()
71void KPrViewIface::editFind()
76void KPrViewIface::editReplace()
81void KPrViewIface::newView()
86void KPrViewIface::insertPage()
91void KPrViewIface::insertPicture()
93 view->insertPicture();
96void KPrViewIface::toolsMouse()
101void KPrViewIface::toolsLine()
106void KPrViewIface::toolsRectangle()
108 view->toolsRectangle();
111void KPrViewIface::toolsCircleOrEllipse()
113 view->toolsCircleOrEllipse();
116void KPrViewIface::toolsPie()
121void KPrViewIface::toolsText()
126void KPrViewIface::toolsAutoform()
128 view->toolsAutoform();
131void KPrViewIface::toolsDiagramm()
133 view->toolsDiagramm();
136void KPrViewIface::toolsTable()
141void KPrViewIface::toolsFormula()
143 view->toolsFormula();
146void KPrViewIface::toolsObject()
151void KPrViewIface::toolsFreehand()
153 view->toolsFreehand();
156void KPrViewIface::toolsPolyline()
158 view->toolsPolyline();
161void KPrViewIface::toolsQuadricBezierCurve()
163 view->toolsQuadricBezierCurve();
166void KPrViewIface::toolsCubicBezierCurve()
168 view->toolsCubicBezierCurve();
171void KPrViewIface::toolsConvexOrConcavePolygon()
173 view->toolsConvexOrConcavePolygon();
176void KPrViewIface::extraPenBrush()
178 view->extraProperties();
181void KPrViewIface::extraProperties()
183 view->extraProperties();
186void KPrViewIface::extraRaise()
191void KPrViewIface::extraLower()
196void KPrViewIface::extraRotate()
201void KPrViewIface::extraShadow()
206void KPrViewIface::extraBackground()
208 view->extraBackground();
211void KPrViewIface::extraLayout()
216void KPrViewIface::extraConfigure()
218 view->extraConfigure();
221void KPrViewIface::extraLineBegin()
223 view->extraLineBegin();
226void KPrViewIface::extraLineEnd()
228 view->extraLineEnd();
231void KPrViewIface::extraWebPres()
233 view->extraWebPres();
236void KPrViewIface::extraMSPres()
241void KPrViewIface::extraAlignObjLeft()
243 view->extraAlignObjLeft();
246void KPrViewIface::extraAlignObjCenterH()
248 view->extraAlignObjCenterH();
251void KPrViewIface::extraAlignObjRight()
253 view->extraAlignObjRight();
256void KPrViewIface::extraAlignObjTop()
258 view->extraAlignObjTop();
261void KPrViewIface::extraAlignObjCenterV()
263 view->extraAlignObjCenterV();
266void KPrViewIface::extraAlignObjBottom()
268 view->extraAlignObjBottom();
271void KPrViewIface::extraGroup()
276void KPrViewIface::extraUnGroup()
278 view->extraUnGroup();
281void KPrViewIface::extraPenStyle()
287void KPrViewIface::extraPenWidth()
293void KPrViewIface::screenTransEffect()
295 view->screenTransEffect();
298void KPrViewIface::screenConfigPages()
300 view->screenConfigPages();
303void KPrViewIface::screenAssignEffect()
305 view->screenAssignEffect();
308void KPrViewIface::screenStart()
313void KPrViewIface::screenStartFromFirst()
315 view->screenStartFromFirst();
318void KPrViewIface::screenStop()
323void KPrViewIface::screenPause()
328void KPrViewIface::screenFirst()
333void KPrViewIface::screenPrev()
338void KPrViewIface::screenNext()
343void KPrViewIface::screenLast()
348void KPrViewIface::screenSkip()
353void KPrViewIface::sizeSelected(
int size )
355 view->sizeSelected( size );
358void KPrViewIface::fontSelected(
const TQString &fontFamily )
360 view->fontSelected( fontFamily );
363void KPrViewIface::textBold()
368void KPrViewIface::textItalic()
373void KPrViewIface::textUnderline()
375 view->textUnderline();
378void KPrViewIface::textColor()
383void KPrViewIface::textAlignLeft()
385 view->textAlignLeft();
388void KPrViewIface::textAlignCenter()
390 view->textAlignCenter();
393void KPrViewIface::textAlignRight()
395 view->textAlignRight();
398void KPrViewIface::mtextFont()
403void KPrViewIface::textDepthPlus()
405 view->textDepthPlus();
408void KPrViewIface::textDepthMinus()
410 view->textDepthMinus();
413void KPrViewIface::textContentsToHeight()
415 view->textContentsToHeight();
418void KPrViewIface::textObjectToContents()
420 view->textObjectToContents();
423void KPrViewIface::penChosen()
428void KPrViewIface::brushChosen()
433int KPrViewIface::getCurrentPresPage()
const
435 return view->getCurrentPresPage();
438int KPrViewIface::getCurrentPresStep()
const
440 return view->getCurrentPresStep();
443int KPrViewIface::getPresStepsOfPage()
const
445 return view->getPresStepsOfPage();
448int KPrViewIface::getNumPresPages()
const
450 return view->getNumPresPages();
453bool KPrViewIface::gotoPresPage(
int pg )
const
455 return view->gotoPresPage( pg );
458int KPrViewIface::getCurrentPageNum()
const
460 return view->getCurrPgNum();
463void KPrViewIface::insertSpecialChar()
465 view->insertSpecialChar();
468void KPrViewIface::insertLink()
473void KPrViewIface::editCustomVars()
475 view->editCustomVars();
478void KPrViewIface::insertVariable()
480 view->insertVariable();
483void KPrViewIface::insertCustomVariable()
485 view->insertCustomVariable();
488void KPrViewIface::insertNewCustomVariable()
490 view->insertNewCustomVariable();
493void KPrViewIface::changeCaseOfText()
495 view->changeCaseOfText();
498void KPrViewIface::viewShowSideBar()
500 view->viewShowSideBar();
503void KPrViewIface::viewShowNoteBar()
505 view->viewShowNoteBar();
508void KPrViewIface::viewSlideMaster()
510 view->viewSlideMaster();
514void KPrViewIface::formatParagraph()
516 view->formatParagraph();
519void KPrViewIface::extraAutoFormat()
521 view->extraAutoFormat();
524void KPrViewIface::refreshAllVariable()
526 view->extraAutoFormat();
529bool KPrViewIface::skipToPage(
int _num )
532 if(_num>(
int)view->kPresenterDoc()->getPageNums()-1)
534 view->skipToPage(_num);
538void KPrViewIface::toolsRotate()
543void KPrViewIface::toolsZoom()
548void KPrViewIface::insertComment()
550 view->insertComment();
553void KPrViewIface::configureCompletion()
555 view->configureCompletion();
558void KPrViewIface::duplicateObj()
560 view->duplicateObj();
563void KPrViewIface::extraSendBackward()
565 view->extraSendBackward();
568void KPrViewIface::extraBringForward()
570 view->extraBringForward();
573void KPrViewIface::applyAutoFormat()
575 view->applyAutoFormat();
578void KPrViewIface::editDeSelectAll()
580 view->editDeSelectAll();
583void KPrViewIface::createStyleFromSelection()
585 view->createStyleFromSelection();
588void KPrViewIface::closeObject()
593void KPrViewIface::savePicture()
598void KPrViewIface::viewFooter()
603void KPrViewIface::viewHeader()
612TQStringList KPrViewIface::exportPage(
int _nPage,
615 const TQString & _fileName,
616 const TQString & _format,
623 const int nPage = _nPage-1;
626 view->kPresenterDoc() &&
627 nPage < (
int)view->kPresenterDoc()->getPageNums() ){
628 KPrCanvas* canvas = view->getCanvas();
633 KURL::fromPathOrURL( _fileName ),
634 _format.isEmpty() ?
"PNG" : _format.latin1(),
635 TQMAX(-1, TQMIN(100, _quality))) ){
637 KPrPage* page = view->kPresenterDoc()->pageList().at( nPage );
643 res << TQString(
"Name=%1")
644 .arg( page->pageTitle( TQString(
"Page%1").arg(_nPage) ) );
645 res << TQString(
"Notes=%1")
646 .arg( page->noteText() );
655void KPrViewIface::insertFile()
660void KPrViewIface::importStyle()
665void KPrViewIface::backgroundPicture()
667 view->backgroundPicture();
670void KPrViewIface::insertFile(
const TQString & file )
672 view->insertFile( file );
675void KPrViewIface::addWordToDictionary()
677 view->addWordToDictionary();
680void KPrViewIface::customSlideShow()
682 view->customSlideShow();
685void KPrViewIface::insertLineBreak()
687 view->slotLineBreak();
690void KPrViewIface::increaseNumberingLevel()
692 view->slotIncreaseNumberingLevel();
695void KPrViewIface::decreaseNumberingLevel()
697 view->slotDecreaseNumberingLevel();
700void KPrViewIface::increaseFontSize()
702 view->increaseFontSize();
705void KPrViewIface::decreaseFontSize()
707 view->decreaseFontSize();
710void KPrViewIface::flipHorizontal()
712 view->flipHorizontal();
715void KPrViewIface::flipVertical()
717 view->flipVertical();
bool exportPage(int nPage, int nWidth, int nHeight, const KURL &fileURL, const char *format, int quality=-1)