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
 
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 *)
 
static WhichRangesContainer 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::Toggleable &, void)
 
 DECL_LINK (AnchorTypeHdl, weld::Toggleable &, void)
 
 DECL_LINK (PosHdl, weld::ComboBox &, void)
 
 DECL_LINK (RelHdl, weld::ComboBox &, void)
 
 DECL_LINK (MirrorHdl, weld::Toggleable &, void)
 
 DECL_LINK (ModifyHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (ProtectHdl, weld::Toggleable &, void)
 
void InitPos (RndStdIds nAnchorType, sal_uInt16 nH, sal_uInt16 nHRel, sal_uInt16 nV, sal_uInt16 nVRel, tools::Long nX, tools::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 &, void > m_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 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 31 of file swpossizetabpage.hxx.

Constructor & Destructor Documentation

◆ SvxSwPosSizeTabPage()

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

◆ ~SvxSwPosSizeTabPage()

SvxSwPosSizeTabPage::~SvxSwPosSizeTabPage ( )
overridevirtual

Definition at line 610 of file swpossizetabpage.cxx.

References m_xHeightMF, m_xHoriByMF, m_xVertByMF, and m_xWidthMF.

Member Function Documentation

◆ Create()

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

◆ DeactivatePage()

DeactivateRC SvxSwPosSizeTabPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1049 of file swpossizetabpage.cxx.

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

◆ DECL_LINK() [1/8]

SvxSwPosSizeTabPage::DECL_LINK ( AnchorTypeHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/8]

SvxSwPosSizeTabPage::DECL_LINK ( MirrorHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/8]

SvxSwPosSizeTabPage::DECL_LINK ( ModifyHdl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [4/8]

SvxSwPosSizeTabPage::DECL_LINK ( PosHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [5/8]

SvxSwPosSizeTabPage::DECL_LINK ( ProtectHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [6/8]

SvxSwPosSizeTabPage::DECL_LINK ( RangeModifyClickHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [7/8]

SvxSwPosSizeTabPage::DECL_LINK ( RangeModifyHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [8/8]

SvxSwPosSizeTabPage::DECL_LINK ( RelHdl  ,
weld::ComboBox ,
void   
)
private

◆ EnableAnchorTypes()

void SvxSwPosSizeTabPage::EnableAnchorTypes ( SvxAnchorIds  nAnchorEnable)

◆ FillItemSet()

bool SvxSwPosSizeTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

◆ FillPosLB()

sal_uInt16 SvxSwPosSizeTabPage::FillPosLB ( FrmMap const *  pMap,
sal_uInt16  nAlign,
const sal_uInt16  _nRel,
weld::ComboBox rLB 
)
private

◆ FillRelLB()

void SvxSwPosSizeTabPage::FillRelLB ( FrmMap const *  pMap,
sal_uInt16  nLBSelPos,
sal_uInt16  nAlign,
sal_uInt16  nRel,
weld::ComboBox rLB,
weld::Label rFT 
)
private

◆ GetAlignment()

short SvxSwPosSizeTabPage::GetAlignment ( FrmMap const *  pMap,
sal_uInt16  nMapPos,
const weld::ComboBox rRelationLB 
)
staticprivate

◆ GetAnchorType()

RndStdIds SvxSwPosSizeTabPage::GetAnchorType ( bool *  pbHasChanged = nullptr)
private

◆ GetMapPos()

sal_uInt16 SvxSwPosSizeTabPage::GetMapPos ( FrmMap const *  pMap,
const weld::ComboBox rAlignLB 
)
staticprivate

◆ GetRanges()

WhichRangesContainer SvxSwPosSizeTabPage::GetRanges ( )
static

◆ GetRelation()

short SvxSwPosSizeTabPage::GetRelation ( const weld::ComboBox rRelationLB)
staticprivate

Definition at line 1369 of file swpossizetabpage.cxx.

References weld::ComboBox::get_active(), weld::ComboBox::get_id(), and nPos.

Referenced by FillItemSet(), and UpdateExample().

◆ InitPos()

void SvxSwPosSizeTabPage::InitPos ( RndStdIds  nAnchorType,
sal_uInt16  nH,
sal_uInt16  nHRel,
sal_uInt16  nV,
sal_uInt16  nVRel,
tools::Long  nX,
tools::Long  nY 
)
private

◆ Reset()

void SvxSwPosSizeTabPage::Reset ( const SfxItemSet rSet)
overridevirtual

◆ setOptimalFrmWidth()

void SvxSwPosSizeTabPage::setOptimalFrmWidth ( )
private

◆ setOptimalRelWidth()

void SvxSwPosSizeTabPage::setOptimalRelWidth ( )
private

◆ SetValidateFramePosLink()

void SvxSwPosSizeTabPage::SetValidateFramePosLink ( const Link< SvxSwFrameValidation &, void > &  rLink)
inline

◆ SetView()

void SvxSwPosSizeTabPage::SetView ( const SdrView pSdrView)

◆ UpdateExample()

void SvxSwPosSizeTabPage::UpdateExample ( )
private

Member Data Documentation

◆ m_aAnchorPos

Point SvxSwPosSizeTabPage::m_aAnchorPos
private

Definition at line 37 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), and SetView().

◆ m_aExampleWN

SwFrameExample SvxSwPosSizeTabPage::m_aExampleWN
private

Definition at line 57 of file swpossizetabpage.hxx.

Referenced by UpdateExample().

◆ m_aRect

::tools::Rectangle SvxSwPosSizeTabPage::m_aRect
private

Definition at line 35 of file swpossizetabpage.hxx.

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

◆ m_aValidateLink

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

Definition at line 33 of file swpossizetabpage.hxx.

Referenced by SetValidateFramePosLink().

◆ m_aWorkArea

::tools::Rectangle SvxSwPosSizeTabPage::m_aWorkArea
private

Definition at line 36 of file swpossizetabpage.hxx.

Referenced by SetView().

◆ m_bHtmlMode

bool SvxSwPosSizeTabPage::m_bHtmlMode
private

Definition at line 50 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

◆ m_bIsInRightToLeft

bool SvxSwPosSizeTabPage::m_bIsInRightToLeft
private

Definition at line 54 of file swpossizetabpage.hxx.

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

◆ m_bIsMultiSelection

bool SvxSwPosSizeTabPage::m_bIsMultiSelection
private

Definition at line 53 of file swpossizetabpage.hxx.

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

◆ m_bIsVerticalFrame

bool SvxSwPosSizeTabPage::m_bIsVerticalFrame
private

Definition at line 51 of file swpossizetabpage.hxx.

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

◆ m_bPositioningDisabled

bool SvxSwPosSizeTabPage::m_bPositioningDisabled
private

Definition at line 52 of file swpossizetabpage.hxx.

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

◆ m_fWidthHeightRatio

double SvxSwPosSizeTabPage::m_fWidthHeightRatio
private

Definition at line 49 of file swpossizetabpage.hxx.

Referenced by Reset().

◆ m_nOldH

short SvxSwPosSizeTabPage::m_nOldH
private

Definition at line 44 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

◆ m_nOldHRel

short SvxSwPosSizeTabPage::m_nOldHRel
private

Definition at line 45 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

◆ m_nOldV

short SvxSwPosSizeTabPage::m_nOldV
private

Definition at line 46 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

◆ m_nOldVRel

short SvxSwPosSizeTabPage::m_nOldVRel
private

Definition at line 47 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

◆ m_nProtectSizeState

TriState SvxSwPosSizeTabPage::m_nProtectSizeState
private

Definition at line 55 of file swpossizetabpage.hxx.

◆ m_pHMap

FrmMap const* SvxSwPosSizeTabPage::m_pHMap
private

Definition at line 40 of file swpossizetabpage.hxx.

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

◆ m_pSdrView

const SdrView* SvxSwPosSizeTabPage::m_pSdrView
private

Definition at line 41 of file swpossizetabpage.hxx.

Referenced by FillItemSet(), and SetView().

◆ m_pVMap

FrmMap const* SvxSwPosSizeTabPage::m_pVMap
private

Definition at line 39 of file swpossizetabpage.hxx.

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

◆ m_xAsCharRB

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

Definition at line 65 of file swpossizetabpage.hxx.

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

◆ m_xExampleWN

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

Definition at line 84 of file swpossizetabpage.hxx.

◆ m_xFollowCB

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

Definition at line 83 of file swpossizetabpage.hxx.

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

◆ m_xHeightMF

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

Definition at line 60 of file swpossizetabpage.hxx.

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

◆ m_xHoriByFT

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

Definition at line 72 of file swpossizetabpage.hxx.

Referenced by InitPos().

◆ m_xHoriByMF

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

◆ m_xHoriFT

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

Definition at line 70 of file swpossizetabpage.hxx.

Referenced by InitPos(), and Reset().

◆ m_xHoriLB

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

◆ m_xHoriMirrorCB

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

Definition at line 76 of file swpossizetabpage.hxx.

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

◆ m_xHoriToFT

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

Definition at line 74 of file swpossizetabpage.hxx.

Referenced by InitPos().

◆ m_xHoriToLB

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

Definition at line 75 of file swpossizetabpage.hxx.

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

◆ m_xKeepRatioCB

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

Definition at line 61 of file swpossizetabpage.hxx.

Referenced by Reset().

◆ m_xPosFrame

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

Definition at line 69 of file swpossizetabpage.hxx.

Referenced by SetView().

◆ m_xPositionCB

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

Definition at line 67 of file swpossizetabpage.hxx.

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

◆ m_xSizeCB

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

Definition at line 68 of file swpossizetabpage.hxx.

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

◆ m_xToCharRB

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

Definition at line 64 of file swpossizetabpage.hxx.

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

◆ m_xToFrameRB

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

Definition at line 66 of file swpossizetabpage.hxx.

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

◆ m_xToPageRB

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

Definition at line 62 of file swpossizetabpage.hxx.

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

◆ m_xToParaRB

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

Definition at line 63 of file swpossizetabpage.hxx.

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

◆ m_xVertByFT

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

Definition at line 79 of file swpossizetabpage.hxx.

Referenced by InitPos().

◆ m_xVertByMF

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

◆ m_xVertFT

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

Definition at line 77 of file swpossizetabpage.hxx.

Referenced by Reset().

◆ m_xVertLB

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

◆ m_xVertToFT

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

Definition at line 81 of file swpossizetabpage.hxx.

Referenced by InitPos().

◆ m_xVertToLB

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

Definition at line 82 of file swpossizetabpage.hxx.

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

◆ m_xWidthMF

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

Definition at line 59 of file swpossizetabpage.hxx.

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


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