LibreOffice Module sw (master) 1
Classes | Namespaces | Enumerations | Functions
flyfrm.hxx File Reference
#include "layfrm.hxx"
#include <vector>
#include <frmfmt.hxx>
#include <anchoredobject.hxx>
#include <swdllapi.h>
Include dependency graph for flyfrm.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< SwFlyFrameInvFlags >
 
class  SwFlyFrame
 general base class for all free-flowing frames More...
 

Namespaces

namespace  tools
 
namespace  o3tl
 

Enumerations

enum class  SwFlyFrameInvFlags : sal_uInt8 {
  NONE = 0x00 ,
  InvalidatePos = 0x01 ,
  InvalidateSize = 0x02 ,
  InvalidatePrt = 0x04 ,
  SetNotifyBack = 0x08 ,
  SetCompletePaint = 0x10 ,
  InvalidateBrowseWidth = 0x20 ,
  ClearContourCache = 0x40 ,
  UpdateObjInSortedList = 0x80
}
 

Functions

const SwContentFrameFindAnchor (const SwFrame *pOldAnch, const Point &rNew, const bool bBody=false)
 search an anchor for paragraph bound frames starting from pOldAnch More...
 
bool CalcClipRect (const SdrObject *pSdrObj, SwRect &rRect, bool bMove=true)
 calculate rectangle in that the object can be moved or rather be resized More...
 

Enumeration Type Documentation

◆ SwFlyFrameInvFlags

enum class SwFlyFrameInvFlags : sal_uInt8
strong
Enumerator
NONE 
InvalidatePos 
InvalidateSize 
InvalidatePrt 
SetNotifyBack 
SetCompletePaint 
InvalidateBrowseWidth 
ClearContourCache 
UpdateObjInSortedList 

Definition at line 56 of file flyfrm.hxx.

Function Documentation

◆ CalcClipRect()

bool CalcClipRect ( const SdrObject pSdrObj,
SwRect rRect,
bool  bMove = true 
)

calculate rectangle in that the object can be moved or rather be resized

Definition at line 1175 of file flylay.cxx.

References Body, Cell, CONSIDER_WRAP_ON_OBJECT_POSITION, SwRect::Contains(), SwFootnoteBossFrame::FindBodyCont(), SwFrame::FindFooterOrHeader(), SwFrame::FindFootnoteFrame(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), Fly, Footer, Ftn, IDocumentSettingAccess::get(), SwFormat::GetAnchor(), SwAnchoredObject::GetAnchorFrame(), SwDrawContact::GetAnchorFrame(), SwFormatAnchor::GetAnchorId(), SdrObject::GetAnchorPos(), SwRectFnSet::GetBottom(), SdrObject::GetCurrentBoundRect(), SwFootnoteFrame::GetFollow(), SwFormat::GetFollowTextFlow(), SwContact::GetFormat(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), tools::Rectangle::GetHeight(), SwRectFnSet::GetHeight(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SwFormat::getIDocumentSettingAccess(), SwRectFnSet::GetLeft(), SvxULSpaceItem::GetLower(), SwFlyFrame::GetNextLink(), SwRectFnSet::GetPrtBottom(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwRectFnSet::GetPrtTop(), SwFormatVertOrient::GetRelationOrient(), SwFormatHoriOrient::GetRelationOrient(), SwRectFnSet::GetRight(), SdrObject::GetSnapRect(), SwRectFnSet::GetTop(), SwFrame::GetType(), SwFormat::GetULSpace(), SwFrame::GetUpper(), SvxULSpaceItem::GetUpper(), GetUserCall(), SfxBoolItem::GetValue(), objectpositioning::SwEnvironmentOfAnchoredObject::GetVertEnvironmentLayoutFrame(), SwFormatVertOrient::GetVertOrient(), SwFormat::GetVertOrient(), SwAnchoredObject::GetVertPosOrientFrame(), tools::Rectangle::GetWidth(), SwRectFnSet::GetWidth(), Header, SwFrame::IsBodyFrame(), SwFrame::IsCellFrame(), SwFrame::IsColBodyFrame(), SwFrame::IsColumnFrame(), SwFlyFrame::IsFlyAtContentFrame(), SwFrame::IsFlyFrame(), SwFlyFrame::IsFlyLayFrame(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwFrame::IsPageFrame(), SwFrame::IsRootFrame(), SwFrame::IsSctFrame(), SwRectFnSet::IsVert(), SwRect::Left(), SwPostItHelper::NONE, nType, SwRect::Pos(), Root, SwRectFnSet::SetBottom(), SwRectFnSet::SetLeft(), SwRectFnSet::SetLeftAndWidth(), SwRectFnSet::SetRight(), SwRectFnSet::SetTop(), SwRectFnSet::SetTopAndHeight(), SwRect::SSize(), SwRect::Union(), SwRect::Width(), Point::X(), Point::Y(), and SwRectFnSet::YInc().

Referenced by SwFlyFreeFrame::CheckClip(), SwFlyFrame::ChgSize(), SwViewShellImp::IsDragPossible(), and SwDrawView::TakeDragLimit().

◆ FindAnchor()

const SwContentFrame * FindAnchor ( const SwFrame pOldAnch,
const Point rNew,
const bool  bBodyOnly 
)

search an anchor for paragraph bound frames starting from pOldAnch

needed for dragging of objects bound to a paragraph for showing an anchor indicator as well as for changing the anchor.

implemented in layout/flycnt.cxx

search an anchor for paragraph bound frames starting from pOldAnch

This is used to show anchors as well as changing anchors when dragging paragraph bound objects.

Definition at line 1084 of file flycnt.cxx.

References bFootnote, SwRect::Contains(), FindPage(), SwFrame::FindPageFrame(), SwLayoutFrame::GetContentPos(), SwFrameAreaDefinition::getFrameArea(), SwContentFrame::GetNextContentFrame(), SwContentFrame::GetPrevContentFrame(), SwFrame::GetUpper(), SwFrame::IsContentFrame(), SwFrame::IsInDocBody(), SwFrame::IsInFly(), SwFrame::IsInFootnote(), SwFrame::IsInTab(), SwFrame::IsPageFrame(), SwFrame::IsRootFrame(), lcl_CalcDownDist(), lcl_FindCnt(), lcl_PointToPrt(), LONG_MAX, and SwLayoutFrame::Lower().

Referenced by SwDrawView::CalcAnchor(), SwFEShell::CheckUnboundObjects(), SwDoc::ChgAnchor(), SwFEShell::FindAnchorPos(), SwFEShell::ImpEndCreate(), SwFEShell::IsFlyInFly(), lcl_FindAnchorPos(), SwFEShell::NewFlyFrame(), and SwFlyAtContentFrame::SetAbsPos().