#include <kspread_object.h>

Inheritance diagram for KSpread::EmbeddedPictureObject:
KSpread::EmbeddedObject

Public Member Functions

 EmbeddedPictureObject (Sheet *_sheet, const KoRect &_geometry, KoPictureCollection *_imageCollection)
 
 EmbeddedPictureObject (Sheet *_sheet, const KoRect &_geometry, KoPictureCollection *_imageCollection, const KoPictureKey &key)
 
 EmbeddedPictureObject (Sheet *_sheet, KoPictureCollection *_imageCollection)
 
EmbeddedPictureObject & operator= (const EmbeddedPictureObject &)
 
virtual ObjType getType () const
 
virtual TQString getTypeString () const
 
bool load (const TQDomElement &element)
 
virtual void loadOasis (const TQDomElement &element, KoOasisLoadingContext &context)
 
TQDomElement save (TQDomDocument &doc)
 
virtual void draw (TQPainter *_painter)
 
virtual TQPixmap toPixmap (double xZoom, double yZoom)
 
TQString getFileName () const
 
KoPictureKey getKey () const
 
TQSize originalSize () const
 
void setPicture (const KoPictureKey &key)
 
void reload (void)
 
TQPixmap getOriginalPixmap ()
 
PictureMirrorType getPictureMirrorType () const
 
int getPictureDepth () const
 
bool getPictureSwapRGB () const
 
bool getPictureGrayscal () const
 
int getPictureBright () const
 
ImageEffect getImageEffect () const
 
TQVariant getIEParam1 () const
 
TQVariant getIEParam2 () const
 
TQVariant getIEParam3 () const
 
void setImageEffect (ImageEffect eff)
 
void setIEParams (TQVariant p1, TQVariant p2, TQVariant p3)
 
void setPictureMirrorType (const PictureMirrorType &_mirrorType)
 
void setPictureDepth (int _depth)
 
void setPictureSwapRGB (bool _swapRGB)
 
void setPictureGrayscal (bool _grayscal)
 
void setPictureBright (int _bright)
 
KoPicture picture () const
 
void loadPicture (const TQString &fileName)
 
virtual void flip (bool horizontal)
 
- Public Member Functions inherited from KSpread::EmbeddedObject
 EmbeddedObject (Sheet *_sheet, const KoRect &_geometry)
 
KoRect geometry ()
 
void setGeometry (const KoRect &rect)
 
virtual void moveBy (const KoPoint &_point)
 
virtual void moveBy (double _dx, double _dy)
 
virtual void resizeBy (const KoSize &_size)
 
virtual void resizeBy (double _dx, double _dy)
 
Sheet * sheet () const
 
void setSelected (bool s)
 
bool isSelected () const
 
void setObjectName (const TQString &_objectName)
 
TQString getObjectName () const
 
virtual void setProtect (bool b)
 
bool isProtect () const
 
virtual void setKeepRatio (bool b)
 
bool isKeepRatio () const
 
virtual void rotate (float _angle)
 
virtual float getAngle () const
 
virtual bool saveOasisObject (KSpreadOasisSaveContext &sc) const
 
TQPixmap toPixmap (TQSize size)
 
TQPixmap toPixmap ()
 
void paintSelection (TQPainter *_painter, SelectionMode selectionMode)
 
virtual TQCursor getCursor (const TQPoint &_point, ModifyType &_modType, TQRect &geometry) const
 
virtual void removeFromObjList ()
 
virtual void addToObjList ()
 
virtual void incCmdRef ()
 
virtual void decCmdRef ()
 
virtual TQBrush getBrush () const
 

Protected Member Functions

virtual const char * getOasisElementName () const
 
virtual bool saveOasisObjectAttributes (KSpreadOasisSaveContext &sc) const
 
TQPixmap changePictureSettings (TQPixmap _tmpPixmap)
 
virtual void saveOasisPictureElement (KoGenStyle &styleobjectauto) const
 
void loadOasisPictureEffect (KoOasisLoadingContext &context)
 
virtual void fillStyle (KoGenStyle &styleObjectAuto, KoGenStyles &mainStyles) const
 
void drawShadow (TQPainter *_painter, KoZoomHandler *_zoomHandler)
 
TQPixmap generatePixmap (KoZoomHandler *_zoomHandler)
 
TQString convertValueToPercent (int val) const
 
- Protected Member Functions inherited from KSpread::EmbeddedObject
virtual void saveOasisPosObject (KoXmlWriter &xmlWriter, int indexObj) const
 
virtual void doDelete ()
 
