LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
svx::ParaLineSpacingControl Class Reference

#include <ParaLineSpacingControl.hxx>

Inheritance diagram for svx::ParaLineSpacingControl:
[legend]
Collaboration diagram for svx::ParaLineSpacingControl:
[legend]

Public Member Functions

 ParaLineSpacingControl (SvxLineSpacingToolBoxControl *pControl, weld::Widget *pParent)
 
virtual ~ParaLineSpacingControl () override
 
void Initialize ()
 Setup the widgets with values from the document. More...
 
virtual void GrabFocus () override
 
- Public Member Functions inherited from WeldToolbarPopup
 WeldToolbarPopup (css::uno::Reference< css::frame::XFrame > xFrame, weld::Widget *pParent, const OUString &rUIFile, const OUString &rId)
 
virtual ~WeldToolbarPopup ()
 
weld::ContainergetTopLevel ()
 
weld::ContainergetContainer ()
 
void AddStatusListener (const OUString &rCommandURL)
 
virtual void statusChanged (const css::frame::FeatureStateEvent &Event)
 
virtual void GrabFocus ()=0
 

Private Member Functions

void ExecuteLineSpace ()
 Take the values from the widgets, and update the paragraph accordingly. More...
 
void ExecuteLineSpacing (sal_Int32 aEntry)
 For the buttons - set the values, and close the popup. More...
 
void UpdateMetricFields ()
 Set mpActlineDistFld and visibility of mpLineDist* fields according to what is just selected. More...
 
