LibreOffice Module cui (master) 1
|
#include <swpossizetabpage.hxx>
Public Member Functions | |
SvxSwPosSizeTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs) | |
virtual | ~SvxSwPosSizeTabPage () override |
virtual bool | FillItemSet (SfxItemSet *) override |
virtual void | Reset (const SfxItemSet *) override |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) override |
void | EnableAnchorTypes (SvxAnchorIds nAnchorEnable) |
void | SetValidateFramePosLink (const Link< SvxSwFrameValidation &, void > &rLink) |
void | SetView (const SdrView *pSdrView) |
Public Member Functions inherited from SfxTabPage | |
void | SetDialogController (SfxOkDialogController *pDialog) |
virtual | ~SfxTabPage () override |
void | set_visible (bool bVisible) |
const SfxItemSet & | GetItemSet () const |
virtual bool | FillItemSet (SfxItemSet *) |
virtual void | Reset (const SfxItemSet *) |
virtual bool | DeferResetToFirstActivation () |
bool | HasExchangeSupport () const |
void | SetExchangeSupport () |
virtual void | ActivatePage (const SfxItemSet &) |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) |
void | SetUserData (const OUString &rString) |
const OUString & | GetUserData () const |
virtual void | FillUserData () |
virtual bool | IsReadOnly () const |
virtual void | PageCreated (const SfxAllItemSet &aSet) |
virtual void | ChangesApplied () |
void | SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) |
css::uno::Reference< css::frame::XFrame > | GetFrame () const |
const SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *) |
static WhichRangesContainer | GetRanges () |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
static const T * | GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
Private Member Functions | |
DECL_LINK (RangeModifyHdl, weld::Widget &, void) | |
DECL_LINK (RangeModifyClickHdl, weld::Toggleable &, void) | |
DECL_LINK (AnchorTypeHdl, weld::Toggleable &, void) | |
DECL_LINK (PosHdl, weld::ComboBox &, void) | |
DECL_LINK (RelHdl, weld::ComboBox &, void) | |
DECL_LINK (MirrorHdl, weld::Toggleable &, void) | |
DECL_LINK (ModifyHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (ProtectHdl, weld::Toggleable &, void) | |
void | InitPos (RndStdIds nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel, sal_uInt16 nV, sal_uInt16 nVRel, tools::Long nX, tools::Long nY) |
RndStdIds | GetAnchorType (bool *pbHasChanged=nullptr) |
void | FillRelLB (FrmMap const *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, weld::ComboBox &rLB, weld::Label &rFT) |
sal_uInt16 | FillPosLB (FrmMap const *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, weld::ComboBox &rLB) |
void | UpdateExample () |
void | setOptimalFrmWidth () |
void | setOptimalRelWidth () |
Static Private Member Functions | |
static sal_uInt16 | GetMapPos (FrmMap const *pMap, const weld::ComboBox &rAlignLB) |
static short | GetAlignment (FrmMap const *pMap, sal_uInt16 nMapPos, const weld::ComboBox &rRelationLB) |
static short | GetRelation (const weld::ComboBox &rRelationLB) |
Additional Inherited Members | |
Protected Member Functions inherited from SfxTabPage | |
SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet) | |
sal_uInt16 | GetWhich (sal_uInt16 nSlot, bool bDeep=true) const |
TypedWhichId< T > | GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const |
const SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () const |
Definition at line 31 of file swpossizetabpage.hxx.
SvxSwPosSizeTabPage::SvxSwPosSizeTabPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rInAttrs | ||
) |
Definition at line 526 of file swpossizetabpage.cxx.
References CENTER, CM, FRAME, GetModuleFieldUnit(), LINK, m_xAsCharRB, m_xFollowCB, m_xHeightMF, m_xHoriByMF, m_xHoriLB, m_xHoriMirrorCB, m_xHoriToLB, m_xPositionCB, m_xToCharRB, m_xToFrameRB, m_xToPageRB, m_xToParaRB, m_xVertByMF, m_xVertLB, m_xVertToLB, m_xWidthMF, SfxTabPage::SetExchangeSupport(), SetFieldUnit(), setOptimalFrmWidth(), setOptimalRelWidth(), TOP, and TRISTATE_FALSE.
|
overridevirtual |
Definition at line 610 of file swpossizetabpage.cxx.
References m_xHeightMF, m_xHoriByMF, m_xVertByMF, and m_xWidthMF.
|
static |
Definition at line 717 of file swpossizetabpage.cxx.
References rSet.
Referenced by SvxCaptionTabDialog::SvxCaptionTabDialog(), and SvxTransformTabDialog::SvxTransformTabDialog().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 1049 of file swpossizetabpage.cxx.
References FillItemSet(), m_xPositionCB, m_xSizeCB, and SfxItemSet::Put().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void SvxSwPosSizeTabPage::EnableAnchorTypes | ( | SvxAnchorIds | nAnchorEnable | ) |
Definition at line 1062 of file swpossizetabpage.cxx.
References m_xToFrameRB, and m_xToPageRB.
Referenced by SvxCaptionTabDialog::PageCreated(), and SvxTransformTabDialog::PageCreated().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 736 of file swpossizetabpage.cxx.
References SfxPoolItem::Clone(), SfxItemSet::Get(), GetAlignment(), SdrMarkView::GetAllMarkedRect(), GetAnchorType(), SfxTabPage::GetItem(), SfxTabPage::GetItemSet(), GetMapPos(), GetRelation(), SdrPaintView::GetSdrPageView(), CntInt32Item::GetValue(), SfxInt16Item::GetValue(), SfxItemSet::InvalidateItem(), SdrPageView::LogicToPagePos(), m_aAnchorPos, m_aRect, m_bIsMultiSelection, m_bPositioningDisabled, m_pHMap, m_pSdrView, m_pVMap, m_xFollowCB, m_xHeightMF, m_xHoriByMF, m_xHoriLB, m_xHoriMirrorCB, m_xHoriToLB, m_xPositionCB, m_xSizeCB, m_xVertByMF, m_xVertLB, m_xVertToLB, m_xWidthMF, SfxItemSet::Put(), rSet, TRISTATE_TRUE, Point::X(), and Point::Y().
Referenced by DeactivatePage().
|
private |
Definition at line 1765 of file swpossizetabpage.cxx.
References weld::ComboBox::append_text(), aVCharMap, weld::ComboBox::clear(), FrmMap::eMirrorStrId, FrmMap::eStrId, weld::ComboBox::find_text(), weld::ComboBox::get_active(), weld::ComboBox::get_active_text(), GetMapPos(), SvxSwFramePosString::GetString(), i, lcl_ChangeResIdToVerticalOrRTL(), lcl_GetFrmMapCount(), lcl_GetLBRelationsForRelations(), m_bIsInRightToLeft, m_bIsVerticalFrame, m_xHoriMirrorCB, nCount, weld::ComboBox::set_active(), and weld::ComboBox::set_active_text().
Referenced by InitPos().
|
private |
Definition at line 1627 of file swpossizetabpage.cxx.
References aAsCharRelationMap, weld::ComboBox::append(), aRelationMap, aVAsCharHtmlMap, aVAsCharMap, aVCharMap, weld::ComboBox::clear(), FrmMap::eMirrorStrId, FrmMap::eStrId, weld::ComboBox::get_active(), weld::ComboBox::get_active_text(), weld::ComboBox::get_count(), weld::ComboBox::get_id(), SvxSwFramePosString::GetString(), i, lcl_ChangeResIdToVerticalOrRTL(), lcl_GetFrmMapCount(), lcl_GetLBRelationsForStrID(), m_bIsInRightToLeft, m_bIsVerticalFrame, m_xHoriMirrorCB, nBit, FrmMap::nLBRelations, weld::ComboBox::set_active(), weld::ComboBox::set_active_text(), weld::Widget::set_sensitive(), o3tl::to_underlying(), and weld::toId().
Referenced by InitPos().
|
staticprivate |
Definition at line 1382 of file swpossizetabpage.cxx.
References aVAsCharHtmlMap, aVAsCharMap, aVCharMap, FrmMap::eStrId, weld::ComboBox::get_active(), weld::ComboBox::get_active_id(), i, lcl_GetFrmMapCount(), FrmMap::nAlign, and FrmMap::nLBRelations.
Referenced by FillItemSet(), and UpdateExample().
|
private |
Definition at line 1070 of file swpossizetabpage.cxx.
References weld::Toggleable::get_state_changed_from_saved(), m_xAsCharRB, m_xToCharRB, m_xToFrameRB, m_xToPageRB, and m_xToParaRB.
Referenced by FillItemSet(), and UpdateExample().
|
staticprivate |
Definition at line 1417 of file swpossizetabpage.cxx.
References aVAsCharHtmlMap, aVAsCharMap, FrmMap::eStrId, weld::ComboBox::get_active(), weld::ComboBox::get_active_text(), SvxSwFramePosString::GetString(), i, and lcl_GetFrmMapCount().
Referenced by FillItemSet(), FillPosLB(), and UpdateExample().
|
static |
Definition at line 722 of file swpossizetabpage.cxx.
References svl::Items.
Referenced by SvxCaptionTabDialog::SvxCaptionTabDialog(), and SvxTransformTabDialog::SvxTransformTabDialog().
|
staticprivate |
Definition at line 1369 of file swpossizetabpage.cxx.
References weld::ComboBox::get_active(), weld::ComboBox::get_id(), and nPos.
Referenced by FillItemSet(), and UpdateExample().
|
private |
Definition at line 1449 of file swpossizetabpage.cxx.
References aHCharHtmlAbsMap, aHCharMap, aHFlyHtmlMap, aHFrameMap, aHMultiSelectionMap, aHPageHtmlMap, aHPageMap, aHParaHtmlAbsMap, aHParaMap, aVAsCharHtmlMap, aVAsCharMap, aVCharHtmlAbsMap, aVCharMap, aVFlyHtmlMap, aVFrameMap, aVMultiSelectionMap, aVPageHtmlMap, aVPageMap, aVParaHtmlMap, aVParaMap, FillPosLB(), FillRelLB(), tools::Rectangle::Left(), LONG_MAX, m_aRect, m_bHtmlMode, m_bIsMultiSelection, m_nOldH, m_nOldHRel, m_nOldV, m_nOldVRel, m_pHMap, m_pVMap, m_xHoriByFT, m_xHoriByMF, m_xHoriFT, m_xHoriLB, m_xHoriToFT, m_xHoriToLB, m_xVertByFT, m_xVertByMF, m_xVertLB, m_xVertToFT, m_xVertToLB, FrmMap::nAlign, nPos, tools::Rectangle::Top(), and UpdateExample().
Referenced by Reset().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 885 of file swpossizetabpage.cxx.
References SfxTabPage::GetItem(), GetValue(), HTMLMODE_ON, InitPos(), m_bHtmlMode, m_bIsInRightToLeft, m_bIsMultiSelection, m_bIsVerticalFrame, m_bPositioningDisabled, m_fWidthHeightRatio, m_nOldH, m_nOldHRel, m_nOldV, m_nOldVRel, m_xAsCharRB, m_xFollowCB, m_xHeightMF, m_xHoriByMF, m_xHoriFT, m_xHoriMirrorCB, m_xKeepRatioCB, m_xPositionCB, m_xSizeCB, m_xToCharRB, m_xToFrameRB, m_xToPageRB, m_xToParaRB, m_xVertByMF, m_xVertFT, m_xWidthMF, and rSet.
|
private |
Definition at line 627 of file swpossizetabpage.cxx.
References aHCharHtmlAbsMap, aHCharHtmlMap, aHCharMap, aHFlyHtmlMap, aHFrameMap, aHPageHtmlMap, aHPageMap, aHParaHtmlAbsMap, aHParaHtmlMap, aHParaMap, aMap, aVAsCharHtmlMap, aVAsCharMap, aVCharHtmlAbsMap, aVCharHtmlMap, aVCharMap, aVFlyHtmlMap, aVFrameMap, aVPageHtmlMap, aVPageMap, aVParaHtmlMap, aVParaMap, SvxSwFramePosString::GetString(), m_xHoriLB, m_xVertLB, and Size::Width().
Referenced by SvxSwPosSizeTabPage().
|
private |
Definition at line 686 of file swpossizetabpage.cxx.
References aAsCharRelationMap, aMap, aRelationMap, SvxSwFramePosString::GetString(), m_xHoriLB, m_xVertLB, and Size::Width().
Referenced by SvxSwPosSizeTabPage().
|
inline |
Definition at line 124 of file swpossizetabpage.hxx.
References m_aValidateLink.
Referenced by SvxCaptionTabDialog::PageCreated(), and SvxTransformTabDialog::PageCreated().
void SvxSwPosSizeTabPage::SetView | ( | const SdrView * | pSdrView | ) |
Definition at line 1814 of file swpossizetabpage.cxx.
References SdrMarkView::GetAllMarkedRect(), SdrObject::GetAnchorPos(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), SdrPaintView::GetSdrPageView(), SdrDragView::GetWorkArea(), SdrObject::HasText(), i, SdrPageView::LogicToPagePos(), m_aAnchorPos, m_aRect, m_aWorkArea, m_bIsMultiSelection, m_bPositioningDisabled, m_pSdrView, m_xPosFrame, tools::Rectangle::SetPos(), and tools::Rectangle::TopLeft().
Referenced by SvxTransformTabDialog::PageCreated().
|
private |
Definition at line 1594 of file swpossizetabpage.cxx.
References GetAlignment(), GetAnchorType(), GetMapPos(), GetRelation(), m_aExampleWN, m_pHMap, m_pVMap, m_xHoriByMF, m_xHoriLB, m_xHoriToLB, m_xVertByMF, m_xVertLB, m_xVertToLB, nPos, SwFrameExample::SetAnchor(), SwFrameExample::SetHAlign(), SwFrameExample::SetHoriRel(), SwFrameExample::SetRelPos(), SwFrameExample::SetVAlign(), and SwFrameExample::SetVertRel().
Referenced by InitPos().
|
private |
Definition at line 37 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), and SetView().
|
private |
Definition at line 57 of file swpossizetabpage.hxx.
Referenced by UpdateExample().
|
private |
Definition at line 35 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), and SetView().
|
private |
Definition at line 33 of file swpossizetabpage.hxx.
Referenced by SetValidateFramePosLink().
|
private |
Definition at line 36 of file swpossizetabpage.hxx.
Referenced by SetView().
|
private |
Definition at line 50 of file swpossizetabpage.hxx.
|
private |
Definition at line 54 of file swpossizetabpage.hxx.
Referenced by FillPosLB(), FillRelLB(), and Reset().
|
private |
Definition at line 53 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), Reset(), and SetView().
|
private |
Definition at line 51 of file swpossizetabpage.hxx.
Referenced by FillPosLB(), FillRelLB(), and Reset().
|
private |
Definition at line 52 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), Reset(), and SetView().
|
private |
Definition at line 49 of file swpossizetabpage.hxx.
Referenced by Reset().
|
private |
Definition at line 44 of file swpossizetabpage.hxx.
|
private |
Definition at line 45 of file swpossizetabpage.hxx.
|
private |
Definition at line 46 of file swpossizetabpage.hxx.
|
private |
Definition at line 47 of file swpossizetabpage.hxx.
|
private |
Definition at line 55 of file swpossizetabpage.hxx.
|
private |
Definition at line 40 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), and UpdateExample().
|
private |
Definition at line 41 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), and SetView().
|
private |
Definition at line 39 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), and UpdateExample().
|
private |
Definition at line 65 of file swpossizetabpage.hxx.
Referenced by GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 84 of file swpossizetabpage.hxx.
|
private |
Definition at line 83 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 60 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), Reset(), SvxSwPosSizeTabPage(), and ~SvxSwPosSizeTabPage().
|
private |
Definition at line 72 of file swpossizetabpage.hxx.
Referenced by InitPos().
|
private |
Definition at line 73 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), Reset(), SvxSwPosSizeTabPage(), UpdateExample(), and ~SvxSwPosSizeTabPage().
|
private |
Definition at line 70 of file swpossizetabpage.hxx.
|
private |
Definition at line 71 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), setOptimalFrmWidth(), setOptimalRelWidth(), SvxSwPosSizeTabPage(), and UpdateExample().
|
private |
Definition at line 76 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), FillPosLB(), FillRelLB(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 74 of file swpossizetabpage.hxx.
Referenced by InitPos().
|
private |
Definition at line 75 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), SvxSwPosSizeTabPage(), and UpdateExample().
|
private |
Definition at line 61 of file swpossizetabpage.hxx.
Referenced by Reset().
|
private |
Definition at line 69 of file swpossizetabpage.hxx.
Referenced by SetView().
|
private |
Definition at line 67 of file swpossizetabpage.hxx.
Referenced by DeactivatePage(), FillItemSet(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 68 of file swpossizetabpage.hxx.
Referenced by DeactivatePage(), FillItemSet(), and Reset().
|
private |
Definition at line 64 of file swpossizetabpage.hxx.
Referenced by GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 66 of file swpossizetabpage.hxx.
Referenced by EnableAnchorTypes(), GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 62 of file swpossizetabpage.hxx.
Referenced by EnableAnchorTypes(), GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 63 of file swpossizetabpage.hxx.
Referenced by GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().
|
private |
Definition at line 79 of file swpossizetabpage.hxx.
Referenced by InitPos().
|
private |
Definition at line 80 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), Reset(), SvxSwPosSizeTabPage(), UpdateExample(), and ~SvxSwPosSizeTabPage().
|
private |
Definition at line 77 of file swpossizetabpage.hxx.
Referenced by Reset().
|
private |
Definition at line 78 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), setOptimalFrmWidth(), setOptimalRelWidth(), SvxSwPosSizeTabPage(), and UpdateExample().
|
private |
Definition at line 81 of file swpossizetabpage.hxx.
Referenced by InitPos().
|
private |
Definition at line 82 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), InitPos(), SvxSwPosSizeTabPage(), and UpdateExample().
|
private |
Definition at line 59 of file swpossizetabpage.hxx.
Referenced by FillItemSet(), Reset(), SvxSwPosSizeTabPage(), and ~SvxSwPosSizeTabPage().