void calculateRequiredZoom (TQSize desiredSize, double &xZoom, double &yZoom)
 

Protected Attributes

KoPictureCollection * imageCollection
 
KoPicture image
 
PictureMirrorType mirrorType
 
PictureMirrorType m_cachedMirrorType
 
int depth
 
int m_cachedDepth
 
bool swapRGB
 
bool m_cachedSwapRGB
 
bool grayscal
 
bool m_cachedGrayscal
 
int bright
 
int m_cachedBright
 
ImageEffect m_effect
 
ImageEffect m_cachedEffect
 
TQVariant m_ie_par1
 
TQVariant m_cachedPar1
 
TQVariant m_ie_par2
 
TQVariant m_cachedPar2
 
TQVariant m_ie_par3
 
TQVariant m_cachedPar3
 
TQPixmap m_cachedPixmap
 
TQRect m_cachedRect
 
- Protected Attributes inherited from KSpread::EmbeddedObject
KoRect m_geometry
 
Sheet * m_sheet
 
Canvas * m_canvas
 
TQString m_objectName
 
bool m_selected:1
 
bool m_protect:1
 
bool m_keepRatio:1
 
bool inObjList:1
 
int cmds
 
float angle
 
KoPen pen
 
KoBrush m_brush
 

Detailed Description

Holds a picture object.

Definition at line 314 of file kspread_object.h.

Constructor & Destructor Documentation

◆ EmbeddedPictureObject() [1/3]

EmbeddedPictureObject::EmbeddedPictureObject ( Sheet *  _sheet,
const KoRect &  _geometry,
KoPictureCollection *  _imageCollection 
)

Definition at line 690 of file kspread_object.cpp.

◆ EmbeddedPictureObject() [2/3]

EmbeddedPictureObject::EmbeddedPictureObject ( Sheet *  _sheet,
const KoRect &  _geometry,
KoPictureCollection *  _imageCollection,
const KoPictureKey &  key 
)

Definition at line 709 of file kspread_object.cpp.

◆ EmbeddedPictureObject() [3/3]

EmbeddedPictureObject::EmbeddedPictureObject ( Sheet *  _sheet,
KoPictureCollection *  _imageCollection 
)

Definition at line 731 of file kspread_object.cpp.

◆ ~EmbeddedPictureObject()

EmbeddedPictureObject::~EmbeddedPictureObject ( )
virtual

Definition at line 751 of file kspread_object.cpp.

Member Function Documentation

◆ changePictureSettings()

TQPixmap EmbeddedPictureObject::changePictureSettings ( TQPixmap  _tmpPixmap)
protected

Definition at line 1383 of file kspread_object.cpp.

◆ convertValueToPercent()

TQString EmbeddedPictureObject::convertValueToPercent ( int  val) const
protected

Definition at line 766 of file kspread_object.cpp.

◆ draw()

void EmbeddedPictureObject::draw ( TQPainter *  _painter)
virtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 1251 of file kspread_object.cpp.

◆ drawShadow()

void EmbeddedPictureObject::drawShadow ( TQPainter *  _painter,
KoZoomHandler *  _zoomHandler 
)
protected

Definition at line 1150 of file kspread_object.cpp.

◆ fillStyle()

void EmbeddedPictureObject::fillStyle ( KoGenStyle &  styleObjectAuto,
KoGenStyles &  mainStyles 
) const
protectedvirtual

Definition at line 995 of file kspread_object.cpp.

◆ flip()

void EmbeddedPictureObject::flip ( bool  horizontal)
virtual

Definition at line 1582 of file kspread_object.cpp.

◆ generatePixmap()

TQPixmap EmbeddedPictureObject::generatePixmap ( KoZoomHandler *  _zoomHandler)
protected

Definition at line 1207 of file kspread_object.cpp.

◆ getFileName()

TQString KSpread::EmbeddedPictureObject::getFileName ( ) const
inline

Only used as a default value in the filedialog, in changePicture.

Warning
Do not use for anything else

Definition at line 340 of file kspread_object.h.

◆ getIEParam1()

TQVariant KSpread::EmbeddedPictureObject::getIEParam1 ( ) const
inline

Definition at line 369 of file kspread_object.h.

◆ getIEParam2()

TQVariant KSpread::EmbeddedPictureObject::getIEParam2 ( ) const
inline

Definition at line 370 of file kspread_object.h.

◆ getIEParam3()

TQVariant KSpread::EmbeddedPictureObject::getIEParam3 ( ) const
inline

Definition at line 371 of file kspread_object.h.