void SelectEntryPos (sal_Int32 nPos)
 Set the entry and update the metric fields. More...
 
 DECL_LINK (LineSPDistHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (LineSPDistAtHdl_Impl, weld::MetricSpinButton &, void)
 
 DECL_LINK (PredefinedValuesHandler, weld::Button &, void)
 

Static Private Member Functions

static void SetLineSpace (SvxLineSpacingItem &rLineSpace, sal_Int32 eSpace, tools::Long lValue=0)
 Set one particular value. More...
 

Private Attributes

rtl::Reference< SvxLineSpacingToolBoxControlmxControl
 
MapUnit meLNSpaceUnit
 
std::unique_ptr< weld::ButtonmxSpacing1Button
 
std::unique_ptr< weld::ButtonmxSpacing115Button
 
std::unique_ptr< weld::ButtonmxSpacing15Button
 
std::unique_ptr< weld::ButtonmxSpacing2Button
 
std::unique_ptr< weld::ComboBoxmxLineDist
 
std::unique_ptr< weld::LabelmxLineDistLabel
 
std::unique_ptr< weld::MetricSpinButtonmxLineDistAtPercentBox
 
std::unique_ptr< weld::MetricSpinButtonmxLineDistAtMetricBox
 
weld::MetricSpinButtonmpActLineDistFld
 

Additional Inherited Members

- Protected Attributes inherited from WeldToolbarPopup
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xTopLevel
 
std::unique_ptr< weld::Containerm_xContainer
 
css::uno::Reference< css::frame::XFrame > m_xFrame
 
rtl::Reference< svt::FrameStatusListenerm_xStatusListener
 

Detailed Description

Definition at line 29 of file ParaLineSpacingControl.hxx.

Constructor & Destructor Documentation

◆ ParaLineSpacingControl()

ParaLineSpacingControl::ParaLineSpacingControl ( SvxLineSpacingToolBoxControl pControl,
weld::Widget pParent 
)
explicit

◆ ~ParaLineSpacingControl()

ParaLineSpacingControl::~ParaLineSpacingControl ( )
overridevirtual

Definition at line 121 of file ParaLineSpacingControl.cxx.

Member Function Documentation

◆ DECL_LINK() [1/3]

svx::ParaLineSpacingControl::DECL_LINK ( LineSPDistAtHdl_Impl  ,
weld::MetricSpinButton ,
void   
)
private

◆ DECL_LINK() [2/3]

svx::ParaLineSpacingControl::DECL_LINK ( LineSPDistHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [3/3]

svx::ParaLineSpacingControl::DECL_LINK ( PredefinedValuesHandler  ,
weld::Button ,
void   
)
private

◆ ExecuteLineSpace()

void ParaLineSpacingControl::ExecuteLineSpace ( )
private

◆ ExecuteLineSpacing()

void ParaLineSpacingControl::ExecuteLineSpacing ( sal_Int32  aEntry)
private

For the buttons - set the values, and close the popup.

Definition at line 430 of file ParaLineSpacingControl.cxx.

References SfxViewFrame::Current(), DEFAULT_LINE_SPACING, mxControl, and SetLineSpace().

◆ GrabFocus()

void ParaLineSpacingControl::GrabFocus ( )
overridevirtual

◆ Initialize()

void ParaLineSpacingControl::Initialize ( )

◆ SelectEntryPos()

void ParaLineSpacingControl::SelectEntryPos ( sal_Int32  nPos)
private

Set the entry and update the metric fields.

Definition at line 309 of file ParaLineSpacingControl.cxx.

References mxLineDist, nPos, and UpdateMetricFields().

Referenced by Initialize(), and ParaLineSpacingControl().

◆ SetLineSpace()

void ParaLineSpacingControl::SetLineSpace ( SvxLineSpacingItem rLineSpace,
sal_Int32  eSpace,
tools::Long  lValue = 0 
)
staticprivate

◆ UpdateMetricFields()

void ParaLineSpacingControl::UpdateMetricFields ( )
private

Member Data Documentation

◆ meLNSpaceUnit

MapUnit svx::ParaLineSpacingControl::meLNSpaceUnit
private

Definition at line 43 of file ParaLineSpacingControl.hxx.

Referenced by ExecuteLineSpace(), and Initialize().

◆ mpActLineDistFld

weld::MetricSpinButton* svx::ParaLineSpacingControl::mpActLineDistFld
private

Definition at line 55 of file ParaLineSpacingControl.hxx.

Referenced by Initialize(), and UpdateMetricFields().

◆ mxControl

rtl::Reference<SvxLineSpacingToolBoxControl> svx::ParaLineSpacingControl::mxControl
private

Definition at line 41 of file ParaLineSpacingControl.hxx.

Referenced by ExecuteLineSpacing().

◆ mxLineDist

std::unique_ptr<weld::ComboBox> svx::ParaLineSpacingControl::mxLineDist
private

◆ mxLineDistAtMetricBox

std::unique_ptr<weld::MetricSpinButton> svx::ParaLineSpacingControl::mxLineDistAtMetricBox
private

◆ mxLineDistAtPercentBox

std::unique_ptr<weld::MetricSpinButton> svx::ParaLineSpacingControl::mxLineDistAtPercentBox
private

◆ mxLineDistLabel

std::unique_ptr<weld::Label> svx::ParaLineSpacingControl::mxLineDistLabel
private

Definition at line 52 of file ParaLineSpacingControl.hxx.

Referenced by Initialize(), and UpdateMetricFields().

◆ mxSpacing115Button

std::unique_ptr<weld::Button> svx::ParaLineSpacingControl::mxSpacing115Button
private

Definition at line 46 of file ParaLineSpacingControl.hxx.

Referenced by GrabFocus(), and ParaLineSpacingControl().

◆ mxSpacing15Button

std::unique_ptr<weld::Button> svx::ParaLineSpacingControl::mxSpacing15Button
private

Definition at line 47 of file ParaLineSpacingControl.hxx.

Referenced by GrabFocus(), and ParaLineSpacingControl().

◆ mxSpacing1Button

std::unique_ptr<weld::Button> svx::ParaLineSpacingControl::mxSpacing1Button
private

Definition at line 45 of file ParaLineSpacingControl.hxx.

Referenced by GrabFocus(), and ParaLineSpacingControl().

◆ mxSpacing2Button

std::unique_ptr<weld::Button> svx::ParaLineSpacingControl::mxSpacing2Button
private

Definition at line 48 of file ParaLineSpacingControl.hxx.

Referenced by GrabFocus(), and ParaLineSpacingControl().


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