LibreOffice Module svx (master) 1
|
#include <ParaLineSpacingControl.hxx>
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::Container * | getTopLevel () |
weld::Container * | getContainer () |
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< SvxLineSpacingToolBoxControl > | mxControl |
MapUnit | meLNSpaceUnit |
std::unique_ptr< weld::Button > | mxSpacing1Button |
std::unique_ptr< weld::Button > | mxSpacing115Button |
std::unique_ptr< weld::Button > | mxSpacing15Button |
std::unique_ptr< weld::Button > | mxSpacing2Button |
std::unique_ptr< weld::ComboBox > | mxLineDist |
std::unique_ptr< weld::Label > | mxLineDistLabel |
std::unique_ptr< weld::MetricSpinButton > | mxLineDistAtPercentBox |
std::unique_ptr< weld::MetricSpinButton > | mxLineDistAtMetricBox |
weld::MetricSpinButton * | mpActLineDistFld |
Additional Inherited Members | |
Protected Attributes inherited from WeldToolbarPopup | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xTopLevel |
std::unique_ptr< weld::Container > | m_xContainer |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
rtl::Reference< svt::FrameStatusListener > | m_xStatusListener |
Definition at line 29 of file ParaLineSpacingControl.hxx.
|
explicit |
Definition at line 58 of file ParaLineSpacingControl.cxx.
References CM, SfxViewFrame::Current(), get(), SfxViewFrame::GetBindings(), SfxModule::GetCurrentFieldUnit(), SfxBindings::GetDispatcher(), CntUInt16Item::GetValue(), Initialize(), LINK, LLINESPACE_1, Map100thMM, mxLineDist, mxLineDistAtMetricBox, mxLineDistAtPercentBox, mxSpacing115Button, mxSpacing15Button, mxSpacing1Button, mxSpacing2Button, PERCENT(), SfxDispatcher::QueryState(), SelectEntryPos(), and SetFieldUnit().
|
overridevirtual |
Definition at line 121 of file ParaLineSpacingControl.cxx.
|
private |
|
private |
|
private |
|
private |
Take the values from the widgets, and update the paragraph accordingly.
Definition at line 326 of file ParaLineSpacingControl.cxx.
References SfxViewFrame::Current(), DEFAULT_LINE_SPACING, GetCoreValue(), LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, LLINESPACE_DURCH, LLINESPACE_FIX, LLINESPACE_MIN, LLINESPACE_PROP, meLNSpaceUnit, mxLineDist, mxLineDistAtMetricBox, mxLineDistAtPercentBox, nPos, and SetLineSpace().
|
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().
|
overridevirtual |
Implements WeldToolbarPopup.
Definition at line 99 of file ParaLineSpacingControl.cxx.
References LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, mxLineDist, mxSpacing115Button, mxSpacing15Button, mxSpacing1Button, and mxSpacing2Button.
void ParaLineSpacingControl::Initialize | ( | ) |
Setup the widgets with values from the document.
Definition at line 125 of file ParaLineSpacingControl.cxx.
References SfxViewFrame::Current(), SfxViewFrame::GetBindings(), SfxBindings::GetDispatcher(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), SvxLineSpacingItem::GetLineHeight(), SvxLineSpacingItem::GetLineSpaceRule(), vcl::CommandInfoProvider::GetModuleIdentifier(), SvxLineSpacingItem::GetPropLineSpace(), LINESPACE_1, LINESPACE_115, LINESPACE_15, LINESPACE_2, LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, LLINESPACE_DURCH, LLINESPACE_FIX, LLINESPACE_MIN, LLINESPACE_PROP, meLNSpaceUnit, mpActLineDistFld, mxLineDist, mxLineDistAtMetricBox, mxLineDistAtPercentBox, mxLineDistLabel, SfxDispatcher::QueryState(), SelectEntryPos(), weld::MetricSpinButton::set_sensitive(), weld::MetricSpinButton::set_text(), and SetMetricValue().
Referenced by ParaLineSpacingControl().
|
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().
|
staticprivate |
Set one particular value.
Definition at line 363 of file ParaLineSpacingControl.cxx.
References LINESPACE_115, LINESPACE_15, LINESPACE_2, LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, LLINESPACE_DURCH, LLINESPACE_FIX, LLINESPACE_MIN, LLINESPACE_PROP, SvxLineSpacingItem::SetInterLineSpace(), SvxLineSpacingItem::SetInterLineSpaceRule(), SvxLineSpacingItem::SetLineHeight(), SvxLineSpacingItem::SetLineSpaceRule(), and SvxLineSpacingItem::SetPropLineSpace().
Referenced by ExecuteLineSpace(), and ExecuteLineSpacing().
|
private |
Set mpActlineDistFld and visibility of mpLineDist* fields according to what is just selected.
Definition at line 232 of file ParaLineSpacingControl.cxx.
References FIX_DIST_DEF, LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, LLINESPACE_DURCH, LLINESPACE_FIX, LLINESPACE_MIN, LLINESPACE_PROP, MIN_FIXED_DISTANCE, mpActLineDistFld, mxLineDist, mxLineDistAtMetricBox, mxLineDistAtPercentBox, mxLineDistLabel, weld::MetricSpinButton::set_sensitive(), weld::MetricSpinButton::set_text(), SetMetricValue(), and weld::MetricSpinButton::show().
Referenced by SelectEntryPos().
|
private |
Definition at line 43 of file ParaLineSpacingControl.hxx.
Referenced by ExecuteLineSpace(), and Initialize().
|
private |
Definition at line 55 of file ParaLineSpacingControl.hxx.
Referenced by Initialize(), and UpdateMetricFields().
|
private |
Definition at line 41 of file ParaLineSpacingControl.hxx.
Referenced by ExecuteLineSpacing().
|
private |
Definition at line 50 of file ParaLineSpacingControl.hxx.
Referenced by ExecuteLineSpace(), GrabFocus(), Initialize(), ParaLineSpacingControl(), SelectEntryPos(), and UpdateMetricFields().
|
private |
Definition at line 54 of file ParaLineSpacingControl.hxx.
Referenced by ExecuteLineSpace(), Initialize(), ParaLineSpacingControl(), and UpdateMetricFields().
|
private |
Definition at line 53 of file ParaLineSpacingControl.hxx.
Referenced by ExecuteLineSpace(), Initialize(), ParaLineSpacingControl(), and UpdateMetricFields().
|
private |
Definition at line 52 of file ParaLineSpacingControl.hxx.
Referenced by Initialize(), and UpdateMetricFields().
|
private |
Definition at line 46 of file ParaLineSpacingControl.hxx.
Referenced by GrabFocus(), and ParaLineSpacingControl().
|
private |
Definition at line 47 of file ParaLineSpacingControl.hxx.
Referenced by GrabFocus(), and ParaLineSpacingControl().
|
private |
Definition at line 45 of file ParaLineSpacingControl.hxx.
Referenced by GrabFocus(), and ParaLineSpacingControl().
|
private |
Definition at line 48 of file ParaLineSpacingControl.hxx.
Referenced by GrabFocus(), and ParaLineSpacingControl().