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

#include <swpossizetabpage.hxx>

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

Public Member Functions

 SvxSwPosSizeTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
 
virtual ~SvxSwPosSizeTabPage () override
 
virtual bool FillItemSet (SfxItemSet *) override
 
virtual void Reset (const SfxItemSet *) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
void EnableAnchorTypes (SvxAnchorIds nAnchorEnable)
 
void SetValidateFramePosLink (const Link< SvxSwFrameValidation &, void > &rLink)
 
void SetView (const SdrView *pSdrView)
 
- 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 ()
 
virtual void ActivatePage (const SfxItemSet &)
 
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 *)
 
static const sal_uInt16 * GetRanges ()
 
- 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 (RangeModifyHdl, weld::Widget &, void)
 
 DECL_LINK (RangeModifyClickHdl, weld::ToggleButton &, void)
 
 DECL_LINK (AnchorTypeHdl, weld::ToggleButton &, void)
 
 DECL_LINK (PosHdl, weld::ComboBox &, void)
 
 DECL_LINK (RelHdl, weld::ComboBox &, void)
 
 DECL_LINK (MirrorHdl, weld::ToggleButton &, void)
 
 DECL_LINK (ModifyHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (ProtectHdl, weld::ToggleButton &, void)
 
void InitPos (RndStdIds nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel, sal_uInt16 nV, sal_uInt16 nVRel, long nX, long nY)
 
RndStdIds GetAnchorType (bool *pbHasChanged=nullptr)
 
void FillRelLB (FrmMap const *pMap, sal_uInt16 nLBSelPos, sal_uInt16 nAlign, sal_uInt16 nRel, weld::ComboBox &rLB, weld::Label &rFT)
 
sal_uInt16 FillPosLB (FrmMap const *pMap, sal_uInt16 nAlign, const sal_uInt16 _nRel, weld::ComboBox &rLB)
 
void UpdateExample ()
 
void setOptimalFrmWidth ()
 
void setOptimalRelWidth ()
 

Static Private Member Functions

static sal_uInt16 GetMapPos (FrmMap const *pMap, const weld::ComboBox &rAlignLB)
 
static short GetAlignment (FrmMap const *pMap, sal_uInt16 nMapPos, const weld::ComboBox &rRelationLB)
 
static short GetRelation (const weld::ComboBox &rRelationLB)
 

Private Attributes

Link< SvxSwFrameValidation &, voidm_aValidateLink
 
::tools::Rectangle m_aRect
 
::tools::Rectangle m_aWorkArea
 
Point m_aAnchorPos
 
FrmMap const * m_pVMap
 
FrmMap const * m_pHMap
 
const SdrViewm_pSdrView
 
short m_nOldH
 
short m_nOldHRel
 
short m_nOldV
 
short m_nOldVRel
 
double m_fWidthHeightRatio
 
bool m_bHtmlMode
 
bool m_bIsVerticalFrame
 
bool m_bPositioningDisabled
 
bool m_bIsMultiSelection
 
bool m_bIsInRightToLeft
 
TriState m_nProtectSizeState
 
SwFrameExample m_aExampleWN
 
std::unique_ptr< weld::MetricSpinButtonm_xWidthMF
 
std::unique_ptr< weld::MetricSpinButtonm_xHeightMF
 
std::unique_ptr< weld::CheckButtonm_xKeepRatioCB
 
std::unique_ptr< weld::RadioButtonm_xToPageRB
 
std::unique_ptr< weld::RadioButtonm_xToParaRB
 
std::unique_ptr< weld::RadioButtonm_xToCharRB
 
std::unique_ptr< weld::RadioButtonm_xAsCharRB
 
std::unique_ptr< weld::RadioButtonm_xToFrameRB
 
std::unique_ptr< weld::CheckButtonm_xPositionCB
 
std::unique_ptr< weld::CheckButtonm_xSizeCB
 
std::unique_ptr< weld::Widgetm_xPosFrame
 
std::unique_ptr< weld::Labelm_xHoriFT
 
std::unique_ptr< weld::ComboBoxm_xHoriLB
 
std::unique_ptr< weld::Labelm_xHoriByFT
 
std::unique_ptr< weld::MetricSpinButtonm_xHoriByMF
 
std::unique_ptr< weld::Labelm_xHoriToFT
 
std::unique_ptr< weld::ComboBoxm_xHoriToLB
 
std::unique_ptr< weld::CheckButtonm_xHoriMirrorCB
 
std::unique_ptr< weld::Labelm_xVertFT
 
std::unique_ptr< weld::ComboBoxm_xVertLB
 
std::unique_ptr< weld::Labelm_xVertByFT
 
std::unique_ptr< weld::MetricSpinButtonm_xVertByMF
 
std::unique_ptr< weld::Labelm_xVertToFT
 
std::unique_ptr< weld::ComboBoxm_xVertToLB
 
std::unique_ptr< weld::CheckButtonm_xFollowCB
 
std::unique_ptr< weld::CustomWeldm_xExampleWN
 

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 32 of file swpossizetabpage.hxx.

Constructor & Destructor Documentation

SvxSwPosSizeTabPage::SvxSwPosSizeTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rInAttrs 
)
SvxSwPosSizeTabPage::~SvxSwPosSizeTabPage ( )
overridevirtual

