kapptemplate
Go to the documentation of this file.
3 #include <KoShapeBackground.h>
4 #include <KoTextDocumentLayout.h>
5 #include <KoInlineTextObjectManager.h>
7 #include <KoXmlWriter.h>
8 #include <KoShapeLoadingContext.h>
9 #include <KoShapeSavingContext.h>
17 setShapeId(
"%{APPNAME}Shape_ID");
18 setCollisionDetection(
true);
27 applyConversion(painter, converter);
32 background()->paint(painter, p);
38 bool %{
APPNAME}Shape::loadOdf(
const KoXmlElement& element, KoShapeLoadingContext& context )
40 kDebug() <<
"Loading %{APPNAME}Shape";
42 loadOdfAttributes(element, context, OdfAllAttributes);
44 KoXmlElement score = KoXml::namedItemNS(element,
"http://www.koffice.org/%{APPNAMELC}",
"score-partwise");
51 void %{
APPNAME}Shape::saveOdf( KoShapeSavingContext& context )
const
53 kDebug() <<
"Saving %{APPNAME}Shape";
55 KoXmlWriter& writer = context.xmlWriter();
56 writer.startElement(
"draw:frame");
57 saveOdfAttributes(context, OdfAllAttributes);
59 writer.startElement(
"%{APPNAMELC}:shape");
60 writer.addAttribute(
"xmlns:%{APPNAMELC}",
"http://www.koffice.org/%{APPNAMELC}");
66 saveOdfCommonChildElements(context);
void addRect(const QRectF &rectangle)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.