kspread

KSpread::EmbeddedChart Class Reference

#include <kspread_object.h>

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

Public Member Functions

 EmbeddedChart (Doc *_spread, Sheet *_sheet, KoDocument *doc, const KoRect &_rect)
 EmbeddedChart (Doc *_spread, Sheet *_sheet)
virtual ObjType getType () const
virtual TQString getTypeString () const
void setDataArea (const TQRect &_data)
void update ()
bool load (const TQDomElement &element)
virtual void loadOasis (const TQDomElement &element, KoOasisLoadingContext &context)
TQDomElement save (TQDomDocument &doc)
virtual void draw (TQPainter *_painter)
bool loadDocument (KoStore *_store)
KoChart::Part * chart ()
Public Member Functions inherited from KSpread::EmbeddedKOfficeObject
 EmbeddedKOfficeObject (Doc *parent, Sheet *_sheet, KoDocument *doc, const KoRect &geometry)
 EmbeddedKOfficeObject (Doc *parent, Sheet *_sheet)
Doc * parent ()
KoDocumentChild * embeddedObject ()
bool load (const TQDomElement &element)
TQDomElement save (TQDomDocument &doc)
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

virtual const char * getOasisElementName () const
virtual bool saveOasisObjectAttributes (KSpreadOasisSaveContext &sc) const
Protected Member Functions inherited from KSpread::EmbeddedKOfficeObject
void updateChildGeometry ()
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)

Additional Inherited Members

Protected Attributes inherited from KSpread::EmbeddedKOfficeObject
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 chart object.

Definition at line 277 of file kspread_object.h.

Constructor & Destructor Documentation

◆ EmbeddedChart() [1/2]

EmbeddedChart::EmbeddedChart ( Doc * _spread,
Sheet * _sheet,
KoDocument * doc,
const KoRect & _rect )

Definition at line 540 of file kspread_object.cpp.

◆ EmbeddedChart() [2/2]

EmbeddedChart::EmbeddedChart ( Doc * _spread,
Sheet * _sheet )

Definition at line 546 of file kspread_object.cpp.

◆ ~EmbeddedChart()

EmbeddedChart::~EmbeddedChart ( )
virtual

Definition at line 552 of file kspread_object.cpp.

Member Function Documentation

◆ chart()

KoChart::Part * EmbeddedChart::chart ( )

Definition at line 679 of file kspread_object.cpp.

◆ draw()

void EmbeddedChart::draw ( TQPainter * _painter)
virtual

Reimplemented from KSpread::EmbeddedKOfficeObject.

Definition at line 656 of file kspread_object.cpp.

◆ getOasisElementName()

const char * EmbeddedChart::getOasisElementName ( ) const
protectedvirtual

Get the element name for saving the object.

Reimplemented from KSpread::EmbeddedKOfficeObject.

Definition at line 572 of file kspread_object.cpp.

◆ getType()

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

Reimplemented from KSpread::EmbeddedKOfficeObject.

Definition at line 283 of file kspread_object.h.

◆ getTypeString()

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

Reimplemented from KSpread::EmbeddedKOfficeObject.

Definition at line 284 of file kspread_object.h.

◆ load()

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

Reimplemented from KSpread::EmbeddedObject.

Definition at line 577 of file kspread_object.cpp.

◆ loadDocument()

bool EmbeddedChart::loadDocument ( KoStore * _store)
Reimplemented from superclass.

Definition at line 661 of file kspread_object.cpp.

◆ loadOasis()

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

Reimplemented from KSpread::EmbeddedKOfficeObject.

Definition at line 600 of file kspread_object.cpp.

◆ save()

TQDomElement EmbeddedChart::save ( TQDomDocument & doc)
virtual

Reimplemented from KSpread::EmbeddedObject.

Definition at line 643 of file kspread_object.cpp.

◆ saveOasisObjectAttributes()

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

Reimplemented from KSpread::EmbeddedKOfficeObject.

Definition at line 622 of file kspread_object.cpp.

◆ setDataArea()

void EmbeddedChart::setDataArea ( const TQRect & _data)

Definition at line 558 of file kspread_object.cpp.

◆ update()

void EmbeddedChart::update ( )

Definition at line 566 of file kspread_object.cpp.


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