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 (const css::uno::Reference< css::frame::XFrame > &rFrame, weld::Widget *pParent, const OUString &rUIFile, const OString &rId)
 
virtual ~WeldToolbarPopup () override
 
weld::ContainergetTopLevel ()
 
weld::ContainergetContainer ()
 
- Public Member Functions inherited from svtools::ToolbarPopupBase
 ToolbarPopupBase (const css::uno::Reference< css::frame::XFrame > &rFrame)
 
virtual ~ToolbarPopupBase ()
 

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, 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 Member Functions inherited from svtools::ToolbarPopupBase
void AddStatusListener (const OUString &rCommandURL)
 
virtual void statusChanged (const css::frame::FeatureStateEvent &Event)
 
- Protected Attributes inherited from WeldToolbarPopup
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xTopLevel
 
std::unique_ptr< weld::Containerm_xContainer
 
- Protected Attributes inherited from svtools::ToolbarPopupBase
css::uno::Reference< css::frame::XFrame > mxFrame
 
rtl::Reference< svt::FrameStatusListenermxStatusListener
 

Detailed Description

Definition at line 30 of file ParaLineSpacingControl.hxx.

Constructor & Destructor Documentation

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

Definition at line 102 of file ParaLineSpacingControl.cxx.

Member Function Documentation

svx::ParaLineSpacingControl::DECL_LINK ( LineSPDistHdl_Impl  ,
weld::ComboBox ,
void   
)
private
svx::ParaLineSpacingControl::DECL_LINK ( LineSPDistAtHdl_Impl  ,
weld::MetricSpinButton ,
void   
)
private
svx::ParaLineSpacingControl::DECL_LINK ( PredefinedValuesHandler  ,
weld::Button ,
void   
)
private
void ParaLineSpacingControl::ExecuteLineSpace ( )
private
void ParaLineSpacingControl::ExecuteLineSpacing ( sal_Int32  aEntry)
private
void ParaLineSpacingControl::GrabFocus ( )
overridevirtual

Implements WeldToolbarPopup.

Definition at line 97 of file ParaLineSpacingControl.cxx.

References mxSpacing1Button.

void ParaLineSpacingControl::Initialize ( )
void ParaLineSpacingControl::SelectEntryPos ( sal_Int32  nPos)
private

Set the entry and update the metric fields.

Definition at line 283 of file ParaLineSpacingControl.cxx.

References mxLineDist, and UpdateMetricFields().

Referenced by Initialize(), and ParaLineSpacingControl().

void ParaLineSpacingControl::SetLineSpace ( SvxLineSpacingItem rLineSpace,
sal_Int32  eSpace,
long  lValue = 0 
)
staticprivate
void ParaLineSpacingControl::UpdateMetricFields ( )
private

Member Data Documentation

MapUnit svx::ParaLineSpacingControl::meLNSpaceUnit
private

Definition at line 44 of file ParaLineSpacingControl.hxx.

Referenced by ExecuteLineSpace(), and Initialize().

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

Definition at line 56 of file ParaLineSpacingControl.hxx.

Referenced by Initialize(), and UpdateMetricFields().

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

Definition at line 42 of file ParaLineSpacingControl.hxx.

Referenced by ExecuteLineSpacing().

std::unique_ptr<weld::ComboBox> svx::ParaLineSpacingControl::mxLineDist
private
std::unique_ptr<weld::MetricSpinButton> svx::ParaLineSpacingControl::mxLineDistAtMetricBox
private
std::unique_ptr<weld::MetricSpinButton> svx::ParaLineSpacingControl::mxLineDistAtPercentBox
private
std::unique_ptr<weld::Label> svx::ParaLineSpacingControl::mxLineDistLabel
private

Definition at line 53 of file ParaLineSpacingControl.hxx.

Referenced by Initialize(), and UpdateMetricFields().

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

Definition at line 47 of file ParaLineSpacingControl.hxx.

Referenced by ParaLineSpacingControl().

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

Definition at line 48 of file ParaLineSpacingControl.hxx.

Referenced by ParaLineSpacingControl().

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

Definition at line 46 of file ParaLineSpacingControl.hxx.

Referenced by GrabFocus(), and ParaLineSpacingControl().

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

Definition at line 49 of file ParaLineSpacingControl.hxx.

Referenced by ParaLineSpacingControl().


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