LibreOffice Module svx (master) 1
|
#include <TextCharacterSpacingControl.hxx>
Public Member Functions | |
TextCharacterSpacingControl (TextCharacterSpacingPopup *pControl, weld::Widget *pParent) | |
virtual void | GrabFocus () override |
virtual | ~TextCharacterSpacingControl () 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 | Initialize () |
void | ExecuteCharacterSpacing (tools::Long nValue, bool bClose=true) |
DECL_LINK (PredefinedValuesHdl, weld::Button &, void) | |
DECL_LINK (KerningModifyHdl, weld::MetricSpinButton &, void) | |
Static Private Member Functions | |
static MapUnit | GetCoreMetric () |
Private Attributes | |
tools::Long | mnCustomKern |
short | mnLastCus |
std::unique_ptr< weld::MetricSpinButton > | mxEditKerning |
std::unique_ptr< weld::Button > | mxTight |
std::unique_ptr< weld::Button > | mxVeryTight |
std::unique_ptr< weld::Button > | mxNormal |
std::unique_ptr< weld::Button > | mxLoose |
std::unique_ptr< weld::Button > | mxVeryLoose |
std::unique_ptr< weld::Button > | mxLastCustom |
rtl::Reference< TextCharacterSpacingPopup > | mxControl |
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 33 of file TextCharacterSpacingControl.hxx.
|
explicit |
Definition at line 41 of file TextCharacterSpacingControl.cxx.
References HID_SPACING_MB_KERN, Initialize(), LINK, mxEditKerning, mxLastCustom, mxLoose, mxNormal, mxTight, mxVeryLoose, mxVeryTight, and POINT.
|
overridevirtual |
Definition at line 96 of file TextCharacterSpacingControl.cxx.
References aSeq, mnCustomKern, mnLastCus, SvtViewOptions::SetUserData(), svx::SIDEBAR_SPACING_GLOBAL_VALUE, and SPACING_CLOSE_BY_CUS_EDIT.
|
private |
|
private |
|
private |
Definition at line 155 of file TextCharacterSpacingControl.cxx.
References SfxViewFrame::Current(), GetCoreMetric(), OutputDevice::LogicToLogic(), mxControl, mxEditKerning, and nValue.
|
staticprivate |
Definition at line 215 of file TextCharacterSpacingControl.cxx.
References SfxItemPool::GetMetric(), SfxShell::GetPool(), SfxItemPool::GetWhich(), and SfxGetpApp().
Referenced by ExecuteCharacterSpacing(), and Initialize().
|
overridevirtual |
Implements WeldToolbarPopup.
Definition at line 68 of file TextCharacterSpacingControl.cxx.
References mnCustomKern, mxEditKerning, mxLastCustom, mxLoose, mxNormal, mxTight, mxVeryLoose, mxVeryTight, SPACING_LOOSE, SPACING_NORMAL, SPACING_TIGHT, SPACING_VERY_LOOSE, and SPACING_VERY_TIGHT.
|
private |
Definition at line 107 of file TextCharacterSpacingControl.cxx.
References aSeq, SfxViewFrame::Current(), SvtViewOptions::Exists(), SfxViewFrame::GetBindings(), GetCoreMetric(), SfxBindings::GetDispatcher(), SvtViewOptions::GetUserData(), OutputDevice::LogicToLogic(), mnCustomKern, mnLastCus, mxEditKerning, SfxDispatcher::QueryState(), svx::SIDEBAR_SPACING_GLOBAL_VALUE, SPACING_CLOSE_BY_CUS_EDIT, and SPACING_NOCUSTOM.
Referenced by TextCharacterSpacingControl().
|
private |
Definition at line 43 of file TextCharacterSpacingControl.hxx.
Referenced by GrabFocus(), Initialize(), and ~TextCharacterSpacingControl().
|
private |
Definition at line 44 of file TextCharacterSpacingControl.hxx.
Referenced by Initialize(), and ~TextCharacterSpacingControl().
|
private |
Definition at line 54 of file TextCharacterSpacingControl.hxx.
Referenced by ExecuteCharacterSpacing().
|
private |
Definition at line 46 of file TextCharacterSpacingControl.hxx.
Referenced by ExecuteCharacterSpacing(), GrabFocus(), Initialize(), and TextCharacterSpacingControl().
|
private |
Definition at line 52 of file TextCharacterSpacingControl.hxx.
Referenced by GrabFocus(), and TextCharacterSpacingControl().
|
private |
Definition at line 50 of file TextCharacterSpacingControl.hxx.
Referenced by GrabFocus(), and TextCharacterSpacingControl().
|
private |
Definition at line 49 of file TextCharacterSpacingControl.hxx.
Referenced by GrabFocus(), and TextCharacterSpacingControl().
|
private |
Definition at line 47 of file TextCharacterSpacingControl.hxx.
Referenced by GrabFocus(), and TextCharacterSpacingControl().
|
private |
Definition at line 51 of file TextCharacterSpacingControl.hxx.
Referenced by GrabFocus(), and TextCharacterSpacingControl().
|
private |
Definition at line 48 of file TextCharacterSpacingControl.hxx.
Referenced by GrabFocus(), and TextCharacterSpacingControl().