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 () |
void | ClearDrawObj () |
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... | |
virtual void | RegisterAtPage (SwPageFrame &)=0 |
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 | IsForceNotifyNewBackground () |
void | SetForceNotifyNewBackground (bool const b) |
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=nullptr) 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... | |
virtual const SwFlyFrame * | DynCastFlyFrame () const |
virtual SwFlyFrame * | DynCastFlyFrame () |
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 | |
rtl::Reference< SdrObject > | mpDrawObj |
SwFrame * | mpAnchorFrame |
Frame the object is anchored at. More... | |
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 |
bool | mbForceNotifyNewBackground = false |
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, SwFormatAnchor const &rFormatAnchor, 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 71 of file anchoredobject.cxx.
|
virtual |
Definition at line 101 of file anchoredobject.cxx.
References ClearVertPosOrientFrame().
void SwAnchoredObject::AddLastCharY | ( | tools::Long | nDiff | ) |
Definition at line 171 of file anchoredobject.cxx.
References maLastCharRect, and SwRect::Pos().
Referenced by lcl_ArrangeLowers().
void SwAnchoredObject::AddLastTopOfLineY | ( | SwTwips | _nDiff | ) |
Definition at line 196 of file anchoredobject.cxx.
References mnLastTopOfLine.
Referenced by lcl_ArrangeLowers().
|
inline |
Definition at line 208 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(), SwFlyNotify::ImplDestroy(), 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(), and UpdateObjInSortedList().
|
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 248 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 211 of file anchoredobject.cxx.
References CheckCharRect(), CheckTopOfLine(), FindAnchorCharFrame(), SwFormat::GetAnchor(), GetAnchorFrame(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), GetFrameFormat(), and SwTextFrame::HasPara().
Referenced by SwDrawView::AddCustomHdl(), and 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 308 of file anchoredobject.cxx.
References SwFrame::FindPageFrame(), SwFormatAnchor::GetContentAnchor(), GetFrameFormat(), GetPageFrame(), SwTextFrame::GetTopOfLine(), InvalidateObjPos(), mnLastTopOfLine, and UnlockPosition().
Referenced by CheckCharRectAndTopOfLine().
void SwAnchoredObject::ChgAnchorFrame | ( | SwFrame * | _pNewAnchorFrame | ) |
Definition at line 112 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 334 of file anchoredobject.cxx.
References SwRect::Clear(), maLastCharRect, and mnLastTopOfLine.
Referenced by lcl_InvalidateLowerObjs(), SwFEShell::MoveAnchor(), and SwFlyAtContentFrame::SwClientNotify().
|
inline |
Definition at line 204 of file anchoredobject.hxx.
Referenced by SwFlyFrame::FinitDrawObj(), and SwDrawContact::~SwDrawContact().
bool SwAnchoredObject::ClearedEnvironment | ( | ) | const |
Definition at line 500 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbClearedEnvironment.
Referenced by SwFlyAtContentFrame::MakeObjPos().
void SwAnchoredObject::ClearTmpConsiderWrapInfluence | ( | ) |
Definition at line 785 of file anchoredobject.cxx.
References GetFrameFormat(), mbClearedEnvironment, mbTmpConsiderWrapInfluence, SwLayouter::RemoveObjForTmpConsiderWrapInfluence(), and SetClearedEnvironment().
Referenced by SwFlyFrame::DestroyImpl(), and SwLayoutFrame::DestroyImpl().
void SwAnchoredObject::ClearVertPosOrientFrame | ( | ) |
Definition at line 92 of file anchoredobject.cxx.
References mpVertPosOrientFrame.
Referenced by SwLayoutFrame::DestroyImpl(), SwFlyFrame::Invalidate_(), SetPageFrame(), SetVertPosOrientFrame(), and ~SwAnchoredObject().
bool SwAnchoredObject::ConsiderForTextWrap | ( | ) | const |
Definition at line 465 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbConsiderForTextWrap.
Referenced by SwFlyNotify::ImplDestroy(), and SwTextFly::InitAnchoredObjList().
|
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 444 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 407 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(), SwFlyNotify::ImplDestroy(), InvalidateObjPosForConsiderWrapInfluence(), lcl_ArrangeLowers(), SwFlyAtContentFrame::MakeAll(), SwAnchoredDrawObject::MakeObjPosAnchoredAtPara(), PositionLocked(), RestartLayoutProcess(), and UpdateObjInSortedList().
|
inline |
Definition at line 203 of file anchoredobject.hxx.
Referenced by SwFrame::AppendDrawObj(), SwPageFrame::AppendDrawObjToPage(), SwDrawContact::Changed_(), SwFrame::CheckDirChange(), SwDrawContact::ConnectToLayout(), SwFlyFrame::DeleteCnt(), SwFrame::DestroyImpl(), SwLayoutFrame::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 255 of file xmldump.cxx.
References SwRect::dumpAsXmlAttributes(), FindAnchorCharFrame(), GetDrawObj(), getElementName(), SwFrameAreaDefinition::GetFrameId(), mpAnchorFrame, mpPageFrame, and pObject.
Referenced by SwFlyFrame::dumpAsXml().
|
virtual |
Reimplemented in SwFlyFrame.
Definition at line 939 of file anchoredobject.cxx.
|
virtual |
Reimplemented in SwFlyFrame.
Definition at line 934 of file anchoredobject.cxx.
Referenced by SwContourCache::CalcBoundRect(), SwFlyFrame::CalcContentHeight(), SwTabFrame::CalcFlyOffsets(), SwRootFrame::CalcFrameRects(), SwLineLayout::CalcLine(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), SwFrame::CheckDirChange(), SwFlyFrame::DeleteCnt(), DelFlys(), SwFrame::DestroyImpl(), SwLayoutFrame::DestroyImpl(), SwLayIdle::DoIdleJob(), SwTextFly::DrawFlyRect(), SwTextFly::DrawTextOpaque(), SwPageFrame::FillSelection(), FindAnchorCharFrame(), SwObjectFormatter::FormatObj_(), SwObjectFormatter::FormatObjContent(), SwFEShell::GetBox(), SwTextFly::GetTop(), SwRootFrame::ImplCalcBrowseWidth(), lcl_ArrangeLowers(), lcl_InvalidateLowerObjs(), lcl_IsFlyHeightClipped(), lcl_MoveAllLowerObjs(), lcl_NotifyNeighbours(), lcl_SubtractFlys(), SwContentFrame::MakePrtArea(), SwTextFrame::MoveFlyInCnt(), SwDrawView::MoveRepeatedObjs(), SwDrawView::ObjOrderChanged(), SwTextFrame::SwClientNotify(), and SwFrame::ValidateThisAndAllLowers().
SwTextFrame * SwAnchoredObject::FindAnchorCharFrame | ( | ) |
get frame, which contains the anchor character, if the object is anchored at-character or as-character.
#i26945#
Definition at line 705 of file anchoredobject.cxx.
References AnchorFrame(), DynCastFlyFrame(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwTextFrame::GetFollow(), SwTextFrame::GetFrameAtOfst(), GetFrameFormat(), SwFlyAtContentFrame::GetPrecede(), SwTextFrame::MapModelToViewPos(), mpAnchorFrame, and SAL_WARN.
Referenced by CheckCharRectAndTopOfLine(), SwPageNumAndTypeOfAnchors::Collect(), SwFlyAtContentFrame::DelEmpty(), dumpAsXml(), SwFlyFrame::Format(), SwObjectFormatter::FormatObjsAtFrame_(), GetAnchorFrameContainingAnchPos(), SwFrame::GetNextFlyLeaf(), SwFlyFrame::Grow_(), and SwTabFrame::MakeAll().
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 682 of file anchoredobject.cxx.
References SwFrame::FindPageFrame(), GetAnchorFrameContainingAnchPos(), and mpAnchorFrame.
Referenced by SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage(), SwObjectFormatterTextFrame::CheckMovedFwdCondition(), SwDrawContact::ChkPage(), SwPageNumAndTypeOfAnchors::Collect(), SwObjectFormatter::FormatObjsAtFrame_(), sw::access::SwAccessibleChild::GetBox(), SwEditShell::HandleUndoRedoContext(), SwFEShell::Insert(), SwAnchoredDrawObject::InvalidateObjPos(), sw::IsFlyFrameFormatInHeader(), lcl_NotifyBackgroundOfObj(), and SwDrawContact::NotifyBackgroundOfAllVirtObjs().
|
inline |
Definition at line 207 of file anchoredobject.hxx.
References mpAnchorFrame.
Referenced by SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage(), SwFrame::AppendDrawObj(), SwPageFrame::AppendDrawObjToPage(), SwPageFrame::AppendFlyToPage(), SwTaggedPDFHelper::BeginBlockStructureElements(), SwFEShell::CalcBoundRect(), CalcClipRect(), SwRootFrame::CalcFrameRects(), SwFlyFrame::CalcRel(), CheckCharRectAndTopOfLine(), SwFlyFreeFrame::CheckClip(), SwDrawView::CheckPossibilities(), SwFlyFrame::ChgRelPos(), SwDrawContact::ChkPage(), ConsiderObjWrapInfluenceOfOtherObjs(), SwFlyFrame::DestroyImpl(), SwFlyFreeFrame::DestroyImpl(), SwFlyInContentFrame::DestroyImpl(), SwDrawContact::DisconnectFromLayout(), SwObjectFormatterTextFrame::DoFormatObj(), objectpositioning::SwAnchoredObjectPosition::DrawAsideFly(), SwTextFly::DrawTextOpaque(), SwFEShell::FindAnchorPos(), SwFlyFrame::FindChainNeighbour(), FindFrameInBody(), SwTextFly::ForEach(), SwFlyFrame::Format(), SwObjectFormatter::FormatObj(), SwObjectFormatter::FormatObjsAtFrame_(), SwDrawVirtObj::GetAnchorFrame(), SwDrawContact::GetAnchorFrame(), SwFEShell::GetAnchorObjDiff(), SwHTMLTableLayout::GetBrowseWidthByTabFrame(), SwAccessibleDocument::getExtendedAttributes(), SwTextFlyCnt::GetFlyFrame_(), GetFrameOfModify(), SwFEShell::GetGraphicDefaultSize(), SwTextFly::GetMaxBottom(), SwFrame::GetNextFlyLeaf(), SwFrameMenuButtonBase::GetPageFrame(), sw::access::SwAccessibleChild::GetParent(), GetRelPosToAnchorFrame(), GetRelPosToPageFrame(), SwTextFly::GetSurroundForTextWrap(), SwTextFly::GetTop(), SwFlyFrame::Grow_(), HasClearedEnvironment(), SwFlyFreeFrame::HasEnvironmentAutoSize(), SwFEShell::ImpEndCreate(), SwLayNotify::ImplDestroy(), SwFlyNotify::ImplDestroy(), SwTextFly::InitAnchoredObjList(), SwFlyFrame::Invalidate_(), SwAnchoredDrawObject::InvalidateObjPos(), SwFrame::InvalidatePage(), Is_Lower_Of(), sw::IsFlyFrameFormatInHeader(), SwFlyFrame::IsFlySplitAllowed(), SwFlyFreeFrame::IsFormatPossible(), SwFEShell::IsFrameVertical(), SwFEShell::IsGroupAllowed(), SwFlyFrame::IsLowerOf(), SwAccessibleFrame::IsOpaque(), 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(), SwFlyFrame::MakeObjPos(), SwFlyInContentFrame::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_(), SwFlyAtContentFrame::SwClientNotify(), SwFlyInContentFrame::SwClientNotify(), SwContact::SwClientNotify(), SwDrawContact::SwClientNotify(), UpdateLayoutDir(), and UpdateObjInSortedList().
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 130 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 317 of file anchoredobject.hxx.
Referenced by objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwFlyFrame::ChgRelPos(), SwFlyInContentFrame::GetRelPos(), SwFlyInContentFrame::MakeObjPos(), SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout(), and SwFlyInContentFrame::SetRefPoint().
|
inline |
Definition at line 202 of file anchoredobject.hxx.
Referenced by SwDrawVirtObj::AddToDrawingPage(), SwAnchoredDrawObject::AdjustPositioningAttr(), SwFrame::AppendDrawObj(), SwPageFrame::AppendDrawObjToPage(), SwContourCache::CalcBoundRect(), SwFlyFreeFrame::CheckClip(), SwDrawContact::ConnectToLayout(), 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(), and SwDrawContact::SwClientNotify().
|
inlinevirtual |
The element name to show in the XML dump.
Reimplemented in SwAnchoredDrawObject.
Definition at line 496 of file anchoredobject.hxx.
Referenced by dumpAsXml().
|
pure virtual |
Implemented in SwAnchoredDrawObject, and SwFlyFrame.
|
pure virtual |
Implemented in SwAnchoredDrawObject, and SwFlyFrame.
Referenced by SwDrawVirtObj::AddToDrawingPage(), SwPageFrame::AppendDrawObjToPage(), SwContourCache::CalcBoundRect(), SwRootFrame::CalcFrameRects(), SwLineLayout::CalcLine(), SwTextFly::CalcMinBottom(), CheckCharRect(), CheckCharRectAndTopOfLine(), SwObjectFormatterTextFrame::CheckMovedFwdCondition(), CheckTopOfLine(), ClearTmpConsiderWrapInfluence(), SwDrawContact::ConnectToLayout(), 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().
|
inline |
Definition at line 272 of file anchoredobject.hxx.
Referenced by SwDrawView::AddCustomHdl(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), and GetRelPosToChar().
|
inline |
Definition at line 279 of file anchoredobject.hxx.
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), and GetRelPosToLine().
|
protectedpure virtual |
Implemented in SwAnchoredDrawObject, and SwFlyFrame.
Referenced by GetObjRectWithSpaces().
|
pure virtual |
Implemented in SwAnchoredDrawObject, and SwFlyFrame.
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToContentAnchoredObjectPosition::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 559 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(), ClrContourCache(), SwFlyFreeFrame::DestroyImpl(), SwFlyInContentFrame::DestroyImpl(), SwDrawContact::DisconnectFromLayout(), SwTextFly::ForEach(), SwFlyFrame::FrameSizeChg(), GetBoundRectOfAnchoredObj(), SwTextFly::GetMaxBottom(), SwTextFly::GetSurroundForTextWrap(), SwTextFly::GetTop(), SwFlyFrame::Grow_(), SwFlyNotify::ImplDestroy(), SwTextFly::InitAnchoredObjList(), InvalidateObjPosForConsiderWrapInfluence(), SwTextFly::IsAnyObj(), lcl_NotifyBackgroundOfObj(), SwDrawContact::NotifyBackgroundOfAllVirtObjs(), SwFlyAtContentFrame::SetAbsPos(), SwFlyFrame::Shrink_(), SwFlyLayFrame::SwClientNotify(), SwFlyAtContentFrame::SwClientNotify(), SwDrawContact::SwClientNotify(), SwInsertChart::SwInsertChart(), and SwFlyFrame::UpdateAttr_().
|
inline |
Definition at line 219 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(), SwFlyNotify::ImplDestroy(), SwAnchoredDrawObject::InvalidateObjPos(), InvalidateObjPosForConsiderWrapInfluence(), SwFlyFreeFrame::IsFormatPossible(), SwAnchoredDrawObject::IsOutsidePage(), lcl_ArrangeLowers(), SwFlyFreeFrame::MakeAll(), SwFlyAtContentFrame::MakeAll(), SwAnchoredDrawObject::MakeObjPos(), SwContact::MoveObjToInvisibleLayer(), SwContact::MoveObjToVisibleLayer(), SwAnchoredDrawObject::RegisterAtCorrectPage(), SwFlyAtContentFrame::RegisterAtCorrectPage(), SwAnchoredDrawObject::RegisterAtPage(), SwFlyLayFrame::RegisterAtPage(), SwFlyAtContentFrame::RegisterAtPage(), SwFrame::RemoveDrawObj(), SwFlyAtContentFrame::SetAbsPos(), SwFlyLayFrame::SwClientNotify(), UpdateObjInSortedList(), and SwVirtFlyDrawObj::wrap_DoPaintObject().
|
inline |
Definition at line 220 of file anchoredobject.hxx.
Definition at line 161 of file anchoredobject.cxx.
References SwFrameAreaDefinition::getFrameArea(), SwRect::Left(), and maLastCharRect.
Referenced by SwFlyFrame::ChgRelPos().
Definition at line 166 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 846 of file anchoredobject.cxx.
References GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), GetObjRect(), 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 912 of file anchoredobject.cxx.
References GetLastCharRect(), GetObjRect(), 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 926 of file anchoredobject.cxx.
References Point::AdjustY(), GetLastTopOfLine(), GetObjRect(), 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 868 of file anchoredobject.cxx.
References SwFrame::FindPageFrame(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), GetObjRect(), SwFrame::GetUpper(), SwFrame::IsCellFrame(), SwFrame::IsPageFrame(), and SwRect::Pos().
Referenced by SwDrawContact::Changed_().
|
inline |
Definition at line 251 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 517 of file anchoredobject.cxx.
References GetAnchorFrame(), SwTextFrame::GetFollow(), SwFrame::GetNext(), SwTextFrame::GetOffset(), GetPageFrame(), GetVertPosOrientFrame(), SwFrame::IsLayoutFrame(), SwFrame::IsTabFrame(), SwFrame::IsTextFrame(), 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 SwAnchoredDrawObject, and SwFlyFrame.
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 385 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 341 of file anchoredobject.hxx.
Referenced by SwDrawContact::Changed_(), SwFlyAtContentFrame::DelEmpty(), SwFlyFrame::Format(), SwLayoutFrame::FormatWidthCols(), SwFlyFrame::FrameSizeChg(), GetObjRectWithSpaces(), SwFlyFrame::Grow_(), 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 665 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 764 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().
|
inline |
Definition at line 428 of file anchoredobject.hxx.
Referenced by SwFlyNotify::ImplDestroy(), and SwFlyFreeFrame::MakeAll().
|
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, SwFlyFreeFrame, and SwFlyAtContentFrame.
Definition at line 759 of file anchoredobject.cxx.
References SwFormat::GetDoc(), GetDrawObj(), GetFrameFormat(), SwDoc::getIDocumentDrawModelAccess(), and IDocumentDrawModelAccess::IsVisibleLayerId().
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), and SwFlyFrame::IsFormatPossible().
|
inline |
is positioning of anchored object in progress
Definition at line 291 of file anchoredobject.hxx.
Referenced by SwDrawContact::Changed_(), SwAnchoredDrawObject::MakeObjPos(), and SwObjPositioningInProgress::SwObjPositioningInProgress().
|
inline |
Definition at line 425 of file anchoredobject.hxx.
Referenced by ConsiderObjWrapInfluenceOnObjPos().
|
inline |
Definition at line 358 of file anchoredobject.hxx.
Referenced by SwFlyNotify::ImplDestroy().
|
pure virtual |
method to determine position for the object and set the position at the object
Implemented in SwAnchoredDrawObject, SwFlyFrame, SwFlyAtContentFrame, and SwFlyInContentFrame.
Referenced by SwObjectFormatter::FormatObj_(), and SwDrawContact::SwClientNotify().
|
pure virtual |
method to trigger notification of 'background'
Implemented in SwAnchoredDrawObject, SwFlyFreeFrame, and SwFlyInContentFrame.
Referenced by SwNoTextFrame::ClearCache(), SwFlyNotify::ImplDestroy(), InvalidateObjPosForConsiderWrapInfluence(), and SwFlyFrame::UpdateAttr_().
|
protectedvirtual |
method to indicate, that anchored object is attached to an anchor frame
Reimplemented in SwAnchoredDrawObject.
Definition at line 345 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 817 of file anchoredobject.cxx.
References SwFrame::FindColFrame(), SwFrameAreaDefinition::getFrameArea(), GetObjRect(), SwFrame::GetPrev(), SwFrame::IsTextFrame(), mpAnchorFrame, SwRect::Overlaps(), and SwRect::Union().
Referenced by SwFlyAtContentFrame::MakeAll(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtPara().
bool SwAnchoredObject::PositionLocked | ( | ) | const |
Definition at line 478 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbPositionLocked.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), InvalidationOfPosAllowed(), and SwFlyFreeFrame::MakeAll().
|
protectedpure virtual |
method to assure that anchored object is registered at the correct page frame
Implemented in SwAnchoredDrawObject, SwFlyFrame, and SwFlyAtContentFrame.
Referenced by SetVertPosOrientFrame().
|
pure virtual |
Implemented in SwAnchoredDrawObject, SwFlyFrame, SwFlyLayFrame, and SwFlyAtContentFrame.
Referenced by lcl_ArrangeLowers().
void SwAnchoredObject::ResetLastCharRectHeight | ( | ) |
Definition at line 176 of file anchoredobject.cxx.
References SwRect::Height(), and maLastCharRect.
Referenced by SwFlyAtContentFrame::SetAbsPos().
|
inline |
Definition at line 382 of file anchoredobject.hxx.
Referenced by SwDrawContact::SwClientNotify(), and SwFlyFrame::SwClientNotify().
bool SwAnchoredObject::RestartLayoutProcess | ( | ) | const |
Definition at line 486 of file anchoredobject.cxx.
References ConsiderObjWrapInfluenceOnObjPos(), and mbRestartLayoutProcess.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), and SwObjectFormatter::FormatObj_().
void SwAnchoredObject::SetClearedEnvironment | ( | const bool | _bClearedEnvironment | ) |
Definition at line 507 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 473 of file anchoredobject.cxx.
References mbConsiderForTextWrap.
Referenced by SwFlyNotify::ImplDestroy(), InvalidateObjPosForConsiderWrapInfluence(), and lcl_InvalidateLowerObjs().
void SwAnchoredObject::SetCurrRelPos | ( | Point | _aRelPos | ) |
Definition at line 340 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().
void SwAnchoredObject::SetDrawObj | ( | SdrObject & | _rDrawObj | ) |
Definition at line 106 of file anchoredobject.cxx.
References mpDrawObj.
Referenced by SwDrawContact::ChangeMasterObject(), SwFlyFrame::InitDrawObj(), SwDrawContact::SwDrawContact(), and SwDrawVirtObj::SwDrawVirtObj().
|
inline |
Definition at line 429 of file anchoredobject.hxx.
Referenced by SwFlyNotify::ImplDestroy().
|
inline |
Definition at line 370 of file anchoredobject.hxx.
void SwAnchoredObject::SetObjLeft | ( | const SwTwips | _nLeft | ) |
Definition at line 597 of file anchoredobject.cxx.
References mbObjRectWithSpacesValid, and SetObjLeft_().
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), lcl_InvalidateLowerObjs(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout().
|
protectedpure virtual |
Implemented in SwAnchoredDrawObject, and SwFlyFrame.
Referenced by SetObjLeft().
void SwAnchoredObject::SetObjTop | ( | const SwTwips | _nTop | ) |
Definition at line 588 of file anchoredobject.cxx.
References mbObjRectWithSpacesValid, and SetObjTop_().
Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtLayout().
|
protectedpure virtual |
Implemented in SwAnchoredDrawObject, and SwFlyFrame.
Referenced by SetObjTop().
void SwAnchoredObject::SetPageFrame | ( | SwPageFrame * | _pNewPageFrame | ) |
Definition at line 142 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 123 of file anchoredobject.hxx.
Referenced by SwObjPositioningInProgress::SwObjPositioningInProgress(), and SwObjPositioningInProgress::~SwObjPositioningInProgress().
void SwAnchoredObject::SetRestartLayoutProcess | ( | const bool | _bRestartLayoutProcess | ) |
Definition at line 494 of file anchoredobject.cxx.
References mbRestartLayoutProcess.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), SwFlyNotify::ImplDestroy(), SwFlyAtContentFrame::MakeAll(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtPara().
void SwAnchoredObject::SetTmpConsiderWrapInfluence | ( | const bool | _bTmpConsiderWrapInfluence | ) |
Definition at line 774 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 793 of file anchoredobject.cxx.
References GetAnchorFrame(), SwFrame::GetDrawObjs(), and SwSortedObjs::size().
Referenced by SwFlyAtContentFrame::MakeAll().
|
protected |
Definition at line 181 of file anchoredobject.cxx.
References ClearVertPosOrientFrame(), mpVertPosOrientFrame, and RegisterAtCorrectPage().
Referenced by SwFlyAtContentFrame::MakeObjPos(), and SwAnchoredDrawObject::MakeObjPosAnchoredAtPara().
|
inline |
Definition at line 362 of file anchoredobject.hxx.
Referenced by SwPageFrame::AppendFlyToPage(), CheckCharRect(), CheckTopOfLine(), SwFlyFrame::Grow_(), InvalidateObjPosForConsiderWrapInfluence(), lcl_InvalidateLowerObjs(), SwPageFrame::MoveFly(), and SwLayoutFrame::NotifyLowerObjs().
|
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 359 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 615 of file anchoredobject.cxx.
References AnchorFrame(), SwSortedObjs::begin(), CONSIDER_WRAP_ON_OBJECT_POSITION, ConsiderObjWrapInfluenceOnObjPos(), SwSortedObjs::end(), sw::proofreadingiterator::get(), GetAnchorFrame(), SwFrame::GetDrawObjs(), GetFrameFormat(), GetPageFrame(), SwPageFrame::GetSortedObjs(), i, InvalidateObjPos(), InvalidateObjPosForConsiderWrapInfluence(), SwSortedObjs::ListPosOf(), 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 1594 of file txtfrm.cxx.
|
friend |
method to indicate, that positioning of anchored object is in progress
note: method is implemented empty
Definition at line 122 of file anchoredobject.hxx.
|
private |
Definition at line 62 of file anchoredobject.hxx.
Referenced by AddLastCharY(), CheckCharRect(), ClearCharRectAndTopOfLine(), GetRelCharX(), GetRelCharY(), and ResetLastCharRectHeight().
|
mutableprivate |
Definition at line 116 of file anchoredobject.hxx.
Referenced by GetObjRectWithSpaces().
|
mutableprivate |
Definition at line 114 of file anchoredobject.hxx.
Referenced by GetObjRectWithSpaces().
|
private |
Definition at line 56 of file anchoredobject.hxx.
Referenced by SetCurrRelPos().
|
private |
Definition at line 99 of file anchoredobject.hxx.
Referenced by ClearedEnvironment(), ClearTmpConsiderWrapInfluence(), and SetClearedEnvironment().
|
private |
Definition at line 92 of file anchoredobject.hxx.
Referenced by ConsiderForTextWrap(), and SetConsiderForTextWrap().
|
private |
Definition at line 112 of file anchoredobject.hxx.
|
private |
Definition at line 96 of file anchoredobject.hxx.
|
mutableprivate |
Definition at line 115 of file anchoredobject.hxx.
Referenced by GetObjRectWithSpaces(), SetObjLeft(), and SetObjTop().
|
private |
Definition at line 78 of file anchoredobject.hxx.
|
private |
Definition at line 93 of file anchoredobject.hxx.
Referenced by PositionLocked().
|
private |
Definition at line 98 of file anchoredobject.hxx.
Referenced by RestartLayoutProcess(), and SetRestartLayoutProcess().
|
private |
Definition at line 110 of file anchoredobject.hxx.
Referenced by ClearTmpConsiderWrapInfluence(), and SetTmpConsiderWrapInfluence().
|
private |
Definition at line 68 of file anchoredobject.hxx.
Referenced by AddLastTopOfLineY(), CheckTopOfLine(), and ClearCharRectAndTopOfLine().
|
private |
Frame the object is anchored at.
For at-char/at-para anchor, this is always the master SwTextFrame.
Definition at line 51 of file anchoredobject.hxx.
Referenced by ChgAnchorFrame(), dumpAsXml(), FindAnchorCharFrame(), FindPageFrameOfAnchor(), and OverlapsPrevColumn().
|
private |
Definition at line 48 of file anchoredobject.hxx.
Referenced by SetDrawObj().
|
private |
Definition at line 54 of file anchoredobject.hxx.
Referenced by dumpAsXml(), and SetPageFrame().
|
private |
Definition at line 74 of file anchoredobject.hxx.
Referenced by ClearVertPosOrientFrame(), and SetVertPosOrientFrame().