Definition at line 598 of file swpossizetabpage.cxx.

References m_xHeightMF, m_xHoriByMF, m_xVertByMF, and m_xWidthMF.

Member Function Documentation

std::unique_ptr< SfxTabPage > SvxSwPosSizeTabPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static
DeactivateRC SvxSwPosSizeTabPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1052 of file swpossizetabpage.cxx.

References FillItemSet(), SfxTabPage::GetWhich(), m_xPositionCB, m_xSizeCB, and SfxItemSet::Put().

SvxSwPosSizeTabPage::DECL_LINK ( RangeModifyHdl  ,
weld::Widget ,
void   
)
private
SvxSwPosSizeTabPage::DECL_LINK ( RangeModifyClickHdl  ,
weld::ToggleButton ,
void   
)
private
SvxSwPosSizeTabPage::DECL_LINK ( AnchorTypeHdl  ,
weld::ToggleButton ,
void   
)
private
SvxSwPosSizeTabPage::DECL_LINK ( PosHdl  ,
weld::ComboBox ,
void   
)
private
SvxSwPosSizeTabPage::DECL_LINK ( RelHdl  ,
weld::ComboBox ,
void   
)
private
SvxSwPosSizeTabPage::DECL_LINK ( MirrorHdl  ,
weld::ToggleButton ,
void   
)
private
SvxSwPosSizeTabPage::DECL_LINK ( ModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private
SvxSwPosSizeTabPage::DECL_LINK ( ProtectHdl  ,
weld::ToggleButton ,
void   
)
private
void SvxSwPosSizeTabPage::EnableAnchorTypes ( SvxAnchorIds  nAnchorEnable)
bool SvxSwPosSizeTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
sal_uInt16 SvxSwPosSizeTabPage::FillPosLB ( FrmMap const *  pMap,
sal_uInt16  nAlign,
const sal_uInt16  _nRel,
weld::ComboBox rLB 
)
private
void SvxSwPosSizeTabPage::FillRelLB ( FrmMap const *  pMap,
sal_uInt16  nLBSelPos,
sal_uInt16  nAlign,
sal_uInt16  nRel,
weld::ComboBox rLB,
weld::Label rFT 
)
private
short SvxSwPosSizeTabPage::GetAlignment ( FrmMap const *  pMap,
sal_uInt16  nMapPos,
const weld::ComboBox rRelationLB 
)
staticprivate
RndStdIds SvxSwPosSizeTabPage::GetAnchorType ( bool *  pbHasChanged = nullptr)
private
sal_uInt16 SvxSwPosSizeTabPage::GetMapPos ( FrmMap const *  pMap,
const weld::ComboBox rAlignLB 
)
staticprivate
const sal_uInt16 * SvxSwPosSizeTabPage::GetRanges ( )
static
short SvxSwPosSizeTabPage::GetRelation ( const weld::ComboBox rRelationLB)
staticprivate
void SvxSwPosSizeTabPage::InitPos ( RndStdIds  nAnchorType,
sal_uInt16  nH,
sal_uInt16  nHRel,
sal_uInt16  nV,
sal_uInt16  nVRel,
long  nX,
long  nY 
)
private
void SvxSwPosSizeTabPage::Reset ( const SfxItemSet rSet)
overridevirtual
void SvxSwPosSizeTabPage::setOptimalFrmWidth ( )
private
void SvxSwPosSizeTabPage::setOptimalRelWidth ( )
private
void SvxSwPosSizeTabPage::SetValidateFramePosLink ( const Link< SvxSwFrameValidation &, void > &  rLink)
inline
void SvxSwPosSizeTabPage::SetView ( const SdrView pSdrView)
void SvxSwPosSizeTabPage::UpdateExample ( )
private

Member Data Documentation

Point SvxSwPosSizeTabPage::m_aAnchorPos
private

Definition at line 38 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), and SetView().

