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

#include <numfmt.hxx>

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

Public Member Functions

virtual ~SvxNumberFormatTabPage () override
 
virtual void dispose () 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
 
const SfxItemSetGetItemSet () const
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData ()
 
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 SfxItemSetGetDialogExampleSet () const
 
OString GetConfigId () const
 
weld::WindowGetDialogFrameWeld () const
 

Static Public Member Functions

static VclPtr< SfxTabPageCreate (TabPageParent pParent, 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

 SvxNumberFormatTabPage (TabPageParent pParent, const SfxItemSet &rCoreAttrs)
 
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 &, void)
 
 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< LanguageBoxm_xLbLanguage
 
std::unique_ptr< weld::CustomWeldm_xWndPreview
 

Static Private Attributes

static const sal_uInt16 pRanges []
 

Friends

class VclPtr< SvxNumberFormatTabPage >
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (vcl::Window *pParent, const OString &rID, const OUString &rUIXMLDescription, const SfxItemSet *rAttrSet)
 
 SfxTabPage (TabPageParent pParent, 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
 
- Protected Attributes inherited from SfxTabPage
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 60 of file numfmt.hxx.

Constructor & Destructor Documentation

SvxNumberFormatTabPage::~SvxNumberFormatTabPage ( )
overridevirtual

Definition at line 245 of file numfmt.cxx.

SvxNumberFormatTabPage::SvxNumberFormatTabPage ( TabPageParent  pParent,
const SfxItemSet rCoreAttrs 
)
private

Member Function Documentation

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

Definition at line 1729 of file numfmt.cxx.

References LANGUAGE_SYSTEM, m_xLbLanguage, and sAutomaticLangEntry.

Referenced by Reset().

void SvxNumberFormatTabPage::ChangePreviewText ( sal_uInt16  nPos)
private

Definition at line 1675 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
VclPtr< SfxTabPage > SvxNumberFormatTabPage::Create ( TabPageParent  pParent,
const SfxItemSet rAttrSet 
)
static
DeactivateRC SvxNumberFormatTabPage::DeactivatePage ( SfxItemSet pSet)
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 775 of file numfmt.cxx.

References FillItemSet().

SvxNumberFormatTabPage::DECL_LINK ( LostFocusHdl_Impl  ,
weld::Widget ,
void   
)
private
SvxNumberFormatTabPage::DECL_LINK ( DoubleClickHdl_Impl  ,
weld::TreeView ,
void   
)
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::dispose ( void  )
overridevirtual

Reimplemented from SfxTabPage.

Definition at line 250 of file numfmt.cxx.

References SfxTabPage::dispose(), m_xLbLanguage, m_xWndPreview, pNumFmtShell, and pNumItem.

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

Definition at line 1683 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 354 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 73 of file numfmt.hxx.

References pRanges.

Referenced by AbstractDialogFactory_Impl::GetTabPageRangesFunc().

void SvxNumberFormatTabPage::HideLanguage ( bool  bFlag = true)

Definition at line 657 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 1667 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 1737 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 1700 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 1111 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 998 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 1097 of file numfmt.cxx.

References CAT_SCIENTIFIC, m_xBtnEngineering, m_xBtnThousand, and m_xLbCategory.

Referenced by Init_Impl(), and UpdateOptions_Impl().

Friends And Related Function Documentation

friend class VclPtr< SvxNumberFormatTabPage >
friend

Definition at line 62 of file numfmt.hxx.

Member Data Documentation

bool SvxNumberFormatTabPage::bLegacyAutomaticCurrency
private

Definition at line 90 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 88 of file numfmt.hxx.

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

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

Definition at line 96 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 120 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 114 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

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

Definition at line 97 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

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

Definition at line 119 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 99 of file numfmt.hxx.

Referenced by EnableBySourceFormat_Impl().

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

Definition at line 102 of file numfmt.hxx.

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

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

Definition at line 110 of file numfmt.hxx.

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

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

Definition at line 104 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<LanguageBox> SvxNumberFormatTabPage::m_xLbLanguage
private
std::unique_ptr<weld::CustomWeld> SvxNumberFormatTabPage::m_xWndPreview
private

Definition at line 122 of file numfmt.hxx.

Referenced by dispose().

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

Definition at line 86 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 84 of file numfmt.hxx.

Referenced by dispose(), FillItemSet(), PageCreated(), and Reset().

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 64 of file numfmt.hxx.

Referenced by GetRanges().

OUString SvxNumberFormatTabPage::sAutomaticCurrencyEntry
private

Definition at line 94 of file numfmt.hxx.

Referenced by set_active_currency(), and SvxNumberFormatTabPage().

OUString SvxNumberFormatTabPage::sAutomaticLangEntry
private

Definition at line 93 of file numfmt.hxx.

Referenced by AddAutomaticLanguage_Impl(), and FillItemSet().


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