diff options
Diffstat (limited to 'kword/KWView.h')
-rw-r--r-- | kword/KWView.h | 125 |
1 files changed, 64 insertions, 61 deletions
diff --git a/kword/KWView.h b/kword/KWView.h index 7463435a..7f84334f 100644 --- a/kword/KWView.h +++ b/kword/KWView.h @@ -37,8 +37,8 @@ #include <kshortcut.h> #include <KoZoomMode.h> -#include <qbrush.h> -#include <qhbox.h> +#include <tqbrush.h> +#include <tqhbox.h> class KWPage; class KWViewMode; @@ -79,8 +79,8 @@ class KSelectAction; class KToggleAction; class KFontSizeAction; class KFontAction; -class QResizeEvent; -class QSplitter; +class TQResizeEvent; +class TQSplitter; #include <kspell2/broker.h> namespace KSpell2 { @@ -95,9 +95,10 @@ namespace KSpell2 { class KWView : public KoView { Q_OBJECT + TQ_OBJECT public: - KWView( const QString& viewMode, QWidget *parent, const char *name, KWDocument *doc ); + KWView( const TQString& viewMode, TQWidget *tqparent, const char *name, KWDocument *doc ); virtual ~KWView(); virtual DCOPObject* dcopObject(); @@ -118,10 +119,10 @@ public: void updateBorderButtons( const KoBorder& left, const KoBorder& right, const KoBorder& top, const KoBorder& bottom ); - void showStyle( const QString & styleName ); + void showStyle( const TQString & styleName ); void showRulerIndent( double leftMargin, double firstLine, double rightMargin, bool rtl ); void showZoom( int zoom ); // show a zoom value in the combo - void showZoom( const QString& zoom ); // show a zoom value in the combo + void showZoom( const TQString& zoom ); // show a zoom value in the combo void setZoom( int zoom, bool updateViews ); // change the zoom value bool viewFrameBorders() const { return m_viewFrameBorders; } @@ -154,7 +155,7 @@ public: /** * Overloaded from View */ - QWidget* canvas() const; + TQWidget* canvas() const; /** * Overloaded from View */ @@ -171,8 +172,8 @@ public: virtual void setupPrinter( KPrinter &printer ); virtual void print( KPrinter &printer ); - virtual QPoint applyViewTransformations( const QPoint& ) const; - virtual QPoint reverseViewTransformations( const QPoint& ) const; + virtual TQPoint applyViewTransformations( const TQPoint& ) const; + virtual TQPoint reverseViewTransformations( const TQPoint& ) const; void changeNbOfRecentFiles(int nb); @@ -184,11 +185,11 @@ public: void deleteFrame(bool warning=true); - QPopupMenu * popupMenu( const QString& name ); + TQPopupMenu * popupMenu( const TQString& name ); - QPtrList<KAction> &dataToolActionList() { return m_actionList; } - QPtrList<KAction> &variableActionList() { return m_variableActionList; } - QPtrList<KAction> &tableActions() { return m_tableActionList; } + TQPtrList<KAction> &dataToolActionList() { return m_actionList; } + TQPtrList<KAction> &variableActionList() { return m_variableActionList; } + TQPtrList<KAction> &tableActions() { return m_tableActionList; } enum { // bitfield ProvidesImage = 1, @@ -196,7 +197,7 @@ public: ProvidesOasis = 4, ProvidesFormula = 8 }; - static int checkClipboard( QMimeSource *data ); + static int checkClipboard( TQMimeSource *data ); bool insertInlinePicture(); @@ -220,15 +221,15 @@ public: void deleteFrameSet( KWFrameSet *); - QPtrList<KAction> listOfResultOfCheckWord( const QString &word ); + TQPtrList<KAction> listOfResultOfCheckWord( const TQString &word ); - int tableSelectCell(const QString &tableName, uint row, uint col); + int tableSelectCell(const TQString &tableName, uint row, uint col); void tableInsertRow(uint row, KWTableFrameSet *table = 0); void tableInsertCol(uint col, KWTableFrameSet *table = 0); - int tableDeleteRow(const QValueList<uint>& rows, KWTableFrameSet *table = 0); - int tableDeleteCol(const QValueList<uint>& cols, KWTableFrameSet *table = 0); + int tableDeleteRow(const TQValueList<uint>& rows, KWTableFrameSet *table = 0); + int tableDeleteCol(const TQValueList<uint>& cols, KWTableFrameSet *table = 0); - void pasteData( QMimeSource* data, bool drop ); + void pasteData( TQMimeSource* data, bool drop ); KWFrameViewManager* frameViewManager() const; @@ -257,7 +258,7 @@ public slots: void slotViewFrameBorders(); void viewHeader(); void viewFooter(); - void viewZoom( const QString &s ); + void viewZoom( const TQString &s ); void updateZoom(); void insertTable(); @@ -287,7 +288,7 @@ public slots: void extraCreateTemplate(); void toolsCreateText(); - void insertFormula( QMimeSource* source=0 ); + void insertFormula( TQMimeSource* source=0 ); void toolsPart(); void tableProperties(); @@ -316,7 +317,7 @@ public slots: void textSizeSelected( int ); void increaseFontSize(); void decreaseFontSize(); - void textFontSelected( const QString & ); + void textFontSelected( const TQString & ); void textBold(); void textItalic(); void textUnderline(); @@ -349,7 +350,7 @@ public slots: void configure(); void configureCompletion(); - void newPageLayout( const KoPageLayout &layout ); + void newPageLayout( const KoPageLayout &tqlayout ); void newLeftIndent( double leftIndent); void newFirstIndent( double firstIndent); void newRightIndent( double rightIndent); @@ -359,9 +360,9 @@ public slots: void updatePageInfo(); void updateFrameStatusBarItem(); - void setTemporaryStatusBarText(const QString &text); + void setTemporaryStatusBarText(const TQString &text); - void slotSpecialChar(QChar , const QString &); + void slotSpecialChar(TQChar , const TQString &); void slotFrameSetEditChanged(); void showMouseMode( int /*KWCanvas::MouseMode*/ mouseMode ); void frameSelectedChanged(); @@ -383,7 +384,7 @@ public slots: void editPersonalExpr(); void slotUpdateRuler(); - void slotEmbedImage( const QString &filename ); + void slotEmbedImage( const TQString &filename ); void insertCustomVariable(); void insertNewCustomVariable(); @@ -448,7 +449,7 @@ public slots: void docStructSelect(); void docStructDelete(); void docStructProperties(); - void openDocStructurePopupMenu( const QPoint &p, KWFrameSet *frameset, KWTextParag *parag); + void openDocStructurePopupMenu( const TQPoint &p, KWFrameSet *frameset, KWTextParag *parag); void insertFile(); @@ -478,15 +479,15 @@ protected slots: virtual void slotChildActivated( bool a ); ///< from KoView void slotSetInitialPosition(); - void spellCheckerMisspelling( const QString &, int ); - void spellCheckerCorrected( const QString &, int, const QString & ); - void spellCheckerDone( const QString & ); + void spellCheckerMisspelling( const TQString &, int ); + void spellCheckerCorrected( const TQString &, int, const TQString & ); + void spellCheckerDone( const TQString & ); void spellCheckerCancel(); - void spellAddAutoCorrect (const QString & originalword, const QString & newword); + void spellAddAutoCorrect (const TQString & originalword, const TQString & newword); void slotApplyFont(); void slotApplyParag(); - void slotPageLayoutChanged( const KoPageLayout& layout ); + void slotPageLayoutChanged( const KoPageLayout& tqlayout ); void slotChangeCaseState(bool b); void slotChangeCutState(bool b); void slotCorrectWord(); @@ -495,23 +496,23 @@ protected slots: void slotDocumentLoadingCompleted(); protected: - void addVariableActions( int type, const QStringList & texts, - KActionMenu * parentMenu, const QString & menuText ); + void addVariableActions( int type, const TQStringList & texts, + KActionMenu * tqparentMenu, const TQString & menuText ); - void loadexpressionActions( KActionMenu * parentMenu); + void loadexpressionActions( KActionMenu * tqparentMenu); - void createExpressionActions( KActionMenu * parentMenu,const QString& filename,int &i , bool insertSepar, const QMap<QString, KShortcut>& personalShortCut ); + void createExpressionActions( KActionMenu * tqparentMenu,const TQString& filename,int &i , bool insertSepar, const TQMap<TQString, KShortcut>& personalShortCut ); void showParagraphDialog( int initialPage = -1, double initialTabPos = 0.0 ); KWTextFrameSetEdit *currentTextEdit() const; /** The current text-edit if there is one, otherwise the selected text objects * This is what the "bold", "italic" etc. buttons apply to. */ - QPtrList<KoTextFormatInterface> applicableTextInterfaces() const; + TQPtrList<KoTextFormatInterface> applicableTextInterfaces() const; void setupActions(); - virtual void resizeEvent( QResizeEvent *e ); + virtual void resizeEvent( TQResizeEvent *e ); virtual void guiActivateEvent( KParts::GUIActivateEvent *ev ); virtual void updateReadWrite( bool readwrite ); @@ -520,23 +521,23 @@ protected: * @param selectFrames a list of selected frames * @see KWFrameViewManager::selectedFrames() */ - void updateTableActions( QValueList<KWFrameView*> selectFrames); + void updateTableActions( TQValueList<KWFrameView*> selectFrames); void startKSpell(); void clearSpellChecker(bool cancelSpellCheck = false ); - QValueList<QString> getInlineFramesets( const QDomNode &framesetElem ); + TQValueList<TQString> getInlineFramesets( const TQDomNode &framesetElem ); // Helper stuff for the frame adjustment; enum MoveFrameType { RaiseFrame, LowerFrame, BringToFront, SendToBack }; void adjustZOrderOfSelectedFrames(MoveFrameType moveType); - void increaseAllZOrdersAbove(int refZOrder, int pageNum, const QPtrList<KWFrame>& frameSelection); - void decreaseAllZOrdersUnder(int refZOrder, int pageNum, const QPtrList<KWFrame>& frameSelection); - int raiseFrame(const QPtrList<KWFrame>& frameSelection, const KWFrame *frame); - int lowerFrame(const QPtrList<KWFrame>& frameSelection, const KWFrame *frame); - int bringToFront(const QPtrList<KWFrame>& frameSelection, const KWFrame *frame); - int sendToBack(const QPtrList<KWFrame>& frameSelection, const KWFrame *frame); + void increaseAllZOrdersAbove(int refZOrder, int pageNum, const TQPtrList<KWFrame>& frameSelection); + void decreaseAllZOrdersUnder(int refZOrder, int pageNum, const TQPtrList<KWFrame>& frameSelection); + int raiseFrame(const TQPtrList<KWFrame>& frameSelection, const KWFrame *frame); + int lowerFrame(const TQPtrList<KWFrame>& frameSelection, const KWFrame *frame); + int bringToFront(const TQPtrList<KWFrame>& frameSelection, const KWFrame *frame); + int sendToBack(const TQPtrList<KWFrame>& frameSelection, const KWFrame *frame); void textStyleSelected( KoParagStyle *sty ); void frameStyleSelected( KWFrameStyle *sty ); void tableStyleSelected( KWTableStyle *sty ); @@ -545,7 +546,7 @@ protected: void spellCheckerRemoveHighlight(); - void setSpacing( KoParagLayout::SpacingType spacing, const QString &commandName ); + void setSpacing( KoParagLayout::SpacingType spacing, const TQString &commandName ); private: // methods void deleteSelectedFrames(); @@ -612,7 +613,7 @@ private: // variables int type; int subtype; }; - typedef QMap<KAction *, VariableDef> VariableDefMap; + typedef TQMap<KAction *, VariableDef> VariableDefMap; KActionMenu *m_actionInsertExpression; KActionMenu *m_actionInsertCustom; @@ -769,9 +770,9 @@ private: // variables KoSearchContext *m_searchEntry, *m_replaceEntry; KWFindReplace *m_findReplace; - QPtrList<KAction> m_actionList; // for the kodatatools - QPtrList<KAction> m_variableActionList; - QPtrList<KAction> m_tableActionList; + TQPtrList<KAction> m_actionList; // for the kodatatools + TQPtrList<KAction> m_variableActionList; + TQPtrList<KAction> m_tableActionList; KWPage *m_currentPage; ///< current page number @@ -797,7 +798,7 @@ private: // variables struct { KoSpell *kospell; KMacroCommand * macroCmdSpellCheck; - QStringList replaceAll; + TQStringList replaceAll; KoTextIterator * textIterator; KSpell2::Dialog *dlg; } m_spell; @@ -815,15 +816,16 @@ private: // variables /******************************************************************/ /* Class: KWViewWidget */ /******************************************************************/ -class KWViewWidget : public QWidget +class KWViewWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - KWViewWidget( QWidget *parent, KWView *view ); + KWViewWidget( TQWidget *tqparent, KWView *view ); protected: - void resizeEvent( QResizeEvent *e ); + void resizeEvent( TQResizeEvent *e ); // A pointer to the view. KWView *m_view; @@ -833,12 +835,13 @@ protected: /* Class: KWGUI */ /******************************************************************/ -class KWGUI : public QHBox +class KWGUI : public TQHBox { Q_OBJECT + TQ_OBJECT public: - KWGUI( const QString& viewMode, QWidget *parent, KWView *view ); + KWGUI( const TQString& viewMode, TQWidget *tqparent, KWView *view ); void showGUI(); @@ -856,7 +859,7 @@ protected slots: void unitChanged( KoUnit::Unit ); protected: - void resizeEvent( QResizeEvent *e ); + void resizeEvent( TQResizeEvent *e ); // A pointer to the view. KWView *m_view; @@ -865,14 +868,14 @@ protected: KWDocStruct *m_docStruct; // The right side - QWidget *m_right; // The layout widget. + TQWidget *m_right; // The tqlayout widget. KoTabChooser *m_tabChooser; KoRuler *m_vertRuler; KoRuler *m_horRuler; KWCanvas *m_canvas; - QSplitter *m_panner; + TQSplitter *m_panner; }; |