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 (sal_uInt16 nId, vcl::Window *pParent)
 
virtual ~ParaLineSpacingControl () override
 
virtual void dispose () override
 
- Public Member Functions inherited from SfxPopupWindow
 SfxPopupWindow (sal_uInt16 nId, vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rFrame, WinBits nBits)
 
 SfxPopupWindow (sal_uInt16 nId, vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const css::uno::Reference< css::frame::XFrame > &rFrame=css::uno::Reference< css::frame::XFrame >())
 
virtual ~SfxPopupWindow () override
 
virtual void MouseMove (const MouseEvent &rMEvt) override
 
void StartCascading ()
 
SAL_DLLPRIVATE void SetDeleteLink_Impl (const Link< SfxPopupWindow *, void > &rLink)
 

Private Member Functions

void Initialize ()
 Setup the widgets with values from the document. More...
 
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, ListBox &, void)
 
 DECL_LINK (LineSPDistAtHdl_Impl, Edit &, void)
 
 DECL_LINK (PredefinedValuesHandler, Button *, void)
 

Static Private Member Functions

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

Private Attributes

MapUnit meLNSpaceUnit
 
VclPtr< EditmpActLineDistFld
 
VclPtr< PushButtonmpSpacing1Button
 
VclPtr< PushButtonmpSpacing115Button
 
VclPtr< PushButtonmpSpacing15Button
 
VclPtr< PushButtonmpSpacing2Button
 
VclPtr< ListBoxmpLineDist
 
VclPtr< FixedTextmpLineDistLabel
 
VclPtr< MetricFieldmpLineDistAtPercentBox
 
VclPtr< MetricFieldmpLineDistAtMetricBox
 

Additional Inherited Members

- Protected Member Functions inherited from SfxPopupWindow
virtual void PopupModeEnd () override
 
virtual bool Close () override
 
sal_uInt16 GetId () const
 
const css::uno::Reference< css::frame::XFrame > & GetFrame () const
 
void AddStatusListener (const OUString &rCommandURL)
 
virtual void statusChanged (const css::frame::FeatureStateEvent &rEvent)
 

Detailed Description

Definition at line 30 of file ParaLineSpacingControl.hxx.

Constructor & Destructor Documentation

ParaLineSpacingControl::ParaLineSpacingControl ( sal_uInt16  nId,
vcl::Window pParent 
)
explicit
ParaLineSpacingControl::~ParaLineSpacingControl ( )
overridevirtual

Definition at line 100 of file ParaLineSpacingControl.cxx.

Member Function Documentation

svx::ParaLineSpacingControl::DECL_LINK ( LineSPDistHdl_Impl  ,
ListBox ,
void   
)
private
svx::ParaLineSpacingControl::DECL_LINK ( LineSPDistAtHdl_Impl  ,
Edit ,
void   
)
private
svx::ParaLineSpacingControl::DECL_LINK ( PredefinedValuesHandler  ,
Button ,
void   
)
private
void ParaLineSpacingControl::dispose ( void  )
overridevirtual
void ParaLineSpacingControl::ExecuteLineSpace ( )
private
void ParaLineSpacingControl::ExecuteLineSpacing ( sal_Int32  aEntry)
private

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

Definition at line 446 of file ParaLineSpacingControl.cxx.

References SfxViewFrame::Current(), DEFAULT_LINE_SPACING, SfxDispatcher::ExecuteList(), SfxViewFrame::GetBindings(), SfxBindings::GetDispatcher(), and SetLineSpace().

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

Set the entry and update the metric fields.

Definition at line 328 of file ParaLineSpacingControl.cxx.

References mpLineDist, ListBox::SelectEntryPos(), 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 38 of file ParaLineSpacingControl.hxx.

Referenced by ExecuteLineSpace(), Initialize(), and ParaLineSpacingControl().

VclPtr<Edit> svx::ParaLineSpacingControl::mpActLineDistFld
private
VclPtr<ListBox> svx::ParaLineSpacingControl::mpLineDist
private
VclPtr<MetricField> svx::ParaLineSpacingControl::mpLineDistAtMetricBox
private
VclPtr<MetricField> svx::ParaLineSpacingControl::mpLineDistAtPercentBox
private
VclPtr<FixedText> svx::ParaLineSpacingControl::mpLineDistLabel
private
VclPtr<PushButton> svx::ParaLineSpacingControl::mpSpacing115Button
private

Definition at line 43 of file ParaLineSpacingControl.hxx.

Referenced by dispose(), and ParaLineSpacingControl().

VclPtr<PushButton> svx::ParaLineSpacingControl::mpSpacing15Button
private

Definition at line 44 of file ParaLineSpacingControl.hxx.

Referenced by dispose(), and ParaLineSpacingControl().

VclPtr<PushButton> svx::ParaLineSpacingControl::mpSpacing1Button
private

Definition at line 42 of file ParaLineSpacingControl.hxx.

Referenced by dispose(), and ParaLineSpacingControl().

VclPtr<PushButton> svx::ParaLineSpacingControl::mpSpacing2Button
private

Definition at line 45 of file ParaLineSpacingControl.hxx.

Referenced by dispose(), and ParaLineSpacingControl().


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