SwFrameExample SvxSwPosSizeTabPage::m_aExampleWN
private

Definition at line 58 of file swpossizetabpage.hxx.

Referenced by UpdateExample().

::tools::Rectangle SvxSwPosSizeTabPage::m_aRect
private

Definition at line 36 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), InitPos(), and SetView().

Link<SvxSwFrameValidation&,void> SvxSwPosSizeTabPage::m_aValidateLink
private

Definition at line 34 of file swpossizetabpage.hxx.

::tools::Rectangle SvxSwPosSizeTabPage::m_aWorkArea
private

Definition at line 37 of file swpossizetabpage.hxx.

Referenced by SetView().

bool SvxSwPosSizeTabPage::m_bHtmlMode
private

Definition at line 51 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

bool SvxSwPosSizeTabPage::m_bIsInRightToLeft
private

Definition at line 55 of file swpossizetabpage.hxx.

Referenced by FillPosLB(), FillRelLB(), and Reset().

bool SvxSwPosSizeTabPage::m_bIsMultiSelection
private

Definition at line 54 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), InitPos(), Reset(), and SetView().

bool SvxSwPosSizeTabPage::m_bIsVerticalFrame
private

Definition at line 52 of file swpossizetabpage.hxx.

Referenced by FillPosLB(), FillRelLB(), and Reset().

bool SvxSwPosSizeTabPage::m_bPositioningDisabled
private

Definition at line 53 of file swpossizetabpage.hxx.

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

double SvxSwPosSizeTabPage::m_fWidthHeightRatio
private

Definition at line 50 of file swpossizetabpage.hxx.

Referenced by Reset().

short SvxSwPosSizeTabPage::m_nOldH
private

Definition at line 45 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

short SvxSwPosSizeTabPage::m_nOldHRel
private

Definition at line 46 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

short SvxSwPosSizeTabPage::m_nOldV
private

Definition at line 47 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

short SvxSwPosSizeTabPage::m_nOldVRel
private

Definition at line 48 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

TriState SvxSwPosSizeTabPage::m_nProtectSizeState
private

Definition at line 56 of file swpossizetabpage.hxx.

FrmMap const* SvxSwPosSizeTabPage::m_pHMap
private

Definition at line 41 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), InitPos(), and UpdateExample().

const SdrView* SvxSwPosSizeTabPage::m_pSdrView
private

Definition at line 42 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), and SetView().

FrmMap const* SvxSwPosSizeTabPage::m_pVMap
private

Definition at line 40 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), InitPos(), and UpdateExample().

std::unique_ptr<weld::RadioButton> SvxSwPosSizeTabPage::m_xAsCharRB
private

Definition at line 66 of file swpossizetabpage.hxx.

Referenced by GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().

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

Definition at line 85 of file swpossizetabpage.hxx.

std::unique_ptr<weld::CheckButton> SvxSwPosSizeTabPage::m_xFollowCB
private

Definition at line 84 of file swpossizetabpage.hxx.

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

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

Definition at line 61 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), Reset(), SvxSwPosSizeTabPage(), and ~SvxSwPosSizeTabPage().

