LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SvxGrfCropPage Class Reference

#include <grfpage.hxx>

Inheritance diagram for SvxGrfCropPage:
[legend]
Collaboration diagram for SvxGrfCropPage:
[legend]

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 SfxItemSetGetItemSet () 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 SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (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)
 

Private Attributes

OUString m_aGraphicName
 
Size m_aOrigSize
 
Size m_aOrigPixelSize
 
Size m_aPageSize
 
tools::Long m_nOldWidth
 
tools::Long m_nOldHeight
 
bool m_bSetOrigSize
 
sal_Int32 m_aPreferredDPI
 
SvxCropExample m_aExampleWN
 
std::unique_ptr< weld::Widgetm_xCropFrame
 
std::unique_ptr< weld::RadioButtonm_xZoomConstRB
 
std::unique_ptr< weld::RadioButtonm_xSizeConstRB
 
std::unique_ptr< weld::MetricSpinButtonm_xLeftMF
 
std::unique_ptr< weld::MetricSpinButtonm_xRightMF
 
std::unique_ptr< weld::MetricSpinButtonm_xTopMF
 
std::unique_ptr< weld::MetricSpinButtonm_xBottomMF
 
std::unique_ptr< weld::Widgetm_xScaleFrame
 
std::unique_ptr< weld::MetricSpinButtonm_xWidthZoomMF
 
std::unique_ptr< weld::MetricSpinButtonm_xHeightZoomMF
 
std::unique_ptr< weld::Widgetm_xSizeFrame
 
std::unique_ptr< weld::MetricSpinButtonm_xWidthMF
 
std::unique_ptr< weld::MetricSpinButtonm_xHeightMF
 
std::unique_ptr< weld::Widgetm_xOrigSizeGrid
 
std::unique_ptr< weld::Labelm_xOrigSizeFT
 
std::unique_ptr< weld::Buttonm_xOrigSizePB
 
std::unique_ptr< weld::CustomWeldm_xExampleWN
 

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 SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Detailed Description

Definition at line 48 of file grfpage.hxx.

Constructor & Destructor Documentation

◆ SvxGrfCropPage()

SvxGrfCropPage::SvxGrfCropPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)

◆ ~SvxGrfCropPage()

SvxGrfCropPage::~SvxGrfCropPage ( )
overridevirtual

Definition at line 109 of file grfpage.cxx.

References m_xExampleWN.

Member Function Documentation

◆ ActivatePage()

void SvxGrfCropPage::ActivatePage ( const SfxItemSet rSet)
overrideprivatevirtual

◆ CalcMinMaxBorder()

void SvxGrfCropPage::CalcMinMaxBorder ( )
private

◆ CalcZoom()

void SvxGrfCropPage::CalcZoom ( )
private

◆ Create()

std::unique_ptr< SfxTabPage > SvxGrfCropPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static

Definition at line 114 of file grfpage.cxx.

References rSet.

Referenced by AbstractDialogFactory_Impl::GetTabPageCreatorFunc().

◆ DeactivatePage()

DeactivateRC SvxGrfCropPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 347 of file grfpage.cxx.

References FillItemSet().

◆ DECL_LINK() [1/4]

SvxGrfCropPage::DECL_LINK ( CropModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [2/4]

SvxGrfCropPage::DECL_LINK ( OrigSizeHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/4]

SvxGrfCropPage::DECL_LINK ( SizeHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [4/4]

SvxGrfCropPage::DECL_LINK ( ZoomHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ FillItemSet()

bool SvxGrfCropPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

◆ GetGrfOrigSize()

Size SvxGrfCropPage::GetGrfOrigSize ( const Graphic rGraphic)
private

◆ GraphicHasChanged()

void SvxGrfCropPage::GraphicHasChanged ( bool  bFound)
private

◆ Reset()

void SvxGrfCropPage::Reset ( const SfxItemSet rSet)
overridevirtual

Friends And Related Function Documentation

◆ VclPtr< SvxGrfCropPage >

friend class VclPtr< SvxGrfCropPage >
friend

Definition at line 45 of file grfpage.hxx.

Member Data Documentation

◆ m_aExampleWN

SvxCropExample SvxGrfCropPage::m_aExampleWN
private

Definition at line 61 of file grfpage.hxx.

Referenced by ActivatePage(), GraphicHasChanged(), and Reset().

◆ m_aGraphicName

OUString SvxGrfCropPage::m_aGraphicName
private

Definition at line 52 of file grfpage.hxx.

Referenced by ActivatePage(), and Reset().

◆ m_aOrigPixelSize

Size SvxGrfCropPage::m_aOrigPixelSize
private

Definition at line 54 of file grfpage.hxx.

Referenced by ActivatePage(), GraphicHasChanged(), and Reset().

◆ m_aOrigSize

Size SvxGrfCropPage::m_aOrigSize
private

Definition at line 53 of file grfpage.hxx.

Referenced by ActivatePage(), CalcMinMaxBorder(), CalcZoom(), GraphicHasChanged(), and Reset().

◆ m_aPageSize

Size SvxGrfCropPage::m_aPageSize
private

Definition at line 55 of file grfpage.hxx.

Referenced by Reset().

◆ m_aPreferredDPI

sal_Int32 SvxGrfCropPage::m_aPreferredDPI
private

Definition at line 59 of file grfpage.hxx.

Referenced by ActivatePage(), and GetGrfOrigSize().

◆ m_bSetOrigSize

bool SvxGrfCropPage::m_bSetOrigSize
private

Definition at line 58 of file grfpage.hxx.

Referenced by ActivatePage(), and FillItemSet().

◆ m_nOldHeight

tools::Long SvxGrfCropPage::m_nOldHeight
private

Definition at line 57 of file grfpage.hxx.

Referenced by ActivatePage().

◆ m_nOldWidth

tools::Long SvxGrfCropPage::m_nOldWidth
private

Definition at line 56 of file grfpage.hxx.

Referenced by ActivatePage().

◆ m_xBottomMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xBottomMF
private

◆ m_xCropFrame

std::unique_ptr<weld::Widget> SvxGrfCropPage::m_xCropFrame
private

Definition at line 63 of file grfpage.hxx.

Referenced by GraphicHasChanged().

◆ m_xExampleWN

std::unique_ptr<weld::CustomWeld> SvxGrfCropPage::m_xExampleWN
private

Definition at line 84 of file grfpage.hxx.

Referenced by ~SvxGrfCropPage().

◆ m_xHeightMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xHeightMF
private

Definition at line 77 of file grfpage.hxx.

Referenced by ActivatePage(), CalcZoom(), FillItemSet(), Reset(), and SvxGrfCropPage().

◆ m_xHeightZoomMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xHeightZoomMF
private

Definition at line 73 of file grfpage.hxx.

Referenced by CalcZoom(), and SvxGrfCropPage().

◆ m_xLeftMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xLeftMF
private

◆ m_xOrigSizeFT

std::unique_ptr<weld::Label> SvxGrfCropPage::m_xOrigSizeFT
private

Definition at line 80 of file grfpage.hxx.

Referenced by GraphicHasChanged().

◆ m_xOrigSizeGrid

std::unique_ptr<weld::Widget> SvxGrfCropPage::m_xOrigSizeGrid
private

Definition at line 79 of file grfpage.hxx.

Referenced by GraphicHasChanged().

◆ m_xOrigSizePB

std::unique_ptr<weld::Button> SvxGrfCropPage::m_xOrigSizePB
private

Definition at line 81 of file grfpage.hxx.

Referenced by SvxGrfCropPage().

◆ m_xRightMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xRightMF
private

◆ m_xScaleFrame

std::unique_ptr<weld::Widget> SvxGrfCropPage::m_xScaleFrame
private

Definition at line 71 of file grfpage.hxx.

Referenced by GraphicHasChanged().

◆ m_xSizeConstRB

std::unique_ptr<weld::RadioButton> SvxGrfCropPage::m_xSizeConstRB
private

Definition at line 65 of file grfpage.hxx.

Referenced by Reset().

◆ m_xSizeFrame

std::unique_ptr<weld::Widget> SvxGrfCropPage::m_xSizeFrame
private

Definition at line 75 of file grfpage.hxx.

Referenced by GraphicHasChanged().

◆ m_xTopMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xTopMF
private

◆ m_xWidthMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xWidthMF
private

◆ m_xWidthZoomMF

std::unique_ptr<weld::MetricSpinButton> SvxGrfCropPage::m_xWidthZoomMF
private

Definition at line 72 of file grfpage.hxx.

Referenced by CalcZoom(), and SvxGrfCropPage().

◆ m_xZoomConstRB

std::unique_ptr<weld::RadioButton> SvxGrfCropPage::m_xZoomConstRB
private

Definition at line 64 of file grfpage.hxx.

Referenced by FillItemSet(), GraphicHasChanged(), and Reset().


The documentation for this class was generated from the following files: