LibreOffice Module cui (master) 1
|
#include <grfpage.hxx>
Public Member Functions | |
SvxGrfCropPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet) | |
virtual | ~SvxGrfCropPage () override |
virtual bool | FillItemSet (SfxItemSet *rSet) override |
virtual void | Reset (const SfxItemSet *rSet) override |
virtual DeactivateRC | DeactivatePage (SfxItemSet *pSet) override |
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 *rSet) |
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 (ZoomHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (SizeHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (CropModifyHdl, weld::MetricSpinButton &, void) | |
DECL_LINK (OrigSizeHdl, weld::Button &, void) | |
void | CalcZoom () |
void | CalcMinMaxBorder () |
void | GraphicHasChanged (bool bFound) |
virtual void | ActivatePage (const SfxItemSet &rSet) override |
Size | GetGrfOrigSize (const Graphic &rGraphic) |
Friends | |
class | VclPtr< SvxGrfCropPage > |
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 48 of file grfpage.hxx.
SvxGrfCropPage::SvxGrfCropPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rSet | ||
) |
Definition at line 56 of file grfpage.cxx.
References CM, GetModuleFieldUnit(), LINK, m_xBottomMF, m_xHeightMF, m_xHeightZoomMF, m_xLeftMF, m_xOrigSizePB, m_xRightMF, m_xTopMF, m_xWidthMF, m_xWidthZoomMF, PERCENT(), rSet, SfxTabPage::SetExchangeSupport(), and SetFieldUnit().
|
overridevirtual |
Definition at line 109 of file grfpage.cxx.
References m_xExampleWN.
|
overrideprivatevirtual |
Reimplemented from SfxTabPage.
Definition at line 284 of file grfpage.cxx.
References aProperties, CalcMinMaxBorder(), CalcZoom(), DBG_ASSERT, SfxTabPage::getAdditionalProperties(), GetGrfOrigSize(), SfxItemSet::GetItem(), SfxItemSet::GetItemIfSet(), SfxTabPage::GetItemSet(), SfxItemSet::GetPool(), Graphic::GetSizePixel(), Graphic::GetType(), CntUnencodedStringItem::GetValue(), GraphicHasChanged(), Size::Height(), m_aExampleWN, m_aGraphicName, m_aOrigPixelSize, m_aOrigSize, m_aPreferredDPI, m_bSetOrigSize, m_nOldHeight, m_nOldWidth, m_xHeightMF, m_xWidthMF, rSet, SvxCropExample::SetFrameSize(), SvxCropExample::SetGraphic(), and Size::Width().
Referenced by Reset().
|
private |
Definition at line 560 of file grfpage.cxx.
References DBG_ASSERT, SfxTabPage::GetItemSet(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SfxItemPool::GetWhich(), Size::Height(), lcl_GetValue(), m_aOrigSize, m_xBottomMF, m_xLeftMF, m_xRightMF, m_xTopMF, MapToFieldUnit(), and Size::Width().
Referenced by ActivatePage(), and Reset().
|
private |
Definition at line 531 of file grfpage.cxx.
References DBG_ASSERT, SfxTabPage::GetItemSet(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SfxItemPool::GetWhich(), Size::Height(), lcl_GetValue(), m_aOrigSize, m_xBottomMF, m_xHeightMF, m_xHeightZoomMF, m_xLeftMF, m_xRightMF, m_xTopMF, m_xWidthMF, m_xWidthZoomMF, MapToFieldUnit(), and Size::Width().
Referenced by ActivatePage().
|
static |
Definition at line 114 of file grfpage.cxx.
References rSet.
Referenced by AbstractDialogFactory_Impl::GetTabPageCreatorFunc().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 347 of file grfpage.cxx.
References FillItemSet().
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 220 of file grfpage.cxx.
References Clone(), SvxSizeItem::Clone(), SfxPoolItem::Clone(), Get(), SfxItemSet::Get(), SfxTabPage::GetDialogExampleSet(), SfxItemSet::GetItemIfSet(), SfxTabPage::GetItemSet(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SfxItemPool::GetWhich(), lcl_GetValue(), m_bSetOrigSize, m_xBottomMF, m_xHeightMF, m_xLeftMF, m_xRightMF, m_xTopMF, m_xWidthMF, m_xZoomConstRB, MapToFieldUnit(), SfxItemSet::Put(), rSet, Size::setHeight(), and Size::setWidth().
Referenced by DeactivatePage().
Definition at line 675 of file grfpage.cxx.
References o3tl::convert(), Application::GetDefaultDevice(), MapMode::GetMapUnit(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), Graphic::GetSizePixel(), Size::Height(), o3tl::in, OutputDevice::LogicToLogic(), m_aPreferredDPI, OutputDevice::PixelToLogic(), o3tl::twip, and Size::Width().
Referenced by ActivatePage(), and Reset().
|
private |
Definition at line 589 of file grfpage.cxx.
References abs(), vcl::ConvertValue(), Application::CreateBuilder(), CuiResId(), DBG_ASSERT, SfxTabPage::GetFrameWeld(), SfxTabPage::GetItemSet(), SfxItemPool::GetMetric(), GetModuleFieldUnit(), SfxItemSet::GetPool(), SfxItemPool::GetWhich(), Size::Height(), o3tl::in, lcl_GetValue(), m_aExampleWN, m_aOrigPixelSize, m_aOrigSize, m_xBottomMF, m_xCropFrame, m_xLeftMF, m_xOrigSizeFT, m_xOrigSizeGrid, m_xRightMF, m_xScaleFrame, m_xSizeFrame, m_xTopMF, m_xWidthMF, m_xZoomConstRB, MapToFieldUnit(), SvxCropExample::SetBottom(), SetFieldUnit(), SvxCropExample::SetLeft(), SvxCropExample::SetRight(), SvxCropExample::SetTop(), o3tl::twip, u, and Size::Width().
Referenced by ActivatePage(), and Reset().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 119 of file grfpage.cxx.
References ActivatePage(), CalcMinMaxBorder(), CM_1_TO_TWIP, SvxGrfCrop::GetBottom(), GetGrfOrigSize(), SfxItemSet::GetItem(), SfxItemSet::GetItemIfSet(), SfxItemSet::GetItemState(), SvxGrfCrop::GetLeft(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SvxGrfCrop::GetRight(), Graphic::GetSizePixel(), SvxGrfCrop::GetTop(), Graphic::GetType(), CntUnencodedStringItem::GetValue(), GetValue(), SfxItemPool::GetWhich(), GraphicHasChanged(), Size::Height(), OutputDevice::LogicToLogic(), m_aExampleWN, m_aGraphicName, m_aOrigPixelSize, m_aOrigSize, m_aPageSize, m_xBottomMF, m_xHeightMF, m_xLeftMF, m_xRightMF, m_xSizeConstRB, m_xTopMF, m_xWidthMF, m_xZoomConstRB, MapToFieldUnit(), rSet, SvxCropExample::SetBottom(), SvxCropExample::SetFrameSize(), SvxCropExample::SetGraphic(), SvxCropExample::SetLeft(), SvxCropExample::SetRight(), SvxCropExample::SetTop(), and Size::Width().
|
friend |
Definition at line 45 of file grfpage.hxx.
|
private |
Definition at line 61 of file grfpage.hxx.
Referenced by ActivatePage(), GraphicHasChanged(), and Reset().
|
private |
Definition at line 52 of file grfpage.hxx.
Referenced by ActivatePage(), and Reset().
|
private |
Definition at line 54 of file grfpage.hxx.
Referenced by ActivatePage(), GraphicHasChanged(), and Reset().
|
private |
Definition at line 53 of file grfpage.hxx.
Referenced by ActivatePage(), CalcMinMaxBorder(), CalcZoom(), GraphicHasChanged(), and Reset().
|
private |
Definition at line 55 of file grfpage.hxx.
Referenced by Reset().
|
private |
Definition at line 59 of file grfpage.hxx.
Referenced by ActivatePage(), and GetGrfOrigSize().
|
private |
Definition at line 58 of file grfpage.hxx.
Referenced by ActivatePage(), and FillItemSet().
|
private |
Definition at line 57 of file grfpage.hxx.
Referenced by ActivatePage().
|
private |
Definition at line 56 of file grfpage.hxx.
Referenced by ActivatePage().
|
private |
Definition at line 69 of file grfpage.hxx.
Referenced by CalcMinMaxBorder(), CalcZoom(), FillItemSet(), GraphicHasChanged(), Reset(), and SvxGrfCropPage().
|
private |
Definition at line 63 of file grfpage.hxx.
Referenced by GraphicHasChanged().
|
private |
Definition at line 84 of file grfpage.hxx.
Referenced by ~SvxGrfCropPage().
|
private |
Definition at line 77 of file grfpage.hxx.
Referenced by ActivatePage(), CalcZoom(), FillItemSet(), Reset(), and SvxGrfCropPage().
|
private |
Definition at line 73 of file grfpage.hxx.
Referenced by CalcZoom(), and SvxGrfCropPage().
|
private |
Definition at line 66 of file grfpage.hxx.
Referenced by CalcMinMaxBorder(), CalcZoom(), FillItemSet(), GraphicHasChanged(), Reset(), and SvxGrfCropPage().
|
private |
Definition at line 80 of file grfpage.hxx.
Referenced by GraphicHasChanged().
|
private |
Definition at line 79 of file grfpage.hxx.
Referenced by GraphicHasChanged().
|
private |
Definition at line 81 of file grfpage.hxx.
Referenced by SvxGrfCropPage().
|
private |
Definition at line 67 of file grfpage.hxx.
Referenced by CalcMinMaxBorder(), CalcZoom(), FillItemSet(), GraphicHasChanged(), Reset(), and SvxGrfCropPage().
|
private |
Definition at line 71 of file grfpage.hxx.
Referenced by GraphicHasChanged().
|
private |
Definition at line 65 of file grfpage.hxx.
Referenced by Reset().
|
private |
Definition at line 75 of file grfpage.hxx.
Referenced by GraphicHasChanged().
|
private |
Definition at line 68 of file grfpage.hxx.
Referenced by CalcMinMaxBorder(), CalcZoom(), FillItemSet(), GraphicHasChanged(), Reset(), and SvxGrfCropPage().
|
private |
Definition at line 76 of file grfpage.hxx.
Referenced by ActivatePage(), CalcZoom(), FillItemSet(), GraphicHasChanged(), Reset(), and SvxGrfCropPage().
|
private |
Definition at line 72 of file grfpage.hxx.
Referenced by CalcZoom(), and SvxGrfCropPage().
|
private |
Definition at line 64 of file grfpage.hxx.
Referenced by FillItemSet(), GraphicHasChanged(), and Reset().