std::unique_ptr<weld::Label> SvxSwPosSizeTabPage::m_xHoriByFT
private

Definition at line 73 of file swpossizetabpage.hxx.

Referenced by InitPos().

std::unique_ptr<weld::MetricSpinButton> SvxSwPosSizeTabPage::m_xHoriByMF
private
std::unique_ptr<weld::Label> SvxSwPosSizeTabPage::m_xHoriFT
private

Definition at line 71 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

std::unique_ptr<weld::ComboBox> SvxSwPosSizeTabPage::m_xHoriLB
private
std::unique_ptr<weld::CheckButton> SvxSwPosSizeTabPage::m_xHoriMirrorCB
private

Definition at line 77 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), FillPosLB(), FillRelLB(), Reset(), and SvxSwPosSizeTabPage().

std::unique_ptr<weld::Label> SvxSwPosSizeTabPage::m_xHoriToFT
private

Definition at line 75 of file swpossizetabpage.hxx.

Referenced by InitPos().

std::unique_ptr<weld::ComboBox> SvxSwPosSizeTabPage::m_xHoriToLB
private

Definition at line 76 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), InitPos(), SvxSwPosSizeTabPage(), and UpdateExample().

std::unique_ptr<weld::CheckButton> SvxSwPosSizeTabPage::m_xKeepRatioCB
private

Definition at line 62 of file swpossizetabpage.hxx.

Referenced by Reset().

std::unique_ptr<weld::Widget> SvxSwPosSizeTabPage::m_xPosFrame
private

Definition at line 70 of file swpossizetabpage.hxx.

Referenced by SetView().

std::unique_ptr<weld::CheckButton> SvxSwPosSizeTabPage::m_xPositionCB
private

Definition at line 68 of file swpossizetabpage.hxx.

Referenced by DeactivatePage(), FillItemSet(), Reset(), and SvxSwPosSizeTabPage().

std::unique_ptr<weld::CheckButton> SvxSwPosSizeTabPage::m_xSizeCB
private

Definition at line 69 of file swpossizetabpage.hxx.

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

std::unique_ptr<weld::RadioButton> SvxSwPosSizeTabPage::m_xToCharRB
private

Definition at line 65 of file swpossizetabpage.hxx.

Referenced by GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().

std::unique_ptr<weld::RadioButton> SvxSwPosSizeTabPage::m_xToFrameRB
private

Definition at line 67 of file swpossizetabpage.hxx.

Referenced by EnableAnchorTypes(), GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().

std::unique_ptr<weld::RadioButton> SvxSwPosSizeTabPage::m_xToPageRB
private

Definition at line 63 of file swpossizetabpage.hxx.

Referenced by EnableAnchorTypes(), GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().

std::unique_ptr<weld::RadioButton> SvxSwPosSizeTabPage::m_xToParaRB
private

Definition at line 64 of file swpossizetabpage.hxx.

Referenced by GetAnchorType(), Reset(), and SvxSwPosSizeTabPage().

std::unique_ptr<weld::Label> SvxSwPosSizeTabPage::m_xVertByFT
private

Definition at line 80 of file swpossizetabpage.hxx.

Referenced by InitPos().

std::unique_ptr<weld::MetricSpinButton> SvxSwPosSizeTabPage::m_xVertByMF
private
std::unique_ptr<weld::Label> SvxSwPosSizeTabPage::m_xVertFT
private

Definition at line 78 of file swpossizetabpage.hxx.

Referenced by Reset().

std::unique_ptr<weld::ComboBox> SvxSwPosSizeTabPage::m_xVertLB
private
std::unique_ptr<weld::Label> SvxSwPosSizeTabPage::m_xVertToFT
private

Definition at line 82 of file swpossizetabpage.hxx.

Referenced by InitPos().

std::unique_ptr<weld::ComboBox> SvxSwPosSizeTabPage::m_xVertToLB
private

Definition at line 83 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), InitPos(), SvxSwPosSizeTabPage(), and UpdateExample().

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

Definition at line 60 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), Reset(), SvxSwPosSizeTabPage(), and ~SvxSwPosSizeTabPage().


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