LibreOffice Module sw (master)  1
Classes | Namespaces | 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

class  SwFlyFrame
 general base class for all free-flowing frames More...
 

Namespaces

 tools
 

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...
 

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 1161 of file flylay.cxx.

References Body, Cell, CONSIDER_WRAP_ON_OBJECT_POSITION, 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(), SwRect::IsInside(), SwFrame::IsInTab(), SwFrame::IsPageFrame(), SwFrame::IsRootFrame(), SwFrame::IsSctFrame(), SwRectFnSet::IsVert(), SwRect::Left(), sw::sidebar::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().

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 1014 of file flycnt.cxx.

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

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