LibreOffice Module cui (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static 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
 
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 GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

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
 

Static Private Member Functions

static Size GetGrfOrigSize (const Graphic &)
 

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 (weld::Container *pPage, weld::DialogController *pController, 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
 

Detailed Description

Definition at line 49 of file grfpage.hxx.

Constructor & Destructor Documentation

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

Definition at line 104 of file grfpage.cxx.

References m_xExampleWN.

Member Function Documentation

void SvxGrfCropPage::ActivatePage ( const SfxItemSet rSet)
overrideprivatevirtual
void SvxGrfCropPage::CalcMinMaxBorder ( )
private
void SvxGrfCropPage::CalcZoom ( )
private
std::unique_ptr< SfxTabPage > SvxGrfCropPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static

Definition at line 109 of file grfpage.cxx.

Referenced by AbstractDialogFactory_Impl::GetTabPageCreatorFunc().

DeactivateRC SvxGrfCropPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 341 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
bool SvxGrfCropPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
Size SvxGrfCropPage::GetGrfOrigSize ( const Graphic rGrf)
staticprivate
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 53 of file grfpage.hxx.

Referenced by ActivatePage(), and Reset().

Size SvxGrfCropPage::aOrigPixelSize
private

Definition at line 55 of file grfpage.hxx.

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

Size SvxGrfCropPage::aOrigSize
private

Definition at line 54 of file grfpage.hxx.

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

Size SvxGrfCropPage::aPageSize
private

Definition at line 56 of file grfpage.hxx.

Referenced by Reset().

bool SvxGrfCropPage::bSetOrigSize
private

Definition at line 59 of file grfpage.hxx.

Referenced by ActivatePage(), and FillItemSet().

SvxCropExample SvxGrfCropPage::m_aExampleWN
private

Definition at line 61 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 63 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 84 of file grfpage.hxx.

Referenced by ~SvxGrfCropPage().

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().

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

Definition at line 73 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 80 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 79 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 81 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 71 of file grfpage.hxx.

Referenced by GraphicHasChanged().

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

Definition at line 65 of file grfpage.hxx.

Referenced by Reset().

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

Definition at line 75 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 72 of file grfpage.hxx.

Referenced by CalcZoom(), and SvxGrfCropPage().

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

Definition at line 64 of file grfpage.hxx.

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

long SvxGrfCropPage::nOldHeight
private

Definition at line 58 of file grfpage.hxx.

Referenced by ActivatePage().

long SvxGrfCropPage::nOldWidth
private

Definition at line 57 of file grfpage.hxx.

Referenced by ActivatePage().


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