LibreOffice Module cui (master) 1
|
#include <transfrm.hxx>
Public Member Functions | |
SvxPositionSizeTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs) | |
virtual | ~SvxPositionSizeTabPage () override |
virtual bool | FillItemSet (SfxItemSet *) override |
virtual void | Reset (const SfxItemSet *) override |
virtual void | ActivatePage (const SfxItemSet &rSet) override |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) override |
virtual void | PointChanged (weld::DrawingArea *pWindow, RectPoint eRP) override |
void | Construct () |
void | SetView (const SdrView *pSdrView) |
virtual void | FillUserData () override |
void | DisableResize () |
void | DisableProtect () |
void | UpdateControlStates () |
Public Member Functions inherited from SvxTabPage | |
SvxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet &rAttrSet) | |
virtual void | PointChanged (weld::DrawingArea *pArea, RectPoint eRP)=0 |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *) |
static WhichRangesContainer | GetRanges () |
Private Member Functions | |
DECL_LINK (ChangePosProtectHdl, weld::Toggleable &, void) | |
DECL_LINK (ChangeSizeProtectHdl, weld::Toggleable &, void) | |
void | SetMinMaxPosition () |
void | GetTopLeftPosition (double &rfX, double &rfY, const basegfx::B2DRange &rRange) |
DECL_LINK (ChangeWidthHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (ChangeHeightHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (ClickSizeProtectHdl, weld::Toggleable &, void) | |
DECL_LINK (ClickAutoHdl, weld::Toggleable &, void) | |
Static Private Attributes | |
static const WhichRangesContainer | pPosSizeRanges |
Definition at line 61 of file transfrm.hxx.
SvxPositionSizeTabPage::SvxPositionSizeTabPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rInAttrs | ||
) |
Definition at line 718 of file transfrm.cxx.
References CM, DBG_ASSERT, SfxItemPool::GetMetric(), SfxItemSet::GetPool(), LINK, m_aCtlPos, m_aCtlSize, m_xCbxScale, m_xFlAdjust, m_xMtrHeight, m_xMtrWidth, m_xTsbPosProtect, m_xTsbSizeProtect, mePoolUnit, meRP, mpView, mrOutAttrs, NONE, SvxRectCtl::SetActualRP(), and TRISTATE_FALSE.
|
overridevirtual |
Definition at line 775 of file transfrm.cxx.
|
overridevirtual |
Definition at line 1103 of file transfrm.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), SfxItemSet::GetItemIfSet(), maRange, rSet, and SetMinMaxPosition().
void SvxPositionSizeTabPage::Construct | ( | ) |
Definition at line 779 of file transfrm.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), TransfrmHelper::ConvertRect(), DBG_ASSERT, basegfx::Tuple2D< typename TYPE >::equalZero(), SdrMarkView::GetAllMarkedRect(), SdrObject::GetAnchorPos(), GetItemSet(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), basegfx::B2DRange::getMaximum(), basegfx::B2DRange::getMinimum(), SdrPaintView::GetModel(), GetModuleFieldUnit(), SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), SdrPaintView::GetSdrPageView(), SdrModel::GetUIScale(), SdrDragView::GetWorkArea(), SdrObject::HasText(), i, LINK, SdrPageView::LogicToPagePos(), m_xFlAdjust, m_xMtrHeight, m_xMtrPosX, m_xMtrPosY, m_xMtrWidth, m_xTsbAutoGrowHeight, m_xTsbAutoGrowWidth, maAnchor, maRange, maWorkRange, mbAdjustDisabled, mbIgnoreAutoGrowHeight, mbIgnoreAutoGrowWidth, mbPageDisabled, meDlgUnit, mePoolUnit, mpView, TransfrmHelper::ScaleRect(), SetFieldUnit(), SetMinMaxPosition(), Point::X(), and Point::Y().
Referenced by SvxTransformTabDialog::PageCreated().
|
static |
Definition at line 1098 of file transfrm.cxx.
Referenced by SvxCaptionTabDialog::SvxCaptionTabDialog(), and SvxTransformTabDialog::SvxTransformTabDialog().
|
overridevirtual |
Definition at line 1117 of file transfrm.cxx.
References FillItemSet(), basegfx::fround(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), GetTopLeftPosition(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), m_xMtrPosX, m_xMtrPosY, m_xTsbPosProtect, m_xTsbSizeProtect, maRange, SfxItemSet::Put(), and TRISTATE_TRUE.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void SvxPositionSizeTabPage::DisableProtect | ( | ) |
Definition at line 1489 of file transfrm.cxx.
References mbProtectDisabled.
Referenced by SvxTransformTabDialog::PageCreated().
void SvxPositionSizeTabPage::DisableResize | ( | ) |
Definition at line 1483 of file transfrm.cxx.
References mbSizeDisabled.
Referenced by SvxTransformTabDialog::PageCreated().
|
overridevirtual |
Definition at line 876 of file transfrm.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), basegfx::fround(), SdrMarkView::GetAllMarkedRect(), GetCoreValue(), SdrPaintView::GetModel(), SdrPaintView::GetSdrPageView(), GetTopLeftPosition(), SdrModel::GetUIScale(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), SfxItemSet::InvalidateItem(), OutputDevice::LogicToLogic(), SdrPageView::LogicToPagePos(), m_xMtrHeight, m_xMtrPosX, m_xMtrPosY, m_xMtrWidth, m_xTsbAutoGrowHeight, m_xTsbAutoGrowWidth, m_xTsbPosProtect, m_xTsbSizeProtect, maAnchor, maRange, mbIgnoreAutoGrowHeight, mbIgnoreAutoGrowWidth, mbPageDisabled, mePoolUnit, meRP, mpView, and SfxItemSet::Put().
Referenced by DeactivatePage().
|
overridevirtual |
Definition at line 1555 of file transfrm.cxx.
References aStr, and m_xCbxScale.
|
inlinestatic |
Definition at line 135 of file transfrm.hxx.
References pPosSizeRanges.
Referenced by SvxCaptionTabDialog::SvxCaptionTabDialog(), and SvxTransformTabDialog::SvxTransformTabDialog().
|
private |
Definition at line 1358 of file transfrm.cxx.
References SvxRectCtl::GetActualRP(), basegfx::B2DRange::getCenter(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), and m_aCtlPos.
Referenced by DeactivatePage(), and FillItemSet().
|
overridevirtual |
Implements SvxTabPage.
Definition at line 1413 of file transfrm.cxx.
References basegfx::fround64(), basegfx::B2DRange::getCenter(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), m_aCtlPos, m_xMtrPosX, m_xMtrPosY, maRange, meRP, and SetMinMaxPosition().
|
overridevirtual |
Definition at line 999 of file transfrm.cxx.
References aStr, basegfx::fround(), GetItem(), SdrPaintView::GetModel(), SdrModel::GetUIScale(), GetValue(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), OutputDevice::LogicToLogic(), m_aCtlPos, m_xCbxScale, m_xMtrHeight, m_xMtrPosX, m_xMtrPosY, m_xMtrWidth, m_xTsbAutoGrowHeight, m_xTsbAutoGrowWidth, m_xTsbPosProtect, m_xTsbSizeProtect, maAnchor, mbPageDisabled, mePoolUnit, mfOldHeight, mfOldWidth, mpView, mrOutAttrs, SvxRectCtl::Reset(), and SetMetricValue().
|
private |
Definition at line 1197 of file transfrm.cxx.
References vcl::ConvertValue(), basegfx::fround64(), SvxRectCtl::GetActualRP(), basegfx::B2DRange::getCenter(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), m_aCtlPos, m_aCtlSize, m_xMtrHeight, m_xMtrPosX, m_xMtrPosY, m_xMtrWidth, maRange, maWorkRange, and meDlgUnit.
Referenced by ActivatePage(), Construct(), and PointChanged().
|
inline |
Definition at line 146 of file transfrm.hxx.
References mpView.
Referenced by SvxTransformTabDialog::PageCreated().
void SvxPositionSizeTabPage::UpdateControlStates | ( | ) |
Definition at line 1148 of file transfrm.cxx.
References m_aCtlPos, m_aCtlSize, m_xCbxScale, m_xCtlSize, m_xFlAdjust, m_xFlPosition, m_xFlProtect, m_xFlSize, m_xFtHeight, m_xFtWidth, m_xMtrHeight, m_xMtrWidth, m_xTsbAutoGrowHeight, m_xTsbAutoGrowWidth, m_xTsbPosProtect, m_xTsbSizeProtect, mbAdjustDisabled, mbIgnoreAutoGrowHeight, mbIgnoreAutoGrowWidth, mbPageDisabled, mbProtectDisabled, mbSizeDisabled, and TRISTATE_TRUE.
Referenced by SvxTransformTabDialog::PageCreated().
|
private |
Definition at line 91 of file transfrm.hxx.
Referenced by GetTopLeftPosition(), PointChanged(), Reset(), SetMinMaxPosition(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 92 of file transfrm.hxx.
Referenced by SetMinMaxPosition(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 106 of file transfrm.hxx.
Referenced by FillUserData(), Reset(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 98 of file transfrm.hxx.
|
private |
Definition at line 107 of file transfrm.hxx.
Referenced by UpdateControlStates().
|
private |
Definition at line 115 of file transfrm.hxx.
Referenced by Construct(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 95 of file transfrm.hxx.
Referenced by UpdateControlStates().
|
private |
Definition at line 110 of file transfrm.hxx.
Referenced by UpdateControlStates().
|
private |
Definition at line 101 of file transfrm.hxx.
Referenced by UpdateControlStates().
|
private |
Definition at line 104 of file transfrm.hxx.
Referenced by UpdateControlStates().
|
private |
Definition at line 102 of file transfrm.hxx.
Referenced by UpdateControlStates().
|
private |
Definition at line 105 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), Reset(), SetMinMaxPosition(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 96 of file transfrm.hxx.
Referenced by Construct(), DeactivatePage(), FillItemSet(), PointChanged(), Reset(), and SetMinMaxPosition().
|
private |
Definition at line 97 of file transfrm.hxx.
Referenced by Construct(), DeactivatePage(), FillItemSet(), PointChanged(), Reset(), and SetMinMaxPosition().
|
private |
Definition at line 103 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), Reset(), SetMinMaxPosition(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 117 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), Reset(), and UpdateControlStates().
|
private |
Definition at line 116 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), Reset(), and UpdateControlStates().
|
private |
Definition at line 111 of file transfrm.hxx.
Referenced by DeactivatePage(), FillItemSet(), Reset(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 112 of file transfrm.hxx.
Referenced by DeactivatePage(), FillItemSet(), Reset(), SvxPositionSizeTabPage(), and UpdateControlStates().
|
private |
Definition at line 73 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), and Reset().
|
private |
Definition at line 71 of file transfrm.hxx.
Referenced by ActivatePage(), Construct(), DeactivatePage(), FillItemSet(), PointChanged(), and SetMinMaxPosition().
|
private |
Definition at line 72 of file transfrm.hxx.
Referenced by Construct(), and SetMinMaxPosition().
|
private |
Definition at line 81 of file transfrm.hxx.
Referenced by Construct(), and UpdateControlStates().
|
private |
Definition at line 83 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), and UpdateControlStates().
|
private |
Definition at line 82 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), and UpdateControlStates().
|
private |
Definition at line 78 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), Reset(), and UpdateControlStates().
|
private |
Definition at line 79 of file transfrm.hxx.
Referenced by DisableProtect(), and UpdateControlStates().
|
private |
Definition at line 80 of file transfrm.hxx.
Referenced by DisableResize(), and UpdateControlStates().
|
private |
Definition at line 76 of file transfrm.hxx.
Referenced by Construct(), and SetMinMaxPosition().
|
private |
Definition at line 75 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), Reset(), and SvxPositionSizeTabPage().
|
private |
Definition at line 89 of file transfrm.hxx.
Referenced by FillItemSet(), PointChanged(), and SvxPositionSizeTabPage().
|
private |
Definition at line 88 of file transfrm.hxx.
Referenced by Reset().
|
private |
Definition at line 87 of file transfrm.hxx.
Referenced by Reset().
|
private |
Definition at line 77 of file transfrm.hxx.
|
private |
Definition at line 68 of file transfrm.hxx.
Referenced by Construct(), FillItemSet(), Reset(), and SetView().
|
private |
Definition at line 66 of file transfrm.hxx.
Referenced by Reset(), and SvxPositionSizeTabPage().
|
staticprivate |
Definition at line 63 of file transfrm.hxx.
Referenced by GetRanges().