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

#include <numfmt.hxx>

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

Public Member Functions

 SvxNumberFormatTabPage (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreAttrs)
 
virtual ~SvxNumberFormatTabPage () override
 
virtual bool FillItemSet (SfxItemSet *rSet) override
 
virtual void Reset (const SfxItemSet *rSet) override
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
void HideLanguage (bool bFlag=true)
 
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 *rAttrSet)
 
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)
 

Private Member Functions

void Init_Impl ()
 
void FillCurrencyBox ()
 
void FillFormatListBox_Impl (std::vector< OUString > &rEntries)
 
void UpdateOptions_Impl (bool bCheckCatChange)
 
void UpdateFormatListBox_Impl (bool bCat, bool bUpdateEdit)
 
void UpdateThousandEngineeringCheckBox ()
 Change visible checkbox according to category format if scientific format "Engineering notation" else "Thousands separator". More...
 
void UpdateDecimalsDenominatorEditBox ()
 Change visible Edit box and Fixed text according to category format if fraction format "Denominator places" else "Decimal places". More...
 
void Obstructing ()
 
void EnableBySourceFormat_Impl ()
 
void SetCategory (sal_uInt16 nPos)
 
OUString GetExpColorString (const Color *&rpPreviewColor, const OUString &aFormatStr, short nTmpCatPos)
 
void MakePreviewText (const OUString &rFormat)
 
void ChangePreviewText (sal_uInt16 nPos)
 
void AddAutomaticLanguage_Impl (LanguageType eAutoLang, bool bSelect)
 
bool Click_Impl (const weld::Button &rIB)
 
 DECL_LINK (LostFocusHdl_Impl, weld::Widget &, void)
 
 DECL_LINK (DoubleClickHdl_Impl, weld::TreeView &, bool)
 
 DECL_LINK (SelFormatListBoxHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (SelFormatTreeListBoxHdl_Impl, weld::TreeView &, void)
 
 DECL_LINK (SelFormatClickHdl_Impl, weld::Toggleable &, void)
 
void SelFormatHdl_Impl (weld::Widget *)
 
 DECL_LINK (ClickHdl_Impl, weld::Button &, void)
 
 DECL_LINK (EditModifyHdl_Impl, weld::Entry &, void)
 
 DECL_LINK (OptEditHdl_Impl, weld::SpinButton &, void)
 
 DECL_LINK (OptClickHdl_Impl, weld::Toggleable &, void)
 
void EditHdl_Impl (const weld::Entry *)
 
void OptHdl_Impl (const weld::Widget *)
 
void set_active_currency (sal_Int32 nCurCurrencyEntryPos)
 
sal_uInt32 get_active_currency () const
 

Private Attributes

std::unique_ptr< SvxNumberInfoItempNumItem
 
std::unique_ptr< SvxNumberFormatShellpNumFmtShell
 
sal_uInt32 nInitFormat
 
short m_nLbFormatSelPosEdComment
 
bool bNumItemFlag
 for handling with DocShell More...
 
bool bOneAreaFlag
 
bool bLegacyAutomaticCurrency
 
short nFixedCategory
 
OUString sAutomaticLangEntry
 
OUString sAutomaticCurrencyEntry
 
SvxNumberPreview m_aWndPreview
 
std::unique_ptr< weld::Labelm_xFtCategory
 
std::unique_ptr< weld::TreeViewm_xLbCategory
 
std::unique_ptr< weld::Labelm_xFtFormat
 
std::unique_ptr< weld::ComboBoxm_xLbCurrency
 
std::unique_ptr< weld::TreeViewm_xLbFormat
 
std::unique_ptr< weld::Labelm_xFtLanguage
 
std::unique_ptr< weld::CheckButtonm_xCbSourceFormat
 
std::unique_ptr< weld::Labelm_xFtOptions
 
std::unique_ptr< weld::Labelm_xFtDecimals
 
std::unique_ptr< weld::SpinButtonm_xEdDecimals
 
std::unique_ptr< weld::Labelm_xFtDenominator
 
std::unique_ptr< weld::SpinButtonm_xEdDenominator
 
std::unique_ptr< weld::CheckButtonm_xBtnNegRed
 
std::unique_ptr< weld::Labelm_xFtLeadZeroes
 
std::unique_ptr< weld::SpinButtonm_xEdLeadZeroes
 
std::unique_ptr< weld::CheckButtonm_xBtnThousand
 
std::unique_ptr< weld::CheckButtonm_xBtnEngineering
 
std::unique_ptr< weld::Widgetm_xFormatCodeFrame
 
std::unique_ptr< weld::Entrym_xEdFormat
 
std::unique_ptr< weld::Buttonm_xIbAdd
 
std::unique_ptr< weld::Buttonm_xIbInfo
 
std::unique_ptr< weld::Buttonm_xIbRemove
 
std::unique_ptr< weld::Labelm_xFtComment
 
std::unique_ptr< weld::Entrym_xEdComment
 
std::unique_ptr< SvxLanguageBoxm_xLbLanguage
 
std::unique_ptr< weld::CustomWeldm_xWndPreview
 

Static Private Attributes

static const WhichRangesContainer pRanges
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 57 of file numfmt.hxx.

Constructor & Destructor Documentation

◆ SvxNumberFormatTabPage()

SvxNumberFormatTabPage::SvxNumberFormatTabPage ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rCoreAttrs 
)

