namespace sw
{ // TODO: merge/migrate this to com::sun::star::VertOrientation instead of duplicating? enumclass LineAlign
{
NONE,
TOP,
CENTER,
BOTTOM
};
}; namespace objectpositioning
{ class SwAsCharAnchoredObjectPosition final : public SwAnchoredObjectPosition
{ private: // data to calculate object position // Proposed anchor position, starting point for the calculation // of the object position. const Point& mrProposedAnchorPos; // flags that influences the calculation of the anchor position // AsCharFlags::Quick : quick formatting - calculated position not set at object // AsCharFlags::UlSpace : consider upper/lower spacing - adjustment of anchor position // AsCharFlags::Init : initial calculation // AsCharFlags::Rotate : object is rotated by 90 degrees // AsCharFlags::Reverse : object is reversed (rotated by 270 degrees) // AsCharFlags::Bidi : object belongs to a BIDI-multi-portion const AsCharFlags mnFlags; // needed line values for the different alignments. const SwTwips mnLineAscent; const SwTwips mnLineDescent; const SwTwips mnLineAscentInclObjs; const SwTwips mnLineDescentInclObjs;
// calculated data for object position
Point maAnchorPos;
SwTwips mnRelPos;
SwRect maObjBoundRect; // line alignment relative to line height
sw::LineAlign mnLineAlignment;
// method to cast <SwAnchoredObjectPosition::GetAnchorFrame()> const SwTextFrame& GetAnchorTextFrame() const;
/** determine the relative position to base line for object position
// calculated anchored position for object position type AS_CHAR const Point& GetAnchorPos() const { return maAnchorPos;}
// calculated relative position to base line for object position type AS_CHAR
SwTwips GetRelPosY() const { return mnRelPos;}
// determined object rectangle including spacing for object position type AS_CHAR const SwRect& GetObjBoundRectInclSpacing() const { return maObjBoundRect;}
// determined line alignment relative to line height
sw::LineAlign GetLineAlignment() const { return mnLineAlignment;}
};
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.