LibreOffice Module cui (master) 1
|
#include <paragrph.hxx>
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 SfxItemSet & | GetItemSet () 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 SfxItemSet * | GetDialogExampleSet () const |
OUString | GetHelpId () const |
OUString | GetConfigId () const |
bool | IsVisible () const |
weld::Window * | GetFrameWeld () const |
std::unordered_map< OUString, css::uno::Any > & | getAdditionalProperties () |
Static Public Member Functions | |
static std::unique_ptr< SfxTabPage > | Create (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet) |
static WhichRangesContainer | GetRanges () |
Static Public Member Functions inherited from SfxTabPage | |
static const SfxPoolItem * | GetItem (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 SfxPoolItem * | GetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true) |
const T * | GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true) |
SfxOkDialogController * | GetDialogController () 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::Label > | m_xFLineLabel |
SvxRelativeField | m_aFLineIndent |
std::unique_ptr< weld::CheckButton > | m_xAutoCB |
SvxRelativeField | m_aTopDist |
SvxRelativeField | m_aBottomDist |
std::unique_ptr< weld::CheckButton > | m_xContextualCB |
std::unique_ptr< weld::ComboBox > | m_xLineDist |
std::unique_ptr< weld::MetricSpinButton > | m_xLineDistAtPercentBox |
std::unique_ptr< weld::MetricSpinButton > | m_xLineDistAtMetricBox |
std::unique_ptr< weld::MetricSpinButton > | m_xLineDistAtPlaceHolderBox |
std::unique_ptr< weld::Label > | m_xLineDistAtLabel |
std::unique_ptr< weld::Label > | m_xAbsDist |
std::unique_ptr< weld::CheckButton > | m_xRegisterCB |
std::unique_ptr< weld::CustomWeld > | m_xExampleWin |
bool | m_bLineDistToggled = false |
Static Private Attributes | |
static const WhichRangesContainer | pStdRanges |
Definition at line 41 of file paragrph.hxx.
SvxStdParagraphTabPage::SvxStdParagraphTabPage | ( | weld::Container * | pPage, |
weld::DialogController * | pController, | ||
const SfxItemSet & | rSet | ||
) |
Definition at line 889 of file paragrph.cxx.
References CM, Init_Impl(), m_aFLineIndent, m_xAbsDist, m_xLineDistAtMetricBox, m_xLineDistAtPlaceHolderBox, PERCENT(), sAbsDist, SvxRelativeField::set_min(), and SfxTabPage::SetExchangeSupport().
|
overridevirtual |
Definition at line 924 of file paragrph.cxx.
|
overrideprotectedvirtual |
Reimplemented from SfxTabPage.
Definition at line 843 of file paragrph.cxx.
References SfxItemSet::Get(), SvxAdjustItem::GetAdjust(), SfxItemSet::GetItemState(), SvxAdjustItem::GetLastBlock(), SfxTabPage::GetWhich(), m_aExampleWin, rSet, SvxParaPrevWindow::SetAdjust(), SvxParaPrevWindow::SetLastLine(), and UpdateExample_Impl().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 816 of file paragrph.cxx.
References m_aBottomDist, m_aFLineIndent, m_aLeftIndent, m_aRightIndent, m_aTopDist, m_xAutoCB, m_xContextualCB, m_xLineDist, m_xLineDistAtMetricBox, m_xLineDistAtPercentBox, m_xRegisterCB, and SvxRelativeField::save_value().
Referenced by Reset().
|
static |
Definition at line 210 of file paragrph.cxx.
References rSet.
Referenced by AbstractDialogFactory_Impl::GetTabPageCreatorFunc(), and SvxSearchFormatDialog::SvxSearchFormatDialog().
|
overrideprotectedvirtual |
Reimplemented from SfxTabPage.
Definition at line 880 of file paragrph.cxx.
References ELRLoseFocus(), and FillItemSet().
|
private |
SvxStdParagraphTabPage::DECL_LINK | ( | ELRLoseFocusHdl | , |
weld::MetricSpinButton & | , | ||
void | |||
) |
|
private |
|
private |
|
private |
|
private |
Definition at line 166 of file paragrph.cxx.
References DBG_ASSERT, SvxRelativeField::denormalize(), SvxRelativeField::get_min(), SvxRelativeField::get_text(), SvxRelativeField::get_value(), SfxTabPage::GetItemSet(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SfxTabPage::GetWhich(), m_aFLineIndent, m_aLeftIndent, m_aRightIndent, MapToFieldUnit(), MM50, SvxRelativeField::normalize(), nWidth, SvxRelativeField::set_max(), SvxRelativeField::set_min(), SvxRelativeField::set_text(), and UpdateExample_Impl().
Referenced by DeactivatePage(), and Reset().
void SvxStdParagraphTabPage::EnableAbsLineDist | ( | tools::Long | nMinTwip | ) |
Definition at line 1156 of file paragrph.cxx.
References m_xLineDist, nMinFixDist, and sAbsDist.
Referenced by PageCreated().
void SvxStdParagraphTabPage::EnableAutoFirstLine | ( | ) |
void SvxStdParagraphTabPage::EnableContextualMode | ( | ) |
Definition at line 1139 of file paragrph.cxx.
References m_xContextualCB.
Referenced by PageCreated().
void SvxStdParagraphTabPage::EnableNegativeMode | ( | ) |
Definition at line 928 of file paragrph.cxx.
References SvxRelativeField::EnableNegativeMode(), m_aLeftIndent, m_aRightIndent, and SvxRelativeField::set_min().
Referenced by PageCreated().
void SvxStdParagraphTabPage::EnableRegisterMode | ( | ) |
Definition at line 1134 of file paragrph.cxx.
References m_xRegisterCB.
Referenced by PageCreated().
void SvxStdParagraphTabPage::EnableRelativeMode | ( | ) |
Definition at line 831 of file paragrph.cxx.
References bRelativeMode, DBG_ASSERT, SvxRelativeField::EnableRelativeMode(), SfxTabPage::GetItemSet(), m_aBottomDist, m_aFLineIndent, m_aLeftIndent, m_aRightIndent, and m_aTopDist.
Referenced by PageCreated().
|
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().
|
inlinestatic |
Definition at line 106 of file paragrph.hxx.
References pStdRanges.
Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().
|
private |
Definition at line 1084 of file paragrph.cxx.
References SvxRelativeField::connect_value_changed(), DBG_ASSERT, SfxTabPage::GetItemSet(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SfxTabPage::GetWhich(), LINK, m_aBottomDist, m_aFLineIndent, m_aLeftIndent, m_aRightIndent, m_aTopDist, m_xAutoCB, m_xLineDist, m_xLineDistAtMetricBox, MapToFieldUnit(), MAX_DURCH, SvxRelativeField::normalize(), and SvxRelativeField::set_max().
Referenced by SvxStdParagraphTabPage().
|
overridevirtual |
Reimplemented from SfxTabPage.
Definition at line 1162 of file paragrph.cxx.
References EnableAbsLineDist(), EnableAutoFirstLine(), EnableContextualMode(), EnableNegativeMode(), EnableRegisterMode(), EnableRelativeMode(), SfxItemSet::GetItem(), CntUInt16Item::GetValue(), and nWidth.
|
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().
|
private |
Definition at line 936 of file paragrph.cxx.
References SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), SfxTabPage::GetItemSet(), SvxLineSpacingItem::GetLineHeight(), SvxLineSpacingItem::GetLineSpaceRule(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SvxLineSpacingItem::GetPropLineSpace(), LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, LLINESPACE_DURCH, LLINESPACE_FIX, LLINESPACE_MIN, LLINESPACE_PROP, m_xLineDist, m_xLineDistAtMetricBox, m_xLineDistAtPercentBox, and SetMetricValue().
Referenced by Reset().
|
private |
Definition at line 1108 of file paragrph.cxx.
References SvxRelativeField::denormalize(), SvxRelativeField::get_value(), LLINESPACE_1, LLINESPACE_115, LLINESPACE_15, LLINESPACE_2, LLINESPACE_DURCH, LLINESPACE_FIX, LLINESPACE_MIN, LLINESPACE_PROP, m_aBottomDist, m_aExampleWin, m_aFLineIndent, m_aLeftIndent, m_aRightIndent, m_aTopDist, m_xLineDist, nPos, SvxParaPrevWindow::SetFirstLineOffset(), SvxParaPrevWindow::SetLeftMargin(), SvxParaPrevWindow::SetLineSpace(), SvxParaPrevWindow::SetLower(), SvxParaPrevWindow::SetRightMargin(), and SvxParaPrevWindow::SetUpper().
Referenced by ActivatePage(), and ELRLoseFocus().
|
private |
Definition at line 48 of file paragrph.hxx.
Referenced by EnableRelativeMode(), FillItemSet(), and Reset().
|
private |
Definition at line 65 of file paragrph.hxx.
Referenced by ChangesApplied(), EnableRelativeMode(), FillItemSet(), Init_Impl(), Reset(), and UpdateExample_Impl().
|
private |
Definition at line 51 of file paragrph.hxx.
Referenced by ActivatePage(), and UpdateExample_Impl().
|
private |
Definition at line 60 of file paragrph.hxx.
Referenced by ChangesApplied(), ELRLoseFocus(), EnableRelativeMode(), FillItemSet(), Init_Impl(), Reset(), SvxStdParagraphTabPage(), and UpdateExample_Impl().
|
private |
Definition at line 55 of file paragrph.hxx.
Referenced by ChangesApplied(), ELRLoseFocus(), EnableNegativeMode(), EnableRelativeMode(), FillItemSet(), Init_Impl(), Reset(), and UpdateExample_Impl().
|
private |
Definition at line 57 of file paragrph.hxx.
Referenced by ChangesApplied(), ELRLoseFocus(), EnableNegativeMode(), EnableRelativeMode(), FillItemSet(), Init_Impl(), Reset(), and UpdateExample_Impl().
|
private |
Definition at line 64 of file paragrph.hxx.
Referenced by ChangesApplied(), EnableRelativeMode(), FillItemSet(), Init_Impl(), Reset(), and UpdateExample_Impl().
|
private |
Definition at line 92 of file paragrph.hxx.
Referenced by FillItemSet().
|
private |
which items to use?
Definition at line 54 of file paragrph.hxx.
Referenced by FillItemSet(), and Reset().
|
private |
Definition at line 74 of file paragrph.hxx.
Referenced by SvxStdParagraphTabPage().
|
private |
Definition at line 61 of file paragrph.hxx.
Referenced by ChangesApplied(), EnableAutoFirstLine(), FillItemSet(), Init_Impl(), and Reset().
|
private |
Definition at line 66 of file paragrph.hxx.
Referenced by ChangesApplied(), EnableContextualMode(), FillItemSet(), and Reset().
|
private |
Definition at line 80 of file paragrph.hxx.
|
private |
Definition at line 59 of file paragrph.hxx.
|
private |
Definition at line 69 of file paragrph.hxx.
Referenced by ChangesApplied(), EnableAbsLineDist(), FillItemSet(), Init_Impl(), Reset(), SetLineSpacing_Impl(), and UpdateExample_Impl().
|
private |
Definition at line 73 of file paragrph.hxx.
|
private |
Definition at line 71 of file paragrph.hxx.
Referenced by ChangesApplied(), FillItemSet(), Init_Impl(), Reset(), SetLineSpacing_Impl(), and SvxStdParagraphTabPage().
|
private |
Definition at line 70 of file paragrph.hxx.
Referenced by ChangesApplied(), FillItemSet(), and SetLineSpacing_Impl().
|
private |
Definition at line 72 of file paragrph.hxx.
Referenced by SvxStdParagraphTabPage().
|
private |
Definition at line 77 of file paragrph.hxx.
Referenced by ChangesApplied(), EnableRegisterMode(), FillItemSet(), and Reset().
|
private |
Definition at line 47 of file paragrph.hxx.
Referenced by EnableAbsLineDist().
|
private |
Definition at line 46 of file paragrph.hxx.
Referenced by ELRLoseFocus(), and PageCreated().
|
staticprivate |
Definition at line 43 of file paragrph.hxx.
Referenced by GetRanges().
|
private |
Definition at line 49 of file paragrph.hxx.
Referenced by EnableAbsLineDist(), and SvxStdParagraphTabPage().