◆ ~SvxNumberFormatTabPage()

SvxNumberFormatTabPage::~SvxNumberFormatTabPage ( )
overridevirtual

Definition at line 251 of file numfmt.cxx.

References m_xLbLanguage, m_xWndPreview, pNumFmtShell, and pNumItem.

Member Function Documentation

◆ AddAutomaticLanguage_Impl()

void SvxNumberFormatTabPage::AddAutomaticLanguage_Impl ( LanguageType  eAutoLang,
bool  bSelect 
)
private

Definition at line 1756 of file numfmt.cxx.

References LANGUAGE_SYSTEM, m_xLbLanguage, and sAutomaticLangEntry.

Referenced by Reset().

◆ ChangePreviewText()

void SvxNumberFormatTabPage::ChangePreviewText ( sal_uInt16  nPos)
private

◆ Click_Impl()

bool SvxNumberFormatTabPage::Click_Impl ( const weld::Button rIB)
private

◆ Create()

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

Definition at line 322 of file numfmt.cxx.

Referenced by AbstractDialogFactory_Impl::GetTabPageCreatorFunc().

◆ DeactivatePage()

DeactivateRC SvxNumberFormatTabPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 764 of file numfmt.cxx.

References FillItemSet().

◆ DECL_LINK() [1/9]

SvxNumberFormatTabPage::DECL_LINK ( ClickHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/9]

SvxNumberFormatTabPage::DECL_LINK ( DoubleClickHdl_Impl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [3/9]

SvxNumberFormatTabPage::DECL_LINK ( EditModifyHdl_Impl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [4/9]

SvxNumberFormatTabPage::DECL_LINK ( LostFocusHdl_Impl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [5/9]

SvxNumberFormatTabPage::DECL_LINK ( OptClickHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [6/9]

SvxNumberFormatTabPage::DECL_LINK ( OptEditHdl_Impl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_LINK() [7/9]

SvxNumberFormatTabPage::DECL_LINK ( SelFormatClickHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [8/9]

SvxNumberFormatTabPage::DECL_LINK ( SelFormatListBoxHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [9/9]

SvxNumberFormatTabPage::DECL_LINK ( SelFormatTreeListBoxHdl_Impl  ,
weld::TreeView ,
void   
)
private

◆ EditHdl_Impl()

void SvxNumberFormatTabPage::EditHdl_Impl ( const weld::Entry pEdFormat)
private

◆ EnableBySourceFormat_Impl()

void SvxNumberFormatTabPage::EnableBySourceFormat_Impl ( )
private

◆ FillCurrencyBox()

void SvxNumberFormatTabPage::FillCurrencyBox ( )
private

Definition at line 1710 of file numfmt.cxx.

References bLegacyAutomaticCurrency, i, m_xLbCurrency, pNumFmtShell, and set_active_currency().

Referenced by Reset().

◆ FillFormatListBox_Impl()

void SvxNumberFormatTabPage::FillFormatListBox_Impl ( std::vector< OUString > &  rEntries)
private

◆ FillItemSet()

bool SvxNumberFormatTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual

◆ get_active_currency()

sal_uInt32 SvxNumberFormatTabPage::get_active_currency ( ) const
private

Definition at line 355 of file numfmt.cxx.

References bLegacyAutomaticCurrency, m_xLbCurrency, and SELPOS_NONE.

Referenced by SelFormatHdl_Impl(), and UpdateOptions_Impl().

◆ GetExpColorString()

OUString SvxNumberFormatTabPage::GetExpColorString ( const Color *&  rpPreviewColor,
const OUString &  aFormatStr,
short  nTmpCatPos 
)
private

◆ GetRanges()

static WhichRangesContainer SvxNumberFormatTabPage::GetRanges ( )
inlinestatic

Definition at line 67 of file numfmt.hxx.

References pRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

◆ HideLanguage()

void SvxNumberFormatTabPage::HideLanguage ( bool  bFlag = true)

Definition at line 650 of file numfmt.cxx.

References m_xFtLanguage, and m_xLbLanguage.

Referenced by Reset().

◆ Init_Impl()

void SvxNumberFormatTabPage::Init_Impl ( )
private

◆ MakePreviewText()

void SvxNumberFormatTabPage::MakePreviewText ( const OUString &  rFormat)
private

Definition at line 1694 of file numfmt.cxx.

References m_aWndPreview, SvxNumberPreview::NotifyChange(), and pNumFmtShell.

Referenced by EditHdl_Impl(), and OptHdl_Impl().

◆ Obstructing()

void SvxNumberFormatTabPage::Obstructing ( )
private

◆ OptHdl_Impl()

void SvxNumberFormatTabPage::OptHdl_Impl ( const weld::Widget pOptCtrl)
private

◆ PageCreated()

void SvxNumberFormatTabPage::PageCreated ( const SfxAllItemSet aSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1764 of file numfmt.cxx.

References SvxNumberInfoItem::Clone(), SfxItemSet::GetItem(), and pNumItem.

◆ Reset()

void SvxNumberFormatTabPage::Reset ( const SfxItemSet rSet)
overridevirtual

◆ SelFormatHdl_Impl()

void SvxNumberFormatTabPage::SelFormatHdl_Impl ( weld::Widget pLb)
private

◆ set_active_currency()

void SvxNumberFormatTabPage::set_active_currency ( sal_Int32  nCurCurrencyEntryPos)
private

◆ SetCategory()

void SvxNumberFormatTabPage::SetCategory ( sal_uInt16  nPos)
private

Definition at line 1727 of file numfmt.cxx.

References bOneAreaFlag, CAT_CURRENCY, m_xLbCategory, m_xLbCurrency, nFixedCategory, and nPos.

Referenced by Click_Impl(), Reset(), and UpdateOptions_Impl().

◆ UpdateDecimalsDenominatorEditBox()

void SvxNumberFormatTabPage::UpdateDecimalsDenominatorEditBox ( )
private

Change visible Edit box and Fixed text according to category format if fraction format "Denominator places" else "Decimal places".

Definition at line 1102 of file numfmt.cxx.

References CAT_FRACTION, m_xEdDecimals, m_xEdDenominator, m_xFtDecimals, m_xFtDenominator, and m_xLbCategory.

Referenced by Init_Impl(), and UpdateOptions_Impl().

◆ UpdateFormatListBox_Impl()

void SvxNumberFormatTabPage::UpdateFormatListBox_Impl ( bool  bCat,
bool  bUpdateEdit 
)
private

◆ UpdateOptions_Impl()

void SvxNumberFormatTabPage::UpdateOptions_Impl ( bool  bCheckCatChange)
private

◆ UpdateThousandEngineeringCheckBox()

void SvxNumberFormatTabPage::UpdateThousandEngineeringCheckBox ( )
private

Change visible checkbox according to category format if scientific format "Engineering notation" else "Thousands separator".

Definition at line 1088 of file numfmt.cxx.

References CAT_SCIENTIFIC, m_xBtnEngineering, m_xBtnThousand, and m_xLbCategory.

Referenced by Init_Impl(), and UpdateOptions_Impl().

Member Data Documentation

◆ bLegacyAutomaticCurrency

bool SvxNumberFormatTabPage::bLegacyAutomaticCurrency
private

Definition at line 84 of file numfmt.hxx.

Referenced by FillCurrencyBox(), get_active_currency(), and set_active_currency().

◆ bNumItemFlag

bool SvxNumberFormatTabPage::bNumItemFlag
private

for handling with DocShell

Definition at line 82 of file numfmt.hxx.

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

◆ bOneAreaFlag

bool SvxNumberFormatTabPage::bOneAreaFlag
private

◆ m_aWndPreview

SvxNumberPreview SvxNumberFormatTabPage::m_aWndPreview
private

◆ m_nLbFormatSelPosEdComment

short SvxNumberFormatTabPage::m_nLbFormatSelPosEdComment
private

Definition at line 80 of file numfmt.hxx.

Referenced by Click_Impl(), and SelFormatHdl_Impl().

◆ m_xBtnEngineering

std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xBtnEngineering
private

◆ m_xBtnNegRed

std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xBtnNegRed
private

◆ m_xBtnThousand

std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xBtnThousand
private

◆ m_xCbSourceFormat

std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xCbSourceFormat
private

◆ m_xEdComment

std::unique_ptr<weld::Entry> SvxNumberFormatTabPage::m_xEdComment
private

Definition at line 114 of file numfmt.hxx.

Referenced by Click_Impl(), EditHdl_Impl(), Init_Impl(), Obstructing(), and SelFormatHdl_Impl().

◆ m_xEdDecimals

std::unique_ptr<weld::SpinButton> SvxNumberFormatTabPage::m_xEdDecimals
private

◆ m_xEdDenominator

std::unique_ptr<weld::SpinButton> SvxNumberFormatTabPage::m_xEdDenominator
private

◆ m_xEdFormat

std::unique_ptr<weld::Entry> SvxNumberFormatTabPage::m_xEdFormat
private

◆ m_xEdLeadZeroes

std::unique_ptr<weld::SpinButton> SvxNumberFormatTabPage::m_xEdLeadZeroes
private

◆ m_xFormatCodeFrame

std::unique_ptr<weld::Widget> SvxNumberFormatTabPage::m_xFormatCodeFrame
private

Definition at line 108 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

◆ m_xFtCategory

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtCategory
private

Definition at line 91 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

◆ m_xFtComment

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtComment
private

◆ m_xFtDecimals

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtDecimals
private

◆ m_xFtDenominator

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtDenominator
private

◆ m_xFtFormat

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtFormat
private

Definition at line 93 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

◆ m_xFtLanguage

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtLanguage
private

Definition at line 96 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl(), FillItemSet(), HideLanguage(), and Obstructing().

◆ m_xFtLeadZeroes

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtLeadZeroes
private

Definition at line 104 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl(), Obstructing(), and UpdateOptions_Impl().

◆ m_xFtOptions

std::unique_ptr<weld::Label> SvxNumberFormatTabPage::m_xFtOptions
private

Definition at line 98 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl(), Obstructing(), and UpdateOptions_Impl().

◆ m_xIbAdd

std::unique_ptr<weld::Button> SvxNumberFormatTabPage::m_xIbAdd
private

◆ m_xIbInfo

std::unique_ptr<weld::Button> SvxNumberFormatTabPage::m_xIbInfo
private

◆ m_xIbRemove

std::unique_ptr<weld::Button> SvxNumberFormatTabPage::m_xIbRemove
private

◆ m_xLbCategory

std::unique_ptr<weld::TreeView> SvxNumberFormatTabPage::m_xLbCategory
private

◆ m_xLbCurrency

std::unique_ptr<weld::ComboBox> SvxNumberFormatTabPage::m_xLbCurrency
private

◆ m_xLbFormat

std::unique_ptr<weld::TreeView> SvxNumberFormatTabPage::m_xLbFormat
private

◆ m_xLbLanguage

std::unique_ptr<SvxLanguageBox> SvxNumberFormatTabPage::m_xLbLanguage
private

◆ m_xWndPreview

std::unique_ptr<weld::CustomWeld> SvxNumberFormatTabPage::m_xWndPreview
private

Definition at line 116 of file numfmt.hxx.

Referenced by ~SvxNumberFormatTabPage().

◆ nFixedCategory

short SvxNumberFormatTabPage::nFixedCategory
private

◆ nInitFormat

sal_uInt32 SvxNumberFormatTabPage::nInitFormat
private

Definition at line 79 of file numfmt.hxx.

Referenced by FillItemSet(), and Reset().

◆ pNumFmtShell

std::unique_ptr<SvxNumberFormatShell> SvxNumberFormatTabPage::pNumFmtShell
private

◆ pNumItem

std::unique_ptr<SvxNumberInfoItem> SvxNumberFormatTabPage::pNumItem
private

Definition at line 77 of file numfmt.hxx.

Referenced by FillItemSet(), PageCreated(), Reset(), and ~SvxNumberFormatTabPage().

◆ pRanges

const WhichRangesContainer SvxNumberFormatTabPage::pRanges
staticprivate

Definition at line 59 of file numfmt.hxx.

Referenced by GetRanges().

◆ sAutomaticCurrencyEntry

OUString SvxNumberFormatTabPage::sAutomaticCurrencyEntry
private

Definition at line 88 of file numfmt.hxx.

Referenced by set_active_currency(), and SvxNumberFormatTabPage().

◆ sAutomaticLangEntry

OUString SvxNumberFormatTabPage::sAutomaticLangEntry
private

Definition at line 87 of file numfmt.hxx.

Referenced by AddAutomaticLanguage_Impl(), and FillItemSet().


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