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 64 of file frmmgr.cxx.
References DFLT_HEIGHT, DFLT_WIDTH, SwFormat::GetAttrSet(), 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, OLE, 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, | ||
const SfxItemSet & | rSet | ||
) |
Definition at line 107 of file frmmgr.cxx.
References SwFEShell::IsFrameVertical(), m_aSet, m_bIsInVertical, and m_bIsInVerticalL2R.
|
private |
Definition at line 500 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::Insert().
|
private |
Definition at line 507 of file frmmgr.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), GetBox(), and GetShadow().
Referenced by ValidateMetrics().
|
private |
Definition at line 514 of file frmmgr.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), GetBox(), and GetShadow().
Referenced by ValidateMetrics().
|
private |
Definition at line 493 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::Insert().
void SwFlyFrameAttrMgr::DelAttr | ( | sal_uInt16 | nId | ) |
Definition at line 522 of file frmmgr.cxx.
References SfxItemSet::ClearItem(), and m_aSet.
Referenced by SwWrtShell::Insert().
|
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 124 of file frmmgr.hxx.
Referenced by SwTextShell::CreateInsertFrameItemSet(), SwBaseShell::ExecDlg(), SwFrameShell::Execute(), SwBaseShell::GetBorderState(), SwBaseShell::GetState(), SwWrtShell::Insert(), SwModule::InsertEnv(), and SwWrtShell::InsertOleObject().
|
inline |
Definition at line 125 of file frmmgr.hxx.
|
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(), GetVertOrient(), and Point.
Referenced by SwTextShell::ExecInsert(), and SwFrameShell::Execute().
|
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(), and SwWrtShell::Insert().
|
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 178 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(), and InsertFlyFrame().
void SwFlyFrameAttrMgr::InsertFlyFrame | ( | RndStdIds | eAnchorType, |
const Point & | rPos, | ||
const Size & | rSize | ||
) |
Definition at line 196 of file frmmgr.cxx.
References InsertFlyFrame(), SetAnchor(), SetPos(), and SetSize().
Definition at line 239 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().
Definition at line 214 of file frmmgr.cxx.
References GetHoriOrient(), SwCursorShell::GetPageNum(), GetVertOrient(), m_aSet, m_pOwnSh, SfxItemSet::Put(), SwFormatVertOrient::SetRelationOrient(), and SwFormatHoriOrient::SetRelationOrient().
Referenced by SwWrtShell::Insert(), and InsertFlyFrame().
void SwFlyFrameAttrMgr::SetAttrSet | ( | const SfxItemSet & | rSet | ) |
Definition at line 608 of file frmmgr.cxx.
References SfxItemSet::ClearItem(), m_aSet, and SfxItemSet::Put().
Referenced by SwBaseShell::ExecDlg(), SwTextShell::ExecInsert(), SwFrameShell::Execute(), and SwBaseShell::Execute().
void SwFlyFrameAttrMgr::SetCol | ( | const SwFormatCol & | rCol | ) |
Definition at line 233 of file frmmgr.cxx.
References m_aSet, and SfxItemSet::Put().
Referenced by SwTextShell::ExecInsert().
void SwFlyFrameAttrMgr::SetHeightSizeType | ( | SwFrameSize | eType | ) |
Definition at line 580 of file frmmgr.cxx.
References GetFrameSize(), m_aSet, SfxItemSet::Put(), and SwFormatFrameSize::SetHeightSizeType().
Referenced by SwWrtShell::Insert(), SwModule::InsertEnv(), and SwWrtShell::InsertOleObject().
void SwFlyFrameAttrMgr::SetHorzOrientation | ( | sal_Int16 | eOrient | ) |
Definition at line 566 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 527 of file frmmgr.cxx.
References SfxItemSet::Get(), LONG_MAX, m_aSet, SfxItemSet::Put(), RES_LR_SPACE(), and SvxLRSpaceItem::SetLeft().
Referenced by SwModule::InsertEnv().
Definition at line 551 of file frmmgr.cxx.
References GetHoriOrient(), GetVertOrient(), m_aSet, SwPostItHelper::NONE, SfxItemSet::Put(), SwFormatHoriOrient::SetHoriOrient(), SwFormatVertOrient::SetPos(), SwFormatHoriOrient::SetPos(), and SwFormatVertOrient::SetVertOrient().
Referenced by InsertFlyFrame().
Definition at line 587 of file frmmgr.cxx.
References m_pOwnSh, and SwEditShell::SetAttrItem().
Referenced by SwFrameShell::Execute(), SwGrfShell::ExecuteRotation(), and SwVirtFlyDrawObj::Rotate().
Definition at line 601 of file frmmgr.cxx.
References GetFrameSize(), Size::Height(), m_aSet, MINFLY, SfxItemSet::Put(), SvxSizeItem::SetSize(), and Size::Width().
Referenced by SwFrameShell::Execute(), SwWrtShell::Insert(), InsertFlyFrame(), and SwWrtShell::InsertOleObject().
void SwFlyFrameAttrMgr::SetULSpace | ( | tools::Long | nTop, |
tools::Long | nBottom | ||
) |
Definition at line 539 of file frmmgr.cxx.
References SfxItemSet::Get(), LONG_MAX, m_aSet, SfxItemSet::Put(), RES_UL_SPACE(), and SvxULSpaceItem::SetUpper().
Referenced by SwModule::InsertEnv().
void SwFlyFrameAttrMgr::SetVertOrientation | ( | sal_Int16 | eOrient | ) |
Definition at line 573 of file frmmgr.cxx.
References GetVertOrient(), m_aSet, SfxItemSet::Put(), and SwFormatVertOrient::SetVertOrient().
Referenced by SwFrameShell::Execute().
void SwFlyFrameAttrMgr::UpdateAttrMgr | ( | ) |
Definition at line 123 of file frmmgr.cxx.
References SwFEShell::GetFlyFrameAttr(), SwFEShell::IsFrameSelected(), m_aSet, m_bNewFrame, m_pOwnSh, and PrepareBoxInfo().
Referenced by SwWrtShell::Insert(), and SwModule::InsertEnv().
void SwFlyFrameAttrMgr::UpdateFlyFrame | ( | ) |
Definition at line 147 of file frmmgr.cxx.
References SfxItemSet::ClearItem(), SfxItemSet::Count(), SwEditShell::EndAllAction(), SwFEShell::GetFlyFrameAttr(), SfxItemSet::GetItemState(), SfxItemSet::GetPool(), SwFEShell::IsFrameSelected(), m_aSet, m_pOwnSh, RES_ANCHOR(), SwFEShell::SetFlyFrameAttr(), SwEditShell::StartAllAction(), and UpdateFlyFrame_().
Referenced by SwBaseShell::ExecDlg(), SwFrameShell::Execute(), SwBaseShell::Execute(), and SwWrtShell::Insert().
|
private |
Definition at line 130 of file frmmgr.cxx.
References FN_SET_FRM_NAME, SfxItemSet::GetItemState(), 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 SwPosition * | pToCharContentPos, | ||
bool | bOnlyPercentRefValue = false |
||
) |
Definition at line 252 of file frmmgr.cxx.
References SvxSwFrameValidation::aPercentSize, SvxSwFrameValidation::bFollowTextFlow, SvxSwFrameValidation::bMirror, SwRect::Bottom(), CalcBottomSpace(), SwFEShell::CalcBoundRect(), CalcLeftSpace(), CalcRightSpace(), CalcTopSpace(), SwRect::Chg(), SfxItemSet::Get(), 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, Point, SwRect::Pos(), RES_FRM_SIZE(), SwRect::Right(), SwRect::SSize(), SwRect::Top(), Size::Width(), and SwRect::Width().
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 56 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().