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
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
 
static const sal_uInt16 * 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 (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 (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::Button &, 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::Button &, void)
 
 DECL_LINK (TimeHdl_Impl, Timer *, 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_uLong nInitFormat
 
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 sal_uInt16 pRanges []
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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 58 of file numfmt.hxx.

Constructor & Destructor Documentation

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

Definition at line 240 of file numfmt.cxx.

References m_xLbLanguage, m_xWndPreview, pNumFmtShell, and pNumItem.

Member Function Documentation

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

Definition at line 1718 of file numfmt.cxx.

References LANGUAGE_SYSTEM, m_xLbLanguage, and sAutomaticLangEntry.

Referenced by Reset().

void SvxNumberFormatTabPage::ChangePreviewText ( sal_uInt16  nPos)
private

Definition at line 1664 of file numfmt.cxx.

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

Referenced by Click_Impl(), and SelFormatHdl_Impl().

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

Definition at line 310 of file numfmt.cxx.

Referenced by AbstractDialogFactory_Impl::GetTabPageCreatorFunc().

DeactivateRC SvxNumberFormatTabPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 764 of file numfmt.cxx.

References FillItemSet().

SvxNumberFormatTabPage::DECL_LINK ( LostFocusHdl_Impl  ,
weld::Widget ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( DoubleClickHdl_Impl  ,
weld::TreeView ,
bool   
)
private
SvxNumberFormatTabPage::DECL_LINK ( SelFormatListBoxHdl_Impl  ,
weld::ComboBox ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( SelFormatTreeListBoxHdl_Impl  ,
weld::TreeView ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( SelFormatClickHdl_Impl  ,
weld::Button ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( ClickHdl_Impl  ,
weld::Button ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( EditModifyHdl_Impl  ,
weld::Entry ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( OptEditHdl_Impl  ,
weld::SpinButton ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( OptClickHdl_Impl  ,
weld::Button ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( TimeHdl_Impl  ,
Timer ,
void   
)
private
void SvxNumberFormatTabPage::EditHdl_Impl ( const weld::Entry pEdFormat)
private
void SvxNumberFormatTabPage::EnableBySourceFormat_Impl ( )
private
void SvxNumberFormatTabPage::FillCurrencyBox ( )
private

Definition at line 1672 of file numfmt.cxx.

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

Referenced by Reset().

void SvxNumberFormatTabPage::FillFormatListBox_Impl ( std::vector< OUString > &  rEntries)
private
bool SvxNumberFormatTabPage::FillItemSet ( SfxItemSet rSet)
overridevirtual
sal_uInt32 SvxNumberFormatTabPage::get_active_currency ( ) const
private

Definition at line 343 of file numfmt.cxx.

References bLegacyAutomaticCurrency, m_xLbCurrency, and SELPOS_NONE.

Referenced by SelFormatHdl_Impl(), and UpdateOptions_Impl().

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

Definition at line 68 of file numfmt.hxx.

References pRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

void SvxNumberFormatTabPage::HideLanguage ( bool  bFlag = true)

Definition at line 646 of file numfmt.cxx.

References m_xFtLanguage, and m_xLbLanguage.

Referenced by Reset().

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

Definition at line 1656 of file numfmt.cxx.

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

Referenced by EditHdl_Impl(), and OptHdl_Impl().

void SvxNumberFormatTabPage::Obstructing ( )
private
void SvxNumberFormatTabPage::OptHdl_Impl ( const weld::Widget pOptCtrl)
private
void SvxNumberFormatTabPage::PageCreated ( const SfxAllItemSet aSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 1726 of file numfmt.cxx.

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

void SvxNumberFormatTabPage::Reset ( const SfxItemSet rSet)
overridevirtual
void SvxNumberFormatTabPage::SelFormatHdl_Impl ( weld::Widget pLb)
private
void SvxNumberFormatTabPage::set_active_currency ( sal_Int32  nCurCurrencyEntryPos)
private
void SvxNumberFormatTabPage::SetCategory ( sal_uInt16  nPos)
private

Definition at line 1689 of file numfmt.cxx.

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

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

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 1100 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().

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

Definition at line 987 of file numfmt.cxx.

References CAT_CURRENCY, REMOVE_DONTKNOW, and SELPOS_NONE.

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

void SvxNumberFormatTabPage::UpdateOptions_Impl ( bool  bCheckCatChange)
private
void SvxNumberFormatTabPage::UpdateThousandEngineeringCheckBox ( )
private

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

Definition at line 1086 of file numfmt.cxx.

References CAT_SCIENTIFIC, m_xBtnEngineering, m_xBtnThousand, and m_xLbCategory.

Referenced by Init_Impl(), and UpdateOptions_Impl().

Member Data Documentation

bool SvxNumberFormatTabPage::bLegacyAutomaticCurrency
private

Definition at line 84 of file numfmt.hxx.

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

bool SvxNumberFormatTabPage::bNumItemFlag
private

for handling with DocShell

Definition at line 82 of file numfmt.hxx.

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

bool SvxNumberFormatTabPage::bOneAreaFlag
private
SvxNumberPreview SvxNumberFormatTabPage::m_aWndPreview
private

Definition at line 90 of file numfmt.hxx.

Referenced by ChangePreviewText(), MakePreviewText(), and Obstructing().

std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xBtnEngineering
private
std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xBtnNegRed
private
std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xBtnThousand
private
std::unique_ptr<weld::CheckButton> SvxNumberFormatTabPage::m_xCbSourceFormat
private
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().

std::unique_ptr<weld::SpinButton> SvxNumberFormatTabPage::m_xEdDecimals
private
std::unique_ptr<weld::SpinButton> SvxNumberFormatTabPage::m_xEdDenominator
private
std::unique_ptr<weld::Entry> SvxNumberFormatTabPage::m_xEdFormat
private
std::unique_ptr<weld::SpinButton> SvxNumberFormatTabPage::m_xEdLeadZeroes
private
std::unique_ptr<weld::Widget> SvxNumberFormatTabPage::m_xFormatCodeFrame
private

Definition at line 108 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

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

Definition at line 91 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

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

Definition at line 113 of file numfmt.hxx.

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

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

Definition at line 93 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

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().

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().

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().

std::unique_ptr<weld::Button> SvxNumberFormatTabPage::m_xIbAdd
private
std::unique_ptr<weld::Button> SvxNumberFormatTabPage::m_xIbInfo
private
std::unique_ptr<weld::Button> SvxNumberFormatTabPage::m_xIbRemove
private
std::unique_ptr<weld::TreeView> SvxNumberFormatTabPage::m_xLbCategory
private
std::unique_ptr<weld::ComboBox> SvxNumberFormatTabPage::m_xLbCurrency
private
std::unique_ptr<weld::TreeView> SvxNumberFormatTabPage::m_xLbFormat
private
std::unique_ptr<SvxLanguageBox> SvxNumberFormatTabPage::m_xLbLanguage
private
std::unique_ptr<weld::CustomWeld> SvxNumberFormatTabPage::m_xWndPreview
private

Definition at line 116 of file numfmt.hxx.

Referenced by ~SvxNumberFormatTabPage().

short SvxNumberFormatTabPage::nFixedCategory
private
sal_uLong SvxNumberFormatTabPage::nInitFormat
private

Definition at line 80 of file numfmt.hxx.

Referenced by FillItemSet(), and Reset().

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

Definition at line 78 of file numfmt.hxx.

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

const sal_uInt16 SvxNumberFormatTabPage::pRanges
staticprivate
Initial value:
=
{
SID_ATTR_NUMBERFORMAT_VALUE,
SID_ATTR_NUMBERFORMAT_INFO,
SID_ATTR_NUMBERFORMAT_NOLANGUAGE,
SID_ATTR_NUMBERFORMAT_NOLANGUAGE,
SID_ATTR_NUMBERFORMAT_ONE_AREA,
SID_ATTR_NUMBERFORMAT_ONE_AREA,
SID_ATTR_NUMBERFORMAT_SOURCE,
SID_ATTR_NUMBERFORMAT_SOURCE,
0
}

Definition at line 60 of file numfmt.hxx.

Referenced by GetRanges().

OUString SvxNumberFormatTabPage::sAutomaticCurrencyEntry
private

Definition at line 88 of file numfmt.hxx.

Referenced by set_active_currency(), and SvxNumberFormatTabPage().

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: