diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-02-03 17:11:38 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-02-03 18:05:54 +0100 |
commit | 98568a5da6fd0a6540cdc9911cfbb16e34c55de2 (patch) | |
tree | a3f55bdd8bfa490c7d76c786a3a0b3a61e91ed42 /sc | |
parent | 26cb65db74d67fc2561a495018d0f580c31202bc (diff) |
sc: cleanup cruft in NumberFormatPropertyPanel.
Change-Id: I379cc8da83231be3b66e8bc413dc0a3f1388c507
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx index 4ea37c98074b..142bd51729cf 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx @@ -43,22 +43,14 @@ const char UNO_NUMBERFORMATCURRENCY[] = ".uno:NumberFormatCurrency"; const char UNO_NUMBERFORMATDATE[] = ".uno:NumberFormatDate"; const char UNO_INSERTFIXEDTEXT[] = ".uno:InsertFixedText"; -////////////////////////////////////////////////////////////////////////////// -// namespace open - namespace sc { namespace sidebar { -////////////////////////////////////////////////////////////////////////////// - NumberFormatPropertyPanel::NumberFormatPropertyPanel( Window* pParent, const cssu::Reference<css::frame::XFrame>& rxFrame, SfxBindings* pBindings) : PanelLayout(pParent,"NumberFormatPropertyPanel", "modules/scalc/ui/sidebarnumberformat.ui", rxFrame), maNumFormatControl(SID_NUMBER_TYPE_FORMAT, *pBindings, *this), - - // Caution! SID_NUMBER_FORMAT is reworked in symphony code, may be needed (!) If - // yes, grep for it in SC and symphony (!) maFormatControl(SID_NUMBER_FORMAT, *pBindings, *this), mnCategorySelected(0), @@ -76,20 +68,16 @@ NumberFormatPropertyPanel::NumberFormatPropertyPanel( Initialize(); } -////////////////////////////////////////////////////////////////////////////// - NumberFormatPropertyPanel::~NumberFormatPropertyPanel() { } -////////////////////////////////////////////////////////////////////////////// - void NumberFormatPropertyPanel::Initialize() { Link aLink = LINK(this, NumberFormatPropertyPanel, NumFormatSelectHdl); mpLbCategory->SetSelectHdl ( aLink ); mpLbCategory->SelectEntryPos(0); - mpLbCategory->SetAccessibleName(OUString( "Category")); //wj acc + mpLbCategory->SetAccessibleName(OUString( "Category")); mpLbCategory->SetDropDownLineCount(mpLbCategory->GetEntryCount()); aLink = LINK(this, NumberFormatPropertyPanel, NumFormatHdl); @@ -99,16 +87,15 @@ void NumberFormatPropertyPanel::Initialize() mpEdDecimals->SetModifyHdl( aLink ); mpEdLeadZeroes->SetModifyHdl( aLink ); - mpEdDecimals->SetAccessibleName(OUString( "Decimal Places")); //wj acc - mpEdLeadZeroes->SetAccessibleName(OUString( "Leading Zeroes")); //wj acc + mpEdDecimals->SetAccessibleName(OUString( "Decimal Places")); + mpEdLeadZeroes->SetAccessibleName(OUString( "Leading Zeroes")); + mpBtnNegRed->SetClickHdl( aLink ); mpBtnThousand->SetClickHdl( aLink ); mpTBCategory->SetAccessibleRelationLabeledBy(mpTBCategory); } -////////////////////////////////////////////////////////////////////////////// - IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox ) { const OUString aCommand(pBox->GetItemCommand(pBox->GetCurItemId())); @@ -133,8 +120,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox ) return 0L; } -////////////////////////////////////////////////////////////////////////////// - IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox ) { sal_uInt16 nVal = pBox->GetSelectEntryPos(); @@ -147,8 +132,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox ) return 0L; } -////////////////////////////////////////////////////////////////////////////// - IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG ) { OUString aFormat; @@ -183,8 +166,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG ) return 0L; } -////////////////////////////////////////////////////////////////////////////// - NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create ( Window* pParent, const cssu::Reference<css::frame::XFrame>& rxFrame, @@ -203,16 +184,12 @@ NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create ( pBindings); } -////////////////////////////////////////////////////////////////////////////// - void NumberFormatPropertyPanel::DataChanged( const DataChangedEvent& rEvent) { (void)rEvent; } -////////////////////////////////////////////////////////////////////////////// - void NumberFormatPropertyPanel::HandleContextChange( const ::sfx2::sidebar::EnumContext aContext) { @@ -224,13 +201,9 @@ void NumberFormatPropertyPanel::HandleContextChange( maContext = aContext; - - // todo } -////////////////////////////////////////////////////////////////////////////// - void NumberFormatPropertyPanel::NotifyItemUpdate( sal_uInt16 nSID, SfxItemState eState, @@ -343,19 +316,11 @@ void NumberFormatPropertyPanel::NotifyItemUpdate( } } -////////////////////////////////////////////////////////////////////////////// - SfxBindings* NumberFormatPropertyPanel::GetBindings() { return mpBindings; } -////////////////////////////////////////////////////////////////////////////// -// namespace close - }} // end of namespace ::sc::sidebar -////////////////////////////////////////////////////////////////////////////// -// eof - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |