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

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
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
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
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, 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

 SvxGrfCropPage (TabPageParent pParent, const SfxItemSet &rSet)
 
virtual ~SvxGrfCropPage () override
 
virtual void dispose () override
 
 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 &) const
 

Private Attributes

OUString aGraphicName
 
Size aOrigSize
 
Size aOrigPixelSize
 
Size aPageSize
 
long nOldWidth
 
long nOldHeight
 
bool bSetOrigSize
 
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 (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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
 
- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 49 of file grfpage.hxx.

Constructor & Destructor Documentation

SvxGrfCropPage::SvxGrfCropPage ( TabPageParent  pParent,
const SfxItemSet rSet 
)
private
SvxGrfCropPage::~SvxGrfCropPage ( )
overrideprivatevirtual

Definition at line 103 of file grfpage.cxx.

Member Function Documentation

void SvxGrfCropPage::ActivatePage ( const SfxItemSet rSet)
overrideprivatevirtual
void SvxGrfCropPage::CalcMinMaxBorder ( )
private
void SvxGrfCropPage::CalcZoom ( )
private
VclPtr< SfxTabPage > SvxGrfCropPage::Create ( TabPageParent  pParent,
const SfxItemSet rSet 
)
static
DeactivateRC SvxGrfCropPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 346 of file grfpage.cxx.

References FillItemSet().

SvxGrfCropPage::DECL_LINK ( ZoomHdl  ,
weld::MetricSpinButton ,
void   
)
private
SvxGrfCropPage::DECL_LINK ( SizeHdl  ,
weld::MetricSpinButton ,
void   
)
private
SvxGrfCropPage::DECL_LINK ( CropModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private
SvxGrfCropPage::DECL_LINK ( OrigSizeHdl  ,
weld::Button ,
void   
)
private
void SvxGrfCropPage::dispose ( void  )
overrideprivatevirtual

Reimplemented from SfxTabPage.

Definition at line 108 of file grfpage.cxx.

References SfxTabPage::dispose(), and m_xExampleWN.

bool SvxGrfCropPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
Size SvxGrfCropPage::GetGrfOrigSize ( const Graphic rGrf) const
private
void SvxGrfCropPage::GraphicHasChanged ( bool  bFound)
private
void SvxGrfCropPage::Reset ( const SfxItemSet rSet)
overridevirtual

Friends And Related Function Documentation

friend class VclPtr< SvxGrfCropPage >
friend

Definition at line 51 of file grfpage.hxx.

Member Data Documentation

OUString SvxGrfCropPage::aGraphicName
private

Definition at line 56 of file grfpage.hxx.

Referenced by ActivatePage(), and Reset().

Size SvxGrfCropPage::aOrigPixelSize
private

Definition at line 58 of file grfpage.hxx.

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

Size SvxGrfCropPage::aOrigSize
private

Definition at line 57 of file grfpage.hxx.

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

Size SvxGrfCropPage::aPageSize
private

Definition at line 59 of file grfpage.hxx.

Referenced by Reset().

bool SvxGrfCropPage::bSetOrigSize
private

Definition at line 62 of file grfpage.hxx.

Referenced by ActivatePage(), and FillItemSet().

SvxCropExample SvxGrfCropPage::m_aExampleWN
private

Definition at line 64 of file grfpage.hxx.

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

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

Definition at line 66 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 87 of file grfpage.hxx.

Referenced by dispose().

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

Definition at line 80 of file grfpage.hxx.

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

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

Definition at line 76 of file grfpage.hxx.

Referenced by CalcZoom(), and SvxGrfCropPage().

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

Definition at line 83 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 82 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 84 of file grfpage.hxx.

Referenced by SvxGrfCropPage().

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

Definition at line 74 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 68 of file grfpage.hxx.

Referenced by Reset().

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

Definition at line 78 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 75 of file grfpage.hxx.

Referenced by CalcZoom(), and SvxGrfCropPage().

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

Definition at line 67 of file grfpage.hxx.

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

long SvxGrfCropPage::nOldHeight
private

Definition at line 61 of file grfpage.hxx.

Referenced by ActivatePage().

long SvxGrfCropPage::nOldWidth
private

Definition at line 60 of file grfpage.hxx.

Referenced by ActivatePage().


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