kpresenter

KPrDocumentIface.h
1/* This file is part of the KDE project
2 Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
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 KPRESENTER_DOC_IFACE_H
21#define KPRESENTER_DOC_IFACE_H
22
23#include <KoDocumentIface.h>
24#include <dcopref.h>
25
26#include <tqstring.h>
27#include <tqstringlist.h>
28#include <tqcolor.h>
29class KPrDocument;
30
31class KPrDocumentIface : public KoDocumentIface
32{
33 K_DCOP
34public:
35 KPrDocumentIface( KPrDocument *doc_ );
36
37k_dcop:
38 virtual int numPages() const;
40 virtual DCOPRef page( int num );
41
42 virtual DCOPRef masterPage();
43
44 bool selectPage( int page,bool select);
45
46
47 virtual void setShowRuler(bool );
48 virtual bool showRuler() const;
49
50 virtual void recalcVariables( int type );
51 virtual void recalcAllVariables();
52 virtual void recalcVariables(const TQString &varName);
53 virtual bool setCustomVariableValue(const TQString & varname, const TQString & value);
54 virtual TQString customVariableValue(const TQString & varname) const;
55
56 virtual int startingPage();
57 virtual void setStartingPage(int nb);
58
59 virtual void setDisplayLink(bool b);
60 virtual bool displayLink() const;
61 virtual bool insertNewPage(int pos );
62 virtual bool deletePage( int _page );
63 virtual void deSelectAllObj();
64 virtual void recalcPageNum();
65
66
67 virtual void initConfig();
68 virtual void saveConfig();
69
70 virtual TQString selectedForPrinting() const;
71
72 //Be carefull ! when pgNum > num of page we return false
73 virtual bool isSlideSelected( int pgNum);
74
75
76 virtual DCOPRef header();
77 virtual DCOPRef footer();
78
79
80 virtual void startBackgroundSpellCheck();
81 virtual void reactivateBgSpellChecking();
82
83 virtual void setConfigUpperCase( bool _uc );
84 virtual void setConfigUpperUpper( bool _uu );
85 virtual void setConfigAdvancedAutocorrect( bool _aa );
86 virtual void setConfigAutoDetectUrl(bool _au);
87 virtual void setConfigIgnoreDoubleSpace( bool _ids);
88
89 virtual bool configUpperCase() const;
90 virtual bool configUpperUpper() const;
91 virtual bool configAdvancedAutoCorrect() const;
92 virtual bool configAutoDetectUrl() const;
93 virtual bool configIgnoreDoubleSpace() const;
94
95 virtual void setConfigRemoveSpaceBeginEndLine( bool _space);
96 virtual void setConfigUseBulletStyle( bool _ubs);
97
98 virtual bool configRemoveSpaceBeginEndLine() const;
99 virtual bool configUseBulletSyle() const;
100
101 virtual bool configAutoChangeFormat() const;
102 virtual void setConfigAutoChangeFormat( bool _auto);
103
104 virtual bool configAutoReplaceNumber() const;
105 virtual void setConfigAutoReplaceNumber( bool b );
106
107 virtual bool showStatusBar() const;
108 virtual void setShowStatusBar( bool _status );
109
110 void setConfigAutoNumberStyle( bool b );
111 bool configAutoNumberStyle() const;
112
113 void setConfigCompletion( bool b );
114 bool configCompletion() const;
115
116 void setConfigAppendSpace( bool b);
117 bool configAppendSpace() const;
118
119 void setConfigMinWordLength( uint val );
120 uint configMinWordLength() const;
121
122 void setConfigNbMaxCompletionWord( uint val );
123 uint configNbMaxCompletionWord() const;
124
125 void setConfigAddCompletionWord( bool b );
126 bool configAddCompletionWord() const;
127
128 void setConfigToolTipCompletion( bool b );
129 bool configToolTipCompletion() const;
130
131 bool configIncludeTwoUpperUpperLetterException() const;
132 void setConfigIncludeTwoUpperUpperLetterException( bool b);
133
134 bool configIncludeAbbreviation() const;
135 void setConfigIncludeAbbreviation( bool b);
136
137 bool displayComment()const;
138 void setDisplayComment( bool b);
139
140 bool showGuideLines() const;
141 void setShowGuideLines( bool b );
142
143 void addGuideLine( bool horizontal, double pos );
144
145 unsigned int nbHorizontalHelpLine() const;
146 unsigned int nbVerticalHelpLine() const;
147
148 bool showGrid() const;
149 void setShowGrid ( bool _grid );
150
151 double gridX() const;
152 void setGridX(double _x);
153
154 double gridY() const;
155 void setGridY(double _y);
156
157 bool configAutoSuperScript() const;
158 void setConfigAutoSuperScript( bool b);
159
160 void addIgnoreWordAll( const TQString &);
161 void clearIgnoreWordAll( );
162
163 TQStringList spellListIgnoreAll() const;
164
165
166 bool displayFieldCode()const;
167 void setDisplayFieldCode( bool b);
168 TQString configAutoFormatLanguage( )const;
169
170 bool configCapitalizeNameOfDays() const;
171 void setConfigCapitalizeNameOfDays( bool b);
172
173 TQString presentationName() const;
174 void setPresentationName( const TQString &_name );
175
176 TQStringList presentationList();
177
180 void repaint();
181
182private:
183 KPrDocument *doc;
184
185};
186
187#endif