Commit 449257e3 authored by Thomas Zander's avatar Thomas Zander

Make text layout take shape borders into account

svn path=/trunk/koffice/; revision=615141
parent 40d8489c
......@@ -360,6 +360,13 @@ bool KoShape::hasTransparency() {
return !m_backgroundBrush.isOpaque();
}
KoInsets KoShape::borderInsets() const {
KoInsets answer;
if(m_border)
m_border->borderInsets(this, answer);
return answer;
}
// static
void KoShape::applyConversion(QPainter &painter, const KoViewConverter &converter) {
double zoomX, zoomY;
......
......@@ -22,6 +22,8 @@
#ifndef KOSHAPE_H
#define KOSHAPE_H
#include "KoInsets.h"
#include <QMatrix>
#include <QVector>
#include <QSet>
......@@ -396,6 +398,12 @@ public:
*/
void setBorder(KoShapeBorderModel *border) { m_border = border; }
/**
* Return the insets of the border.
* Convenience method for KoShapeBorderModel::borderInsets()
*/
KoInsets borderInsets() const;
/**
* Setting the shape to keep its aspect-ratio has the effect that user-scaling will
* keep the width/hight ratio intact so as not to distort shapes that rely on that
......
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