libs/flake

KoShapeLayer Class Reference

Provides arranging shapes into layers. More...

#include <KoShapeLayer.h>

Inheritance diagram for KoShapeLayer:

List of all members.

Public Member Functions

 KoShapeLayer (KoShapeContainerModel *model)
 KoShapeLayer ()
virtual QRectF boundingRect () const
virtual bool hitTest (const QPointF &position) const
virtual bool loadOdf (const KoXmlElement &element, KoShapeLoadingContext &context)
virtual void paintComponent (QPainter &, const KoViewConverter &)
virtual void saveOdf (KoShapeSavingContext &context) const

Detailed Description

Provides arranging shapes into layers.

This makes it possible to have a higher key of a number of objects in a document. A layer is always invisible and unselectable.

Definition at line 34 of file KoShapeLayer.h.


Constructor & Destructor Documentation

KoShapeLayer::KoShapeLayer (  ) 

The default constructor.

Definition at line 30 of file KoShapeLayer.cpp.

KoShapeLayer::KoShapeLayer ( KoShapeContainerModel model  ) 

Constructor with custom model.

Parameters:
model the custom modem

Definition at line 36 of file KoShapeLayer.cpp.


Member Function Documentation

QRectF KoShapeLayer::boundingRect (  )  const [virtual]

Get the bounding box of the shape.

This includes the line width but not the shadow of the shape

Returns:
the bounding box of the shape

Reimplemented from KoShape.

Definition at line 48 of file KoShapeLayer.cpp.

bool KoShapeLayer::hitTest ( const QPointF position  )  const [virtual]

Check if the shape is hit on position.

Parameters:
position the position where the user clicked.
Returns:
true when it hits.

Reimplemented from KoShape.

Definition at line 42 of file KoShapeLayer.cpp.

bool KoShapeLayer::loadOdf ( const KoXmlElement &  element,
KoShapeLoadingContext context 
) [virtual]

Load a shape from odf.

Parameters:
context the KoShapeLoadingContext used for loading
element element which represents the shape in odf
Returns:
false if loading failed

Implements KoShape.

Definition at line 75 of file KoShapeLayer.cpp.

virtual void KoShapeLayer::paintComponent ( QPainter ,
const KoViewConverter  
) [inline, virtual]

empty implementation, as the layer itself is not visible

Implements KoShapeContainer.

Definition at line 45 of file KoShapeLayer.h.

void KoShapeLayer::saveOdf ( KoShapeSavingContext context  )  const [virtual]

reimplemented from KoShape

Implements KoShape.

Definition at line 62 of file KoShapeLayer.cpp.


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