LibreOffice Module cui (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SvxStdParagraphTabPage Class Reference

#include <paragrph.hxx>

Inheritance diagram for SvxStdParagraphTabPage:
[legend]
Collaboration diagram for SvxStdParagraphTabPage:
[legend]

Public Member Functions

 SvxStdParagraphTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
 
virtual ~SvxStdParagraphTabPage () override
 
 DECL_LINK (ELRLoseFocusHdl, weld::MetricSpinButton &, void)
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual void ChangesApplied () override
 
void EnableRelativeMode ()
 
void EnableRegisterMode ()
 
void EnableContextualMode ()
 
void EnableAutoFirstLine ()
 
void EnableAbsLineDist (tools::Long nMinTwip)
 
void EnableNegativeMode ()
 
virtual void PageCreated (const SfxAllItemSet &aSet) override
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
 
static WhichRangesContainer GetRanges ()
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Protected Member Functions

virtual void ActivatePage (const SfxItemSet &rSet) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Private Member Functions

void SetLineSpacing_Impl (const SvxLineSpacingItem &rAttr)
 
void Init_Impl ()
 
void UpdateExample_Impl ()
 
void ELRLoseFocus ()
 
 DECL_LINK (LineDistPopupHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (LineDistHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (ModifyHdl_Impl, weld::MetricSpinButton &, void)
 
 DECL_LINK (AutoHdl_Impl, weld::Toggleable &, void)
 

Private Attributes

tools::Long nWidth
 
tools::Long nMinFixDist
 
bool bRelativeMode
 
OUString sAbsDist
 
SvxParaPrevWindow m_aExampleWin
 
bool m_bSplitLRSpace = false
 which items to use? More...
 
SvxRelativeField m_aLeftIndent
 
SvxRelativeField m_aRightIndent
 
std::unique_ptr< weld::Labelm_xFLineLabel
 
SvxRelativeField m_aFLineIndent
 
std::unique_ptr< weld::CheckButtonm_xAutoCB
 
SvxRelativeField m_aTopDist
 
SvxRelativeField m_aBottomDist
 
std::unique_ptr< weld::CheckButtonm_xContextualCB
 
std::unique_ptr< weld::ComboBoxm_xLineDist
 
std::unique_ptr< weld::MetricSpinButtonm_xLineDistAtPercentBox
 
std::unique_ptr< weld::MetricSpinButtonm_xLineDistAtMetricBox
 
std::unique_ptr< weld::MetricSpinButtonm_xLineDistAtPlaceHolderBox
 
std::unique_ptr< weld::Labelm_xLineDistAtLabel
 
std::unique_ptr< weld::Labelm_xAbsDist
 
std::unique_ptr< weld::CheckButtonm_xRegisterCB
 
std::unique_ptr< weld::CustomWeldm_xExampleWin
 
bool m_bLineDistToggled = false
 

Static Private Attributes

static const WhichRangesContainer pStdRanges
 

Detailed Description

Definition at line 41 of file paragrph.hxx.

Constructor & Destructor Documentation

◆ SvxStdParagraphTabPage()

SvxStdParagraphTabPage::SvxStdParagraphTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)

◆ ~SvxStdParagraphTabPage()

SvxStdParagraphTabPage::~SvxStdParagraphTabPage ( )
overridevirtual

Definition at line 924 of file paragrph.cxx.

Member Function Documentation

◆ ActivatePage()

void SvxStdParagraphTabPage::ActivatePage ( const SfxItemSet rSet)
overrideprotectedvirtual

◆ ChangesApplied()

void SvxStdParagraphTabPage::ChangesApplied ( )
overridevirtual

◆ Create()

std::unique_ptr< SfxTabPage > SvxStdParagraphTabPage::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rSet 
)
static

◆ DeactivatePage()

DeactivateRC SvxStdParagraphTabPage::DeactivatePage ( SfxItemSet pSet)
overrideprotectedvirtual

Reimplemented from SfxTabPage.

Definition at line 880 of file paragrph.cxx.

References ELRLoseFocus(), and FillItemSet().

◆ DECL_LINK() [1/5]

SvxStdParagraphTabPage::DECL_LINK ( AutoHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/5]

SvxStdParagraphTabPage::DECL_LINK ( ELRLoseFocusHdl  ,
weld::MetricSpinButton ,
void   
)

◆ DECL_LINK() [3/5]

SvxStdParagraphTabPage::DECL_LINK ( LineDistHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [4/5]

SvxStdParagraphTabPage::DECL_LINK ( LineDistPopupHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [5/5]

SvxStdParagraphTabPage::DECL_LINK ( ModifyHdl_Impl  ,
weld::MetricSpinButton ,
void   
)
private

◆ ELRLoseFocus()

void SvxStdParagraphTabPage::ELRLoseFocus ( )
private

◆ EnableAbsLineDist()

void SvxStdParagraphTabPage::EnableAbsLineDist ( tools::Long  nMinTwip)

Definition at line 1156 of file paragrph.cxx.

References m_xLineDist, nMinFixDist, and sAbsDist.

Referenced by PageCreated().

◆ EnableAutoFirstLine()

void SvxStdParagraphTabPage::EnableAutoFirstLine ( )

Definition at line 1151 of file paragrph.cxx.

References m_xAutoCB.

Referenced by PageCreated().

◆ EnableContextualMode()

void SvxStdParagraphTabPage::EnableContextualMode ( )

Definition at line 1139 of file paragrph.cxx.

References m_xContextualCB.

Referenced by PageCreated().

◆ EnableNegativeMode()

void SvxStdParagraphTabPage::EnableNegativeMode ( )

◆ EnableRegisterMode()

void SvxStdParagraphTabPage::EnableRegisterMode ( )

Definition at line 1134 of file paragrph.cxx.

References m_xRegisterCB.

Referenced by PageCreated().

◆ EnableRelativeMode()

void SvxStdParagraphTabPage::EnableRelativeMode ( )

◆ FillItemSet()

bool SvxStdParagraphTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 215 of file paragrph.cxx.

References bRelativeMode, SfxItemSet::ClearItem(), SfxBoolItem::Clone(), DBG_ASSERT, Get(), SfxItemSet::Get(), SvxRelativeField::get_value(), SvxRelativeField::get_value_changed_from_saved(), GetCoreValue(), SvxRelativeField::GetCoreValue(), SfxTabPage::GetItemSet(), SfxItemSet::GetItemState(), SvxULSpaceItem::GetLower(), SfxItemPool::GetMetric(), SfxTabPage::GetOldItem(), SfxItemSet::GetParent(), SfxItemSet::GetPool(), SvxLRSpaceItem::GetRight(), SvxRightMarginItem::GetRight(), SvxFirstLineIndentItem::GetTextFirstLineOffset(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxLRSpaceItem::GetTextLeft(), SvxTextLeftMarginItem::GetTextLeft(), SvxULSpaceItem::GetUpper(), SfxBoolItem::GetValue(), SfxTabPage::GetWhich(), SvxTabStopItem::Insert(), SvxRelativeField::IsRelative(), LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, LLINESPACE_DURCH, LLINESPACE_FIX, LLINESPACE_MIN, LLINESPACE_PROP, m_aBottomDist, m_aFLineIndent, m_aLeftIndent, m_aRightIndent, m_aTopDist, m_bLineDistToggled, m_bSplitLRSpace, m_xAutoCB, m_xContextualCB, m_xLineDist, m_xLineDistAtMetricBox, m_xLineDistAtPercentBox, m_xRegisterCB, nPos, SfxItemSet::Put(), SvxFirstLineIndentItem::SetAutoFirst(), SvxLRSpaceItem::SetAutoFirst(), SvxULSpaceItem::SetContextValue(), SetLineSpace_Impl(), SvxULSpaceItem::SetLower(), SvxLRSpaceItem::SetRight(), SvxRightMarginItem::SetRight(), SvxFirstLineIndentItem::SetTextFirstLineOffset(), SvxLRSpaceItem::SetTextFirstLineOffset(), SvxLRSpaceItem::SetTextLeft(), SvxTextLeftMarginItem::SetTextLeft(), and SvxULSpaceItem::SetUpper().

Referenced by DeactivatePage().

◆ GetRanges()

static WhichRangesContainer SvxStdParagraphTabPage::GetRanges ( )
inlinestatic

Definition at line 106 of file paragrph.hxx.

References pStdRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

◆ Init_Impl()

void SvxStdParagraphTabPage::Init_Impl ( )
private

◆ PageCreated()

void SvxStdParagraphTabPage::PageCreated ( const SfxAllItemSet aSet)
overridevirtual

◆ Reset()

void SvxStdParagraphTabPage::Reset ( const SfxItemSet rSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 530 of file paragrph.cxx.

References bRelativeMode, ChangesApplied(), DBG_ASSERT, ELRLoseFocus(), SfxItemSet::Get(), GetApplyCharUnit(), SvxULSpaceItem::GetContext(), GetHtmlMode_Impl(), SfxItemSet::GetItemState(), SvxULSpaceItem::GetLower(), SfxItemPool::GetMetric(), GetModuleFieldUnit(), SfxItemSet::GetPool(), SvxLRSpaceItem::GetPropLeft(), SvxTextLeftMarginItem::GetPropLeft(), SvxULSpaceItem::GetPropLower(), SvxLRSpaceItem::GetPropRight(), SvxRightMarginItem::GetPropRight(), SvxFirstLineIndentItem::GetPropTextFirstLineOffset(), SvxLRSpaceItem::GetPropTextFirstLineOffset(), SvxULSpaceItem::GetPropUpper(), SvxLRSpaceItem::GetRight(), SvxRightMarginItem::GetRight(), SvxFirstLineIndentItem::GetTextFirstLineOffset(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxLRSpaceItem::GetTextLeft(), SvxTextLeftMarginItem::GetTextLeft(), SvxULSpaceItem::GetUpper(), SfxBoolItem::GetValue(), SfxTabPage::GetWhich(), HTMLMODE_ON, SvtCJKOptions::IsAsianTypographyEnabled(), SvxFirstLineIndentItem::IsAutoFirst(), SvxLRSpaceItem::IsAutoFirst(), m_aBottomDist, m_aFLineIndent, m_aLeftIndent, m_aRightIndent, m_aTopDist, m_bSplitLRSpace, m_xAutoCB, m_xContextualCB, m_xLineDist, m_xLineDistAtMetricBox, m_xRegisterCB, rSet, SvxRelativeField::set_min(), SvxRelativeField::set_text(), SvxRelativeField::set_value(), SvxRelativeField::SetFieldUnit(), SetFieldUnit(), SetLineSpacing_Impl(), SvxRelativeField::SetMetricValue(), and SvxRelativeField::SetRelative().

◆ SetLineSpacing_Impl()

void SvxStdParagraphTabPage::SetLineSpacing_Impl ( const SvxLineSpacingItem rAttr)
private

◆ UpdateExample_Impl()

void SvxStdParagraphTabPage::UpdateExample_Impl ( )
private

Member Data Documentation

◆ bRelativeMode

bool SvxStdParagraphTabPage::bRelativeMode
private

Definition at line 48 of file paragrph.hxx.

Referenced by EnableRelativeMode(), FillItemSet(), and Reset().

◆ m_aBottomDist

SvxRelativeField SvxStdParagraphTabPage::m_aBottomDist
private

◆ m_aExampleWin

SvxParaPrevWindow SvxStdParagraphTabPage::m_aExampleWin
private

Definition at line 51 of file paragrph.hxx.

Referenced by ActivatePage(), and UpdateExample_Impl().

◆ m_aFLineIndent

SvxRelativeField SvxStdParagraphTabPage::m_aFLineIndent
private

◆ m_aLeftIndent

SvxRelativeField SvxStdParagraphTabPage::m_aLeftIndent
private

◆ m_aRightIndent

SvxRelativeField SvxStdParagraphTabPage::m_aRightIndent
private

◆ m_aTopDist

SvxRelativeField SvxStdParagraphTabPage::m_aTopDist
private

◆ m_bLineDistToggled

bool SvxStdParagraphTabPage::m_bLineDistToggled = false
private

Definition at line 92 of file paragrph.hxx.

Referenced by FillItemSet().

◆ m_bSplitLRSpace

bool SvxStdParagraphTabPage::m_bSplitLRSpace = false
private

which items to use?

Definition at line 54 of file paragrph.hxx.

Referenced by FillItemSet(), and Reset().

◆ m_xAbsDist

std::unique_ptr<weld::Label> SvxStdParagraphTabPage::m_xAbsDist
private

Definition at line 74 of file paragrph.hxx.

Referenced by SvxStdParagraphTabPage().

◆ m_xAutoCB

std::unique_ptr<weld::CheckButton> SvxStdParagraphTabPage::m_xAutoCB
private

Definition at line 61 of file paragrph.hxx.

Referenced by ChangesApplied(), EnableAutoFirstLine(), FillItemSet(), Init_Impl(), and Reset().

◆ m_xContextualCB

std::unique_ptr<weld::CheckButton> SvxStdParagraphTabPage::m_xContextualCB
private

Definition at line 66 of file paragrph.hxx.

Referenced by ChangesApplied(), EnableContextualMode(), FillItemSet(), and Reset().

◆ m_xExampleWin

std::unique_ptr<weld::CustomWeld> SvxStdParagraphTabPage::m_xExampleWin
private

Definition at line 80 of file paragrph.hxx.

◆ m_xFLineLabel

std::unique_ptr<weld::Label> SvxStdParagraphTabPage::m_xFLineLabel
private

Definition at line 59 of file paragrph.hxx.

◆ m_xLineDist

std::unique_ptr<weld::ComboBox> SvxStdParagraphTabPage::m_xLineDist
private

◆ m_xLineDistAtLabel

std::unique_ptr<weld::Label> SvxStdParagraphTabPage::m_xLineDistAtLabel
private

Definition at line 73 of file paragrph.hxx.

◆ m_xLineDistAtMetricBox

std::unique_ptr<weld::MetricSpinButton> SvxStdParagraphTabPage::m_xLineDistAtMetricBox
private

◆ m_xLineDistAtPercentBox

std::unique_ptr<weld::MetricSpinButton> SvxStdParagraphTabPage::m_xLineDistAtPercentBox
private

Definition at line 70 of file paragrph.hxx.

Referenced by ChangesApplied(), FillItemSet(), and SetLineSpacing_Impl().

◆ m_xLineDistAtPlaceHolderBox

std::unique_ptr<weld::MetricSpinButton> SvxStdParagraphTabPage::m_xLineDistAtPlaceHolderBox
private

Definition at line 72 of file paragrph.hxx.

Referenced by SvxStdParagraphTabPage().

◆ m_xRegisterCB

std::unique_ptr<weld::CheckButton> SvxStdParagraphTabPage::m_xRegisterCB
private

Definition at line 77 of file paragrph.hxx.

Referenced by ChangesApplied(), EnableRegisterMode(), FillItemSet(), and Reset().

◆ nMinFixDist

tools::Long SvxStdParagraphTabPage::nMinFixDist
private

Definition at line 47 of file paragrph.hxx.

Referenced by EnableAbsLineDist().

◆ nWidth

tools::Long SvxStdParagraphTabPage::nWidth
private

Definition at line 46 of file paragrph.hxx.

Referenced by ELRLoseFocus(), and PageCreated().

◆ pStdRanges

const WhichRangesContainer SvxStdParagraphTabPage::pStdRanges
staticprivate

Definition at line 43 of file paragrph.hxx.

Referenced by GetRanges().

◆ sAbsDist

OUString SvxStdParagraphTabPage::sAbsDist
private

Definition at line 49 of file paragrph.hxx.

Referenced by EnableAbsLineDist(), and SvxStdParagraphTabPage().


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