◆ getImageEffect()

ImageEffect KSpread::EmbeddedPictureObject::getImageEffect ( ) const
inline

Definition at line 368 of file kspread_object.h.

◆ getKey()

KoPictureKey KSpread::EmbeddedPictureObject::getKey ( ) const
inline

Definition at line 343 of file kspread_object.h.

◆ getOasisElementName()

const char * EmbeddedPictureObject::getOasisElementName ( ) const
protectedvirtual

Get the element name for saving the object.

Implements KSpread::EmbeddedObject.

Definition at line 883 of file kspread_object.cpp.

◆ getOriginalPixmap()

TQPixmap EmbeddedPictureObject::getOriginalPixmap ( )

Definition at line 1373 of file kspread_object.cpp.

◆ getPictureBright()

int KSpread::EmbeddedPictureObject::getPictureBright ( ) const
inline

Definition at line 366 of file kspread_object.h.

◆ getPictureDepth()

int KSpread::EmbeddedPictureObject::getPictureDepth ( ) const
inline

Definition at line 363 of file kspread_object.h.

◆ getPictureGrayscal()

bool KSpread::EmbeddedPictureObject::getPictureGrayscal ( ) const
inline

Definition at line 365 of file kspread_object.h.

◆ getPictureMirrorType()

PictureMirrorType KSpread::EmbeddedPictureObject::getPictureMirrorType ( ) const
inline

Definition at line 362 of file kspread_object.h.

◆ getPictureSwapRGB()

bool KSpread::EmbeddedPictureObject::getPictureSwapRGB ( ) const
inline

Definition at line 364 of file kspread_object.h.

◆ getType()

virtual ObjType KSpread::EmbeddedPictureObject::getType ( ) const
inlinevirtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 323 of file kspread_object.h.

◆ getTypeString()

virtual TQString KSpread::EmbeddedPictureObject::getTypeString ( ) const
inlinevirtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 324 of file kspread_object.h.

◆ load()

bool EmbeddedPictureObject::load ( const TQDomElement &  element)
virtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 755 of file kspread_object.cpp.

◆ loadOasis()

void EmbeddedPictureObject::loadOasis ( const TQDomElement &  element,
KoOasisLoadingContext &  context 
)
virtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 1001 of file kspread_object.cpp.

◆ loadOasisPictureEffect()

void EmbeddedPictureObject::loadOasisPictureEffect ( KoOasisLoadingContext &  context)
protected

Definition at line 942 of file kspread_object.cpp.

◆ loadPicture()

void EmbeddedPictureObject::loadPicture ( const TQString &  fileName)

Definition at line 889 of file kspread_object.cpp.

◆ operator=()

EmbeddedPictureObject & EmbeddedPictureObject::operator= ( const EmbeddedPictureObject &  )

Definition at line 894 of file kspread_object.cpp.

◆ originalSize()

TQSize KSpread::EmbeddedPictureObject::originalSize ( ) const
inline

Definition at line 346 of file kspread_object.h.

◆ picture()

KoPicture KSpread::EmbeddedPictureObject::picture ( ) const
inline

Definition at line 385 of file kspread_object.h.

◆ reload()

void EmbeddedPictureObject::reload ( void  )

Definition at line 904 of file kspread_object.cpp.

◆ save()

TQDomElement EmbeddedPictureObject::save ( TQDomDocument &  doc)
virtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 760 of file kspread_object.cpp.

◆ saveOasisObjectAttributes()

bool EmbeddedPictureObject::saveOasisObjectAttributes ( KSpreadOasisSaveContext &  sc) const
protectedvirtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 871 of file kspread_object.cpp.

◆ saveOasisPictureElement()

void EmbeddedPictureObject::saveOasisPictureElement ( KoGenStyle &  styleobjectauto) const
protectedvirtual

Definition at line 771 of file kspread_object.cpp.

◆ setIEParams()

void KSpread::EmbeddedPictureObject::setIEParams ( TQVariant  p1,
TQVariant  p2,
TQVariant  p3 
)
inline

Definition at line 373 of file kspread_object.h.

◆ setImageEffect()

void KSpread::EmbeddedPictureObject::setImageEffect ( ImageEffect  eff)
inline

Definition at line 372 of file kspread_object.h.

◆ setPicture()

void EmbeddedPictureObject::setPicture ( const KoPictureKey &  key)

Definition at line 899 of file kspread_object.cpp.

◆ setPictureBright()

void KSpread::EmbeddedPictureObject::setPictureBright ( int  _bright)
inline

Definition at line 383 of file kspread_object.h.

