LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SdSnapLineDlg Class Reference

dialog to adjust snap- lines and points More...

#include <dlgsnap.hxx>

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

Public Member Functions

 SdSnapLineDlg (weld::Window *pWindow, const SfxItemSet &rInAttrs, ::sd::View const *pView)
 dialog to adjust grid (scarcely ESO!) More...
 
virtual ~SdSnapLineDlg () override
 
void GetAttr (SfxItemSet &rOutAttrs)
 fills provided item sets with dialog box attributes More...
 
void HideRadioGroup ()
 
void HideDeleteBtn ()
 
void SetInputFields (bool bEnableX, bool bEnableY)
 disable X or Y input fields More...
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (ClickHdl, weld::Button &, void)
 
 DECL_LINK (ToggleHdl, weld::Toggleable &, void)
 

Private Attributes

int nXValue
 
int nYValue
 
Fraction aUIScale
 
std::unique_ptr< weld::Labelm_xFtX
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrFldX
 
std::unique_ptr< weld::Labelm_xFtY
 
std::unique_ptr< weld::MetricSpinButtonm_xMtrFldY
 
std::unique_ptr< weld::Widgetm_xRadioGroup
 
std::unique_ptr< weld::RadioButtonm_xRbPoint
 
std::unique_ptr< weld::RadioButtonm_xRbVert
 
std::unique_ptr< weld::RadioButtonm_xRbHorz
 
std::unique_ptr< weld::Buttonm_xBtnDelete
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

dialog to adjust snap- lines and points

Definition at line 35 of file dlgsnap.hxx.

Constructor & Destructor Documentation

◆ SdSnapLineDlg()

SdSnapLineDlg::SdSnapLineDlg ( weld::Window pWindow,
const SfxItemSet rInAttrs,
::sd::View const *  pView 
)

◆ ~SdSnapLineDlg()

SdSnapLineDlg::~SdSnapLineDlg ( )
overridevirtual

Definition at line 101 of file dlgsnap.cxx.

Member Function Documentation

◆ DECL_LINK() [1/2]

SdSnapLineDlg::DECL_LINK ( ClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/2]

SdSnapLineDlg::DECL_LINK ( ToggleHdl  ,
weld::Toggleable ,
void   
)
private

◆ GetAttr()

void SdSnapLineDlg::GetAttr ( SfxItemSet rOutAttrs)

fills provided item sets with dialog box attributes

Definition at line 129 of file dlgsnap.cxx.

References aUIScale, GetCoreValue(), Horizontal, m_xMtrFldX, m_xMtrFldY, m_xRbHorz, m_xRbVert, nXValue, nYValue, Point, SfxItemSet::Put(), and Vertical.

◆ HideDeleteBtn()

void SdSnapLineDlg::HideDeleteBtn ( )
inline

Definition at line 62 of file dlgsnap.hxx.

References m_xBtnDelete.

◆ HideRadioGroup()

void SdSnapLineDlg::HideRadioGroup ( )

Definition at line 145 of file dlgsnap.cxx.

References m_xRadioGroup.

◆ SetInputFields()

void SdSnapLineDlg::SetInputFields ( bool  bEnableX,
bool  bEnableY 
)

disable X or Y input fields

Definition at line 153 of file dlgsnap.cxx.

References m_xFtX, m_xFtY, m_xMtrFldX, m_xMtrFldY, nXValue, and nYValue.

Member Data Documentation

◆ aUIScale

Fraction SdSnapLineDlg::aUIScale
private

Definition at line 40 of file dlgsnap.hxx.

Referenced by GetAttr(), and SdSnapLineDlg().

◆ m_xBtnDelete

std::unique_ptr<weld::Button> SdSnapLineDlg::m_xBtnDelete
private

Definition at line 50 of file dlgsnap.hxx.

Referenced by HideDeleteBtn(), and SdSnapLineDlg().

◆ m_xFtX

std::unique_ptr<weld::Label> SdSnapLineDlg::m_xFtX
private

Definition at line 42 of file dlgsnap.hxx.

Referenced by SetInputFields().

◆ m_xFtY

std::unique_ptr<weld::Label> SdSnapLineDlg::m_xFtY
private

Definition at line 44 of file dlgsnap.hxx.

Referenced by SetInputFields().

◆ m_xMtrFldX

std::unique_ptr<weld::MetricSpinButton> SdSnapLineDlg::m_xMtrFldX
private

Definition at line 43 of file dlgsnap.hxx.

Referenced by GetAttr(), SdSnapLineDlg(), and SetInputFields().

◆ m_xMtrFldY

std::unique_ptr<weld::MetricSpinButton> SdSnapLineDlg::m_xMtrFldY
private

Definition at line 45 of file dlgsnap.hxx.

Referenced by GetAttr(), SdSnapLineDlg(), and SetInputFields().

◆ m_xRadioGroup

std::unique_ptr<weld::Widget> SdSnapLineDlg::m_xRadioGroup
private

Definition at line 46 of file dlgsnap.hxx.

Referenced by HideRadioGroup().

◆ m_xRbHorz

std::unique_ptr<weld::RadioButton> SdSnapLineDlg::m_xRbHorz
private

Definition at line 49 of file dlgsnap.hxx.

Referenced by GetAttr(), and SdSnapLineDlg().

◆ m_xRbPoint

std::unique_ptr<weld::RadioButton> SdSnapLineDlg::m_xRbPoint
private

Definition at line 47 of file dlgsnap.hxx.

Referenced by SdSnapLineDlg().

◆ m_xRbVert

std::unique_ptr<weld::RadioButton> SdSnapLineDlg::m_xRbVert
private

Definition at line 48 of file dlgsnap.hxx.

Referenced by GetAttr(), and SdSnapLineDlg().

◆ nXValue

int SdSnapLineDlg::nXValue
private

Definition at line 38 of file dlgsnap.hxx.

Referenced by GetAttr(), SdSnapLineDlg(), and SetInputFields().

◆ nYValue

int SdSnapLineDlg::nYValue
private

Definition at line 39 of file dlgsnap.hxx.

Referenced by GetAttr(), SdSnapLineDlg(), and SetInputFields().


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