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

 tools
 
 o3tl
 

Enumerations

enum  SwFlyFrameInvFlags : sal_uInt8 {
  SwFlyFrameInvFlags::NONE = 0x00,
  SwFlyFrameInvFlags::InvalidatePos = 0x01,
  SwFlyFrameInvFlags::InvalidateSize = 0x02,
  SwFlyFrameInvFlags::InvalidatePrt = 0x04,
  SwFlyFrameInvFlags::SetNotifyBack = 0x08,
  SwFlyFrameInvFlags::SetCompletePaint = 0x10,
  SwFlyFrameInvFlags::InvalidateBrowseWidth = 0x20,
  SwFlyFrameInvFlags::ClearContourCache = 0x40,
  SwFlyFrameInvFlags::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

Enumerator
NONE 
InvalidatePos 
InvalidateSize 
InvalidatePrt 
SetNotifyBack 
SetCompletePaint 
InvalidateBrowseWidth 
ClearContourCache 
UpdateObjInSortedList 

Definition at line 56 of file flyfrm.hxx.

Function Documentation

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 1144 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(), 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(), SvxULSpaceItem::GetLower(), SwFlyFrame::GetNextLink(), SwRectFnSet::GetPrtBottom(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwRectFnSet::GetPrtTop(), SwFormatVertOrient::GetRelationOrient(), SwFormatHoriOrient::GetRelationOrient(), SdrObject::GetSnapRect(), SwRectFnSet::GetTop(), SwFrame::GetType(), SwFormat::GetULSpace(), SvxULSpaceItem::GetUpper(), SwFrame::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(), and SwRectFnSet::YInc().

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

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 1058 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, SwLayoutFrame::Lower(), and Point.

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