#include <kspread_object.h>

Inheritance diagram for KSpread::EmbeddedKOfficeObject:
KSpread::EmbeddedObject KSpread::EmbeddedChart

Public Member Functions

 EmbeddedKOfficeObject (Doc *parent, Sheet *_sheet, KoDocument *doc, const KoRect &geometry)
 
 EmbeddedKOfficeObject (Doc *parent, Sheet *_sheet)
 
virtual ObjType getType () const
 
virtual TQString getTypeString () const
 
Doc * parent ()
 
KoDocumentChild * embeddedObject ()
 
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)
 
void activate (View *_view, Canvas *_canvas)
 
void deactivate ()
 
- 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

void updateChildGeometry ()
 
virtual const char * getOasisElementName () const
 
virtual bool saveOasisObjectAttributes (KSpreadOasisSaveContext &sc) 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

KoDocumentChild * m_embeddedObject
 
Doc * m_parent
 
- 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 an embedded koffice object.

Definition at line 238 of file kspread_object.h.

Constructor & Destructor Documentation

◆ EmbeddedKOfficeObject() [1/2]

EmbeddedKOfficeObject::EmbeddedKOfficeObject ( Doc *  parent,
Sheet *  _sheet,
KoDocument *  doc,
const KoRect &  geometry 
)

Definition at line 370 of file kspread_object.cpp.

◆ EmbeddedKOfficeObject() [2/2]

EmbeddedKOfficeObject::EmbeddedKOfficeObject ( Doc *  parent,
Sheet *  _sheet 
)

Definition at line 376 of file kspread_object.cpp.

◆ ~EmbeddedKOfficeObject()

EmbeddedKOfficeObject::~EmbeddedKOfficeObject ( )
virtual

Definition at line 382 of file kspread_object.cpp.

Member Function Documentation

◆ activate()

void EmbeddedKOfficeObject::activate ( View *  _view,
Canvas *  _canvas 
)

Definition at line 500 of file kspread_object.cpp.

◆ deactivate()

void EmbeddedKOfficeObject::deactivate ( )

Definition at line 511 of file kspread_object.cpp.

◆ draw()

void EmbeddedKOfficeObject::draw ( TQPainter *  _painter)
virtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 443 of file kspread_object.cpp.

◆ embeddedObject()

KoDocumentChild * EmbeddedKOfficeObject::embeddedObject ( )

Definition at line 392 of file kspread_object.cpp.

◆ getOasisElementName()

const char * EmbeddedKOfficeObject::getOasisElementName ( ) const
protectedvirtual

Get the element name for saving the object.

Implements KSpread::EmbeddedObject.

Reimplemented in KSpread::EmbeddedChart.

Definition at line 411 of file kspread_object.cpp.

◆ getType()

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

Reimplemented from KSpread::EmbeddedObject.

Definition at line 244 of file kspread_object.h.

◆ getTypeString()

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

Reimplemented from KSpread::EmbeddedObject.

Definition at line 245 of file kspread_object.h.

◆ load()

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

Reimplemented from KSpread::EmbeddedObject.

Definition at line 416 of file kspread_object.cpp.

◆ loadOasis()

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

Reimplemented from KSpread::EmbeddedObject.

Definition at line 424 of file kspread_object.cpp.

◆ parent()

Doc * EmbeddedKOfficeObject::parent ( )

Definition at line 387 of file kspread_object.cpp.

◆ save()

TQDomElement EmbeddedKOfficeObject::save ( TQDomDocument &  doc)
virtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 436 of file kspread_object.cpp.

◆ saveOasisObjectAttributes()

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

Reimplemented from KSpread::EmbeddedObject.

Definition at line 397 of file kspread_object.cpp.

◆ toPixmap()

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

See EmbeddedObject::toPixmap(double,double)

Reimplemented from KSpread::EmbeddedObject.

Definition at line 486 of file kspread_object.cpp.

◆ updateChildGeometry()

void EmbeddedKOfficeObject::updateChildGeometry ( )
protected

Definition at line 516 of file kspread_object.cpp.

Member Data Documentation

◆ m_embeddedObject

KoDocumentChild* KSpread::EmbeddedKOfficeObject::m_embeddedObject
protected

Definition at line 269 of file kspread_object.h.

◆ m_parent

Doc* KSpread::EmbeddedKOfficeObject::m_parent
protected

Definition at line 270 of file kspread_object.h.


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