kword

KWordViewIface.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Laurent Montel <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KWORD_VIEW_IFACE_H
21#define KWORD_VIEW_IFACE_H
22
23#include <KoViewIface.h>
24
25#include <tqstring.h>
26
27class KWView;
28
29class KWordViewIface : public KoViewIface
30{
31 K_DCOP
32public:
33 KWordViewIface( KWView *view_ );
34 KWView * getView()const{return view;}
35k_dcop:
36 void fileStatistics();
37 void editFind();
38 void editReplace();
39 void editCustomVars();
40 void editMailMergeDataBase();
41 void viewPageMode();
42 void viewPreviewMode();
43 void configure();
44 void spelling();
45 void autoFormat();
46 void stylist();
47 void createTemplate();
48
49 int tableSelectCell(const TQString &name, uint row, uint col);
50 void insertTable();
51 void tableInsertRow();
52 void tableInsertRow(uint row);
53 void tableInsertCol();
54 void tableInsertCol(uint col);
55 void tableResizeCol();
56 void tableDeleteRow();
57 int tableDeleteRow(uint row);
58 void tableDeleteCol();
59 int tableDeleteCol(uint col);
60 void tableJoinCells();
61 void tableSplitCells();
62 void tableSplitCells(uint rows, uint cols);
63 void tableUngroupTable();
64
65 void insertPicture(); // not good, triggers the dialog
66
71 void insertInlinePicture( TQString fileName, int w = 0, int h = 0 );
76 void insertPictureFromFile( TQString fileName, double x, double y, int w = 0, int h = 0 );
77
78
79 void toolsPart();
80
81 double zoom();
82 void setZoom( int zoom);
83 void editPersonalExpression();
84 void insertLink();
85 void insertFormula();
86
87 void formatFont();
88 void formatParagraph();
89 void formatPage();
90 void raiseFrame();
91 void lowerFrame();
92 void bringToFront();
93 void sendToBack();
94 void applyAutoFormat();
95 void createStyleFromSelection();
96
97 void insertFootNote();
98
99 int configTableRows() const;
100 int configTableCols() const;
101 bool configTableIsFloating() const;
102
103 //it can return TQString() if there is any template selected
104 TQString configTableTemplateName() const;
105 void setConfigTableTemplateName(const TQString &_name);
106
107 void selectAllFrames();
108 void unSelectAllFrames();
109
110 void editFootEndNote();
111 void savePicture();
112
113 void insertFile();
114 void tableStylist();
115
116 void addBookmark();
117 void selectBookmark();
118 void tableProperties();
119 void importStyle();
120
121 void insertFile(const TQString & path);
122 void createFrameStyle();
123
124 void setPictureInline( bool _inline);
125 bool pictureInline() const;
126
127 void setPictureKeepRatio( bool _keep);
128 bool pictureKeepRatio() const;
129 void changeAutoSpellCheckStatus(bool b);
130 void deselectAllFrames();
131 int currentPage();
132 void convertTableToText();
133 void convertToTextBox();
134 void addIgnoreAllWord();
135 void addPersonalExpression();
136 void addWordToDictionary();
137 void sortText();
138 void insertPage();
139 void createLinkedFrame();
140
141 void lineBreak();
142
143 void increaseNumberingLevel();
144 void decreaseNumberingLevel();
145
146private:
147 KWView *view;
148
149};
150
151#endif