summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrDocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrDocument.h')
-rw-r--r--kpresenter/KPrDocument.h315
1 files changed, 158 insertions, 157 deletions
diff --git a/kpresenter/KPrDocument.h b/kpresenter/KPrDocument.h
index 2522266f..749b7441 100644
--- a/kpresenter/KPrDocument.h
+++ b/kpresenter/KPrDocument.h
@@ -49,18 +49,18 @@ class KPrGroupObject;
class KoOasisContext;
class KoOasisSettings;
class KoXmlWriter;
-class QFile;
+class TQFile;
class KoSavingContext;
#include <KoDocument.h>
#include <KoDocumentChild.h>
-#include <qptrlist.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qvaluelist.h>
-#include <qdatetime.h>
-#include <qdict.h>
+#include <tqptrlist.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
+#include <tqdatetime.h>
+#include <tqdict.h>
#include <KoPageLayoutDia.h>
#include "global.h"
@@ -86,14 +86,14 @@ class KPrChild : public KoDocumentChild
public:
// constructor - destructor
- KPrChild( KPrDocument *_kpr, KoDocument* _doc, const QRect& _rect );
+ KPrChild( KPrDocument *_kpr, KoDocument* _doc, const TQRect& _rect );
KPrChild( KPrDocument *_kpr );
~KPrChild();
- // get parent
- KPrDocument* parent()const { return m_parent; }
+ // get tqparent
+ KPrDocument* tqparent()const { return m_parent; }
- virtual KoDocument *hitTest( const QPoint &, const QWMatrix & );
+ virtual KoDocument *hitTest( const TQPoint &, const TQWMatrix & );
protected:
KPrDocument *m_parent;
@@ -102,73 +102,74 @@ protected:
class KPrDocument : public KoDocument
{
Q_OBJECT
- Q_PROPERTY( int maxRecentFiles READ maxRecentFiles )
- Q_PROPERTY( int undoRedoLimit READ undoRedoLimit WRITE setUndoRedoLimit )
- Q_PROPERTY( double indentValue READ getIndentValue WRITE setIndentValue )
- Q_PROPERTY( int getLeftBorder READ getLeftBorder )
- Q_PROPERTY( int getTopBorder READ getTopBorder )
- Q_PROPERTY( int getBottomBorder READ getBottomBorder )
- Q_PROPERTY( int getRightBorder READ getRightBorder )
- Q_PROPERTY( bool cursorInProtectedArea READ cursorInProtectedArea WRITE setCursorInProtectedArea )
- Q_PROPERTY( bool insertDirectCursor READ insertDirectCursor WRITE setInsertDirectCursor )
- Q_PROPERTY( QString picturePath READ picturePath WRITE setPicturePath )
- Q_PROPERTY( QString globalLanguage READ globalLanguage WRITE setGlobalLanguage )
- Q_PROPERTY( bool globalHyphenation READ globalHyphenation WRITE setGlobalHyphenation )
- Q_PROPERTY( double tabStopValue READ tabStopValue WRITE setTabStopValue )
- Q_PROPERTY( bool snapToGrid READ snapToGrid WRITE setSnapToGrid )
- Q_PROPERTY( bool backgroundSpellCheckEnabled READ backgroundSpellCheckEnabled WRITE enableBackgroundSpellCheck )
- Q_PROPERTY( bool spInfiniteLoop READ spInfiniteLoop WRITE setInfiniteLoop )
- Q_PROPERTY( bool spShowEndOfPresentationSlide READ spShowEndOfPresentationSlide WRITE setShowEndOfPresentationSlide )
- Q_PROPERTY( bool spManualSwitch READ spManualSwitch WRITE setManualSwitch )
- Q_PROPERTY( bool presentationDuration READ presentationDuration WRITE setPresentationDuration )
- Q_PROPERTY( QColor gridColor READ gridColor WRITE setGridColor )
- Q_PROPERTY( QColor txtBackCol READ txtBackCol WRITE setTxtBackCol )
+ TQ_OBJECT
+ TQ_PROPERTY( int maxRecentFiles READ maxRecentFiles )
+ TQ_PROPERTY( int undoRedoLimit READ undoRedoLimit WRITE setUndoRedoLimit )
+ TQ_PROPERTY( double indentValue READ getIndentValue WRITE setIndentValue )
+ TQ_PROPERTY( int getLeftBorder READ getLeftBorder )
+ TQ_PROPERTY( int getTopBorder READ getTopBorder )
+ TQ_PROPERTY( int getBottomBorder READ getBottomBorder )
+ TQ_PROPERTY( int getRightBorder READ getRightBorder )
+ TQ_PROPERTY( bool cursorInProtectedArea READ cursorInProtectedArea WRITE setCursorInProtectedArea )
+ TQ_PROPERTY( bool insertDirectCursor READ insertDirectCursor WRITE setInsertDirectCursor )
+ TQ_PROPERTY( TQString picturePath READ picturePath WRITE setPicturePath )
+ TQ_PROPERTY( TQString globalLanguage READ globalLanguage WRITE setGlobalLanguage )
+ TQ_PROPERTY( bool globalHyphenation READ globalHyphenation WRITE setGlobalHyphenation )
+ TQ_PROPERTY( double tabStopValue READ tabStopValue WRITE setTabStopValue )
+ TQ_PROPERTY( bool snapToGrid READ snapToGrid WRITE setSnapToGrid )
+ TQ_PROPERTY( bool backgroundSpellCheckEnabled READ backgroundSpellCheckEnabled WRITE enableBackgroundSpellCheck )
+ TQ_PROPERTY( bool spInfiniteLoop READ spInfiniteLoop WRITE setInfiniteLoop )
+ TQ_PROPERTY( bool spShowEndOfPresentationSlide READ spShowEndOfPresentationSlide WRITE setShowEndOfPresentationSlide )
+ TQ_PROPERTY( bool spManualSwitch READ spManualSwitch WRITE setManualSwitch )
+ TQ_PROPERTY( bool presentationDuration READ presentationDuration WRITE setPresentationDuration )
+ TQ_PROPERTY( TQColor gridColor READ gridColor WRITE setGridColor )
+ TQ_PROPERTY( TQColor txtBackCol READ txtBackCol WRITE setTxtBackCol )
public:
// constructor - destructor
- KPrDocument( QWidget *parentWidget = 0, const char *widgetName = 0, QObject* doc = 0,
+ KPrDocument( TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject* doc = 0,
const char* name = 0, bool singleViewMode = false );
~KPrDocument();
// Drawing
- virtual void paintContent( QPainter& painter, const QRect& rect, bool transparent = false,
+ virtual void paintContent( TQPainter& painter, const TQRect& rect, bool transparent = false,
double zoomX = 1.0, double zoomY = 1.0 );
// save
- virtual QDomDocument saveXML();
+ virtual TQDomDocument saveXML();
virtual bool completeSaving( KoStore* _store );
virtual bool saveOasis( KoStore* store, KoXmlWriter* manifestWriter );
enum SaveFlag { SaveAll, SaveSelected, SavePage };
- void saveOasisDocumentStyles( KoStore* store, KoGenStyles& mainStyles, QFile* masterStyles,
+ void saveOasisDocumentStyles( KoStore* store, KoGenStyles& mainStyles, TQFile* masterStyles,
KoSavingContext & savingContext, SaveFlag saveFlag = SaveAll ) const;
enum { STYLE_BACKGROUNDPAGE = 20, STYLE_BACKGROUNDPAGEAUTO, STYLE_GRADIENT,STYLE_OBJECTANIMATION, STYLE_STROKE, STYLE_MARKER, STYLE_PICTURE, STYLE_PRESENTATIONSTICKYOBJECT };
// load
- virtual bool loadOasis( const QDomDocument& doc, KoOasisStyles& styles, const QDomDocument&, KoStore* store );
+ virtual bool loadOasis( const TQDomDocument& doc, KoOasisStyles& styles, const TQDomDocument&, KoStore* store );
/*
* Load oasis object
* @param pos: we use -1 for sticky page.
*/
- void loadOasisObject( KPrPage * page, QDomNode & drawPage, KoOasisContext & context, KPrGroupObject *groupObject = 0L);
+ void loadOasisObject( KPrPage * page, TQDomNode & drawPage, KoOasisContext & context, KPrGroupObject *groupObject = 0L);
- virtual bool loadXML( const QDomDocument& doc );
- virtual bool loadXML( QIODevice *, const QDomDocument & doc );
+ virtual bool loadXML( const TQDomDocument& doc );
+ virtual bool loadXML( TQIODevice *, const TQDomDocument & doc );
virtual bool loadChildren( KoStore* _store );
virtual int supportedSpecialFormats() const;
- virtual bool initDoc(InitDocFlags flags, QWidget* parentWidget=0);
+ virtual bool initDoc(InitDocFlags flags, TQWidget* tqparentWidget=0);
virtual void setEmpty();
virtual void addView( KoView *_view );
virtual void removeView( KoView *_view );
- // page layout
+ // page tqlayout
void setPageLayout( const KoPageLayout &);
- virtual QPixmap generatePreview( const QSize &size );
+ virtual TQPixmap generatePreview( const TQSize &size );
virtual void addShell( KoMainWindow *shell );
@@ -176,23 +177,23 @@ class KPrDocument : public KoDocument
void createHeaderFooter();
void updateHeaderFooterPosition();
- const QPtrList<KPrPage> & getPageList() const {return m_pageList;}
+ const TQPtrList<KPrPage> & getPageList() const {return m_pageList;}
// @return the master page
KPrPage * masterPage() const { return m_masterPage; }
KPrPage * activePage()const;
- // We need one that's not const, due to QPtrList::at() not being const
- QPtrList<KPrPage>& pageList() { return m_pageList;}
+ // We need one that's not const, due to TQPtrList::at() not being const
+ TQPtrList<KPrPage>& pageList() { return m_pageList;}
void insertPixmapKey( KoPictureKey key );
void insertObjectInPage(double offset, KPrObject *_obj, int pos = -1);
- void setGridValue( double rx, double ry, bool _replace = true );
+ void setGridValue( double rx, double ry, bool _tqreplace = true );
// get - set options for editmodi
- QColor txtBackCol() const { return _txtBackCol; }
- void setTxtBackCol( const QColor &c ) { _otxtBackCol = _txtBackCol; _txtBackCol = c; }
+ TQColor txtBackCol() const { return _txtBackCol; }
+ void setTxtBackCol( const TQColor &c ) { _otxtBackCol = _txtBackCol; _txtBackCol = c; }
// get - set roundedness
unsigned int getRndX() const { return _xRnd; }
@@ -210,17 +211,17 @@ class KPrDocument : public KoDocument
// size of page
- QRect getPageRect( bool decBorders = true ) const;
+ TQRect getPageRect( bool decBorders = true ) const;
void insertObject(KPrChild* ch ){ insertChild(ch);}
- void savePage( const QString &file, int pgnum, bool ignore = false );
+ void savePage( const TQString &file, int pgnum, bool ignore = false );
- void pastePage( const QMimeSource * data, int pgnum );
+ void pastePage( const TQMimeSource * data, int pgnum );
- QString templateFileName(bool chooseTemplate, const QString &theFile );
+ TQString templateFileName(bool chooseTemplate, const TQString &theFile );
- int insertNewPage( const QString &cmdName,int _page, InsertPos _insPos, bool chooseTemplate, const QString &theFile );
+ int insertNewPage( const TQString &cmdName,int _page, InsertPos _insPos, bool chooseTemplate, const TQString &theFile );
/**
* insert page page and go to page insertPageNum on all views
@@ -235,24 +236,24 @@ class KPrDocument : public KoDocument
void deletePage( int _page );
void copyPageToClipboard( int pgnum );
- // repaint all views
- void repaint( bool );
+ // tqrepaint all views
+ void tqrepaint( bool );
- void repaint( const QRect& );
- void repaint( KPrObject* );
+ void tqrepaint( const TQRect& );
+ void tqrepaint( KPrObject* );
// stuff for screen-presentations
/**
* return the list of steps for the selected page
* where objects appear/disappear.
*/
- QValueList<int> getPageEffectSteps( unsigned int );
+ TQValueList<int> getPageEffectSteps( unsigned int );
- QPen presPen() const { return _presPen; }
- void setPresPen( QPen p ) {_presPen = p; }
+ TQPen presPen() const { return _presPen; }
+ void setPresPen( TQPen p ) {_presPen = p; }
void restoreBackground( KPrPage * );
- KCommand * loadPastedObjs( const QString &in, KPrPage* _page );
+ KCommand * loadPastedObjs( const TQString &in, KPrPage* _page );
void deSelectAllObj();
void deSelectObj(KPrObject *obj);
@@ -288,8 +289,8 @@ class KPrDocument : public KoDocument
// Returns true if the slide pgNum (0 based)
bool isSlideSelected( int pgNum) ;
// Returns the list of selected slides. Slide numbers are 0-based.
- QValueList<int> selectedSlides();
- QString selectedForPrinting();
+ TQValueList<int> selectedSlides();
+ TQString selectedForPrinting();
virtual DCOPObject* dcopObject();
@@ -301,13 +302,13 @@ class KPrDocument : public KoDocument
void updateAllStyleLists();
void applyStyleChange( KoStyleChangeDefMap changed );
- void updateStyleListOrder( const QStringList &list );
+ void updateStyleListOrder( const TQStringList &list );
void addCommand( KCommand * cmd );
KoTextZoomHandler* zoomHandler() const { return m_zoomHandler; }
- QFont defaultFont() const { return m_defaultFont; }
- void setDefaultFont( const QFont & newFont) {
+ TQFont defaultFont() const { return m_defaultFont; }
+ void setDefaultFont( const TQFont & newFont) {
m_defaultFont = newFont;
}
@@ -370,10 +371,10 @@ class KPrDocument : public KoDocument
void updateSideBarItem( KPrPage * page );
KPrPage * findPage(KPrObject *object);
- KPrPage * findPage(QPtrList<KPrObject> &objects);
+ KPrPage * findPage(TQPtrList<KPrObject> &objects);
- void refreshAllNoteBar(int page, const QString &text, KPrView *exceptView);
- void refreshAllNoteBarMasterPage(const QString &text, KPrView *exceptView);
+ void refreshAllNoteBar(int page, const TQString &text, KPrView *exceptView);
+ void refreshAllNoteBarMasterPage(const TQString &text, KPrView *exceptView);
bool backgroundSpellCheckEnabled() const;
@@ -383,11 +384,11 @@ class KPrDocument : public KoDocument
//refresh obj when we active or disactive
void reactivateBgSpellChecking(bool refreshTextObj=false);
- QPtrList<KoTextObject> allTextObjects() const;
- QValueList<KoTextObject *> visibleTextObjects( ) const;
+ TQPtrList<KoTextObject> allTextObjects() const;
+ TQValueList<KoTextObject *> visibleTextObjects( ) const;
/// Reimplementation from KoDocument.
- virtual QValueList<KoTextDocument *> allTextDocuments() const;
+ virtual TQValueList<KoTextDocument *> allTextDocuments() const;
bool allowAutoFormat() const { return m_bAllowAutoFormat; }
void setAllowAutoFormat(bool _b){ m_bAllowAutoFormat=_b; }
@@ -406,28 +407,28 @@ class KPrDocument : public KoDocument
*
* @return list of positions of the horizontal guide lines
*/
- QValueList<double> &horizontalGuideLines() { return m_hGuideLines; }
+ TQValueList<double> &horizontalGuideLines() { return m_hGuideLines; }
/**
* @brief Get the positions of the vertical guide lines
*
* @return list of positions of the vertical guide lines
*/
- QValueList<double> &verticalGuideLines() { return m_vGuideLines; }
+ TQValueList<double> &verticalGuideLines() { return m_vGuideLines; }
/**
* @brief Set the positions of the horizontal guide lines
*
* @param lines a list of positions of the horizontal guide lines
*/
- void horizontalGuideLines( const QValueList<double> &lines );
+ void horizontalGuideLines( const TQValueList<double> &lines );
/**
* @brief Set the positions of the vertical guide lines
*
* @param lines a list of positions of the vertical guide lines
*/
- void verticalGuideLines( const QValueList<double> &lines );
+ void verticalGuideLines( const TQValueList<double> &lines );
/**
* @brief Add a guide line
@@ -450,67 +451,67 @@ class KPrDocument : public KoDocument
bool snapToGrid() const { return m_bSnapToGrid; }
void setSnapToGrid( bool _b ) { m_bSnapToGrid = _b; }
- QColor gridColor() const { return m_gridColor; }
- void setGridColor( const QColor & _col ) { m_gridColor = _col; }
+ TQColor gridColor() const { return m_gridColor; }
+ void setGridColor( const TQColor & _col ) { m_gridColor = _col; }
- QStringList spellCheckIgnoreList() const { return m_spellCheckIgnoreList; }
- void setSpellCheckIgnoreList( const QStringList& lst );
- void addSpellCheckIgnoreWord( const QString & );
+ TQStringList spellCheckIgnoreList() const { return m_spellCheckIgnoreList; }
+ void setSpellCheckIgnoreList( const TQStringList& lst );
+ void addSpellCheckIgnoreWord( const TQString & );
KoCommandHistory * commandHistory()const { return m_commandHistory; }
void updateObjectStatusBarItem();
void updateObjectSelected();
- void layout(KPrObject *kpobject);
- void layout();
+ void tqlayout(KPrObject *kpobject);
+ void tqlayout();
void changeBgSpellCheckingState( bool b );
bool cursorInProtectedArea()const;
void setCursorInProtectedArea( bool b );
- void insertFile(const QString & file );
+ void insertFile(const TQString & file );
void spellCheckParagraphDeleted( KoTextParag *_parag, KPrTextObject *frm);
- void loadPictureMap ( const QDomElement& domElement );
+ void loadPictureMap ( const TQDomElement& domElement );
void updateRulerInProtectContentMode();
void updatePresentationButton();
void refreshGroupButton();
- QString picturePath()const { return m_picturePath; }
- void setPicturePath( const QString & _path ) { m_picturePath = _path ; }
+ TQString picturePath()const { return m_picturePath; }
+ void setPicturePath( const TQString & _path ) { m_picturePath = _path ; }
bool insertDirectCursor() const { return m_bInsertDirectCursor; }
void setInsertDirectCursor(bool _b);
void updateDirectCursorButton();
- QString globalLanguage()const { return m_globalLanguage; }
- void setGlobalLanguage( const QString & _lang ){m_globalLanguage = _lang;}
+ TQString globalLanguage()const { return m_globalLanguage; }
+ void setGlobalLanguage( const TQString & _lang ){m_globalLanguage = _lang;}
bool globalHyphenation() const { return m_bGlobalHyphenation; }
void setGlobalHyphenation ( bool _hyphen ) { m_bGlobalHyphenation = _hyphen; }
- void addWordToDictionary( const QString & word);
+ void addWordToDictionary( const TQString & word);
void loadImagesFromStore( KoStore *_store );
- void saveEmbeddedObject(KPrPage *page, const QPtrList<KoDocumentChild>& childList ,QDomDocument &doc,QDomElement &presenter );
- void insertEmbedded( KoStore *store, QDomElement elem, KMacroCommand * macroCmd, KPrPage *page, int pos );
+ void saveEmbeddedObject(KPrPage *page, const TQPtrList<KoDocumentChild>& childList ,TQDomDocument &doc,TQDomElement &presenter );
+ void insertEmbedded( KoStore *store, TQDomElement elem, KMacroCommand * macroCmd, KPrPage *page, int pos );
KPrBgSpellCheck* backSpeller() const { return m_bgSpellCheck; }
void setCustomSlideShows( const CustomSlideShowMap & customSlideShows );
- QValueList <KPrPage *> customListPage( const QStringList & lst, bool loadOasis=false );
+ TQValueList <KPrPage *> customListPage( const TQStringList & lst, bool loadOasis=false );
- QString presentationName() const { return m_presentationName; }
- void setPresentationName( const QString &_name ) { m_presentationName = _name; }
+ TQString presentationName() const { return m_presentationName; }
+ void setPresentationName( const TQString &_name ) { m_presentationName = _name; }
- QStringList presentationList();
+ TQStringList presentationList();
//return list of slide which be displaying:
//return selected slide when presentation name is empty
//otherwise return list of custom slide show
- QValueList<int> displaySelectedSlides();
- QValueList<int> listOfDisplaySelectedSlides( const QValueList<KPrPage*>& lst );
- void testCustomSlideShow( const QValueList<KPrPage *> &pages, KPrView *view );
+ TQValueList<int> displaySelectedSlides();
+ TQValueList<int> listOfDisplaySelectedSlides( const TQValueList<KPrPage*>& lst );
+ void testCustomSlideShow( const TQValueList<KPrPage *> &pages, KPrView *view );
void clearTestCustomSlideShow();
const CustomSlideShowMap & customSlideShows() { return m_customListSlideShow; }
@@ -543,59 +544,59 @@ protected slots:
void slotCommandExecuted();
void slotDocumentInfoModifed();
- virtual void openExistingFile( const QString& file );
- virtual void openTemplate( const QString& file );
+ virtual void openExistingFile( const TQString& file );
+ virtual void openTemplate( const TQString& file );
protected:
- KoView* createViewInstance( QWidget* parent, const char* name );
+ KoView* createViewInstance( TQWidget* tqparent, const char* name );
void testAndCloseAllTextObjectProtectedContent();
// ************ functions ************
/**
- * Overloaded function from @ref Document_impl. Saves all children.
+ * Overloaded function from @ref Document_impl. Saves all tqchildren.
*/
virtual bool saveChildren( KoStore* _store );
- void loadStyleTemplates( const QDomElement &styles );
- void saveStyle( KoParagStyle *sty, QDomElement parentElem );
-
- QDomDocumentFragment saveBackground( QDomDocument& );
- QDomElement saveObjects( QDomDocument &doc );
- QDomElement saveTitle( QDomDocument &doc );
- QDomElement saveNote( QDomDocument &doc );
- QDomElement saveAttribute( QDomDocument &doc );
- QDomElement saveUsedSoundFileToXML( QDomDocument &_doc, QStringList _list );
- void loadTextStyle( const QDomElement& domElement );
- void saveEmbeddedObject(KPrPage *page, KoDocumentChild *chl,QDomDocument &doc,QDomElement &presenter, double offset );
- void saveGuideLines( QDomDocument &doc, QDomElement& element );
-
- void loadBackground( const QDomElement &element );
- void loadGuideLines( const QDomElement &element );
- KCommand * loadObjects( const QDomElement &element,bool paste=false );
- void loadTitle( const QDomElement &element );
- void loadNote( const QDomElement &element );
- void loadUsedSoundFileFromXML( const QDomElement &element );
+ void loadStyleTemplates( const TQDomElement &styles );
+ void saveStyle( KoParagStyle *sty, TQDomElement tqparentElem );
+
+ TQDomDocumentFragment saveBackground( TQDomDocument& );
+ TQDomElement saveObjects( TQDomDocument &doc );
+ TQDomElement saveTitle( TQDomDocument &doc );
+ TQDomElement saveNote( TQDomDocument &doc );
+ TQDomElement saveAttribute( TQDomDocument &doc );
+ TQDomElement saveUsedSoundFileToXML( TQDomDocument &_doc, TQStringList _list );
+ void loadTextStyle( const TQDomElement& domElement );
+ void saveEmbeddedObject(KPrPage *page, KoDocumentChild *chl,TQDomDocument &doc,TQDomElement &presenter, double offset );
+ void saveGuideLines( TQDomDocument &doc, TQDomElement& element );
+
+ void loadBackground( const TQDomElement &element );
+ void loadGuideLines( const TQDomElement &element );
+ KCommand * loadObjects( const TQDomElement &element,bool paste=false );
+ void loadTitle( const TQDomElement &element );
+ void loadNote( const TQDomElement &element );
+ void loadUsedSoundFileFromXML( const TQDomElement &element );
virtual bool completeLoading( KoStore* /* _store */ );
void makeUsedPixmapList();
void makeUsedSoundFileList();
- void saveUsedSoundFileToStore( KoStore *_store, QStringList _list );
- void loadUsedSoundFileFromStore( KoStore *_store, QStringList _list );
- void fillStyleStack( const QDomElement& object, KoOasisContext & context, const char* family );
+ void saveUsedSoundFileToStore( KoStore *_store, TQStringList _list );
+ void loadUsedSoundFileFromStore( KoStore *_store, TQStringList _list );
+ void fillStyleStack( const TQDomElement& object, KoOasisContext & context, const char* family );
/*
* increaseOrder = true by default, put to false when we have group of animation
*/
- int createPresentationAnimation(const QDomElement& element, int order = 0 ,bool increaseOrder = true);
+ int createPresentationAnimation(const TQDomElement& element, int order = 0 ,bool increaseOrder = true);
- void saveOasisPresentationSettings( KoXmlWriter &contentTmpWriter, QMap<int, QString> &page2name );
- void loadOasisPresentationSettings( QDomNode &settingsDoc );
- void saveOasisPresentationCustomSlideShow( KoXmlWriter &contentTmpWriter, QMap<int, QString> &page2name );
- void loadOasisPresentationCustomSlideShow( QDomNode &settingsDoc );
+ void saveOasisPresentationSettings( KoXmlWriter &contentTmpWriter, TQMap<int, TQString> &page2name );
+ void loadOasisPresentationSettings( TQDomNode &settingsDoc );
+ void saveOasisPresentationCustomSlideShow( KoXmlWriter &contentTmpWriter, TQMap<int, TQString> &page2name );
+ void loadOasisPresentationCustomSlideShow( TQDomNode &settingsDoc );
- void loadOasisHeaderFooter( QDomNode & drawPage, KoOasisContext & context);
+ void loadOasisHeaderFooter( TQDomNode & drawPage, KoOasisContext & context);
void saveOasisSettings( KoXmlWriter &contentTmpWriter );
- void loadOasisSettings( const QDomDocument&settingsDoc );
+ void loadOasisSettings( const TQDomDocument&settingsDoc );
void saveOasisCustomFied( KoXmlWriter &writer )const;
@@ -604,7 +605,7 @@ protected:
//we move presSpeed to each table => compatibility with old file format
void compatibilityFromOldFileFormat();
- void parseOasisGuideLines( const QString &str );
+ void parseOasisGuideLines( const TQString &str );
/**
* recalc the variables
@@ -620,20 +621,20 @@ protected:
int _xRnd, _yRnd;
// options for editmode
- QColor _txtBackCol;
- QColor _otxtBackCol;
+ TQColor _txtBackCol;
+ TQColor _otxtBackCol;
bool _clean;
int objStartY, objStartNum;
- QPen _presPen;
+ TQPen _presPen;
KoPictureCollection m_pictureCollection;
KPrGradientCollection _gradientCollection;
KPrTextObject *_header, *_footer;
- QMap<KoPictureKey, QString> m_pictureMap;
+ TQMap<KoPictureKey, TQString> m_pictureMap;
CustomSlideShowMap m_customListSlideShow;
@@ -641,20 +642,20 @@ protected:
KoPageLayout __pgLayout;
int lastObj;
- QString urlIntern;
+ TQString urlIntern;
- QValueList<KoPictureKey> usedPictures;
- QStringList usedSoundFile, haveNotOwnDiskSoundFile;
- QPtrList<KTempFile> tmpSoundFileList;
+ TQValueList<KoPictureKey> usedPictures;
+ TQStringList usedSoundFile, haveNotOwnDiskSoundFile;
+ TQPtrList<KTempFile> tmpSoundFileList;
DCOPObject *dcop;
int saveOnlyPage;
- QString m_tempFileInClipboard;
+ TQString m_tempFileInClipboard;
bool ignoreSticky;
KoCommandHistory * m_commandHistory;
KoTextZoomHandler* m_zoomHandler;
- QFont m_defaultFont;
+ TQFont m_defaultFont;
KoAutoFormat * m_autoFormat;
bool m_bShowRuler;
@@ -673,19 +674,19 @@ protected:
bool m_cursorInProtectectedArea;
KoVariableFormatCollection *m_varFormatCollection;
KPrVariableCollection *m_varColl;
- QColor m_gridColor;
+ TQColor m_gridColor;
bool _duplicatePage;
private:
/// list of positions of horizontal guide lines
- QValueList<double> m_hGuideLines;
+ TQValueList<double> m_hGuideLines;
/// list of positions of vertical guide lines
- QValueList<double> m_vGuideLines;
+ TQValueList<double> m_vGuideLines;
- QPtrList<KPrPage> m_pageList;
- QPtrList<KPrPage> m_deletedPageList;
+ TQPtrList<KPrPage> m_pageList;
+ TQPtrList<KPrPage> m_deletedPageList;
- QStringList m_spellCheckIgnoreList; // per-document
- QStringList m_spellCheckPersonalDict; // per-user
+ TQStringList m_spellCheckIgnoreList; // per-document
+ TQStringList m_spellCheckPersonalDict; // per-user
double m_gridX;
double m_gridY;
@@ -698,16 +699,16 @@ private:
KPrBgSpellCheck *m_bgSpellCheck;
KoStyleCollection *m_styleColl;
KPrObject *bgObjSpellChecked;
- QString m_picturePath;
+ TQString m_picturePath;
bool m_bInsertDirectCursor;
- QString m_globalLanguage;
- QString m_presentationName;
+ TQString m_globalLanguage;
+ TQString m_presentationName;
bool m_bGlobalHyphenation;
KPrLoadingInfo *m_loadingInfo;
- QValueList<int> *m_customListTest;
+ TQValueList<int> *m_customListTest;
- /// here the amount of existing children before inserting a page/file
- /// is saved, so that we load the correct children
+ /// here the amount of existing tqchildren before inserting a page/file
+ /// is saved, so that we load the correct tqchildren
int m_childCountBeforeInsert;
};