LibreOffice Module sw (master) 1
|
#include <frmmgr.hxx>
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 |
SwWrtShell * | m_pOwnSh |
bool | m_bAbsPos |
bool | m_bNewFrame |
bool | m_bIsInVertical |
bool | m_bIsInVerticalL2R |
Definition at line 50 of file frmmgr.hxx.
SwFlyFrameAttrMgr::SwFlyFrameAttrMgr | ( | bool | bNew, |
SwWrtShell * | pSh, | ||
Frmmgr_Type | nType, | ||
const SvGlobalName * | pName | ||
) |
Definition at line 66 of file frmmgr.cxx.
References DFLT_HEIGHT, DFLT_WIDTH, SwAttrSet::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetAttrSet(), SwViewOption::GetDefaultAnchorType(), SwView::GetDocShell(), SwFEShell::GetFlyFrameAttr(), SwEditShell::GetFormatFromPool(), GetHtmlMode(), SwWrtShell::GetView(), SwViewShell::GetViewOptions(), GRF, SwFEShell::IsFrameVertical(), m_aSet, m_aSet, m_bIsInVertical, m_bIsInVerticalL2R, m_bNewFrame, m_pOwnSh, Minimum, nId, NONE, nType, OLE, pName, PrepareBoxInfo(), SfxItemSet::Put(), RES_POOLFRM_FRAME, RES_POOLFRM_GRAPHIC, RES_POOLFRM_OLE, SfxItemSet::SetParent(), SO3_SM_CLASSID, and TEXT.
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.
|
private |
Definition at line 511 of file frmmgr.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), GetBox(), and GetShadow().
Referenced by ValidateMetrics().
|
inline |
Definition at line 135 of file frmmgr.hxx.
Referenced by SwWrtShell::InsertGraphic().
|
private |
Definition at line 518 of file frmmgr.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), GetBox(), and GetShadow().
Referenced by ValidateMetrics().
|
private |
Definition at line 525 of file frmmgr.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), GetBox(), and GetShadow().
Referenced by ValidateMetrics().
|
private |
Definition at line 504 of file frmmgr.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), GetBox(), and GetShadow().
Referenced by ValidateMetrics().
|
inline |
Definition at line 134 of file frmmgr.hxx.
Referenced by SwWrtShell::InsertGraphic().
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().
|
inline |
Definition at line 167 of file frmmgr.hxx.
References SfxItemSet::Get(), m_aSet, and RES_ANCHOR().
Referenced by SwTextShell::ExecInsert(), SwFrameShell::GetState(), and SwWrtShell::InsertOleObject().
|
inline |
Definition at line 125 of file frmmgr.hxx.
References m_aSet.
|
inline |
Definition at line 124 of file frmmgr.hxx.
References m_aSet.
Referenced by SwTextShell::CreateInsertFrameItemSet(), SwBaseShell::ExecDlg(), SwFrameShell::Execute(), SwGrfShell::Execute(), SwBaseShell::GetBorderState(), SwBaseShell::GetState(), SwModule::InsertEnv(), SwWrtShell::InsertGraphic(), and SwWrtShell::InsertOleObject().
|
inline |
Definition at line 159 of file frmmgr.hxx.
References SfxItemSet::Get(), m_aSet, and RES_BOX().
Referenced by CalcBottomSpace(), CalcLeftSpace(), CalcRightSpace(), and CalcTopSpace().
|
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().
|
inline |
Definition at line 147 of file frmmgr.hxx.
References SfxItemSet::Get(), m_aSet, and RES_HORI_ORIENT().
Referenced by SwFrameShell::Execute(), GetPos(), SwFrameShell::GetState(), SetAbsPos(), SetAnchor(), SetHorzOrientation(), and SetPos().
|
inline |
Definition at line 163 of file frmmgr.hxx.
References GetHoriOrient(), GetPos(), and GetVertOrient().
Referenced by SwTextShell::ExecInsert(), SwFrameShell::Execute(), and GetPos().
|
inline |
Definition at line 155 of file frmmgr.hxx.
References SfxItemSet::Get(), m_aSet, and RES_SHADOW().
Referenced by CalcBottomSpace(), CalcLeftSpace(), CalcRightSpace(), and CalcTopSpace().
|
inline |
Definition at line 138 of file frmmgr.hxx.
References SfxItemSet::Get(), m_aSet, and RES_FRM_SIZE().
Referenced by SwTextShell::ExecInsert(), SwFrameShell::Execute(), SwFrameShell::GetState(), SwWrtShell::InsertGraphic(), and SwView::InsFrameMode().
|
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().
void SwFlyFrameAttrMgr::InsertFlyFrame | ( | ) |
Definition at line 189 of file frmmgr.cxx.
References SwEditShell::EndAllAction(), SwWrtShell::EnterSelFrameMode(), FLY_DRAG_START, FrameNotify(), m_aSet, m_pOwnSh, SwFEShell::NewFlyFrame(), SwEditShell::StartAllAction(), and UpdateFlyFrame_().
Referenced by SwTextShell::ExecInsert(), SwModule::InsertEnv(), InsertFlyFrame(), and SwView::InsFrameMode().
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().
void SwFlyFrameAttrMgr::SetAbsPos | ( | const Point & | rLPoint | ) |
Definition at line 250 of file frmmgr.cxx.
References GetHoriOrient(), GetVertOrient(), m_aAbsPos, m_aSet, m_bAbsPos, SwPostItHelper::NONE, SfxItemSet::Put(), SwFormatHoriOrient::SetHoriOrient(), and SwFormatVertOrient::SetVertOrient().
Referenced by SwFrameShell::Execute().
void SwFlyFrameAttrMgr::SetAnchor | ( | RndStdIds | eId | ) |
Definition at line 225 of file frmmgr.cxx.
References GetHoriOrient(), SwCursorShell::GetPageNum(), GetVertOrient(), m_aSet, m_pOwnSh, SfxItemSet::Put(), SwFormatVertOrient::SetRelationOrient(), and SwFormatHoriOrient::SetRelationOrient().
Referenced by InsertFlyFrame(), and SwWrtShell::InsertGraphic().
void SwFlyFrameAttrMgr::SetAttrSet | ( | const SfxItemSet & | rSet | ) |
Definition at line 619 of file frmmgr.cxx.
References SfxItemSet::ClearItem(), m_aSet, SfxItemSet::Put(), and rSet.
Referenced by SwBaseShell::ExecDlg(), SwTextShell::ExecInsert(), SwBaseShell::Execute(), SwFrameShell::Execute(), and SwGrfShell::Execute().
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().
void SwFlyFrameAttrMgr::SetHeightSizeType | ( | SwFrameSize | eType | ) |
Definition at line 591 of file frmmgr.cxx.
References eType, GetFrameSize(), m_aSet, SfxItemSet::Put(), and SwFormatFrameSize::SetHeightSizeType().
Referenced by SwModule::InsertEnv(), SwWrtShell::InsertGraphic(), and SwWrtShell::InsertOleObject().
void SwFlyFrameAttrMgr::SetHorzOrientation | ( | sal_Int16 | eOrient | ) |
Definition at line 577 of file frmmgr.cxx.
References GetHoriOrient(), m_aSet, SfxItemSet::Put(), and SwFormatHoriOrient::SetHoriOrient().
Referenced by SwFrameShell::Execute().
void SwFlyFrameAttrMgr::SetLRSpace | ( | tools::Long | nLeft, |
tools::Long | nRight | ||
) |
Definition at line 538 of file frmmgr.cxx.
References SfxItemSet::Get(), LONG_MAX, m_aSet, SfxItemSet::Put(), RES_LR_SPACE(), SvxLRSpaceItem::SetLeft(), and SvxLRSpaceItem::SetRight().
Referenced by SwModule::InsertEnv().
void SwFlyFrameAttrMgr::SetPos | ( | const Point & | rLPoint | ) |
Definition at line 562 of file frmmgr.cxx.
References GetHoriOrient(), GetVertOrient(), m_aSet, SwPostItHelper::NONE, SfxItemSet::Put(), SwFormatHoriOrient::SetHoriOrient(), SwFormatVertOrient::SetPos(), SwFormatHoriOrient::SetPos(), SwFormatVertOrient::SetVertOrient(), Point::X(), and Point::Y().
Referenced by InsertFlyFrame().
Definition at line 598 of file frmmgr.cxx.
References m_pOwnSh, and SwEditShell::SetAttrItem().
Referenced by SwFrameShell::Execute(), SwGrfShell::Execute(), SwGrfShell::ExecuteRotation(), and SwVirtFlyDrawObj::Rotate().
void SwFlyFrameAttrMgr::SetSize | ( | const Size & | rLSize | ) |
Definition at line 612 of file frmmgr.cxx.
References GetFrameSize(), Size::Height(), m_aSet, MINFLY, SfxItemSet::Put(), SvxSizeItem::SetSize(), and Size::Width().
Referenced by SwFrameShell::Execute(), InsertFlyFrame(), SwWrtShell::InsertGraphic(), SwWrtShell::InsertOleObject(), and SwView::InsFrameMode().
void SwFlyFrameAttrMgr::SetULSpace | ( | tools::Long | nTop, |
tools::Long | nBottom | ||
) |
Definition at line 550 of file frmmgr.cxx.
References SfxItemSet::Get(), LONG_MAX, m_aSet, SfxItemSet::Put(), RES_UL_SPACE(), SvxULSpaceItem::SetLower(), and SvxULSpaceItem::SetUpper().
Referenced by SwModule::InsertEnv().
void SwFlyFrameAttrMgr::SetVertOrientation | ( | sal_Int16 | eOrient | ) |
Definition at line 584 of file frmmgr.cxx.
References GetVertOrient(), m_aSet, SfxItemSet::Put(), and SwFormatVertOrient::SetVertOrient().
Referenced by SwFrameShell::Execute().
void SwFlyFrameAttrMgr::UpdateAttrMgr | ( | ) |
Definition at line 137 of file frmmgr.cxx.
References SwFEShell::GetFlyFrameAttr(), SwFEShell::IsFrameSelected(), m_aSet, m_bNewFrame, m_pOwnSh, and PrepareBoxInfo().
Referenced by SwModule::InsertEnv(), and SwWrtShell::InsertGraphic().
void SwFlyFrameAttrMgr::UpdateFlyFrame | ( | ) |
Definition at line 159 of file frmmgr.cxx.
References SfxItemSet::ClearItem(), SfxItemSet::Count(), SwEditShell::EndAllAction(), SwFormatAnchor::GetAnchorId(), SwFEShell::GetFlyFrameAttr(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetPool(), SwFEShell::IsFrameSelected(), m_aSet, m_pOwnSh, RES_ANCHOR(), SwFEShell::SetFlyFrameAttr(), SwEditShell::StartAllAction(), and UpdateFlyFrame_().
Referenced by SwBaseShell::ExecDlg(), SwBaseShell::Execute(), SwFrameShell::Execute(), SwGrfShell::Execute(), and SwWrtShell::InsertGraphic().
|
private |
Definition at line 144 of file frmmgr.cxx.
References FN_SET_FRM_NAME, SfxItemSet::GetItemIfSet(), m_aAbsPos, m_aSet, m_bAbsPos, m_pOwnSh, SwFEShell::SetFlyName(), SwFEShell::SetFlyPos(), and SwEditShell::SetModified().
Referenced by InsertFlyFrame(), and UpdateFlyFrame().
void SwFlyFrameAttrMgr::ValidateMetrics | ( | SvxSwFrameValidation & | rVal, |
const SwFormatAnchor * | pToCharContentPos, | ||
bool | bOnlyPercentRefValue = false |
||
) |
Definition at line 263 of file frmmgr.cxx.
References SvxSwFrameValidation::aPercentSize, SvxSwFrameValidation::bFollowTextFlow, SvxSwFrameValidation::bMirror, SwRect::Bottom(), CalcBottomSpace(), SwFEShell::CalcBoundRect(), CalcLeftSpace(), CalcRightSpace(), CalcTopSpace(), SwRect::Chg(), SfxItemSet::Get(), Size::Height(), SwRect::Height(), if(), SwRect::Left(), m_aSet, m_bIsInVertical, m_bIsInVerticalL2R, m_pOwnSh, MINFLY, SvxSwFrameValidation::nAnchorType, SvxSwFrameValidation::nHeight, SvxSwFrameValidation::nHoriOrient, SvxSwFrameValidation::nHPos, SvxSwFrameValidation::nHRelOrient, SvxSwFrameValidation::nMaxHeight, SvxSwFrameValidation::nMaxHPos, SvxSwFrameValidation::nMaxVPos, SvxSwFrameValidation::nMaxWidth, SvxSwFrameValidation::nMinHeight, SvxSwFrameValidation::nMinHPos, SvxSwFrameValidation::nMinVPos, SvxSwFrameValidation::nMinWidth, SwPostItHelper::NONE, SvxSwFrameValidation::nVertOrient, SvxSwFrameValidation::nVPos, SvxSwFrameValidation::nVRelOrient, SvxSwFrameValidation::nWidth, SwRect::Pos(), RES_FRM_SIZE(), SwRect::Right(), Size::setHeight(), Size::setWidth(), Point::setX(), Point::setY(), SwRect::SSize(), SwRect::Top(), Size::Width(), SwRect::Width(), Point::X(), and Point::Y().
Referenced by SwWrapTabPage::ActivatePage(), and SwFramePage::RangeModifyHdl().
|
private |
Definition at line 53 of file frmmgr.hxx.
Referenced by SetAbsPos(), and UpdateFlyFrame_().
|
private |
Definition at line 52 of file frmmgr.hxx.
Referenced by DelAttr(), GetAnchor(), GetBox(), GetFrameSize(), GetHoriOrient(), GetShadow(), GetSize(), GetVertOrient(), InsertFlyFrame(), SetAbsPos(), SetAnchor(), SetAttrSet(), SetCol(), SetHeightSizeType(), SetHorzOrientation(), SetLRSpace(), SetPos(), SetSize(), SetULSpace(), SetVertOrientation(), SwFlyFrameAttrMgr(), UpdateAttrMgr(), UpdateFlyFrame(), UpdateFlyFrame_(), and ValidateMetrics().
|
private |
Definition at line 56 of file frmmgr.hxx.
Referenced by SetAbsPos(), and UpdateFlyFrame_().
|
private |
Definition at line 58 of file frmmgr.hxx.
Referenced by SwFlyFrameAttrMgr(), and ValidateMetrics().
|
private |
Definition at line 60 of file frmmgr.hxx.
Referenced by SwFlyFrameAttrMgr(), and ValidateMetrics().
|
private |
Definition at line 57 of file frmmgr.hxx.
Referenced by SwFlyFrameAttrMgr(), and UpdateAttrMgr().
|
private |
Definition at line 54 of file frmmgr.hxx.
Referenced by InsertFlyFrame(), SetAnchor(), SetRotation(), SwFlyFrameAttrMgr(), UpdateAttrMgr(), UpdateFlyFrame(), UpdateFlyFrame_(), and ValidateMetrics().