Commit 2d9f002b authored by Thorsten Zachmann's avatar Thorsten Zachmann

o use a reference instead of a pointer or KoShapeSavingContexta´ in

  saveOdf.


svn path=/trunk/koffice/; revision=665553
parent e9b178b1
......@@ -103,7 +103,7 @@ void KritaShape::setDisplayProfile( const QString & profileName ) {
repaint();
}
void KritaShape::saveOdf( KoShapeSavingContext * context ) const {
void KritaShape::saveOdf( KoShapeSavingContext & context ) const {
// TODO
}
bool KritaShape::loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context ) {
......
......@@ -64,7 +64,7 @@ public:
/// reimplemented
virtual void paint( QPainter& painter, const KoViewConverter& converter );
/// reimplemented
virtual void saveOdf( KoShapeSavingContext * context ) const;
virtual void saveOdf( KoShapeSavingContext & context ) const;
// reimplemented
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context );
......
......@@ -59,7 +59,7 @@ void KisLayerContainerShape::paintComponent(QPainter &painter, const KoViewConve
Q_UNUSED( converter );
}
void KisLayerContainerShape::saveOdf( KoShapeSavingContext * context ) const
void KisLayerContainerShape::saveOdf( KoShapeSavingContext & context ) const
{
// TODO
}
......
......@@ -58,7 +58,7 @@ public:
bool isSelectable() const { return false; }
/// reimplemented
virtual void saveOdf( KoShapeSavingContext * context ) const;
virtual void saveOdf( KoShapeSavingContext & context ) const;
// reimplemented
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context );
......
......@@ -94,7 +94,7 @@ void KisLayerShape::addChild( KoShape * shape )
KoShapeContainer::addChild(shape);
}
void KisLayerShape::saveOdf( KoShapeSavingContext * context ) const
void KisLayerShape::saveOdf( KoShapeSavingContext & context ) const
{
// TODO
}
......
......@@ -52,7 +52,7 @@ public:
void addChild( KoShape * shape );
/// reimplemented
virtual void saveOdf( KoShapeSavingContext * context ) const;
virtual void saveOdf( KoShapeSavingContext & context ) const;
// reimplemented
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context );
......
......@@ -59,7 +59,7 @@ KoLineBorder::~KoLineBorder() {
delete d;
}
void KoLineBorder::fillStyle( KoGenStyle &style, KoShapeSavingContext *context )
void KoLineBorder::fillStyle( KoGenStyle &style, KoShapeSavingContext &context )
{
Q_UNUSED( context );
// TODO implement all possibilities
......
......@@ -80,7 +80,7 @@ public:
/// Stes the color
void setColor( const QColor & color );
virtual void fillStyle( KoGenStyle &style, KoShapeSavingContext *context );
virtual void fillStyle( KoGenStyle &style, KoShapeSavingContext &context );
virtual void borderInsets(const KoShape *shape, KoInsets &insets);
virtual bool hasTransparency();
virtual void paintBorder(KoShape *shape, QPainter &painter, const KoViewConverter &converter);
......
......@@ -355,9 +355,9 @@ KoPathShape::~KoPathShape()
//delete d;
}
void KoPathShape::saveOdf( KoShapeSavingContext * context ) const
void KoPathShape::saveOdf( KoShapeSavingContext & context ) const
{
context->xmlWriter().startElement( "draw:path" );
context.xmlWriter().startElement( "draw:path" );
saveOdfAttributes( context, OdfMandatories | OdfSize | OdfPosition | OdfTransformation );
QString d;
......@@ -425,9 +425,9 @@ void KoPathShape::saveOdf( KoShapeSavingContext * context ) const
lastPoint = *it;
}
}
context->xmlWriter().addAttribute( "svg:d", d );
context.xmlWriter().addAttribute( "svg:d", d );
context->xmlWriter().endElement();
context.xmlWriter().endElement();
}
bool KoPathShape::loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context ) {
......
......@@ -317,7 +317,7 @@ public:
virtual void resize( const QSizeF &size );
// reimplemented
virtual void saveOdf( KoShapeSavingContext * context ) const;
virtual void saveOdf( KoShapeSavingContext & context ) const;
// reimplemented
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context );
......
......@@ -116,7 +116,7 @@ private slots:
private:
void requestSelectionChangedEvent();
void selectGroupChilds( KoShapeGroup *group );
virtual void saveOdf( KoShapeSavingContext *) const {}
virtual void saveOdf( KoShapeSavingContext & ) const {}
virtual bool loadOdf( const KoXmlElement &, KoShapeLoadingContext &) { return true; }
class Private;
......
......@@ -614,14 +614,14 @@ void KoShape::setName( const QString & name ) {
}
// loading & saving methods
void KoShape::saveOdfConnections(KoShapeSavingContext *context) const {
void KoShape::saveOdfConnections(KoShapeSavingContext &context) const {
// TODO save "draw-glue-point" elements (9.2.19)
}
QString KoShape::style( KoShapeSavingContext *context ) const
QString KoShape::style( KoShapeSavingContext &context ) const
{
KoGenStyle style;
if ( context->isSet( KoShapeSavingContext::PresentationShape ) ) {
if ( context.isSet( KoShapeSavingContext::PresentationShape ) ) {
style = KoGenStyle( KoGenStyle::STYLE_PRESENTATIONAUTO, "presentation" );
}
else {
......@@ -641,15 +641,15 @@ QString KoShape::style( KoShapeSavingContext *context ) const
style.addProperty( "draw:fill","none" );
break;
default: // TODO all the other ones.
//KoOasisStyles::saveOasisFillStyle( style, context->mainStyles(), bg );
//KoOasisStyles::saveOasisFillStyle( style, context.mainStyles(), bg );
break;
}
if ( context->isSet( KoShapeSavingContext::AutoStyleInStyleXml ) ) {
if ( context.isSet( KoShapeSavingContext::AutoStyleInStyleXml ) ) {
style.setAutoStyleInStylesDotXml( true );
}
return context->mainStyles().lookup( style, context->isSet( KoShapeSavingContext::PresentationShape ) ? "pr" : "gr" );
return context.mainStyles().lookup( style, context.isSet( KoShapeSavingContext::PresentationShape ) ? "pr" : "gr" );
}
bool KoShape::loadOdfAttributes( const KoXmlElement & element, KoShapeLoadingContext &context, int attributes )
......@@ -667,7 +667,15 @@ bool KoShape::loadOdfAttributes( const KoXmlElement & element, KoShapeLoadingCon
context.addShapeId( this, id );
}
}
if ( element.hasAttributeNS( KoXmlNS::draw, "z-index" ) ) {
// what do we do in case of copy/paste
}
else {
// TODO what do we do in the case the z-index is not there then the order in the doc
// is the the order of the z-index
}
}
if ( attributes & OdfSize ) {
QPointF pos;
pos.setX( KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x", QString() ) ) );
......@@ -683,44 +691,44 @@ bool KoShape::loadOdfAttributes( const KoXmlElement & element, KoShapeLoadingCon
return true;
}
void KoShape::saveOdfFrameAttributes(KoShapeSavingContext *context) const {
void KoShape::saveOdfFrameAttributes(KoShapeSavingContext &context) const {
saveOdfAttributes(context, FrameAttributes);
context->addOption(KoShapeSavingContext::FrameOpened);
context.addOption(KoShapeSavingContext::FrameOpened);
}
void KoShape::saveOdfAttributes(KoShapeSavingContext *context, int attributes) const {
void KoShape::saveOdfAttributes(KoShapeSavingContext &context, int attributes) const {
if(attributes & OdfMandatories) {
// all items that should be written to 'draw:frame' and any other 'draw:' object that inherits this shape
context->xmlWriter().addAttribute( context->isSet( KoShapeSavingContext::PresentationShape ) ?
context.xmlWriter().addAttribute( context.isSet( KoShapeSavingContext::PresentationShape ) ?
"presentation:style-name": "draw:style-name",
style( context ) );
if ( context->isSet( KoShapeSavingContext::DrawId ) )
if ( context.isSet( KoShapeSavingContext::DrawId ) )
{
context->xmlWriter().addAttribute( "draw:id", context->drawId( this ) );
context.xmlWriter().addAttribute( "draw:id", context.drawId( this ) );
}
if(d->parent && dynamic_cast<KoShapeLayer*> (d->parent))
context->xmlWriter().addAttribute("draw:layer", d->parent->name());
context.xmlWriter().addAttribute("draw:layer", d->parent->name());
}
// all items after this should not be written out when they have already be written in
// a 'draw:frame' attribute.
if(context->isSet(KoShapeSavingContext::FrameOpened)) {
context->removeOption(KoShapeSavingContext::FrameOpened);
if(context.isSet(KoShapeSavingContext::FrameOpened)) {
context.removeOption(KoShapeSavingContext::FrameOpened);
return;
}
if(attributes & OdfSize) {
QSizeF s( size() );
context->xmlWriter().addAttributePt( "svg:width", s.width() );
context->xmlWriter().addAttributePt( "svg:height", s.height() );
context->xmlWriter().addAttributePt( "svg:x", d->pos.x() );
context->xmlWriter().addAttributePt( "svg:y", d->pos.y() );
context.xmlWriter().addAttributePt( "svg:width", s.width() );
context.xmlWriter().addAttributePt( "svg:height", s.height() );
context.xmlWriter().addAttributePt( "svg:x", d->pos.x() );
context.xmlWriter().addAttributePt( "svg:y", d->pos.y() );
}
if(attributes & OdfMandatories) {
context->xmlWriter().addAttribute("draw:z-index", zIndex());
context.xmlWriter().addAttribute("draw:z-index", zIndex());
}
if(attributes & OdfTransformation) {
......@@ -747,7 +755,7 @@ void KoShape::saveOdfAttributes(KoShapeSavingContext *context, int attributes) c
QString m = QString( "matrix(0 0 %3 %4 %5pt %6pt)" ).arg( matrix.m11() ).arg( matrix.m12() )
.arg( matrix.m21() ).arg( matrix.m22() )
.arg( matrix.dx() ) .arg( matrix.dy() );
context->xmlWriter().addAttribute( "draw:transform", m );
context.xmlWriter().addAttribute( "draw:transform", m );
}
else if(rotate || skew || scale) {
QString transform;
......@@ -762,7 +770,7 @@ void KoShape::saveOdfAttributes(KoShapeSavingContext *context, int attributes) c
transform += ')';
}
context->xmlWriter().addAttribute( "draw:transform", transform );
context.xmlWriter().addAttribute( "draw:transform", transform );
}
}
}
......
......@@ -153,14 +153,14 @@ public:
* OpenDocument 9.2 Drawing Shapes.
* @see saveOdfAttributes
*/
virtual void saveOdf( KoShapeSavingContext * context ) const = 0;
virtual void saveOdf( KoShapeSavingContext & context ) const = 0;
/**
* When saving this shape to ODF, you may nest it in a 'draw:frame' and shape properties should be
* saved as attributes on that element instead of on the normal shape. After starting to write such
* an element you can call this method to write all relevant properties.
*/
void saveOdfFrameAttributes(KoShapeSavingContext *context) const;
void saveOdfFrameAttributes( KoShapeSavingContext & context ) const;
/**
* @brief Scale the shape using the zero-point which is the top-left corner.
......@@ -607,12 +607,12 @@ protected:
* @param attributes a number of OdfAttribute items to state which attributes to save.
* @see saveOdf
*/
void saveOdfAttributes(KoShapeSavingContext *context, int attributes) const;
void saveOdfAttributes( KoShapeSavingContext &context, int attributes ) const;
/**
* Add a new draw-glue-point element for each connections() present on this shape.
*/
void saveOdfConnections(KoShapeSavingContext *context) const;
void saveOdfConnections( KoShapeSavingContext &context ) const;
/**
* @brief Get the style used for the shape
......@@ -623,7 +623,7 @@ protected:
* @return the name of the style
* @see saveOdf
*/
QString style( KoShapeSavingContext *context ) const;
QString style( KoShapeSavingContext &context ) const;
/* ** end loading saving */
......
......@@ -51,7 +51,7 @@ public:
* @param style object
* @param context used for saving
*/
virtual void fillStyle( KoGenStyle &style, KoShapeSavingContext *context ) = 0;
virtual void fillStyle( KoGenStyle &style, KoShapeSavingContext &context ) = 0;
/**
* Return a new borderInsets object filled with the size around the shape that this
......
......@@ -44,16 +44,16 @@ void KoShapeGroup::childCountChanged() {
resize( br.size() );
}
void KoShapeGroup::saveOdf( KoShapeSavingContext * context ) const {
context->xmlWriter().startElement( "draw:g" );
void KoShapeGroup::saveOdf( KoShapeSavingContext & context ) const {
context.xmlWriter().startElement( "draw:g" );
saveOdfAttributes(context, OdfMandatories);
context->xmlWriter().addAttributePt( "svg:y", position().y() );
context.xmlWriter().addAttributePt( "svg:y", position().y() );
foreach(KoShape* shape, iterator()) // store children.
shape->saveOdf(context);
saveOdfConnections(context);
context->xmlWriter().endElement();
context.xmlWriter().endElement();
}
bool KoShapeGroup::loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context ) {
......
......@@ -48,7 +48,7 @@ public:
/// always returns false since the group itself can't be selected or hit
bool hitTest( const QPointF &position ) const;
/// reimplemented from KoShape
virtual void saveOdf( KoShapeSavingContext * context ) const;
virtual void saveOdf( KoShapeSavingContext & context ) const;
// reimplemented
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context );
......
......@@ -49,13 +49,13 @@ QRectF KoShapeLayer::boundingRect() const
return bb;
}
void KoShapeLayer::saveOdf( KoShapeSavingContext * context ) const {
void KoShapeLayer::saveOdf( KoShapeSavingContext & context ) const {
// save according to parag 9.1.3
context->xmlWriter().startElement( "draw:layer" );
context->xmlWriter().startElement( "svg:title" );
context->xmlWriter().addTextNode(name());
context->xmlWriter().endElement();
context->xmlWriter().endElement();
context.xmlWriter().startElement( "draw:layer" );
context.xmlWriter().startElement( "svg:title" );
context.xmlWriter().addTextNode(name());
context.xmlWriter().endElement();
context.xmlWriter().endElement();
foreach(KoShape* shape, iterator())
shape->saveOdf(context);
......
......@@ -41,7 +41,7 @@ public:
bool hitTest( const QPointF &position ) const;
virtual QRectF boundingRect() const;
/// reimplemented from KoShape
virtual void saveOdf( KoShapeSavingContext * context ) const;
virtual void saveOdf( KoShapeSavingContext & context ) const;
// reimplemented
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context );
};
......
......@@ -16,7 +16,7 @@ public:
//qDebug() << "Shape" << kBacktrace( 10 );
paintedCount++;
}
virtual void saveOdf( KoShapeSavingContext *) const {}
virtual void saveOdf( KoShapeSavingContext & ) const {}
virtual bool loadOdf( const KoXmlElement &, KoShapeLoadingContext &) { return true; }
int paintedCount;
};
......@@ -31,7 +31,7 @@ public:
paintedCount++;
}
virtual void saveOdf( KoShapeSavingContext *) const {}
virtual void saveOdf( KoShapeSavingContext & ) const {}
virtual bool loadOdf( const KoXmlElement &, KoShapeLoadingContext &) { return true; }
int paintedCount;
};
......
......@@ -114,7 +114,7 @@ bool KoPADocument::saveOasis( KoStore* store, KoXmlWriter* manifestWriter )
// save master pages
foreach( KoPAPageBase *page, m_masterPages )
{
page->saveOdf( &paContext );
page->saveOdf( paContext );
}
masterStylesTmpWriter.endElement();
......@@ -134,7 +134,7 @@ bool KoPADocument::saveOasis( KoStore* store, KoXmlWriter* manifestWriter )
// save pages
foreach ( KoPAPageBase *page, m_pages )
{
page->saveOdf( &paContext );
page->saveOdf( paContext );
paContext.incrementPage();
}
......
......@@ -34,15 +34,15 @@ KoPAMasterPage::~KoPAMasterPage()
{
}
void KoPAMasterPage::createOdfPageTag( KoPASavingContext *paContext ) const
void KoPAMasterPage::createOdfPageTag( KoPASavingContext &paContext ) const
{
KoGenStyle pageLayoutStyle = pageLayout().saveOasis();
pageLayoutStyle.setAutoStyleInStylesDotXml( true );
pageLayoutStyle.addAttribute( "style:page-usage", "all" );
QString pageLayoutName( paContext->mainStyles().lookup( pageLayoutStyle, "pm" ) );
QString pageLayoutName( paContext.mainStyles().lookup( pageLayoutStyle, "pm" ) );
paContext->xmlWriter().startElement( "style:master-page" );
paContext->xmlWriter().addAttribute( "style:name", "Standard" ); //TODO
paContext->addMasterPage( this, "Standard" );
paContext->xmlWriter().addAttribute( "style:page-layout-name", pageLayoutName );
paContext.xmlWriter().startElement( "style:master-page" );
paContext.xmlWriter().addAttribute( "style:name", "Standard" ); //TODO
paContext.addMasterPage( this, "Standard" );
paContext.xmlWriter().addAttribute( "style:page-layout-name", pageLayoutName );
}
......@@ -40,7 +40,7 @@ public:
void setPageLayout(const KoPageLayout& layout) { m_pageLayout = layout; }
protected:
virtual void createOdfPageTag( KoPASavingContext *paContext ) const;
virtual void createOdfPageTag( KoPASavingContext &paContext ) const;
KoPageLayout m_pageLayout;
};
......
......@@ -41,9 +41,9 @@ KoPageLayout & KoPAPage::pageLayout()
return m_masterPage->pageLayout();
}
void KoPAPage::createOdfPageTag( KoPASavingContext *paContext ) const
void KoPAPage::createOdfPageTag( KoPASavingContext &paContext ) const
{
paContext->xmlWriter().startElement( "draw:page" );
paContext->xmlWriter().addAttribute( "draw:id", "page" + QString::number( paContext->page() ) );
paContext->xmlWriter().addAttribute( "draw:master-page-name", paContext->masterPageName( m_masterPage ) );
paContext.xmlWriter().startElement( "draw:page" );
paContext.xmlWriter().addAttribute( "draw:id", "page" + QString::number( paContext.page() ) );
paContext.xmlWriter().addAttribute( "draw:master-page-name", paContext.masterPageName( m_masterPage ) );
}
......@@ -42,7 +42,7 @@ public:
/// @return the masterpage of this page
KoPAMasterPage * masterPage() { return m_masterPage; }
protected:
virtual void createOdfPageTag( KoPASavingContext *paContext ) const;
virtual void createOdfPageTag( KoPASavingContext &paContext ) const;
KoPAMasterPage * m_masterPage;
};
......
......@@ -61,25 +61,25 @@ void KoPAPageBase::paintComponent(QPainter& painter, const KoViewConverter& conv
Q_UNUSED(converter);
}
void KoPAPageBase::saveOdf( KoShapeSavingContext * context ) const
void KoPAPageBase::saveOdf( KoShapeSavingContext & context ) const
{
KoPASavingContext *paContext = static_cast<KoPASavingContext*>(context);
KoPASavingContext &paContext = static_cast<KoPASavingContext&>( context );
createOdfPageTag( paContext );
paContext->xmlWriter().addAttribute( "draw:style-name", saveOdfPageStyle( paContext ) );
context.xmlWriter().addAttribute( "draw:style-name", saveOdfPageStyle( paContext ) );
saveOdfShapes( paContext );
saveOdfShapes( context );
saveOdfAnimations( paContext );
saveOdfPresentationNotes();
paContext->xmlWriter().endElement(); //draw:page
context.xmlWriter().endElement(); //draw:page
}
bool KoPAPageBase::loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context ) {
return false; // TODO
}
void KoPAPageBase::saveOdfShapes( KoPASavingContext *paContext ) const
void KoPAPageBase::saveOdfShapes( KoShapeSavingContext &context ) const
{
QList<KoShape*> shapes( iterator() );
QList<KoShape*> tlshapes;
......@@ -99,28 +99,28 @@ void KoPAPageBase::saveOdfShapes( KoPASavingContext *paContext ) const
qSort( tlshapes.begin(), tlshapes.end(), KoShape::compareShapeZIndex );
foreach( KoShape *shape, tlshapes ) {
shape->saveOdf( paContext );
shape->saveOdf( context );
}
}
QString KoPAPageBase::saveOdfPageStyle( KoPASavingContext *paContext ) const
QString KoPAPageBase::saveOdfPageStyle( KoPASavingContext &paContext ) const
{
KoGenStyle style( KoPAStyles::STYLE_PAGE, "drawing-page" );
if ( paContext->isSet( KoShapeSavingContext::AutoStyleInStyleXml ) ) {
if ( paContext.isSet( KoShapeSavingContext::AutoStyleInStyleXml ) ) {
style.setAutoStyleInStylesDotXml( true );
}
saveOdfPageStyleData( style, paContext );
return paContext->mainStyles().lookup( style, "dp" );
return paContext.mainStyles().lookup( style, "dp" );
}
void KoPAPageBase::saveOdfPageStyleData( KoGenStyle &style, KoPASavingContext *paContext ) const
void KoPAPageBase::saveOdfPageStyleData( KoGenStyle &style, KoPASavingContext &paContext ) const
{
//TODO
QBrush background( Qt::white );
KoOasisStyles::saveOasisFillStyle( style, paContext->mainStyles(), background );
KoOasisStyles::saveOasisFillStyle( style, paContext.mainStyles(), background );
}
bool KoPAPageBase::loadOdf( const KoXmlElement &element, KoOasisLoadingContext & loadingContext )
......
......@@ -55,9 +55,10 @@ public:
* @param context the pageapp saving context
* @return true on success, false otherwise
*/
virtual void saveOdf( KoShapeSavingContext * context ) const;
virtual void saveOdf( KoShapeSavingContext & context ) const;
// reimplemented
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext &context );
virtual bool loadOdf( const KoXmlElement & element, KoShapeLoadingContext & context );
bool loadOdf( const KoXmlElement &element, KoOasisLoadingContext & loadingContext );
......@@ -87,7 +88,7 @@ protected:
*
* @param paContext the pageapp saving context
*/
virtual void createOdfPageTag( KoPASavingContext *paContext ) const = 0;
virtual void createOdfPageTag( KoPASavingContext & paContext ) const = 0;
/**
* @brief Save the shapes of a page
......@@ -97,7 +98,7 @@ protected:
* @param paContext the pageapp saving context
* @return true on success, false otherwise
*/
void saveOdfShapes( KoPASavingContext *paContext ) const;
void saveOdfShapes( KoShapeSavingContext & context ) const;
/**
* @brief Save animations
......@@ -107,7 +108,7 @@ protected:
* @param paContext the pageapp saving context
* @return true on success, false otherwise
*/
virtual bool saveOdfAnimations( KoPASavingContext *paContext ) const { Q_UNUSED( paContext ); return true; }
virtual bool saveOdfAnimations( KoPASavingContext & paContext ) const { Q_UNUSED( paContext ); return true; }
/**
* @brief Save presentation notes
......@@ -125,7 +126,7 @@ protected:
*
* @return name of the page style
*/
QString saveOdfPageStyle( KoPASavingContext *paContext ) const;
QString saveOdfPageStyle( KoPASavingContext & paContext ) const;
/**
* @brief Save special data of a style
......@@ -135,7 +136,7 @@ protected:
*
* @see saveOdfPageStyle
*/
virtual void saveOdfPageStyleData( KoGenStyle &style, KoPASavingContext *paContext ) const;
virtual void saveOdfPageStyleData( KoGenStyle &style, KoPASavingContext &paContext ) const;
private:
QString m_pageTitle;
......
......@@ -49,7 +49,7 @@ class MockTextShape : public KoShape {
Q_UNUSED(painter);
Q_UNUSED(converter);
}
virtual void saveOdf( KoShapeSavingContext *) const {}
virtual void saveOdf( KoShapeSavingContext & ) const {}
virtual bool loadOdf( const KoXmlElement &, KoShapeLoadingContext &) { return true; }
KoTextDocumentLayout *layout;
};
......
......@@ -59,7 +59,7 @@ public:
virtual void visit(KoCreateShapesTool *tool) = 0;
virtual QString toolTip() = 0;
virtual void saveOdf( KoShapeSavingContext *) const {}
virtual void saveOdf( KoShapeSavingContext & ) const {}
virtual bool loadOdf( const KoXmlElement &, KoShapeLoadingContext &) { return true; }
void paint(QPainter &painter, const KoViewConverter &converter) {
......
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