Commit d1728b39 authored by Thomas Zander's avatar Thomas Zander

exports...

svn path=/trunk/koffice/; revision=545132
parent c53da730
......@@ -21,6 +21,7 @@
#define KOCommand_h
#include <kcommand.h>
#include <koffice_export.h>
#include <KoSelection.h>
......@@ -34,7 +35,7 @@ class KoShapeControllerInterface;
class QString;
/// The undo / redo command for shape moving.
class KoShapeMoveCommand : public KCommand {
class FLAKE_EXPORT KoShapeMoveCommand : public KCommand {
public:
/**
* Constructor.
......@@ -55,7 +56,7 @@ private:
};
/// The undo / redo command for shape rotating.
class KoShapeRotateCommand : public KCommand {
class FLAKE_EXPORT KoShapeRotateCommand : public KCommand {
public:
/**
* Comand to rotate a selection of shapes. Note that it just alters the rotated
......@@ -75,7 +76,7 @@ private:
};
/// The undo / redo command for shape sizing.
class KoShapeSizeCommand : public KCommand {
class FLAKE_EXPORT KoShapeSizeCommand : public KCommand {
public:
KoShapeSizeCommand(const KoSelectionSet &shapes, QList<QSizeF> &previousSizes, QList<QSizeF> &newSizes);
void execute ();
......@@ -87,7 +88,7 @@ private:
};
/// The undo / redo command for grouping shapes
class KoGroupShapesCommand : public KCommand {
class FLAKE_EXPORT KoGroupShapesCommand : public KCommand {
public:
/**
* Command to group a set of shapes into a predefined container.
......@@ -117,7 +118,7 @@ protected:
};
/// The undo / redo command for ungrouping shapes
class KoUngroupShapesCommand : public KoGroupShapesCommand {
class FLAKE_EXPORT KoUngroupShapesCommand : public KoGroupShapesCommand {
public:
/**
* Command to ungroup a set of shapes from one parent container.
......@@ -131,7 +132,7 @@ public:
};
/// The undo / redo command for creating shapes
class KoShapeCreateCommand : public KCommand {
class FLAKE_EXPORT KoShapeCreateCommand : public KCommand {
public:
KoShapeCreateCommand( KoShapeControllerInterface *controller, KoShape *shape );
virtual ~KoShapeCreateCommand();
......
......@@ -23,11 +23,13 @@
#include <QMouseEvent>
#include <koffice_export.h>
/**
* The event used in Flake to have both the original (canvas based) position as
* well as the normalized position.
*/
class KoGfxEvent
class FLAKE_EXPORT KoGfxEvent
{
public:
/**
......
......@@ -20,10 +20,12 @@
#ifndef KOINSETS_H
#define KOINSETS_H
#include <koffice_export.h>
/**
* An Insets object is a representation of the borders of a shape.
*/
struct KoInsets {
struct FLAKE_EXPORT KoInsets {
public:
/**
* Constructor.
......
......@@ -25,6 +25,8 @@
#include "KoTool.h"
#include "KoSelection.h"
#include <koffice_export.h>
class KoInteractionStrategy;
/**
......@@ -34,7 +36,7 @@ class KoInteractionStrategy;
* XXX: Also transforms? Or better use a separate tool for that.
* XXX: We already have a moveTool; and 'default' does not say much about the class. What about renaming to KoSelectTool ? (TZ)
*/
class KoInteractionTool : public KoTool
class FLAKE_EXPORT KoInteractionTool : public KoTool
{
public:
/**
......
......@@ -23,6 +23,8 @@
#include "KoInsets.h"
#include "KoShapeBorderModel.h"
#include <koffice_export.h>
class KoShape;
class QPainter;
class QColor;
......@@ -31,7 +33,7 @@ class KoViewConverter;
/**
* A border for shapes that draws a single line around the object.
*/
class KoLineBorder : public KoShapeBorderModel {
class FLAKE_EXPORT KoLineBorder : public KoShapeBorderModel {
public:
/// Constructor for a thin line in black
KoLineBorder();
......
......@@ -25,11 +25,12 @@ class KoSelection;
#include "KoShape.h"
#include <QPainterPath>
#include <koffice_export.h>
/**
* Example/test flake object that draws a Shape based on a path.
*/
class KoPathShape : public KoShape
class FLAKE_EXPORT KoPathShape : public KoShape
{
public:
KoPathShape();
......
......@@ -24,12 +24,14 @@
#include <KoShape.h>
#include <koffice_export.h>
class QPainter;
/**
* Simple Rectangle shape.
*/
class KoRectangleShape : public KoShape
class FLAKE_EXPORT KoRectangleShape : public KoShape
{
public:
KoRectangleShape();
......
......@@ -29,6 +29,8 @@
#include "KoViewConverter.h"
#include "KoFlake.h"
#include <koffice_export.h>
typedef QSet<KoShape*> KoSelectionSet;
/**
......@@ -44,7 +46,7 @@ typedef QSet<KoShape*> KoSelectionSet;
* A selection, however, should not be selectable. We need to think
* a little about the interaction here.
*/
class KoSelection : public QObject, public KoShape {
class FLAKE_EXPORT KoSelection : public QObject, public KoShape {
Q_OBJECT
public:
......
......@@ -24,6 +24,8 @@
#include <QPainter>
#include <koffice_export.h>
class KoShape;
class KoViewConverter;
......@@ -35,7 +37,7 @@ class KoViewConverter;
* and preferred behavior, to have one instance of a border that is reused on several
* objects.
*/
class KoShapeBorderModel {
class FLAKE_EXPORT KoShapeBorderModel {
public:
KoShapeBorderModel() {};
virtual ~KoShapeBorderModel() {};
......
......@@ -25,6 +25,8 @@
#include <QList>
#include <koffice_export.h>
class QPainter;
class QPointF;
......@@ -35,7 +37,7 @@ class QPointF;
* for the KoShapeContainer.
* @see KoShapeContainer
*/
class KoGraphicsContainerModel {
class FLAKE_EXPORT KoGraphicsContainerModel {
public:
/// default constructor
KoGraphicsContainerModel() {} ;
......@@ -120,7 +122,7 @@ public:
* and the width of the individual columns gets too small, the model can choose to
* remove a child or add one when the width allows another column.
*/
class KoShapeContainer : public KoShape {
class FLAKE_EXPORT KoShapeContainer : public KoShape {
public:
/**
* Default constructor; uses simple internal model.
......
......@@ -24,6 +24,8 @@
#include <QList>
#include <koffice_export.h>
/**
* Provide grouping for shapes.
* The group shape allows you to add children which will then be grouped in selections
......@@ -35,7 +37,7 @@
* of them at the same time.
* <p>Note that while this object is also a shape, it is not actually visible.
*/
class KoShapeGroup : public KoShapeContainer {
class FLAKE_EXPORT KoShapeGroup : public KoShapeContainer {
public:
/// Constructor
KoShapeGroup();
......
......@@ -23,6 +23,8 @@
#include <QObject>
#include <QCursor>
#include <koffice_export.h>
class KoCanvasBase;
class KoGfxEvent;
class KoViewConverter;
......@@ -43,7 +45,7 @@ class QPainter;
* It may be preferable to remove the tool system from flake and
* make it more general.
*/
class KoTool : public QObject
class FLAKE_EXPORT KoTool : public QObject
{
Q_OBJECT
public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment