kword

KWordViewIface.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Laurent Montel <lmontel@mandrakesoft.com>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KWORD_VIEW_IFACE_H
00021 #define KWORD_VIEW_IFACE_H
00022 
00023 #include <KoViewIface.h>
00024 
00025 #include <qstring.h>
00026 
00027 class KWView;
00028 
00029 class KWordViewIface : public KoViewIface
00030 {
00031     K_DCOP
00032 public:
00033     KWordViewIface( KWView *view_ );
00034     KWView * getView()const{return view;}
00035 k_dcop:
00036     void fileStatistics();
00037     void editFind();
00038     void editReplace();
00039     void editCustomVars();
00040     void editMailMergeDataBase();
00041     void viewPageMode();
00042     void viewPreviewMode();
00043     void configure();
00044     void spelling();
00045     void autoFormat();
00046     void stylist();
00047     void createTemplate();
00048 
00049     int tableSelectCell(const QString &name, uint row, uint col);
00050     void insertTable();
00051     void tableInsertRow();
00052     void tableInsertRow(uint row);
00053     void tableInsertCol();
00054     void tableInsertCol(uint col);
00055     void tableResizeCol();
00056     void tableDeleteRow();
00057     int  tableDeleteRow(uint row);
00058     void tableDeleteCol();
00059     int  tableDeleteCol(uint col);
00060     void tableJoinCells();
00061     void tableSplitCells();
00062     void tableSplitCells(uint rows, uint cols);
00063     void tableUngroupTable();
00064 
00065     void insertPicture(); // not good, triggers the dialog
00066 
00071     void insertInlinePicture( QString fileName, int w = 0, int h = 0 );
00076     void insertPictureFromFile( QString fileName, double x, double y, int w = 0, int h = 0 );
00077 
00078 
00079     void toolsPart();
00080 
00081     double zoom();
00082     void setZoom( int zoom);
00083     void editPersonalExpression();
00084     void insertLink();
00085     void insertFormula();
00086 
00087     void formatFont();
00088     void formatParagraph();
00089     void formatPage();
00090     void raiseFrame();
00091     void lowerFrame();
00092     void bringToFront();
00093     void sendToBack();
00094     void applyAutoFormat();
00095     void createStyleFromSelection();
00096 
00097     void insertFootNote();
00098 
00099     int configTableRows() const;
00100     int configTableCols() const;
00101     bool configTableIsFloating() const;
00102 
00103     //it can return QString::null if there is any template selected
00104     QString configTableTemplateName() const;
00105     void setConfigTableTemplateName(const QString &_name);
00106 
00107     void selectAllFrames();
00108     void unSelectAllFrames();
00109 
00110     void editFootEndNote();
00111     void savePicture();
00112 
00113     void insertFile();
00114     void tableStylist();
00115 
00116     void addBookmark();
00117     void selectBookmark();
00118     void tableProperties();
00119     void importStyle();
00120 
00121     void insertFile(const QString & path);
00122     void createFrameStyle();
00123 
00124     void setPictureInline( bool _inline);
00125     bool pictureInline() const;
00126 
00127     void setPictureKeepRatio( bool _keep);
00128     bool pictureKeepRatio() const;
00129     void changeAutoSpellCheckStatus(bool b);
00130     void deselectAllFrames();
00131     int currentPage();
00132     void convertTableToText();
00133     void convertToTextBox();
00134     void addIgnoreAllWord();
00135     void addPersonalExpression();
00136     void addWordToDictionary();
00137     void sortText();
00138     void insertPage();
00139     void createLinkedFrame();
00140 
00141     void lineBreak();
00142 
00143     void increaseNumberingLevel();
00144     void decreaseNumberingLevel();
00145 
00146 private:
00147     KWView *view;
00148 
00149 };
00150 
00151 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys