/** class for the positioning of drawing objects */ class SwAnchoredDrawObject final : public SwAnchoredObject
{ private: // boolean, indicating that the object position has been invalidated // and that a positioning has to be performed. bool mbValidPos;
// rectangle, keeping the last object rectangle after the positioning
std::optional<tools::Rectangle> maLastObjRect;
// boolean, indicating that anchored drawing object hasn't been attached // to an anchor frame yet. Once, it is attached to an anchor frame the // boolean changes its state. bool mbNotYetAttachedToAnchorFrame;
// boolean, indicating that anchored // drawing object hasn't been positioned yet. Once, it's positioned the // boolean changes its state. bool mbNotYetPositioned;
// boolean, indicating that after change of layout direction the // anchored drawing object has to be captured on the page, if it exceeds // the left or right page margin. // Needed for compatibility option <DoNotCaptureDrawObjsOnPage> bool mbCaptureAfterLayoutDirChange;
/** method for the intrinsic positioning of an at-paragraph|at-character anchoreddrawingobject
helper method for method <MakeObjPos> */ void MakeObjPosAnchoredAtPara();
/** method for the intrinsic positioning of an at-page|at-frame anchored drawingobject
helper method for method <MakeObjPos> */ void MakeObjPosAnchoredAtLayout();
/** method to set positioning attributes (not for as-character anchored)
Duringloadthepositioningattributesaren'tset. Thus,thepositioningattributesaresetbythecurrentobjectgeometry. Thismethodisalsousedfortheconversionfordrawingobjects (notanchoredas-character)importedfromOpenOffice.orgfileformat
once and directly before the first positioning. */ void SetPositioningAttr();
/** method to set internal anchor position of <SdrObject> instance ofthedrawingobject
Fordrawingobjectstheinternalanchorpositionofthe<SdrObject> instancehastobeset. Note:Thisadjustmentisnotbedoneforas-characteranchored drawingobject-thepositioningcodetakescareofthis. #i31698#-APIfordrawingobjectsinWriterhas beenadjusted.Thus,thismethodwillonlysettheinternalanchor positionofthe<SdrObject>instancetotheanchorpositiongiven
by its anchor frame. */ void SetDrawObjAnchor();
/** method to invalidate the given page frame */ void InvalidatePage_( SwPageFrame* _pPageFrame );
// change of layout direction needs to be tracked // for setting <mbCaptureAfterLayoutDirChange>. virtualvoid UpdateLayoutDir() override; bool IsOutsidePage() const;
// new Loop control void ValidateThis() { mbValidPos = true; }
/** The element name to show in the XML dump. */ virtualconstchar* getElementName( ) const override { return"SwAnchoredDrawObject"; }
};
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.