LibreOffice Module sw (master)
1
|
wrapper class for the positioning of Writer fly frames and drawing objects More...
#include <anchoredobject.hxx>
Public Member Functions | |
virtual | ~SwAnchoredObject () |
void | SetDrawObj (SdrObject &_rDrawObj) |
const SdrObject * | GetDrawObj () const |
SdrObject * | DrawObj () |
const SwFrame * | GetAnchorFrame () const |
SwFrame * | AnchorFrame () |
void | ChgAnchorFrame (SwFrame *_pNewAnchorFrame) |
SwFrame * | GetAnchorFrameContainingAnchPos () |
determine anchor frame containing the anchor position More... | |
SwPageFrame * | GetPageFrame () |
const SwPageFrame * | GetPageFrame () const |
void | SetPageFrame (SwPageFrame *_pNewPageFrame) |
SwPageFrame * | FindPageFrameOfAnchor () |
method to determine the page frame, on which the 'anchor' of the given anchored object is. More... | |
SwTextFrame * | FindAnchorCharFrame () |
get frame, which contains the anchor character, if the object is anchored at-character or as-character. More... | |
const SwLayoutFrame * | GetVertPosOrientFrame () const |
void | ClearVertPosOrientFrame () |
void | CheckCharRectAndTopOfLine (const bool _bCheckForParaPorInf) |
check anchor character rectangle and top of line More... | |
const SwRect & | GetLastCharRect () const |
SwTwips | GetRelCharX (const SwFrame *pFrame) const |
SwTwips | GetRelCharY (const SwFrame *pFrame) const |
void | AddLastCharY (tools::Long nDiff) |
void | ResetLastCharRectHeight () |
SwTwips | GetLastTopOfLine () const |
void | AddLastTopOfLineY (SwTwips _nDiff) |
void | ClearCharRectAndTopOfLine () |
reset members <maLastCharRect> and <mnLastTopOfLine> More... | |
virtual void | MakeObjPos ()=0 |
method to determine position for the object and set the position at the object More... | |
bool | IsPositioningInProgress () const |
is positioning of anchored object in progress More... | |
bool | InvalidationOfPosAllowed () const |
method to determine, if invalidation of position is allowed More... | |
virtual void | InvalidateObjPos ()=0 |
method to invalidate position of the anchored object More... | |
void | InvalidateObjPosForConsiderWrapInfluence () |
method to perform necessary invalidations for the positioning of objects, for whose the wrapping style influence has to be considered on the object positioning. More... | |
virtual void | NotifyBackground (SwPageFrame *_pPageFrame, const SwRect &_rRect, PrepareHint _eHint)=0 |
method to trigger notification of 'background' More... | |
const Point & | GetCurrRelPos () const |
void | SetCurrRelPos (Point _aRelPos) |
virtual SwFrameFormat & | GetFrameFormat ()=0 |
virtual const SwFrameFormat & | GetFrameFormat () const =0 |
virtual SwRect | GetObjRect () const =0 |
void | SetObjTop (const SwTwips _nTop) |
void | SetObjLeft (const SwTwips _nLeft) |
virtual void | UpdateLayoutDir () |
method update layout direction the layout direction, the anchored object is assigned to More... | |
const SwRect & | GetObjRectWithSpaces () const |
method to determine object area inclusive its spacing More... | |
void | InvalidateObjRectWithSpaces () const |
bool | ConsiderObjWrapInfluenceOnObjPos () const |
method to determine, if wrapping style influence of the anchored object has to be considered on the object positioning More... | |
bool | ConsiderForTextWrap () const |
void | SetConsiderForTextWrap (const bool _bConsiderForTextWrap) |
bool | PositionLocked () const |
void | LockPosition () |
void | UnlockPosition () |
void | SetKeepPosLocked (const bool _bKeepPosLocked) |
bool | RestartLayoutProcess () const |
void | SetRestartLayoutProcess (const bool _bRestartLayoutProcess) |
bool | ClearedEnvironment () const |
void | SetClearedEnvironment (const bool _bClearedEnvironment) |
void | ResetLayoutProcessBools () |
bool | HasClearedEnvironment () const |
method to determine, if due to anchored object size and wrapping style, its layout environment is cleared. More... | |
void | UpdateObjInSortedList () |
method to update anchored object in the <SwSortedObjs> lists More... | |
virtual bool | IsFormatPossible () const |
method to determine, if a format on the anchored object is possible More... | |
void | SetTmpConsiderWrapInfluence (const bool _bTmpConsiderWrapInfluence) |
bool | IsTmpConsiderWrapInfluence () const |
void | ClearTmpConsiderWrapInfluence () |
bool | OverlapsPrevColumn () const |
method to determine, if the anchored object is overlapping with a previous column More... | |
Point | GetRelPosToAnchorFrame () const |
method to determine position of anchored object relative to anchor frame More... | |
Point | GetRelPosToPageFrame (const bool _bFollowTextFlow, bool &_obRelToTableCell) const |
method to determine position of anchored object relative to page frame More... | |
Point | GetRelPosToChar () const |
method to determine position of anchored object relative to anchor character More... | |
Point | GetRelPosToLine () const |
method to determine position of anchored object relative to top of line More... | |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Dump a bunch of useful data to an XML representation to ease layout understanding, debugging and testing. More... | |
virtual const char * | getElementName () const |
The element name to show in the XML dump. More... | |
Static Public Member Functions | |
static bool | IsDraggingOffPageAllowed (const SwFrameFormat *) |
method to determine if dragging objects off page is allowed More... | |
Protected Member Functions | |
SwAnchoredObject () | |
void | SetVertPosOrientFrame (const SwLayoutFrame &_rVertPosOrientFrame) |
virtual void | RegisterAtCorrectPage ()=0 |
method to assure that anchored object is registered at the correct page frame More... | |
virtual void | ObjectAttachedToAnchorFrame () |
method to indicate, that anchored object is attached to an anchor frame More... | |
bool | ConsiderObjWrapInfluenceOfOtherObjs () const |
method to determine, if other anchored objects, also attached at to the anchor frame, have to consider its wrap influence. More... | |
void | SetTmpConsiderWrapInfluenceOfOtherObjs () |
method to apply temporary consideration of wrapping style influence to the anchored objects, which are anchored at the same anchor frame More... | |
virtual bool | SetObjTop_ (const SwTwips _nTop)=0 |
virtual bool | SetObjLeft_ (const SwTwips _nLeft)=0 |
virtual SwRect | GetObjBoundRect () const =0 |
Private Member Functions | |
void | SetPositioningInProgress (const bool _bPosInProgress) |
void | CheckCharRect (const SwFormatAnchor &_rAnch, const SwTextFrame &_rAnchorCharFrame) |
check anchor character rectangle More... | |
void | CheckTopOfLine (const SwFormatAnchor &_rAnch, const SwTextFrame &_rAnchorCharFrame) |
check top of line More... | |
Private Attributes | |
SdrObject * | mpDrawObj |
SwFrame * | mpAnchorFrame |
SwPageFrame * | mpPageFrame |
Point | maRelPos |
SwRect | maLastCharRect |
SwTwips | mnLastTopOfLine |
const SwLayoutFrame * | mpVertPosOrientFrame |
bool | mbPositioningInProgress |
bool | mbConsiderForTextWrap |
bool | mbPositionLocked |
bool | mbKeepPositionLockedForSection |
bool | mbRestartLayoutProcess |
bool | mbClearedEnvironment |
bool | mbTmpConsiderWrapInfluence |
SwRect | maObjRectWithSpaces |
bool | mbObjRectWithSpacesValid |
SwRect | maLastObjRect |
Friends | |
class | SwObjPositioningInProgress |
method to indicate, that positioning of anchored object is in progress More... | |
bool | sw_HideObj (const SwTextFrame &_rFrame, const RndStdIds _eAnchorType, SwPosition const &rAnchorPos, SwAnchoredObject *_pAnchoredObj) |
as-character anchored graphics, which are used for a graphic bullet list. More... | |
wrapper class for the positioning of Writer fly frames and drawing objects
Purpose of this class is to provide a unified interface for the positioning of Writer fly frames (derived classes of <SwFlyFrame>) and of drawing objects (derived classes of <SwAnchoredDrawObject>).
Definition at line 44 of file anchoredobject.hxx.
|
protected |
Definition at line 70 of file anchoredobject.cxx.
|
virtual |
Definition at line 106 of file anchoredobject.cxx.
References ClearVertPosOrientFrame().
void SwAnchoredObject::AddLastCharY | ( | tools::Long | nDiff | ) |
Definition at line 176 of file anchoredobject.cxx.
References maLastCharRect, and SwRect::Pos().
Referenced by lcl_ArrangeLowers().
Definition at line 201 of file anchoredobject.cxx.
References mnLastTopOfLine.
Referenced by lcl_ArrangeLowers().
|
inline |
Definition at line 204 of file anchoredobject.hxx.
References mpAnchorFrame.
Referenced by SwFlyInContentFrame::ActionOnInvalidation(), SwDrawVirtObj::AnchorFrame(), SwFlyFrame::DestroyImpl(), SwDrawContact::DisconnectFromLayout(), FindAnchorCharFrame(), SwFlyFrame::FindChainNeighbour(), SwObjectFormatter::FormatObj(), SwObjectFormatter::FormatObjsAtFrame_(), GetAnchorFrameContainingAnchPos(), objectpositioning::SwAnchoredObjectPosition::GetInfoAboutObj(), SwFlyFrame::Invalidate_(), SwAnchoredDrawObject::InvalidateObjPos(), SwFlyFrame::IsPaint(), lcl_InvalidateLowerObjs(), lcl_MakeObjs(), SwFlyFreeFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), SwFlyInContentFrame::MakeAll(), UnfloatTableButton::MouseButtonDown(), SwFEShell::MoveAnchor(), SwFlyDrawContact::MoveObjToVisibleLayer(), Notify_Background(), SwFlyInContentFrame::NotifyBackground(), SwDrawVirtObj::RemoveFromWriterLayout(), SwFlyFrame::Shrink_(), SwFlyLayFrame::SwClientNotify(), SwFlyAtContentFrame::SwClientNotify(), SwFlyInContentFrame::SwClientNotify(), UpdateObjInSortedList(), and SwFlyNotify::~SwFlyNotify().
|
private |
check anchor character rectangle
helper method for method <CheckCharRectAndTopOfLine()> For to-character anchored Writer fly frames the member <maLastCharRect> is updated. This is checked for change and depending on the applied positioning, it's decided, if the Writer fly frame has to be invalidated. improvement - add second parameter <_rAnchorCharFrame>
_rAnch | input parameter - reference to anchor position |
_rAnchorCharFrame | input parameter - reference to the text frame containing the anchor character. |
#i22341# helper method for method <CheckCharRectAndTopOfLine()> For to-character anchored Writer fly frames the member <maLastCharRect> is updated. This is checked for change and depending on the applied positioning, it's decided, if the Writer fly frame has to be invalidated.
improvement - add second parameter <_rAnchorCharFrame>
Definition at line 253 of file anchoredobject.cxx.
References SwFrame::FindPageFrame(), SwTextFrame::GetAutoPos(), SwFormatAnchor::GetContentAnchor(), GetFrameFormat(), SwRectFnSet::GetHeight(), SwRectFnSet::GetLeft(), GetPageFrame(), SwFormatVertOrient::GetRelationOrient(), SwFormatHoriOrient::GetRelationOrient(), SwRectFnSet::GetTop(), InvalidateObjPos(), maLastCharRect, and UnlockPosition().
Referenced by CheckCharRectAndTopOfLine().
void SwAnchoredObject::CheckCharRectAndTopOfLine | ( | const bool | _bCheckForParaPorInf | ) |
check anchor character rectangle and top of line
For to-character anchored Writer fly frames the members <maLastCharRect> and <maLastTopOfLine> are updated. These are checked for change and depending on the applied positioning, it's decided, if the Writer fly frame has to be invalidated.
_bCheckForParaPorInf | input parameter - boolean indicating, if check on paragraph portion information has to be done. |
#i26791 For to-character anchored Writer fly frames the members <maLastCharRect> and <maLastTopOfLine> are updated. These are checked for change and depending on the applied positioning, it's decided, if the Writer fly frame has to be invalidated.
add parameter <_bCheckForParaPorInf>, default value <true>
Definition at line 216 of file anchoredobject.cxx.
References CheckCharRect(), CheckTopOfLine(), FindAnchorCharFrame(), SwFormat::GetAnchor(), GetAnchorFrame(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), GetFrameFormat(), and SwTextFrame::HasPara().
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition().
|
private |
check top of line
helper method for method <CheckCharRectAndTopOfLine()> For to-character anchored Writer fly frames the member <mnLastTopOfLine> is updated. This is checked for change and depending on the applied positioning, it's decided, if the Writer fly frame has to be invalidated.
_rAnch | input parameter - reference to anchor position |
_rAnchorCharFrame | input parameter - reference to the text frame containing the anchor character. |
#i22341# helper method for method <CheckCharRectAndTopOfLine()> For to-character anchored Writer fly frames the member <mnLastTopOfLine> is updated. This is checked for change and depending on the applied positioning, it's decided, if the Writer fly frame has to be invalidated.
improvement - add second parameter <_rAnchorCharFrame>
Definition at line 313 of file anchoredobject.cxx.
References SwFrame::FindPageFrame(), SwFormatAnchor::GetContentAnchor(), GetFrameFormat(), GetPageFrame(), SwFormatVertOrient::GetRelationOrient(), SwTextFrame::GetTopOfLine(), SwFormat::GetVertOrient(), InvalidateObjPos(), mnLastTopOfLine, and UnlockPosition().
Referenced by CheckCharRectAndTopOfLine().
Definition at line 117 of file anchoredobject.cxx.
References mpAnchorFrame, and ObjectAttachedToAnchorFrame().
Referenced by SwFrame::AppendDrawObj(), SwFrame::AppendFly(), SwFrame::RemoveDrawObj(), and SwFrame::RemoveFly().
void SwAnchoredObject::ClearCharRectAndTopOfLine | ( | ) |
reset members <maLastCharRect> and <mnLastTopOfLine>
Definition at line 339 of file anchoredobject.cxx.
References SwRect::Clear(), maLastCharRect, and mnLastTopOfLine.
Referenced by SwFEShell::FindAnchorPos(), lcl_InvalidateLowerObjs(), SwFEShell::MoveAnchor(), and SwFlyAtContentFrame::SwClientNotify().
bool SwAnchoredObject::ClearedEnvironment | ( | ) | const |
Definition at line 505 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbClearedEnvironment.
Referenced by SwFlyAtContentFrame::MakeObjPos().
void SwAnchoredObject::ClearTmpConsiderWrapInfluence | ( | ) |
Definition at line 761 of file anchoredobject.cxx.
References GetFrameFormat(), mbClearedEnvironment, mbTmpConsiderWrapInfluence, SwLayouter::RemoveObjForTmpConsiderWrapInfluence(), and SetClearedEnvironment().
Referenced by SwLayoutFrame::DestroyImpl(), and SwFlyFrame::DestroyImpl().
void SwAnchoredObject::ClearVertPosOrientFrame | ( | ) |
Definition at line 97 of file anchoredobject.cxx.
References mpVertPosOrientFrame.
Referenced by SwLayoutFrame::DestroyImpl(), SwFlyFrame::Invalidate_(), SetPageFrame(), SetVertPosOrientFrame(), and ~SwAnchoredObject().
bool SwAnchoredObject::ConsiderForTextWrap | ( | ) | const |
Definition at line 470 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbConsiderForTextWrap.
Referenced by SwTextFly::InitAnchoredObjList(), and SwFlyNotify::~SwFlyNotify().
|
protected |
method to determine, if other anchored objects, also attached at to the anchor frame, have to consider its wrap influence.
–> #i43255#
Definition at line 449 of file anchoredobject.cxx.
References GetAnchorFrame(), SwFrame::GetDrawObjs(), and SwSortedObjs::size().
Referenced by SwFlyAtContentFrame::MakeAll(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtPara().
bool SwAnchoredObject::ConsiderObjWrapInfluenceOnObjPos | ( | ) | const |
method to determine, if wrapping style influence of the anchored object has to be considered on the object positioning
Note: result of this method also decides, if the boolean for the layout process are of relevance.
#i28701# Note: result of this method also decides, if the booleans for the layout process are of relevance.
Definition at line 412 of file anchoredobject.cxx.
References CONSIDER_WRAP_ON_OBJECT_POSITION, IDocumentSettingAccess::get(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), GetFrameFormat(), SwFormat::getIDocumentSettingAccess(), SwFormatSurround::GetSurround(), SwFormat::GetSurround(), and IsTmpConsiderWrapInfluence().
Referenced by ClearedEnvironment(), ConsiderForTextWrap(), SwObjectFormatterTextFrame::DoFormatObj(), SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor(), InvalidateObjPosForConsiderWrapInfluence(), lcl_ArrangeLowers(), SwFlyAtContentFrame::MakeAll(), SwAnchoredDrawObject::MakeObjPosAnchoredAtPara(), PositionLocked(), RestartLayoutProcess(), UpdateObjInSortedList(), and SwFlyNotify::~SwFlyNotify().
|
inline |
Definition at line 200 of file anchoredobject.hxx.
Referenced by SwFrame::AppendDrawObj(), SwPageFrame::AppendDrawObjToPage(), SwDrawContact::Changed_(), SwFrame::CheckDirChange(), SwDrawContact::ConnectToLayout(), SwFlyFrame::DeleteCnt(), SwLayoutFrame::DestroyImpl(), SwFrame::DestroyImpl(), SwDrawContact::GetMaster(), SwFlyFrame::GetVirtDrawObj(), lcl_ArrangeLowers(), lcl_Regist(), SwAnchoredDrawObject::MakeObjPos(), SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout(), SwAnchoredDrawObject::MakeObjPosAnchoredAtPara(), SwAnchoredDrawObject::SetDrawObjAnchor(), SwAnchoredDrawObject::SetObjLeft_(), SwAnchoredDrawObject::SetObjTop_(), and SwDrawContact::SwClientNotify().
|
virtual |
Dump a bunch of useful data to an XML representation to ease layout understanding, debugging and testing.
Reimplemented in SwFlyFrame.
Definition at line 585 of file xmldump.cxx.
References SwRect::dumpAsXmlAttributes(), GetDrawObj(), getElementName(), GetObjBoundRect(), pObject, and void().
SwTextFrame * SwAnchoredObject::FindAnchorCharFrame | ( | ) |
get frame, which contains the anchor character, if the object is anchored at-character or as-character.
#i26945#
Definition at line 709 of file anchoredobject.cxx.
References AnchorFrame(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwTextFrame::GetFrameAtOfst(), GetFrameFormat(), SwTextFrame::MapModelToViewPos(), and mpAnchorFrame.
Referenced by CheckCharRectAndTopOfLine(), SwPageNumAndTypeOfAnchors::Collect(), SwObjectFormatter::FormatObjsAtFrame_(), and GetAnchorFrameContainingAnchPos().
SwPageFrame * SwAnchoredObject::FindPageFrameOfAnchor | ( | ) |
method to determine the page frame, on which the 'anchor' of the given anchored object is.
Adjust meaning of method and thus its name: If the anchored object or its anchor isn't correctly inserted in the layout, no page frame can be found. Thus, the return type changed to be a pointer and can be NULL.
_rAnchoredObj | input parameter - anchored object, for which the page frame of its 'anchor' has to be determined. |
#i28701# #i33751#, #i34060# Adjust meaning of method and thus its name: If the anchored object or its anchor isn't correctly inserted in the layout, no page frame can be found. Thus, the return type changed to be a pointer and can be NULL.
Definition at line 686 of file anchoredobject.cxx.
References SwFrame::FindPageFrame(), GetAnchorFrameContainingAnchPos(), and mpAnchorFrame.
Referenced by SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage(), SwObjectFormatterTextFrame::CheckMovedFwdCondition(), SwPageNumAndTypeOfAnchors::Collect(), SwObjectFormatter::FormatObjsAtFrame_(), SwEditShell::HandleUndoRedoContext(), SwFEShell::Insert(), SwAnchoredDrawObject::InvalidateObjPos(), sw::IsFlyFrameFormatInHeader(), and lcl_NotifyBackgroundOfObj().
|
inline |
Definition at line 203 of file anchoredobject.hxx.
References mpAnchorFrame.
Referenced by SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage(), SwFrame::AppendDrawObj(), SwPageFrame::AppendDrawObjToPage(), SwPageFrame::AppendFlyToPage(), SwFlowFrame::BwdMoveNecessary(), SwFEShell::CalcBoundRect(), CalcClipRect(), SwRootFrame::CalcFrameRects(), SwFlyFrame::CalcRel(), CheckCharRectAndTopOfLine(), SwFlyFreeFrame::CheckClip(), SwDrawView::CheckPossibilities(), SwFlyFrame::ChgRelPos(), SwDrawContact::ChkPage(), ConsiderObjWrapInfluenceOfOtherObjs(), SwFlyFreeFrame::DestroyImpl(), SwFlyFrame::DestroyImpl(), SwFlyInContentFrame::DestroyImpl(), SwDrawContact::DisconnectFromLayout(), SwObjectFormatterTextFrame::DoFormatObj(), objectpositioning::SwAnchoredObjectPosition::DrawAsideFly(), SwTextFly::DrawTextOpaque(), SwFEShell::FindAnchorPos(), SwFlyFrame::FindChainNeighbour(), SwTextFly::ForEach(), SwObjectFormatter::FormatObj(), SwObjectFormatter::FormatObjsAtFrame_(), SwDrawVirtObj::GetAnchorFrame(), SwDrawContact::GetAnchorFrame(), SwFEShell::GetAnchorObjDiff(), SwAccessibleDocument::getExtendedAttributes(), SwFEShell::GetGraphicDefaultSize(), sw::access::SwAccessibleChild::GetParent(), GetRelPosToAnchorFrame(), GetRelPosToPageFrame(), SwTextFly::GetSurroundForTextWrap(), SwTextFly::GetTop(), HasClearedEnvironment(), SwFlyFreeFrame::HasEnvironmentAutoSize(), SwFEShell::ImpEndCreate(), SwTextFly::InitAnchoredObjList(), SwFlyFrame::Invalidate_(), SwAnchoredDrawObject::InvalidateObjPos(), SwFrame::InvalidatePage(), Is_Lower_Of(), sw::IsFlyFrameFormatInHeader(), SwFlyFreeFrame::IsFormatPossible(), SwFEShell::IsFrameVertical(), SwFEShell::IsGroupAllowed(), SwFlyFrame::IsLowerOf(), sw::IsPageFrameEmpty(), SwFlyFrame::IsShowUnfloatButton(), lcl_AdjustPositioningAttr(), lcl_FindAnchor(), lcl_IsInBody(), lcl_MakeObjs(), lcl_NotifyBackgroundOfObj(), lcl_RefreshLine(), lcl_SubtractFlys(), SwFlyFreeFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), SwFlyInContentFrame::MakeAll(), SwAnchoredDrawObject::MakeObjPos(), SwFlyInContentFrame::MakeObjPos(), SwFlyFrame::MakeObjPos(), SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout(), SwFEShell::MoveAnchor(), SwVirtFlyDrawObj::NbcMove(), SwVirtFlyDrawObj::NbcResize(), Notify_Background(), SwDrawView::ObjOrderChanged(), SwFlyFrame::PaintSwFrame(), SwFEShell::Paste(), SwDrawVirtObj::RemoveFromWriterLayout(), SwFEShell::RequestObjectResize(), SwFEShell::SelectFlyFrame(), SwFlyAtContentFrame::SetAbsPos(), SwAnchoredDrawObject::SetDrawObjAnchor(), SwFEShell::SetFlyPos(), SwFlyInContentFrame::SetRefPoint(), SetTmpConsiderWrapInfluenceOfOtherObjs(), SwFlyFrame::Shrink_(), SwContact::SwClientNotify(), SwFlyAtContentFrame::SwClientNotify(), SwFlyInContentFrame::SwClientNotify(), SwDrawContact::SwClientNotify(), UpdateLayoutDir(), UpdateObjInSortedList(), and SwFlyNotify::~SwFlyNotify().
SwFrame * SwAnchoredObject::GetAnchorFrameContainingAnchPos | ( | ) |
determine anchor frame containing the anchor position
the anchor frame, which is determined, is <mpAnchorFrame> for an at-page, at-frame or at-paragraph anchored object and the anchor character frame for an at-character and as-character anchored object.
#i26945# the anchor frame, which is determined, is <mpAnchorFrame> for an at-page, at-frame or at-paragraph anchored object and the anchor character frame for an at-character and as-character anchored object.
Definition at line 135 of file anchoredobject.cxx.
References AnchorFrame(), and FindAnchorCharFrame().
Referenced by SwTabFrame::CalcFlyOffsets(), SwFrame::CheckDirChange(), SwObjectFormatterTextFrame::CheckMovedFwdCondition(), FindPageFrameOfAnchor(), lcl_ArrangeLowers(), SwFlyAtContentFrame::MakeAll(), SwAnchoredDrawObject::MakeObjPosAnchoredAtPara(), and SwContact::MoveObjToVisibleLayer().
|
inline |
Definition at line 311 of file anchoredobject.hxx.
References Point.
Referenced by objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwFlyFrame::ChgRelPos(), SwFlyInContentFrame::GetRelPos(), SwFlyInContentFrame::MakeObjPos(), SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout(), and SwFlyInContentFrame::SetRefPoint().
|
inline |
Definition at line 199 of file anchoredobject.hxx.
Referenced by SwDrawVirtObj::AddToDrawingPage(), SwAnchoredDrawObject::AdjustPositioningAttr(), SwFrame::AppendDrawObj(), SwPageFrame::AppendDrawObjToPage(), SwFlowFrame::BwdMoveNecessary(), SwContourCache::CalcBoundRect(), SwFlyFreeFrame::CheckClip(), SwTextFly::DrawFlyRect(), SwTextFly::DrawTextOpaque(), dumpAsXml(), SwAnchoredDrawObject::GetFrameFormat(), SwDrawView::GetMaxChildOrdNum(), SwAnchoredDrawObject::GetObjBoundRect(), SwAnchoredDrawObject::GetObjRect(), SwFlyDrawContact::GetOrdNumForNewRef(), SwTextFly::GetTop(), SwFlyFrame::GetVirtDrawObj(), SwRootFrame::ImplCalcBrowseWidth(), SwTextFly::InitAnchoredObjList(), IsFormatPossible(), sw::IsPageFrameEmpty(), lcl_Regist(), lcl_SubtractFlys(), SwAnchoredDrawObject::MakeObjPos(), SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout(), SwDrawView::MoveRepeatedObjs(), SwAnchoredDrawObject::NotifyBackground(), SwDrawView::ObjOrderChanged(), SwFlyFrame::PaintSwFrame(), SwFrame::RemoveDrawObj(), SwAnchoredDrawObject::SetDrawObjAnchor(), SwAnchoredDrawObject::SetPositioningAttr(), SwDrawContact::SwClientNotify(), and SwDrawContact::~SwDrawContact().
|
inlinevirtual |
The element name to show in the XML dump.
Reimplemented in SwAnchoredDrawObject.
Definition at line 487 of file anchoredobject.hxx.
Referenced by dumpAsXml().
|
pure virtual |
Implemented in SwFlyFrame, and SwAnchoredDrawObject.
Referenced by SwDrawVirtObj::AddToDrawingPage(), SwPageFrame::AppendDrawObjToPage(), SwFlowFrame::BwdMoveNecessary(), SwContourCache::CalcBoundRect(), CalcContent(), SwRootFrame::CalcFrameRects(), SwTextFly::CalcMinBottom(), CheckCharRect(), CheckCharRectAndTopOfLine(), SwObjectFormatterTextFrame::CheckMovedFwdCondition(), CheckTopOfLine(), ClearTmpConsiderWrapInfluence(), ConsiderObjWrapInfluenceOnObjPos(), SwObjectFormatterTextFrame::DoFormatObj(), SwTextFly::DrawFlyRect(), FindAnchorCharFrame(), SwFEShell::FindAnchorPos(), SwTextFly::ForEach(), SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor(), objectpositioning::SwAnchoredObjectPosition::GetInfoAboutObj(), GetObjRectWithSpaces(), SwFlyDrawContact::GetOrdNumForNewRef(), SwTextFly::GetSurroundForTextWrap(), SwTextFly::GetTop(), SwRootFrame::ImplCalcBrowseWidth(), SwTextFly::InitAnchoredObjList(), SwObjectFormatterTextFrame::InvalidatePrevObjs(), IsFormatPossible(), lcl_ArrangeLowers(), lcl_InvalidateLowerObjs(), lcl_MoveAllLowerObjs(), SwContentFrame::MakePrtArea(), SwFEShell::MoveAnchor(), SwTextFrame::MoveFlyInCnt(), SwTextFrame::Prepare(), SwPageFrame::RemoveDrawObjFromPage(), SetTmpConsiderWrapInfluence(), SwFEShell::ShouldObjectBeSelected(), UpdateLayoutDir(), and UpdateObjInSortedList().
|
pure virtual |
Implemented in SwFlyFrame, and SwAnchoredDrawObject.
|
inline |
Definition at line 268 of file anchoredobject.hxx.
Referenced by SwDrawView::AddCustomHdl(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), and GetRelPosToChar().
|
inline |
Definition at line 275 of file anchoredobject.hxx.
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), and GetRelPosToLine().
|
protectedpure virtual |
Implemented in SwFlyFrame, and SwAnchoredDrawObject.
Referenced by dumpAsXml(), and GetObjRectWithSpaces().
|
pure virtual |
Implemented in SwFlyFrame, and SwAnchoredDrawObject.
Referenced by SwFlowFrame::BwdMoveNecessary(), CalcContent(), objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwDoc::ChgAnchor(), SwTextFly::DrawFlyRect(), SwPostItHelper::getLayoutInfos(), GetObjRectWithSpaces(), GetRelPosToAnchorFrame(), GetRelPosToChar(), GetRelPosToLine(), GetRelPosToPageFrame(), SwTextFly::GetTop(), SwRootFrame::ImplCalcBrowseWidth(), SwTextFly::IsAnyObj(), SwLayAction::IsShortCut(), SwContentFrame::MakePrtArea(), SwContact::MoveObjToInvisibleLayer(), SwContact::MoveObjToVisibleLayer(), and OverlapsPrevColumn().
const SwRect & SwAnchoredObject::GetObjRectWithSpaces | ( | ) | const |
method to determine object area inclusive its spacing
method to add spacing to object area
#i28701# #i68520# - return constant reference and use cache
Definition at line 564 of file anchoredobject.cxx.
References SwRect::AddHeight(), SwRect::AddWidth(), GetFrameFormat(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), SwFormat::GetLRSpace(), GetObjBoundRect(), GetObjRect(), SvxLRSpaceItem::GetRight(), SwFormat::GetULSpace(), SvxULSpaceItem::GetUpper(), InvalidateObjRectWithSpaces(), SwRect::Left(), maLastObjRect, maObjRectWithSpaces, mbObjRectWithSpacesValid, and SwRect::Top().
Referenced by SwTextFly::AnchoredObjToRect(), SwContourCache::CalcBoundRect(), SwTextFly::CalcLeftMargin(), SwTextFly::CalcMinBottom(), SwFlyFreeFrame::DestroyImpl(), SwFlyInContentFrame::DestroyImpl(), SwDrawContact::DisconnectFromLayout(), SwTextFly::ForEach(), SwFlyFrame::FrameSizeChg(), GetBoundRectOfAnchoredObj(), SwTextFly::GetSurroundForTextWrap(), SwTextFly::GetTop(), SwFlyFrame::Grow_(), SwTextFly::InitAnchoredObjList(), InvalidateObjPosForConsiderWrapInfluence(), SwTextFly::IsAnyObj(), lcl_NotifyBackgroundOfObj(), Notify(), SwFlyAtContentFrame::SetAbsPos(), SwFlyFrame::Shrink_(), SwFlyLayFrame::SwClientNotify(), SwFlyAtContentFrame::SwClientNotify(), SwDrawContact::SwClientNotify(), SwInsertChart::SwInsertChart(), SwFlyFrame::UpdateAttr_(), and SwFlyNotify::~SwFlyNotify().
|
inline |
Definition at line 215 of file anchoredobject.hxx.
Referenced by SwPageFrame::AppendDrawObjToPage(), SwPageFrame::AppendFlyToPage(), SwDrawContact::Changed_(), CheckCharRect(), CheckTopOfLine(), SwFlyFreeFrame::DestroyImpl(), SwObjectFormatterTextFrame::DoFormatObj(), SwObjectFormatterTextFrame::DoFormatObjs(), SwAnchoredDrawObject::GetObjBoundRect(), SwDrawContact::GetPageFrame(), HasClearedEnvironment(), SwAnchoredDrawObject::InvalidateObjPos(), InvalidateObjPosForConsiderWrapInfluence(), SwFlyFreeFrame::IsFormatPossible(), SwAnchoredDrawObject::IsOutsidePage(), lcl_ArrangeLowers(), SwFlyFreeFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), SwAnchoredDrawObject::MakeObjPos(), SwContact::MoveObjToInvisibleLayer(), SwContact::MoveObjToVisibleLayer(), SwAnchoredDrawObject::RegisterAtCorrectPage(), SwFlyAtContentFrame::RegisterAtCorrectPage(), SwFrame::RemoveDrawObj(), SwFlyAtContentFrame::SetAbsPos(), SwFlyLayFrame::SwClientNotify(), UpdateObjInSortedList(), SwVirtFlyDrawObj::wrap_DoPaintObject(), and SwFlyNotify::~SwFlyNotify().
|
inline |
Definition at line 216 of file anchoredobject.hxx.
Definition at line 166 of file anchoredobject.cxx.
References SwFrameAreaDefinition::getFrameArea(), SwRect::Left(), and maLastCharRect.
Referenced by SwFlyFrame::ChgRelPos().
Definition at line 171 of file anchoredobject.cxx.
References SwRect::Bottom(), SwFrameAreaDefinition::getFrameArea(), maLastCharRect, and SwRect::Top().
Referenced by SwFlyFrame::ChgRelPos().
Point SwAnchoredObject::GetRelPosToAnchorFrame | ( | ) | const |
method to determine position of anchored object relative to anchor frame
Usage: Needed layout information for WW8 export
#i30669# Usage: Needed layout information for WW8 export
Definition at line 822 of file anchoredobject.cxx.
References assert(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), GetObjRect(), Point, and SwRect::Pos().
Point SwAnchoredObject::GetRelPosToChar | ( | ) | const |
method to determine position of anchored object relative to anchor character
Usage: Needed layout information for WW8 export
#i30669# Usage: Needed layout information for WW8 export
Definition at line 888 of file anchoredobject.cxx.
References GetLastCharRect(), GetObjRect(), Point, and SwRect::Pos().
Point SwAnchoredObject::GetRelPosToLine | ( | ) | const |
method to determine position of anchored object relative to top of line
Usage: Needed layout information for WW8 export
#i30669# Usage: Needed layout information for WW8 export
Definition at line 902 of file anchoredobject.cxx.
References GetLastTopOfLine(), GetObjRect(), Point, and SwRect::Pos().
Point SwAnchoredObject::GetRelPosToPageFrame | ( | const bool | _bFollowTextFlow, |
bool & | _obRelToTableCell | ||
) | const |
method to determine position of anchored object relative to page frame
Usage: Needed layout information for WW8 export
If <_bFollowTextFlow> is set and object is anchored inside table, the position relative to the table cell is determined. Output parameter <_obRelToTableCell> reflects this situation
_bFollowTextFlow | input parameter - boolean indicating, if the anchored object has to follow the text flow. |
_obRelToTableCell | output parameter - boolean indicating, the determine position is relative to the table cell |
#i30669# Usage: Needed layout information for WW8 export #i33818# - add parameters <_bFollowTextFlow> and <_obRelToTableCell> If <_bFollowTextFlow> is set and object is anchored inside table, the position relative to the table cell is determined. Output parameter <_obRelToTableCell> reflects this situation
Definition at line 844 of file anchoredobject.cxx.
References assert(), SwFrame::FindPageFrame(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetObjRect(), SwFrame::GetUpper(), SwFrame::IsCellFrame(), SwFrame::IsPageFrame(), Point, and SwRect::Pos().
|
inline |
Definition at line 247 of file anchoredobject.hxx.
Referenced by CalcClipRect(), HasClearedEnvironment(), SwFlyFrame::Invalidate_(), SwFlyAtContentFrame::MakeObjPos(), SwAnchoredDrawObject::RegisterAtCorrectPage(), SwFlyAtContentFrame::RegisterAtCorrectPage(), and SetPageFrame().
bool SwAnchoredObject::HasClearedEnvironment | ( | ) | const |
method to determine, if due to anchored object size and wrapping style, its layout environment is cleared.
#i35911#
Definition at line 522 of file anchoredobject.cxx.
References GetAnchorFrame(), SwTextFrame::GetFollow(), SwFrame::GetNext(), SwTextFrame::GetOffset(), GetPageFrame(), GetVertPosOrientFrame(), SwFrame::IsLayoutFrame(), SwFrame::IsTabFrame(), SwFrame::IsTextFrame(), SwFlowFrame::IsUndersized(), Lower, and SwLayoutFrame::Lower().
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), SwObjectFormatterTextFrame::DoFormatObjs(), and SwFlyAtContentFrame::MakeObjPos().
|
pure virtual |
method to invalidate position of the anchored object
Implemented in SwFlyFrame, and SwAnchoredDrawObject.
Referenced by SwFrame::AppendDrawObj(), CheckCharRect(), SwFrame::CheckDirChange(), CheckTopOfLine(), InvalidateObjPosForConsiderWrapInfluence(), SwDrawContact::InvalidateObjs_(), lcl_ArrangeLowers(), lcl_InvalidateLowerObjs(), SwContact::MoveObjToVisibleLayer(), and UpdateObjInSortedList().
void SwAnchoredObject::InvalidateObjPosForConsiderWrapInfluence | ( | ) |
method to perform necessary invalidations for the positioning of objects, for whose the wrapping style influence has to be considered on the object positioning.
#i28701#
Definition at line 390 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), FlyFrameLeave, GetObjRectWithSpaces(), GetPageFrame(), InvalidateObjPos(), NotifyBackground(), SetConsiderForTextWrap(), and UnlockPosition().
Referenced by SwObjectFormatterTextFrame::InvalidateFollowObjs(), SwObjectFormatterTextFrame::InvalidatePrevObjs(), and UpdateObjInSortedList().
|
inline |
Definition at line 335 of file anchoredobject.hxx.
Referenced by SwDrawContact::Changed_(), SwFlyFrame::Format(), SwLayoutFrame::FormatWidthCols(), SwFlyFrame::FrameSizeChg(), GetObjRectWithSpaces(), SwAnchoredDrawObject::InvalidateObjPos(), SwFlyFrame::InvalidateObjPos(), lcl_ArrangeLowers(), lcl_MoveAllLowerObjs(), SwFlyFrame::MakeObjPos(), SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout(), SwAnchoredDrawObject::SetDrawObjAnchor(), SwAnchoredDrawObject::SetPositioningAttr(), SwFlyInContentFrame::SetRefPoint(), SwFlyFrame::Shrink_(), and SwFlyFrame::SwClientNotify().
bool SwAnchoredObject::InvalidationOfPosAllowed | ( | ) | const |
method to determine, if invalidation of position is allowed
#i28701#
Definition at line 669 of file anchoredobject.cxx.
References PositionLocked().
Referenced by SwAnchoredDrawObject::InvalidateObjPos(), and SwFlyAtContentFrame::InvalidationAllowed().
|
static |
method to determine if dragging objects off page is allowed
Returns true if editor objects can be dragged off page, false otherwise
Definition at line 740 of file anchoredobject.cxx.
References DISABLE_OFF_PAGE_POSITIONING, IDocumentSettingAccess::get(), SwFormat::getIDocumentSettingAccess(), SwFormatSurround::GetSurround(), and SwFormat::GetSurround().
Referenced by SwFlyFreeFrame::CheckClip(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustHoriRelPos(), and objectpositioning::SwAnchoredObjectPosition::ImplAdjustVertRelPos().
|
virtual |
method to determine, if a format on the anchored object is possible
A format isn't possible, if anchored object is in an invisible layer. Note: method is virtual to refine the conditions for the sub-classes.
#i28701# A format is possible, if anchored object is in an invisible layer. Note: method is virtual to refine the conditions for the sub-classes.
Reimplemented in SwFlyFrame, SwFlyAtContentFrame, and SwFlyFreeFrame.
Definition at line 735 of file anchoredobject.cxx.
References SwFormat::GetDoc(), GetDrawObj(), GetFrameFormat(), SwDoc::getIDocumentDrawModelAccess(), and IDocumentDrawModelAccess::IsVisibleLayerId().
Referenced by CalcContent(), SwObjectFormatterTextFrame::DoFormatObj(), and SwFlyFrame::IsFormatPossible().
|
inline |
is positioning of anchored object in progress
Definition at line 287 of file anchoredobject.hxx.
Referenced by SwDrawContact::Changed_(), SwAnchoredDrawObject::MakeObjPos(), and SwObjPositioningInProgress::SwObjPositioningInProgress().
|
inline |
Definition at line 419 of file anchoredobject.hxx.
Referenced by ConsiderObjWrapInfluenceOnObjPos().
|
inline |
Definition at line 352 of file anchoredobject.hxx.
Referenced by SwFlyNotify::~SwFlyNotify().
|
pure virtual |
method to determine position for the object and set the position at the object
Implemented in SwFlyFrame, SwFlyInContentFrame, SwFlyAtContentFrame, and SwAnchoredDrawObject.
Referenced by SwObjectFormatter::FormatObj_(), and SwDrawContact::SwClientNotify().
|
pure virtual |
method to trigger notification of 'background'
Implemented in SwFlyInContentFrame, SwAnchoredDrawObject, and SwFlyFreeFrame.
Referenced by SwNoTextFrame::ClearCache(), InvalidateObjPosForConsiderWrapInfluence(), Notify(), SwFlyFrame::UpdateAttr_(), and SwFlyNotify::~SwFlyNotify().
|
protectedvirtual |
method to indicate, that anchored object is attached to an anchor frame
Reimplemented in SwAnchoredDrawObject.
Definition at line 350 of file anchoredobject.cxx.
References UpdateLayoutDir().
Referenced by ChgAnchorFrame(), and SwAnchoredDrawObject::ObjectAttachedToAnchorFrame().
bool SwAnchoredObject::OverlapsPrevColumn | ( | ) | const |
method to determine, if the anchored object is overlapping with a previous column
overlapping with a previous column means, that the object overlaps with a column, which is a previous one of the column its anchor frame is in. Only applied for at-paragraph and at-character anchored objects.
#i3317# overlapping with a previous column means, that the object overlaps with a column, which is a previous one of the column its anchor frame is in. Only applied for at-paragraph and at-character anchored objects.
Definition at line 793 of file anchoredobject.cxx.
References SwFrame::FindColFrame(), SwFrameAreaDefinition::getFrameArea(), GetObjRect(), SwFrame::GetPrev(), SwRect::IsOver(), SwFrame::IsTextFrame(), mpAnchorFrame, and SwRect::Union().
Referenced by SwFlyAtContentFrame::MakeAll(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtPara().
bool SwAnchoredObject::PositionLocked | ( | ) | const |
Definition at line 483 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbPositionLocked.
Referenced by CalcContent(), SwObjectFormatterTextFrame::DoFormatObj(), InvalidationOfPosAllowed(), and SwFlyFreeFrame::MakeAll().
|
protectedpure virtual |
method to assure that anchored object is registered at the correct page frame
Implemented in SwFlyAtContentFrame, SwFlyFrame, and SwAnchoredDrawObject.
Referenced by SetVertPosOrientFrame().
void SwAnchoredObject::ResetLastCharRectHeight | ( | ) |
Definition at line 181 of file anchoredobject.cxx.
References SwRect::Height(), and maLastCharRect.
Referenced by SwFlyAtContentFrame::SetAbsPos().
|
inline |
Definition at line 376 of file anchoredobject.hxx.
Referenced by SwFlyFrame::SwClientNotify(), and SwDrawContact::SwClientNotify().
bool SwAnchoredObject::RestartLayoutProcess | ( | ) | const |
Definition at line 491 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbRestartLayoutProcess.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), and SwObjectFormatter::FormatObj_().
void SwAnchoredObject::SetClearedEnvironment | ( | const bool | _bClearedEnvironment | ) |
Definition at line 512 of file anchoredobject.cxx.
References mbClearedEnvironment.
Referenced by SwObjsMarkedAsTmpConsiderWrapInfluence::Clear(), ClearTmpConsiderWrapInfluence(), SwObjectFormatterTextFrame::DoFormatObj(), and SwObjectFormatterTextFrame::DoFormatObjs().
void SwAnchoredObject::SetConsiderForTextWrap | ( | const bool | _bConsiderForTextWrap | ) |
Definition at line 478 of file anchoredobject.cxx.
References mbConsiderForTextWrap.
Referenced by InvalidateObjPosForConsiderWrapInfluence(), lcl_InvalidateLowerObjs(), and SwFlyNotify::~SwFlyNotify().
Definition at line 345 of file anchoredobject.cxx.
References maRelPos.
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwFlyFrame::ChgRelPos(), lcl_ArrangeLowers(), lcl_InvalidateLowerObjs(), SwFlyFrame::MakeObjPos(), SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout(), SwFlyInContentFrame::SetRefPoint(), and SwFlyInContentFrame::SwFlyInContentFrame().
Definition at line 111 of file anchoredobject.cxx.
References mpDrawObj.
Referenced by SwDrawContact::ChangeMasterObject(), SwFlyFrame::InitDrawObj(), SwDrawContact::SwDrawContact(), and SwDrawVirtObj::SwDrawVirtObj().
|
inline |
Definition at line 364 of file anchoredobject.hxx.
Definition at line 602 of file anchoredobject.cxx.
References mbObjRectWithSpacesValid, and SetObjLeft_().
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), lcl_InvalidateLowerObjs(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout().
|
protectedpure virtual |
Implemented in SwFlyFrame, and SwAnchoredDrawObject.
Referenced by SetObjLeft().
Definition at line 593 of file anchoredobject.cxx.
References mbObjRectWithSpacesValid, and SetObjTop_().
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout().
|
protectedpure virtual |
Implemented in SwFlyFrame, and SwAnchoredDrawObject.
Referenced by SetObjTop().
void SwAnchoredObject::SetPageFrame | ( | SwPageFrame * | _pNewPageFrame | ) |
Definition at line 147 of file anchoredobject.cxx.
References ClearVertPosOrientFrame(), GetVertPosOrientFrame(), and mpPageFrame.
Referenced by SwPageFrame::AppendDrawObjToPage(), SwPageFrame::AppendFlyToPage(), SwDrawContact::ChkPage(), SwPageFrame::MoveFly(), SwPageFrame::RemoveDrawObjFromPage(), and SwPageFrame::RemoveFlyFromPage().
|
inlineprivate |
Definition at line 120 of file anchoredobject.hxx.
Referenced by SwObjPositioningInProgress::SwObjPositioningInProgress(), and SwObjPositioningInProgress::~SwObjPositioningInProgress().
void SwAnchoredObject::SetRestartLayoutProcess | ( | const bool | _bRestartLayoutProcess | ) |
Definition at line 499 of file anchoredobject.cxx.
References mbRestartLayoutProcess.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), SwFlyAtContentFrame::MakeAll(), SwAnchoredDrawObject::MakeObjPosAnchoredAtPara(), and SwFlyNotify::~SwFlyNotify().
void SwAnchoredObject::SetTmpConsiderWrapInfluence | ( | const bool | _bTmpConsiderWrapInfluence | ) |
Definition at line 750 of file anchoredobject.cxx.
References GetFrameFormat(), SwLayouter::InsertObjForTmpConsiderWrapInfluence(), and mbTmpConsiderWrapInfluence.
Referenced by SwObjsMarkedAsTmpConsiderWrapInfluence::Clear(), lcl_InvalidateLowerObjs(), SwFlyAtContentFrame::MakeAll(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtPara().
|
protected |
method to apply temporary consideration of wrapping style influence to the anchored objects, which are anchored at the same anchor frame
Definition at line 769 of file anchoredobject.cxx.
References GetAnchorFrame(), SwFrame::GetDrawObjs(), and SwSortedObjs::size().
Referenced by SwFlyAtContentFrame::MakeAll().
|
protected |
Definition at line 186 of file anchoredobject.cxx.
References ClearVertPosOrientFrame(), mpVertPosOrientFrame, and RegisterAtCorrectPage().
Referenced by SwFlyAtContentFrame::MakeObjPos(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtPara().
|
inline |
Definition at line 356 of file anchoredobject.hxx.
Referenced by SwPageFrame::AppendFlyToPage(), CheckCharRect(), CheckTopOfLine(), SwFlyFrame::Grow_(), InvalidateObjPosForConsiderWrapInfluence(), lcl_InvalidateLowerObjs(), and SwPageFrame::MoveFly().
|
virtual |
method update layout direction the layout direction, the anchored object is assigned to
method update layout direction the layout direction, the anchored object is in
method has typically to be called, if the anchored object gets its anchor frame assigned and if the anchor frame changes its layout direction
#i31698# method has typically to be called, if the anchored object gets its anchor frame assigned.
Reimplemented in SwAnchoredDrawObject.
Definition at line 364 of file anchoredobject.cxx.
References GetAnchorFrame(), GetFrameFormat(), SwFrameFormat::HORI_L2R, SwFrameFormat::HORI_R2L, SwFrame::IsRightToLeft(), SwFrame::IsVertical(), SwFrameFormat::SetLayoutDir(), and SwFrameFormat::VERT_R2L.
Referenced by SwFrame::CheckDirChange(), ObjectAttachedToAnchorFrame(), and SwAnchoredDrawObject::UpdateLayoutDir().
void SwAnchoredObject::UpdateObjInSortedList | ( | ) |
method to update anchored object in the <SwSortedObjs> lists
Method is not proposed to be called during a layout process is running. It has been used on the change of the anchored object attributes, which belongs the sort criteria of <SwSortedObjs>. If document compatibility option 'Consider wrapping style influence on object positioning' is ON, additionally all anchored objects at the anchor frame and all following anchored objects on the page frame are invalidated.
#i28701# If document compatibility option 'Consider wrapping style influence on object positioning' is ON, additionally all anchored objects at the anchor frame and all following anchored objects on the page frame are invalidated.
Definition at line 620 of file anchoredobject.cxx.
References AnchorFrame(), SwSortedObjs::begin(), CONSIDER_WRAP_ON_OBJECT_POSITION, ConsiderObjWrapInfluenceOnObjPos(), SwSortedObjs::end(), GetAnchorFrame(), SwFrame::GetDrawObjs(), GetFrameFormat(), GetPageFrame(), SwPageFrame::GetSortedObjs(), i, InvalidateObjPos(), InvalidateObjPosForConsiderWrapInfluence(), SwSortedObjs::ListPosOf(), SwSortedObjs::size(), and SwSortedObjs::Update().
Referenced by SwDoc::ChgAnchor(), SwDrawContact::InvalidateObjs_(), and SwFlyFrame::SwClientNotify().
|
friend |
as-character anchored graphics, which are used for a graphic bullet list.
As long as these graphic bullet list aren't imported, do not hide a at-character anchored object, if (a) the document is an imported WW8 document - checked by checking certain compatibility options - (b) the paragraph is the last content in the document and (c) the anchor character is an as-character anchored graphic.
Definition at line 1478 of file txtfrm.cxx.
|
friend |
method to indicate, that positioning of anchored object is in progress
note: method is implemented empty
Definition at line 119 of file anchoredobject.hxx.
|
private |
Definition at line 61 of file anchoredobject.hxx.
Referenced by AddLastCharY(), CheckCharRect(), ClearCharRectAndTopOfLine(), GetRelCharX(), GetRelCharY(), ResetLastCharRectHeight(), and sw_HideObj().
|
mutableprivate |
Definition at line 113 of file anchoredobject.hxx.
Referenced by GetObjRectWithSpaces().
|
mutableprivate |
Definition at line 111 of file anchoredobject.hxx.
Referenced by GetObjRectWithSpaces().
|
private |
Definition at line 55 of file anchoredobject.hxx.
Referenced by SetCurrRelPos().
|
private |
Definition at line 98 of file anchoredobject.hxx.
Referenced by ClearedEnvironment(), ClearTmpConsiderWrapInfluence(), and SetClearedEnvironment().
|
private |
Definition at line 91 of file anchoredobject.hxx.
Referenced by ConsiderForTextWrap(), and SetConsiderForTextWrap().
|
private |
Definition at line 95 of file anchoredobject.hxx.
|
mutableprivate |
Definition at line 112 of file anchoredobject.hxx.
Referenced by GetObjRectWithSpaces(), SetObjLeft(), and SetObjTop().
|
private |
Definition at line 77 of file anchoredobject.hxx.
|
private |
Definition at line 92 of file anchoredobject.hxx.
Referenced by PositionLocked().
|
private |
Definition at line 97 of file anchoredobject.hxx.
Referenced by RestartLayoutProcess(), and SetRestartLayoutProcess().
|
private |
Definition at line 109 of file anchoredobject.hxx.
Referenced by ClearTmpConsiderWrapInfluence(), and SetTmpConsiderWrapInfluence().
|
private |
Definition at line 67 of file anchoredobject.hxx.
Referenced by AddLastTopOfLineY(), CheckTopOfLine(), ClearCharRectAndTopOfLine(), and sw_HideObj().
|
private |
Definition at line 50 of file anchoredobject.hxx.
Referenced by ChgAnchorFrame(), FindAnchorCharFrame(), FindPageFrameOfAnchor(), and OverlapsPrevColumn().
|
private |
Definition at line 48 of file anchoredobject.hxx.
Referenced by SetDrawObj().
|
private |
Definition at line 53 of file anchoredobject.hxx.
Referenced by SetPageFrame().
|
private |
Definition at line 73 of file anchoredobject.hxx.
Referenced by ClearVertPosOrientFrame(), and SetVertPosOrientFrame().