Commit ac98d750 authored by Thomas Zander's avatar Thomas Zander

* API docs

* make some protected members private. Which is always a good starting point for new classes.

svn path=/trunk/koffice/; revision=654745
parent f0a0606f
......@@ -56,11 +56,11 @@ public:
/// position. See KoShape::absolutePosition()
enum Position {
TopLeftCorner,
TopRightCorner,
BottomLeftCorner,
BottomRightCorner,
CenteredPositon
TopLeftCorner, ///< the top left corner
TopRightCorner, ///< the top rigt corner
BottomLeftCorner, ///< the bottom left corner
BottomRightCorner, ///< the bottom right corner
CenteredPositon ///< the centred corner
};
......
......@@ -467,6 +467,7 @@ public:
shape-&gt;rotate(45);
shape-&gt;setAbsolutePosition(QPointF(0,0));</pre>
* @param newPosition the new absolute center of the shape.
* @param anchor The place on the (unaltered) shape that you set the position of.
*/
void setAbsolutePosition(QPointF newPosition, KoFlake::Position anchor = KoFlake::CenteredPositon);
......@@ -570,6 +571,7 @@ protected:
OdfPosition = 4, ///< Store position of shape
OdfMandatories = 8, ///< Id, z-index, layer and style
/// A mask for all the attributes a 'draw:frame' requires
FrameAttributes = OdfMandatories | OdfSize | OdfPosition | OdfTransformation
};
......
......@@ -106,8 +106,10 @@ public:
*/
void setOptions( KoShapeSavingOptions options );
/// add an option to the set of options stored on this context, will leave the other options intact.
void addOption( ShapeSavingOption option);
/// remove an option, will leave the other options intact.
void removeOption( ShapeSavingOption option);
/**
......@@ -129,15 +131,13 @@ public:
*/
const QString drawId( const KoShape * shape, bool insert = true );
protected:
private:
KoXmlWriter *m_xmlWriter;
KoSavingContext &m_context;
KoShapeSavingOptions m_savingOptions;
QMap<const KoShape *, QString> m_drawIds;
int m_drawId;
// TODO handle relative positions
KoSavingContext &m_context;
};
Q_DECLARE_OPERATORS_FOR_FLAGS( KoShapeSavingContext::KoShapeSavingOptions )
......
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