kpresenter

KPrDocumentIface.h

00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
00002 /* This file is part of the KDE project
00003    Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KPRESENTER_DOC_IFACE_H
00022 #define KPRESENTER_DOC_IFACE_H
00023 
00024 #include <KoDocumentIface.h>
00025 #include <dcopref.h>
00026 
00027 #include <qstring.h>
00028 #include <qstringlist.h>
00029 #include <qcolor.h>
00030 class KPrDocument;
00031 
00032 class KPrDocumentIface : public KoDocumentIface
00033 {
00034     K_DCOP
00035 public:
00036     KPrDocumentIface( KPrDocument *doc_ );
00037 
00038 k_dcop:
00039     virtual int numPages() const;
00041     virtual DCOPRef page( int num );
00042 
00043     virtual DCOPRef masterPage();
00044 
00045     bool selectPage( int page,bool select);
00046 
00047 
00048     virtual void setShowRuler(bool );
00049     virtual bool showRuler() const;
00050 
00051     virtual void recalcVariables( int type );
00052     virtual void recalcAllVariables();
00053     virtual void recalcVariables(const QString &varName);
00054     virtual bool setCustomVariableValue(const QString & varname, const QString & value);
00055     virtual QString customVariableValue(const QString & varname) const;
00056 
00057     virtual int startingPage();
00058     virtual void setStartingPage(int nb);
00059 
00060     virtual void setDisplayLink(bool b);
00061     virtual bool displayLink() const;
00062     virtual bool insertNewPage(int pos );
00063     virtual bool deletePage( int _page );
00064     virtual void deSelectAllObj();
00065     virtual void recalcPageNum();
00066 
00067 
00068     virtual void initConfig();
00069     virtual void saveConfig();
00070 
00071     virtual QString selectedForPrinting() const;
00072 
00073     //Be carefull ! when pgNum > num of page we return false
00074     virtual bool isSlideSelected( int pgNum);
00075 
00076 
00077     virtual DCOPRef header();
00078     virtual DCOPRef footer();
00079 
00080 
00081     virtual void startBackgroundSpellCheck();
00082     virtual void reactivateBgSpellChecking();
00083 
00084     virtual void setConfigUpperCase( bool _uc );
00085     virtual void setConfigUpperUpper( bool _uu );
00086     virtual void setConfigAdvancedAutocorrect( bool _aa );
00087     virtual void setConfigAutoDetectUrl(bool _au);
00088     virtual void setConfigIgnoreDoubleSpace( bool _ids);
00089 
00090     virtual bool configUpperCase() const;
00091     virtual bool configUpperUpper() const;
00092     virtual bool configAdvancedAutoCorrect() const;
00093     virtual bool configAutoDetectUrl() const;
00094     virtual bool configIgnoreDoubleSpace() const;
00095 
00096     virtual void setConfigRemoveSpaceBeginEndLine( bool _space);
00097     virtual void setConfigUseBulletStyle( bool _ubs);
00098 
00099     virtual bool configRemoveSpaceBeginEndLine() const;
00100     virtual bool configUseBulletSyle() const;
00101 
00102     virtual bool configAutoChangeFormat() const;
00103     virtual void setConfigAutoChangeFormat( bool _auto);
00104 
00105     virtual bool configAutoReplaceNumber() const;
00106     virtual void setConfigAutoReplaceNumber( bool b );
00107 
00108     virtual bool showStatusBar() const;
00109     virtual void setShowStatusBar( bool _status );
00110 
00111     void setConfigAutoNumberStyle( bool b );
00112     bool configAutoNumberStyle() const;
00113 
00114     void setConfigCompletion( bool b );
00115     bool configCompletion() const;
00116 
00117     void setConfigAppendSpace( bool b);
00118     bool configAppendSpace() const;
00119 
00120     void setConfigMinWordLength( uint val );
00121     uint configMinWordLength() const;
00122 
00123     void setConfigNbMaxCompletionWord( uint val );
00124     uint configNbMaxCompletionWord() const;
00125 
00126     void setConfigAddCompletionWord( bool b );
00127     bool configAddCompletionWord() const;
00128 
00129     void setConfigToolTipCompletion( bool b );
00130     bool configToolTipCompletion() const;
00131 
00132     bool configIncludeTwoUpperUpperLetterException() const;
00133     void setConfigIncludeTwoUpperUpperLetterException( bool b);
00134 
00135     bool configIncludeAbbreviation() const;
00136     void setConfigIncludeAbbreviation( bool b);
00137 
00138     bool displayComment()const;
00139     void setDisplayComment( bool b);
00140 
00141     bool showGuideLines() const;
00142     void setShowGuideLines( bool b );
00143 
00144     void addGuideLine( bool horizontal, double pos );
00145 
00146     unsigned int nbHorizontalHelpLine() const;
00147     unsigned int nbVerticalHelpLine() const;
00148 
00149     bool showGrid() const;
00150     void setShowGrid ( bool _grid );
00151 
00152     double gridX() const;
00153     void setGridX(double _x);
00154 
00155     double gridY() const;
00156     void setGridY(double _y);
00157 
00158     bool configAutoSuperScript() const;
00159     void setConfigAutoSuperScript( bool b);
00160 
00161     void addIgnoreWordAll( const QString &);
00162     void clearIgnoreWordAll( );
00163 
00164     QStringList spellListIgnoreAll() const;
00165 
00166 
00167     bool displayFieldCode()const;
00168     void setDisplayFieldCode( bool b);
00169     QString configAutoFormatLanguage( )const;
00170 
00171     bool configCapitalizeNameOfDays() const;
00172     void setConfigCapitalizeNameOfDays( bool b);
00173 
00174     QString presentationName() const;
00175     void setPresentationName( const QString &_name );
00176 
00177     QStringList presentationList();
00178 
00181     void repaint();
00182 
00183 private:
00184     KPrDocument *doc;
00185 
00186 };
00187 
00188 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys