diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kpresenter/KPrGroupObject.h | |
download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrGroupObject.h')
-rw-r--r-- | kpresenter/KPrGroupObject.h | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/kpresenter/KPrGroupObject.h b/kpresenter/KPrGroupObject.h new file mode 100644 index 00000000..0dfd28d2 --- /dev/null +++ b/kpresenter/KPrGroupObject.h @@ -0,0 +1,116 @@ +// -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- +/* This file is part of the KDE project + Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org> + Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. +*/ + +#ifndef kpgroupobject_h +#define kpgroupobject_h + +class KPrDocument; +class KoOasisContext; +class KPrPage; +class KoXmlWriter; + +#include "KPrObject.h" + +class KPrGroupObject : public KPrObject +{ +public: + KPrGroupObject(); + KPrGroupObject( const QPtrList<KPrObject> &objs ); + virtual ~KPrGroupObject() {} + + KPrGroupObject &operator=( const KPrGroupObject & ); + + virtual void setSize( double _width, double _height ); + virtual void setOrig( const KoPoint &_point ); + virtual void setOrig( double _x, double _y ); + virtual void moveBy( const KoPoint &_point ); + virtual void moveBy( double _dx, double _dy ); + + virtual void rotate( float _angle ); + virtual void setShadowDistance( int _distance ); + virtual void setShadowDirection( ShadowDirection _direction ); + virtual void setShadowColor( const QColor &_color ); + virtual void setEffect( Effect _effect ); + virtual void setEffect2( Effect2 _effect2 ); + virtual void setAppearStep( int _appearStep ); + virtual void setDisappear( bool b ); + virtual void setDisappearStep( int _disappearStep ); + virtual void setEffect3( Effect3 _effect3); + virtual void setAppearTimer( int _appearTimer ); + virtual void setDisappearTimer( int _disappearTimer ); + virtual void setAppearSoundEffect( bool b ); + virtual void setDisappearSoundEffect( bool b ); + virtual void setAppearSoundEffectFileName( const QString &_a_fileName ); + virtual void setDisappearSoundEffectFileName( const QString &_d_fileName ); + + virtual void setShadowParameter(int _distance,ShadowDirection _direction,const QColor &_color); + + virtual ObjType getType() const + { return OT_GROUP; } + virtual QString getTypeString() const + { return i18n("Group"); } + + virtual QDomDocumentFragment save( QDomDocument& doc, double offset ); + virtual double load(const QDomElement &element, KPrDocument *doc); + virtual void loadOasisGroupObject( KPrDocument *doc, KPrPage * newpage, QDomNode &element, KoOasisContext & context, KPrLoadingInfo *info); + + virtual void draw( QPainter *_painter, KoTextZoomHandler *_zoomhandler, + int pageNum, SelectionMode selectionMode, bool drawContour = FALSE ); + + void addObjects( KPrObject * obj ); + + void setUpdateObjects( bool b ) + { updateObjs = b; } + + QPtrList<KPrObject> getObjects() + { return objects; } + const QPtrList<KPrObject> &objectList() const + { return objects; } + virtual void addTextObjects( QPtrList<KoTextObject> & ) const; + + void selectAllObj(); + void deSelectAllObj(); + + virtual void setOwnClipping( bool _ownClipping ); + virtual void setSubPresStep( int _subPresStep ); + virtual void doSpecificEffects( bool _specEffects, bool _onlyCurrStep = true ); + virtual void getAllObjectSelectedList(QPtrList<KPrObject> &lst,bool force=false ); + + virtual void flip( bool horizontal ); + virtual void removeFromObjList(); + virtual void addToObjList(); + virtual void incCmdRef(); + virtual void decCmdRef(); + +protected: + virtual const char * getOasisElementName() const; + virtual bool saveOasisObjectAttributes( KPOasisSaveContext &sc ) const; + virtual void saveOasisPosObject( KoXmlWriter &xmlWriter, int indexObj ) const; + + void updateSizes( double fx, double fy ); + void updateCoords( double dx, double dy ); + + QPtrList<KPrObject> objects; + bool updateObjs; + +}; + +#endif |