21#ifndef kpresenter_view_h
22#define kpresenter_view_h
28#include <tqguardedptr.h>
30#include <tqdatetime.h>
47class KPrPropertyEditor;
49class KPrSlideTransitionDia;
51class KPrShadowDialogImpl;
52class KPrImageEffectDia;
57class KPrPresDurationDia;
65class TTDESelectColorAction;
66class KoPartSelectAction;
69class KoLineStyleAction;
70class KoLineWidthAction;
76class KoTextZoomHandler;
80class TDEFontSizeAction;
100#include <tdespell2/broker.h>
105class PageBase :
public TQWidget
108 PageBase( TQWidget *parent, KPrView *v ) : TQWidget( parent ), view( v ) {}
109 void resizeEvent( TQResizeEvent *e );
117class KPrView :
public KoView
119 friend class PageBase;
124 KPrView( KPrDocument* _doc, TQWidget *_parent = 0,
const char *_name = 0 );
128 virtual DCOPObject* dcopObject();
131 int getCurrentPresPage()
const;
132 int getCurrentPresStep()
const;
133 int getPresStepsOfPage()
const;
134 int getNumPresPages()
const;
135 bool gotoPresPage(
int pg );
137 virtual void setupPrinter( KPrinter &printer );
138 virtual void print( KPrinter &printer );
140 void showFormat(
const KoTextFormat &format );
142 void showZoom(
int zoom );
143 void setZoom(
int zoom,
bool updateViews );
144 void changeZoomMenu(
int zoom=-1);
145 void showStyle(
const TQString & styleName );
146 void updateStyleList();
148 KoTextZoomHandler *zoomHandler()
const;
152 void unZoomDocument(
int &dpiX,
int &dpiY);
153 void zoomDocument(
int zoom);
156 void updateHeaderFooterButton();
157 void updateDisplayObjectMasterPageButton();
159 void updateDisplayBackgroundButton();
160 virtual int leftBorder()
const {
return canvas()->mapTo(
const_cast<KPrView *
>(
this), TQPoint(0,0)).x(); };
161 virtual int rightBorder()
const {
return width() - canvas()->mapTo(
const_cast<KPrView *
>(
this), TQPoint(canvas()->width(), 0)).x(); };
162 virtual int topBorder()
const {
return canvas()->mapTo(
const_cast<KPrView *
>(
this), TQPoint(0,0)).y(); };
163 virtual int bottomBorder()
const {
return height() - canvas()->mapTo(
const_cast<KPrView *
>(
this), TQPoint(0, canvas()->height())).y(); };
165 void updateGuideLineButton();
167 void updateGridButton();
168 void savePicture(
const TQString& oldName, KoPicture& picture);
169 void savePicture( KPrPixmapObject* obj );
171 void insertFile(
const TQString &path);
172 void testAndCloseAllTextObjectProtectedContent();
173 void updateRulerInProtectContentMode();
174 TQPtrList<TDEAction> listOfResultOfCheckWord(
const TQString &word );
179 KSpell2::Broker *broker()
const;
180 bool editMaster()
const {
return m_editMaster;}
183 void currentPageChanged(
int );
184 void presentationFinished();
192 void editSelectAll();
193 void editDeSelectAll();
195 void editDuplicatePage();
201 void viewShowSideBar();
202 void viewShowNoteBar();
203 void viewSlideMaster();
204 void viewZoom(
const TQString &s );
208 void insertComment();
211 void viewGuideLines();
215 void viewSnapToGrid();
219 void insertPicture();
220 void insertPicture(
const TQString &file);
221 void insertSpecialChar();
228 void toolsLinePopup();
229 void toolsShapePopup();
230 void toolsRectangle();
231 void toolsCircleOrEllipse();
234 void toolsAutoform();
235 void toolsDiagramm();
239 void toolsFreehand();
240 void toolsPolyline();
241 void toolsQuadricBezierCurve();
242 void toolsCubicBezierCurve();
243 void toolsConvexOrConcavePolygon();
244 void toolsClosedLinePopup();
245 void toolsClosedFreehand();
246 void toolsClosedPolyline();
247 void toolsClosedQuadricBezierCurve();
248 void toolsClosedCubicBezierCurve();
251 void extraProperties();
255 void extraSendBackward();
256 void extraBringForward();
257 void extraArrangePopup();
260 void extraBackground();
262 void extraConfigure();
263 void extraLineBegin();
267 void extraCreateTemplate();
268 void extraDefaultTemplate();
271 void extraPenStyle(
int newStyle );
272 void extraPenWidth(
double newWidth );
274 void configureCompletion();
276 void extraAlignObjLeft();
277 void extraAlignObjCenterH();
278 void extraAlignObjRight();
279 void extraAlignObjTop();
280 void extraAlignObjCenterV();
281 void extraAlignObjBottom();
284 void screenConfigPages();
285 void screenAssignEffect();
286 void screenTransEffect();
288 void screenStartFromFirst();
297 void screenPrev(
bool gotoPreviousPage =
false );
303 void screenNext(
bool gotoNextPage =
false );
308 void sizeSelected(
int size );
309 void fontSelected(
const TQString &fontFamily );
312 void textUnderline();
313 void textStrikeOut();
315 void textAlignLeft();
316 void textAlignCenter();
317 void textAlignRight();
318 void textAlignBlock();
321 void slotCounterStyleSelected();
323 void textDepthPlus();
324 void textDepthMinus();
325 void textContentsToHeight();
326 void textObjectToContents();
327 void textInsertPageNum();
328 void textDefaultFormat();
334 void skipToPage(
int _num );
341 void updateSideBarItem( KPrPage * page );
342 void addSideBarItem(
int pos );
343 void moveSideBarItem(
int oldPos,
int newPos );
344 void removeSideBarItem(
int pos );
347 void updatePageInfo();
348 void updateObjectStatusBarItem();
349 void pageNumChanged();
350 void updateSideBarMenu();
352 void objectSelectedChanged();
354 void renamePageTitle();
356 void picViewOriginalSize();
357 void picViewOrig640x480();
358 void picViewOrig800x600();
359 void picViewOrig1024x768();
360 void picViewOrig1280x1024();
361 void picViewOrig1600x1200();
366 void textSubScript();
367 void textSuperScript();
369 void slotSpecialChar(TQChar,
const TQString &);
370 void slotSpecialCharDlgClosed();
376 void addToBookmark();
377 void slotSoftHyphen();
378 void slotNonbreakingSpace();
379 void slotNonbreakingHyphen();
380 void slotLineBreak();
381 void slotIncreaseNumberingLevel();
382 void slotDecreaseNumberingLevel();
384 void extraAutoFormat();
385 void slotSpellCheck();
388 void spellCheckerDone(
const TQString & );
389 void spellCheckerCancel();
391 void spellAddAutoCorrect (
const TQString & originalword,
const TQString & newword);
392 void spellCheckerMisspelling(
const TQString &,
int );
393 void spellCheckerCorrected(
const TQString &,
int,
const TQString & );
394 void alignChanged(
int );
396 void formatParagraph();
397 void changeNbOfRecentFiles(
int _nb);
399 void insertVariable();
401 void insertCustomVariable();
402 void insertNewCustomVariable();
403 void refreshCustomMenu();
405 void editCustomVars ();
408 void increaseFontSize();
409 void decreaseFontSize();
411 void tabListChanged(
const KoTabulatorList & tabList );
413 void newLeftIndent(
double _leftIndent);
414 void newFirstIndent(
double _firstIndent);
415 void newRightIndent(
double _rightIndent);
416 void slotUpdateRuler();
418 void slotHRulerDoubleClicked(
double ptpos );
419 void slotHRulerDoubleClicked();
421 void changeCaseOfText();
422 void slotStyleSelected();
423 void textStyleSelected(
int );
426 void slotAllowAutoFormat();
428 void slotCompletion();
430 void removeComment();
431 void copyTextOfComment();
435 void zoomPageWidth();
436 void zoomEntirePage();
438 void zoomSelectedObject();
439 void zoomPageHeight();
440 void zoomAllObject();
442 void flipHorizontal();
447 void applyAutoFormat();
448 void createStyleFromSelection();
450 void alignVerticalTop();
451 void alignVerticalBottom();
452 void alignVerticalCenter();
456 void autoSpellCheck();
459 void editCustomVariable();
462 void backgroundPicture();
463 void updateBgSpellCheckingState();
464 void updatePresentationButton(
bool);
465 void refreshGroupButton();
466 void slotAddIgnoreAllWord();
467 void addWordToDictionary();
468 void customSlideShow();
470 void displayObjectFromMasterPage();
471 void displayBackground();
472 void slotUnitChanged(KoUnit::Unit);
473 void documentModified(
bool );
477 virtual void createGUI();
480 unsigned int getCurrPgNum()
const;
485 void recalcCurrentPageNum();
488 KPrDocument *kPresenterDoc()
const {
return m_pKPresenterDoc; }
491 void changePicture(
const TQString & );
493 KPrCanvas* getCanvas()
const {
return m_canvas;}
495 void setRulerMouseShow(
bool _show );
496 void setRulerMousePos(
int mx,
int my );
501 KoRuler *getHRuler()
const {
return h_ruler; }
502 KoRuler *getVRuler()
const {
return v_ruler; }
503 KoTabChooser *getTabChooser()
const {
return tabChooser; }
504 TQScrollBar *getHScrollBar()
const {
return horz; }
505 TQScrollBar *getVScrollBar()
const {
return vert; }
515 void showObjectRect(
const KPrObject *
object );
517 PieType getPieType()
const {
return pieType; }
518 int getPieAngle()
const {
return pieAngle; }
519 int getPieLength()
const {
return pieLength; }
520 KoPen getPen()
const {
return pen; }
521 TQBrush getBrush()
const {
return brush; }
522 LineEnd getLineBegin()
const {
return lineBegin; }
523 LineEnd getLineEnd()
const{
return lineEnd; }
524 TQColor getGColor1()
const {
return gColor1; }
525 TQColor getGColor2()
const {
return gColor2; }
526 BCType getGType()
const {
return gType; }
527 FillType getFillType()
const {
return fillType; }
528 bool getGUnbalanced()
const {
return gUnbalanced; }
529 int getGXFactor()
const {
return gXFactor; }
530 int getGYFactor()
const {
return gYFactor; }
531 TTDESelectColorAction* getActionBrushColor()
const {
return actionBrushColor; }
532 TTDESelectColorAction* getActionPenColor()
const {
return actionPenColor; }
534 void setPieType(PieType _pieType) { pieType = _pieType; }
535 void setPieAngle(
int _pieAngle) { pieAngle = _pieAngle; }
536 void setPieLength(
int _pieLength) { pieLength = _pieLength; }
537 void setPen(KoPen _pen) { pen = _pen; }
538 void setBrush(TQBrush _brush) { brush = _brush; }
539 void setLineBegin(LineEnd _lineBegin) { lineBegin = _lineBegin; }
540 void setLineEnd(LineEnd _lineEnd){ lineEnd = _lineEnd; }
541 void setGColor1(TQColor _gColor1) { gColor1 = _gColor1; }
542 void setGColor2(TQColor _gColor2) { gColor2 = _gColor2; }
543 void setGType(BCType _gType) { gType = _gType; }
544 void setFillType(FillType _fillType) { fillType = _fillType; }
545 void setGUnbalanced(
bool _gUnbalanced) { gUnbalanced = _gUnbalanced; }
546 void setGXFactor(
int _gXFactor) { gXFactor = _gXFactor; }
547 void setGYFactor(
int _gYFactor) { gYFactor = _gYFactor; }
549 void setTool( ToolEditMode toolEditMode );
551 int getRndX()
const {
return rndX; }
552 int getRndY()
const {
return rndY; }
554 void setRndX(
int _rndX) { rndX = _rndX; }
555 void setRndY(
int _rndY) { rndY = _rndY; }
560 void enableWebPres();
566 bool doubleClickActivation()
const;
570 TQWidget* canvas()
const;
574 int canvasXOffset()
const;
578 int canvasYOffset()
const;
583 void updateSideBar();
585 void refreshPageButton();
587 void setCanvasXOffset(
int _x );
588 void setCanvasYOffset(
int _y );
590 void openPopupMenuObject(
const TQString & name ,
const TQPoint & _point );
591 void openPopupMenuMenuPage(
const TQPoint & _point );
592 void openPopupMenuSideBar(
const TQPoint & _point);
594 void openPopupMenuZoom(
const TQPoint & _point );
596 void penColorChanged(
const KoPen & _pen );
597 void brushColorChanged(
const TQBrush & _brush );
603 void restartAutoPresTimer();
609 void continueAutoPresTimer();
615 void stopAutoPresTimer();
621 void setAutoPresTimer(
int sec );
623 void showCounter( KoParagCounter &c );
625 TQPopupMenu * popupMenu(
const TQString& name );
627 void showRulerIndent(
double _leftMargin,
double _firstLine,
double _rightMargin,
bool rtl );
632 KPrNoteBar *getNoteBar()
const {
return notebar; }
635 TQPtrList<TDEAction>& actionList() {
return m_actionList; }
637 TQPtrList<TDEAction> &variableActionList() {
return m_variableActionList; }
640 bool getCheckConcavePolygon()
const {
return checkConcavePolygon; }
641 int getCornersValue()
const {
return cornersValue; }
642 int getSharpnessValue()
const {
return sharpnessValue; }
644 void setCheckConcavePolygon(
bool _concavePolygon) { checkConcavePolygon = _concavePolygon; }
645 void setCornersValue(
int _cornersValue) { cornersValue = _cornersValue; }
646 void setSharpnessValue(
int _sharpnessValue) { sharpnessValue = _sharpnessValue; }
649 PictureMirrorType getPictureMirrorType()
const {
return mirrorType; }
650 int getPictureDepth()
const {
return depth; }
651 bool getPictureSwapRGB()
const {
return swapRGB; }
652 bool getPictureGrayscal()
const {
return grayscal; }
653 int getPictureBright()
const {
return bright; }
660 void setPageDuration(
int _pgNum );
667 void setZoomRect(
const KoRect & rect );
668 void changeVerticalAlignmentStatus(VerticalAlignmentType _type );
670 void closeTextObject();
671 void deSelectAllObjects();
673 void insertDirectCursor(
bool b);
674 void updateDirectCursorButton();
676 void setEditMaster(
bool editMaster );
680 void backOk( KPrBackDialog*,
bool );
681 void afChooseOk(
const TQString & );
682 void slotAfchooseCanceled();
694 void fontChanged(
const TQFont & );
695 void colorChanged(
const TQColor &color );
697 void extraLineBeginNormal();
698 void extraLineBeginArrow();
699 void extraLineBeginRect();
700 void extraLineBeginCircle();
701 void extraLineBeginLineArrow();
702 void extraLineBeginDimensionLine();
703 void extraLineBeginDoubleArrow();
704 void extraLineBeginDoubleLineArrow();
705 void setExtraLineBegin(LineEnd lb);
706 void extraLineEndNormal();
707 void extraLineEndArrow();
708 void extraLineEndRect();
709 void extraLineEndCircle();
710 void extraLineEndLineArrow();
711 void extraLineEndDimensionLine();
712 void extraLineEndDoubleArrow();
713 void extraLineEndDoubleLineArrow();
714 void setExtraLineEnd(LineEnd le);
716 void setExtraPenStyle( TQt::PenStyle style );
717 void setExtraPenWidth(
double width );
723 void restartPresentation() { m_autoPresRestart =
true; }
728 void stopAutomaticPresentation() { m_autoPresStop =
true; }
730 void newPageLayout(
const KoPageLayout &_layout );
731 void openPageLayoutDia() { extraLayout(); }
732 void unitChanged( KoUnit::Unit );
734 void doAutomaticScreenPres();
736 void getPageMouseWheelEvent( TQWheelEvent *e );
739 void refreshAllVariable();
740 void slotViewFormattingChars();
741 void slotUpdateScrollBarRanges();
745 void refreshRuler(
bool state );
746 void slotApplyFont();
747 void slotApplyParag();
748 void slotObjectEditChanged();
749 void slotChangeCutState(
bool );
751 void insertDirectCursor();
752 void slotCorrectWord();
754 void editFindPrevious();
756 void initialLayoutOfSplitter();
758 virtual void slotChildActivated(
bool a);
760 void loadingFinished();
763 virtual void resizeEvent( TQResizeEvent* );
764 virtual void dragEnterEvent( TQDragEnterEvent *e );
765 virtual void dragMoveEvent( TQDragMoveEvent *e );
766 virtual void dragLeaveEvent( TQDragLeaveEvent *e );
767 virtual void dropEvent( TQDropEvent *e );
769 virtual void keyPressEvent( TQKeyEvent* );
771 virtual void guiActivateEvent( KParts::GUIActivateEvent *ev );
775 void setupPopupMenus();
776 void setupScrollbars();
779 void startScreenPres(
int pgNum = -1 );
781 virtual void updateReadWrite(
bool readwrite );
783 void addVariableActions(
int type,
const TQStringList & texts,
784 TDEActionMenu * parentMenu,
const TQString & menuText );
786 void showParagraphDialog(
int initialPage = -1,
double initialTabPos = 0.0 );
788 TQValueList<KoTextObject *> spellAddTextObject()
const;
790 bool switchInOtherPage(
const TQString & text );
792 void openThePresentationDurationDialog();
793 TQString presentationDurationDataFormatChange(
int _time );
795 int getZoomEntirePage()
const;
797 KCommand * applyAutoFormatToCurrentPage(
const TQPtrList<KoTextObject> & lst);
798 void textStyleSelected( KoParagStyle *_sty );
804 KCommand * getPenCmd(
const TQString &name, KoPen pen, LineEnd lb, LineEnd le,
int flags );
806 void spellCheckerRemoveHighlight();
808 void updateNoteBarText();
810 void clearSpellChecker(
bool cancelSpellCheck =
false);
815 KPrDocument *m_pKPresenterDoc;
822 bool m_autoPresRestart;
829 bool m_screenSaverWasEnabled;
830 bool m_dpmsWasEnabled;
833 TQPopupMenu *rb_lbegin, *rb_lend;
834 TQPopupMenu *m_arrangeObjectsPopup;
835 TQPtrList<TDEAction> m_actionList;
836 TQPtrList<TDEAction> m_variableActionList;
839 TQScrollBar *vert, *horz;
843 KPrPropertyEditor *m_propertyEditor;
844 KPrPgConfDia *pgConfDia;
846 KPrShadowDialogImpl *shadowDia;
847 KPrImageEffectDia *imageEffectDia;
848 KPrPresDurationDia *presDurationDia;
855 TQColor gColor1, gColor2;
860 int gXFactor, gYFactor;
861 int pieLength, pieAngle;
864 bool checkConcavePolygon;
871 PictureMirrorType mirrorType;
879 KoRuler *h_ruler, *v_ruler;
880 KoTabChooser *tabChooser;
901 TQLabel * m_sbPageLabel;
902 TQLabel * m_sbObjectLabel;
903 TQLabel *m_sbSavingLabel;
904 KStatusBarLabel* m_sbModifiedLabel;
905 KStatusBarLabel* m_sbUnitLabel;
906 KStatusBarLabel* m_sbZoomLabel;
909 TDEAction *actionEditCut;
910 TDEAction *actionEditCustomVars;
911 TDEAction *actionEditCopy;
912 TDEAction *actionEditPaste;
913 TDEAction *actionEditDelete;
914 TDEAction *actionEditSelectAll;
915 TDEAction *actionEditDeSelectAll;
916 TDEAction *actionEditCopyPage;
917 TDEAction *actionEditDuplicatePage;
918 TDEAction *actionEditDelPage;
920 TDEToggleAction *actionViewShowSideBar;
921 TDEToggleAction *actionViewShowNoteBar;
922 TDEToggleAction *actionViewSlideMaster;
924 TDEToggleAction *actionViewShowGuideLine;
926 TDEToggleAction *actionViewFormattingChars;
927 TDEToggleAction *actionViewShowGrid;
928 TDEToggleAction *actionViewSnapToGrid;
930 TDEAction *actionInsertPage;
931 TDEAction *actionInsertPicture;
933 TDEToggleAction *actionToolsMouse;
934 TDEToggleAction *actionToolsRotate;
935 TDEToggleAction *actionToolsZoom;
936 TDEToggleAction *actionToolsLine;
937 TDEToggleAction *actionToolsRectangle;
938 TDEToggleAction *actionToolsCircleOrEllipse;
939 TDEToggleAction *actionToolsPie;
940 TDEToggleAction *actionToolsText;
941 TDEToggleAction *actionToolsAutoform;
942 TDEToggleAction *actionToolsDiagramm;
943 TDEToggleAction *actionToolsTable;
944 TDEToggleAction *actionToolsFormula;
945 TDEToggleAction *actionToolsFreehand;
946 TDEToggleAction *actionToolsPolyline;
947 TDEToggleAction *actionToolsQuadricBezierCurve;
948 TDEToggleAction *actionToolsCubicBezierCurve;
949 TDEToggleAction *actionToolsConvexOrConcavePolygon;
950 TDEToggleAction *actionToolsClosedFreehand;
951 TDEToggleAction *actionToolsClosedPolyline;
952 TDEToggleAction *actionToolsClosedQuadricBezierCurve;
953 TDEToggleAction *actionToolsClosedCubicBezierCurve;
954 KoPartSelectAction *actionToolsObject;
955 TDEActionMenu *actionToolsLinePopup;
956 TDEActionMenu *actionToolsShapePopup;
957 TDEActionMenu *actionToolsClosedLinePopup;
959 TDEAction *actionTextFont;
960 TDEFontSizeAction *actionTextFontSize;
961 TDEFontAction *actionTextFontFamily;
962 TDEToggleAction *actionTextAlignLeft;
963 TDEToggleAction *actionTextAlignCenter;
964 TDEToggleAction *actionTextAlignRight;
965 TDEToggleAction *actionTextAlignBlock;
967 TDEActionMenu *actionFormatBullet;
968 TDEActionMenu *actionFormatNumber;
971 TDEAction *actionTextDepthPlus;
972 TDEAction *actionTextDepthMinus;
973 TDEAction *actionTextExtentCont2Height;
974 TDEAction *actionTextExtendObj2Cont;
975 TDEToggleAction *actionTextBold;
976 TDEToggleAction *actionTextItalic;
977 TDEToggleAction *actionTextUnderline;
978 TDEToggleAction *actionFormatStrikeOut;
979 TDEAction *actionTextInsertPageNum;
981 TDEAction *actionExtraProperties;
982 TDEAction *actionExtraRaise;
983 TDEAction *actionExtraLower;
985 TDEAction *actionExtraBringForward;
986 TDEAction *actionExtraSendBackward;
987 TDEActionMenu *actionExtraArrangePopup;
989 TDEAction *actionExtraRotate;
990 TDEAction *actionExtraShadow;
991 TDEActionMenu *actionExtraAlignObjsPopup;
992 TDEAction *actionExtraAlignObjLeft;
993 TDEAction *actionExtraAlignObjCenterH;
994 TDEAction *actionExtraAlignObjRight;
995 TDEAction *actionExtraAlignObjTop;
996 TDEAction *actionExtraAlignObjCenterV;
997 TDEAction *actionExtraAlignObjBottom;
998 TDEAction *actionExtraBackground;
999 TDEAction *actionExtraLayout;
1000 TDEAction *actionExtraConfigure;
1001 TDEAction *actionExtraWebPres;
1002 TDEAction *actionExtraMSPres;
1003 TDEAction *actionExtraCreateTemplate;
1004 TDEAction *actionExtraLineBegin;
1005 TDEAction *actionExtraLineEnd;
1006 TDEAction *actionExtraGroup;
1007 TDEAction *actionExtraUnGroup;
1008 KoLineStyleAction *actionExtraPenStyle;
1009 KoLineWidthAction *actionExtraPenWidth;
1011 TDEAction *actionScreenConfigPages;
1012 TDEAction *actionScreenAssignEffect;
1013 TDEAction *actionScreenTransEffect;
1014 TDEAction *actionScreenStart;
1015 TDEAction *actionScreenStartFromFirst;
1016 TDEAction *actionScreenStop;
1017 TDEAction *actionScreenPause;
1018 TDEAction *actionScreenFirst;
1019 TDEAction *actionScreenPrev;
1020 TDEAction *actionScreenNext;
1021 TDEAction *actionScreenLast;
1022 TDEAction *actionScreenSkip;
1024 TDEAction *actionEditFind;
1025 TDEAction *actionEditFindNext;
1026 TDEAction *actionEditFindPrevious;
1027 TDEAction *actionEditReplace;
1029 TDEAction *actionCustomSlideShow;
1031 TDEAction *actionColorBar;
1032 TDEAction *actionExtraDefaultTemplate;
1034 TTDESelectColorAction* actionBrushColor;
1035 TTDESelectColorAction* actionPenColor;
1036 TTDESelectColorAction* actionTextColor;
1039 TDEAction *actionResizeTextObject;
1040 TDEAction *actionExtendObjectHeight;
1041 TDEAction *actionObjectProperties;
1043 TDEAction *actionRenamePage;
1045 TDEAction *actionPicOriginalSize;
1046 TDEAction *actionPic640x480;
1047 TDEAction *actionPic800x600;
1048 TDEAction *actionPic1024x768;
1049 TDEAction *actionPic1280x1024;
1050 TDEAction *actionPic1600x1200;
1051 TDEAction *actionChangePic;
1052 TDEAction *actionExtraSpellCheck;
1053 TDEAction *actionFormatDefault;
1055 TDEAction *actionImageEffect;
1057 TDEAction *actionInsertComment;
1058 TDEAction *actionEditComment;
1059 TDEAction *actionRemoveComment;
1060 TDEAction *actionCopyTextOfComment;
1062 TDEAction *actionImportStyle;
1066 TQToolButton *pgNext, *pgPrev;
1067 KPrSideBar *sidebar;
1068 KPrNoteBar *notebar;
1069 TQSplitter *splitter;
1072 TDEToggleAction *actionFormatSuper;
1073 TDEToggleAction *actionFormatSub;
1075 TDEToggleAction *m_actionExtraHeader;
1076 TDEToggleAction *m_actionExtraFooter;
1078 TDEAction* actionInsertSpecialChar;
1079 TDEAction *actionInsertLink;
1081 TDEAction * actionChangeLink;
1082 TDEAction *actionCopyLink;
1083 TDEAction *actionRemoveLink;
1085 TDEAction *actionAddLinkToBookmak;
1086 TDEAction *actionFormatParag;
1087 TDEAction *actionOpenLink;
1088 TDEAction *actionIncreaseFontSize;
1089 TDEAction *actionDecreaseFontSize;
1090 TDEAction *actionChangeCase;
1091 TDEAction *actionRefreshAllVariable;
1093 TDESelectAction *actionViewZoom;
1095 TDESelectAction *actionFormatStyle;
1097 TDEToggleAction *actionAllowAutoFormat;
1099 TDEToggleAction *actionDisplayObjectFromMasterPage;
1101 TDEToggleAction *actionDisplayBackgroundPage;
1103 TDEAction *actionFormatStylist;
1105 TDEAction *actionAddGuideLine;
1107 TDEAction *actionConfigureCompletion;
1109 TDEAction *actionZoomMinus;
1110 TDEAction *actionZoomPageWidth;
1111 TDEAction *actionZoomEntirePage;
1112 TDEAction *actionZoomPlus;
1113 TDEAction *actionZoomSelectedObject;
1114 TDEAction *actionZoomPageHeight;
1115 TDEAction *actionZoomAllObject;
1117 TDEAction *actionFlipHorizontal;
1118 TDEAction *actionFlipVertical;
1119 TDEAction *actionCloseObject;
1121 TDEAction *actionDuplicateObj;
1122 TDEAction *actionApplyAutoFormat;
1124 TDEAction *actionCreateStyleFromSelection;
1126 TDEAction *actionSavePicture;
1128 TDEAction *actionSaveBackgroundPicture;
1131 TDEAction *actionInsertFile;
1133 TDEAction *actionSpellIgnoreAll;
1135 TDEToggleAction *actionAlignVerticalTop;
1136 TDEToggleAction *actionAlignVerticalBottom;
1137 TDEToggleAction *actionAlignVerticalCenter;
1139 TDEToggleAction *actionAllowBgSpellCheck;
1140 TDEAction *actionEditCustomVarsEdit;
1141 TDEActionMenu *actionFormatStyleMenu;
1142 TDEToggleAction *actionInsertDirectCursor;
1144 TDEAction *actionAddWordToPersonalDictionary;
1147 TQTimer m_autoPresTimer;
1149 TQTime m_autoPresTime;
1151 int m_autoPresElapsedTime;
1153 int m_autoPresTimerValue;
1155 bool m_autoPresTimerConnected;
1160 TQValueList<int> m_presentationDurationList;
1162 KoCharSelectDia *m_specialCharDlg;
1165 enum CurrentLineTool {
1169 LtQuadricBezier = 8,
1173 CurrentLineTool m_currentLineTool;
1176 enum CurrentShapeTool {
1183 CurrentShapeTool m_currentShapeTool;
1186 enum CurrentClosedLineTool {
1189 CltQuadricBezier = 4,
1193 CurrentClosedLineTool m_currentClosedLineTool;
1198 KMacroCommand * macroCmdSpellCheck;
1199 TQStringList replaceAll;
1200 KoTextIterator * textIterator;
1201 KSpell2::Dialog *dlg;
1204 KSpell2::Broker::Ptr m_broker;
1208 TDEActionMenu *actionInsertVariable;
1209 TDEActionMenu *actionInsertCustom;
1211 struct VariableDef {
1215 typedef TQMap<TDEAction *, VariableDef> VariableDefMap;
1216 VariableDefMap m_variableDefMap;
1218 KoSearchContext *m_searchEntry, *m_replaceEntry;
1220 KoFontDia *m_fontDlg;
1221 KoParagDia *m_paragDlg;
1223 int m_initSwitchPage;
1225 int xOffsetSaved, yOffsetSaved;
1226 bool m_bDisplayFieldCode;
Class KPCanvas - There is a single instance of this class for a given view.
This class implements the 'find' functionality ( the "search next, prompt" loop ) and the 'replace' f...
A dialog that lets the user interactively choose an angle for rotation.