◆ setPictureDepth()

void KSpread::EmbeddedPictureObject::setPictureDepth ( int  _depth)
inline

Definition at line 380 of file kspread_object.h.

◆ setPictureGrayscal()

void KSpread::EmbeddedPictureObject::setPictureGrayscal ( bool  _grayscal)
inline

Definition at line 382 of file kspread_object.h.

◆ setPictureMirrorType()

void KSpread::EmbeddedPictureObject::setPictureMirrorType ( const PictureMirrorType &  _mirrorType)
inline

Definition at line 379 of file kspread_object.h.

◆ setPictureSwapRGB()

void KSpread::EmbeddedPictureObject::setPictureSwapRGB ( bool  _swapRGB)
inline

Definition at line 381 of file kspread_object.h.

◆ toPixmap()

TQPixmap EmbeddedPictureObject::toPixmap ( double  xZoom,
double  yZoom 
)
virtual

See EmbeddedObject::toPixmap(double,double)

Reimplemented from KSpread::EmbeddedObject.

Definition at line 1200 of file kspread_object.cpp.

Member Data Documentation

◆ bright

int KSpread::EmbeddedPictureObject::bright
protected

Definition at line 416 of file kspread_object.h.

◆ depth

int KSpread::EmbeddedPictureObject::depth
protected

Definition at line 413 of file kspread_object.h.

◆ grayscal

bool KSpread::EmbeddedPictureObject::grayscal
protected

Definition at line 415 of file kspread_object.h.

◆ image

KoPicture KSpread::EmbeddedPictureObject::image
protected

Definition at line 410 of file kspread_object.h.

◆ imageCollection

KoPictureCollection* KSpread::EmbeddedPictureObject::imageCollection
protected

Definition at line 409 of file kspread_object.h.

◆ m_cachedBright

int KSpread::EmbeddedPictureObject::m_cachedBright
protected

Definition at line 416 of file kspread_object.h.

◆ m_cachedDepth

int KSpread::EmbeddedPictureObject::m_cachedDepth
protected

Definition at line 413 of file kspread_object.h.

◆ m_cachedEffect

ImageEffect KSpread::EmbeddedPictureObject::m_cachedEffect
protected

Definition at line 419 of file kspread_object.h.

◆ m_cachedGrayscal

bool KSpread::EmbeddedPictureObject::m_cachedGrayscal
protected

Definition at line 415 of file kspread_object.h.

◆ m_cachedMirrorType

PictureMirrorType KSpread::EmbeddedPictureObject::m_cachedMirrorType
protected

Definition at line 412 of file kspread_object.h.

◆ m_cachedPar1

TQVariant KSpread::EmbeddedPictureObject::m_cachedPar1
protected

Definition at line 420 of file kspread_object.h.

◆ m_cachedPar2

TQVariant KSpread::EmbeddedPictureObject::m_cachedPar2
protected

Definition at line 421 of file kspread_object.h.

◆ m_cachedPar3

TQVariant KSpread::EmbeddedPictureObject::m_cachedPar3
protected

Definition at line 422 of file kspread_object.h.

◆ m_cachedPixmap

TQPixmap KSpread::EmbeddedPictureObject::m_cachedPixmap
protected

Definition at line 424 of file kspread_object.h.

◆ m_cachedRect

TQRect KSpread::EmbeddedPictureObject::m_cachedRect
protected

Definition at line 425 of file kspread_object.h.

◆ m_cachedSwapRGB

bool KSpread::EmbeddedPictureObject::m_cachedSwapRGB
protected

Definition at line 414 of file kspread_object.h.

◆ m_effect

ImageEffect KSpread::EmbeddedPictureObject::m_effect
protected

Definition at line 419 of file kspread_object.h.

◆ m_ie_par1

TQVariant KSpread::EmbeddedPictureObject::m_ie_par1
protected

Definition at line 420 of file kspread_object.h.

◆ m_ie_par2

TQVariant KSpread::EmbeddedPictureObject::m_ie_par2
protected

Definition at line 421 of file kspread_object.h.

◆ m_ie_par3

TQVariant KSpread::EmbeddedPictureObject::m_ie_par3
protected

Definition at line 422 of file kspread_object.h.

◆ mirrorType

PictureMirrorType KSpread::EmbeddedPictureObject::mirrorType
protected

Definition at line 412 of file kspread_object.h.

◆ swapRGB

bool KSpread::EmbeddedPictureObject::swapRGB
protected

Definition at line 414 of file kspread_object.h.


The documentation for this class was generated from the following files: