LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwFlyFrameAttrMgr Class Reference

#include <frmmgr.hxx>

Collaboration diagram for SwFlyFrameAttrMgr:
[legend]

Public Member Functions

 SwFlyFrameAttrMgr (bool bNew, SwWrtShell *pSh, Frmmgr_Type nType, const SvGlobalName *pName)
 
 SwFlyFrameAttrMgr (bool bNew, SwWrtShell *pSh, SfxItemSet aSet)
 
void SetAnchor (RndStdIds eId)
 
RndStdIds GetAnchor () const
 
void SetHorzOrientation (sal_Int16 eOrient)
 
void SetVertOrientation (sal_Int16 eOrient)
 
void SetAbsPos (const Point &rLPoint)
 
void SetPos (const Point &rLPoint)
 
Point GetPos () const
 
void SetSize (const Size &rLSize)
 
const SizeGetSize () const
 
void SetHeightSizeType (SwFrameSize eType)
 
void SetRotation (Degree10 nOld, Degree10 nNew, const Size &rUnrotatedSize)
 
void SetLRSpace (tools::Long nLeft, tools::Long nRight)
 
void SetULSpace (tools::Long nTop, tools::Long nBottom)
 
void SetCol (const SwFormatCol &rCol)
 
void UpdateAttrMgr ()
 
void UpdateFlyFrame ()
 
void InsertFlyFrame ()
 
void InsertFlyFrame (RndStdIds eAnchorType, const Point &rPos, const Size &rSize)
 
void ValidateMetrics (SvxSwFrameValidation &rVal, const SwFormatAnchor *pToCharContentPos, bool bOnlyPercentRefValue=false)
 
void DelAttr (sal_uInt16 nId)
 
const SfxItemSetGetAttrSet () const
 
SfxItemSetGetAttrSet ()
 
void SetAttrSet (const SfxItemSet &rSet)
 
const SwFormatVertOrientGetVertOrient () const
 
const SwFormatHoriOrientGetHoriOrient () const
 
const SvxShadowItemGetShadow () const
 
const SvxBoxItemGetBox () const
 
const SwFormatFrameSizeGetFrameSize () const
 
tools::Long CalcWidthBorder ()
 
tools::Long CalcHeightBorder ()
 

Private Member Functions

SAL_DLLPRIVATE SwTwips CalcTopSpace ()
 
SAL_DLLPRIVATE SwTwips CalcBottomSpace ()
 
SAL_DLLPRIVATE SwTwips CalcLeftSpace ()
 
SAL_DLLPRIVATE SwTwips CalcRightSpace ()
 
SAL_DLLPRIVATE void UpdateFlyFrame_ ()
 

Private Attributes

SfxItemSet m_aSet
 
Point m_aAbsPos
 
SwWrtShellm_pOwnSh
 
bool m_bAbsPos
 
bool m_bNewFrame
 
bool m_bIsInVertical
 
bool m_bIsInVerticalL2R
 

Detailed Description

Definition at line 50 of file frmmgr.hxx.

Constructor & Destructor Documentation

◆ SwFlyFrameAttrMgr() [1/2]

SwFlyFrameAttrMgr::SwFlyFrameAttrMgr ( bool  bNew,
SwWrtShell pSh,
Frmmgr_Type  nType,
const SvGlobalName pName 
)

◆ SwFlyFrameAttrMgr() [2/2]

SwFlyFrameAttrMgr::SwFlyFrameAttrMgr ( bool  bNew,
SwWrtShell pSh,
SfxItemSet  aSet 
)

Definition at line 121 of file frmmgr.cxx.

References SwFEShell::IsFrameVertical(), m_aSet, m_bIsInVertical, and m_bIsInVerticalL2R.

Member Function Documentation

◆ CalcBottomSpace()

SwTwips SwFlyFrameAttrMgr::CalcBottomSpace ( )
private

◆ CalcHeightBorder()

tools::Long SwFlyFrameAttrMgr::CalcHeightBorder ( )
inline

Definition at line 135 of file frmmgr.hxx.

Referenced by SwWrtShell::InsertGraphic().

◆ CalcLeftSpace()

SwTwips SwFlyFrameAttrMgr::CalcLeftSpace ( )
private

◆ CalcRightSpace()

SwTwips SwFlyFrameAttrMgr::CalcRightSpace ( )
private

◆ CalcTopSpace()

SwTwips SwFlyFrameAttrMgr::CalcTopSpace ( )
private

◆ CalcWidthBorder()

tools::Long SwFlyFrameAttrMgr::CalcWidthBorder ( )
inline

Definition at line 134 of file frmmgr.hxx.

Referenced by SwWrtShell::InsertGraphic().

◆ DelAttr()

void SwFlyFrameAttrMgr::DelAttr ( sal_uInt16  nId)

Definition at line 533 of file frmmgr.cxx.

References SfxItemSet::ClearItem(), m_aSet, and nId.

Referenced by SwWrtShell::InsertGraphic().

◆ GetAnchor()

RndStdIds SwFlyFrameAttrMgr::GetAnchor ( ) const
inline

◆ GetAttrSet() [1/2]

SfxItemSet & SwFlyFrameAttrMgr::GetAttrSet ( )
inline

Definition at line 125 of file frmmgr.hxx.

References m_aSet.

◆ GetAttrSet() [2/2]

const SfxItemSet & SwFlyFrameAttrMgr::GetAttrSet ( ) const
inline

◆ GetBox()

const SvxBoxItem & SwFlyFrameAttrMgr::GetBox ( ) const
inline

Definition at line 159 of file frmmgr.hxx.

References SfxItemSet::Get(), m_aSet, and RES_BOX().

Referenced by CalcBottomSpace(), CalcLeftSpace(), CalcRightSpace(), and CalcTopSpace().

◆ GetFrameSize()

const SwFormatFrameSize & SwFlyFrameAttrMgr::GetFrameSize ( ) const
inline

Definition at line 151 of file frmmgr.hxx.

References SfxItemSet::Get(), m_aSet, and RES_FRM_SIZE().

Referenced by SwFrameShell::GetState(), SetHeightSizeType(), and SetSize().

◆ GetHoriOrient()

const SwFormatHoriOrient & SwFlyFrameAttrMgr::GetHoriOrient ( ) const
inline

◆ GetPos()

Point SwFlyFrameAttrMgr::GetPos ( ) const
inline

Definition at line 163 of file frmmgr.hxx.

References GetHoriOrient(), GetPos(), and GetVertOrient().

Referenced by SwTextShell::ExecInsert(), SwFrameShell::Execute(), and GetPos().

◆ GetShadow()

const SvxShadowItem & SwFlyFrameAttrMgr::GetShadow ( ) const
inline

Definition at line 155 of file frmmgr.hxx.

References SfxItemSet::Get(), m_aSet, and RES_SHADOW().

Referenced by CalcBottomSpace(), CalcLeftSpace(), CalcRightSpace(), and CalcTopSpace().

◆ GetSize()

const Size & SwFlyFrameAttrMgr::GetSize ( ) const
inline

◆ GetVertOrient()

const SwFormatVertOrient & SwFlyFrameAttrMgr::GetVertOrient ( ) const
inline

Definition at line 143 of file frmmgr.hxx.

References SfxItemSet::Get(), m_aSet, and RES_VERT_ORIENT().

Referenced by GetPos(), SetAbsPos(), SetAnchor(), SetPos(), and SetVertOrientation().

◆ InsertFlyFrame() [1/2]

void SwFlyFrameAttrMgr::InsertFlyFrame ( )

◆ InsertFlyFrame() [2/2]

void SwFlyFrameAttrMgr::InsertFlyFrame ( RndStdIds  eAnchorType,
const Point rPos,
const Size rSize 
)

Definition at line 207 of file frmmgr.cxx.

References InsertFlyFrame(), SetAnchor(), SetPos(), and SetSize().

◆ SetAbsPos()

void SwFlyFrameAttrMgr::SetAbsPos ( const Point rLPoint)

◆ SetAnchor()

void SwFlyFrameAttrMgr::SetAnchor ( RndStdIds  eId)

◆ SetAttrSet()

void SwFlyFrameAttrMgr::SetAttrSet ( const SfxItemSet rSet)

◆ SetCol()

void SwFlyFrameAttrMgr::SetCol ( const SwFormatCol rCol)

Definition at line 244 of file frmmgr.cxx.

References m_aSet, and SfxItemSet::Put().

Referenced by SwTextShell::ExecInsert(), and SwView::InsFrameMode().

◆ SetHeightSizeType()

void SwFlyFrameAttrMgr::SetHeightSizeType ( SwFrameSize  eType)

◆ SetHorzOrientation()

void SwFlyFrameAttrMgr::SetHorzOrientation ( sal_Int16  eOrient)

◆ SetLRSpace()

void SwFlyFrameAttrMgr::SetLRSpace ( tools::Long  nLeft,
tools::Long  nRight 
)

◆ SetPos()

void SwFlyFrameAttrMgr::SetPos ( const Point rLPoint)

◆ SetRotation()

void SwFlyFrameAttrMgr::SetRotation ( Degree10  nOld,
Degree10  nNew,
const Size rUnrotatedSize 
)

◆ SetSize()

void SwFlyFrameAttrMgr::SetSize ( const Size rLSize)

◆ SetULSpace()

void SwFlyFrameAttrMgr::SetULSpace ( tools::Long  nTop,
tools::Long  nBottom 
)

◆ SetVertOrientation()

void SwFlyFrameAttrMgr::SetVertOrientation ( sal_Int16  eOrient)

◆ UpdateAttrMgr()

void SwFlyFrameAttrMgr::UpdateAttrMgr ( )

◆ UpdateFlyFrame()

void SwFlyFrameAttrMgr::UpdateFlyFrame ( )

◆ UpdateFlyFrame_()

void SwFlyFrameAttrMgr::UpdateFlyFrame_ ( )
private

◆ ValidateMetrics()

void SwFlyFrameAttrMgr::ValidateMetrics ( SvxSwFrameValidation rVal,
const SwFormatAnchor pToCharContentPos,
bool  bOnlyPercentRefValue = false 
)

Member Data Documentation

◆ m_aAbsPos

Point SwFlyFrameAttrMgr::m_aAbsPos
private

Definition at line 53 of file frmmgr.hxx.

Referenced by SetAbsPos(), and UpdateFlyFrame_().

◆ m_aSet

SfxItemSet SwFlyFrameAttrMgr::m_aSet
private

◆ m_bAbsPos

bool SwFlyFrameAttrMgr::m_bAbsPos
private

Definition at line 56 of file frmmgr.hxx.

Referenced by SetAbsPos(), and UpdateFlyFrame_().

◆ m_bIsInVertical

bool SwFlyFrameAttrMgr::m_bIsInVertical
private

Definition at line 58 of file frmmgr.hxx.

Referenced by SwFlyFrameAttrMgr(), and ValidateMetrics().

◆ m_bIsInVerticalL2R

bool SwFlyFrameAttrMgr::m_bIsInVerticalL2R
private

Definition at line 60 of file frmmgr.hxx.

Referenced by SwFlyFrameAttrMgr(), and ValidateMetrics().

◆ m_bNewFrame

bool SwFlyFrameAttrMgr::m_bNewFrame
private

Definition at line 57 of file frmmgr.hxx.

Referenced by SwFlyFrameAttrMgr(), and UpdateAttrMgr().

◆ m_pOwnSh

SwWrtShell* SwFlyFrameAttrMgr::m_pOwnSh
private

The documentation for this class was generated from the following files: