Kaydet (Commit) 98568a5d authored tarafından Michael Meeks's avatar Michael Meeks

sc: cleanup cruft in NumberFormatPropertyPanel.

Change-Id: I379cc8da83231be3b66e8bc413dc0a3f1388c507
üst 26cb65db
...@@ -43,22 +43,14 @@ const char UNO_NUMBERFORMATCURRENCY[] = ".uno:NumberFormatCurrency"; ...@@ -43,22 +43,14 @@ const char UNO_NUMBERFORMATCURRENCY[] = ".uno:NumberFormatCurrency";
const char UNO_NUMBERFORMATDATE[] = ".uno:NumberFormatDate"; const char UNO_NUMBERFORMATDATE[] = ".uno:NumberFormatDate";
const char UNO_INSERTFIXEDTEXT[] = ".uno:InsertFixedText"; const char UNO_INSERTFIXEDTEXT[] = ".uno:InsertFixedText";
//////////////////////////////////////////////////////////////////////////////
// namespace open
namespace sc { namespace sidebar { namespace sc { namespace sidebar {
//////////////////////////////////////////////////////////////////////////////
NumberFormatPropertyPanel::NumberFormatPropertyPanel( NumberFormatPropertyPanel::NumberFormatPropertyPanel(
Window* pParent, Window* pParent,
const cssu::Reference<css::frame::XFrame>& rxFrame, const cssu::Reference<css::frame::XFrame>& rxFrame,
SfxBindings* pBindings) SfxBindings* pBindings)
: PanelLayout(pParent,"NumberFormatPropertyPanel", "modules/scalc/ui/sidebarnumberformat.ui", rxFrame), : PanelLayout(pParent,"NumberFormatPropertyPanel", "modules/scalc/ui/sidebarnumberformat.ui", rxFrame),
maNumFormatControl(SID_NUMBER_TYPE_FORMAT, *pBindings, *this), 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), maFormatControl(SID_NUMBER_FORMAT, *pBindings, *this),
mnCategorySelected(0), mnCategorySelected(0),
...@@ -76,20 +68,16 @@ NumberFormatPropertyPanel::NumberFormatPropertyPanel( ...@@ -76,20 +68,16 @@ NumberFormatPropertyPanel::NumberFormatPropertyPanel(
Initialize(); Initialize();
} }
//////////////////////////////////////////////////////////////////////////////
NumberFormatPropertyPanel::~NumberFormatPropertyPanel() NumberFormatPropertyPanel::~NumberFormatPropertyPanel()
{ {
} }
//////////////////////////////////////////////////////////////////////////////
void NumberFormatPropertyPanel::Initialize() void NumberFormatPropertyPanel::Initialize()
{ {
Link aLink = LINK(this, NumberFormatPropertyPanel, NumFormatSelectHdl); Link aLink = LINK(this, NumberFormatPropertyPanel, NumFormatSelectHdl);
mpLbCategory->SetSelectHdl ( aLink ); mpLbCategory->SetSelectHdl ( aLink );
mpLbCategory->SelectEntryPos(0); mpLbCategory->SelectEntryPos(0);
mpLbCategory->SetAccessibleName(OUString( "Category")); //wj acc mpLbCategory->SetAccessibleName(OUString( "Category"));
mpLbCategory->SetDropDownLineCount(mpLbCategory->GetEntryCount()); mpLbCategory->SetDropDownLineCount(mpLbCategory->GetEntryCount());
aLink = LINK(this, NumberFormatPropertyPanel, NumFormatHdl); aLink = LINK(this, NumberFormatPropertyPanel, NumFormatHdl);
...@@ -99,16 +87,15 @@ void NumberFormatPropertyPanel::Initialize() ...@@ -99,16 +87,15 @@ void NumberFormatPropertyPanel::Initialize()
mpEdDecimals->SetModifyHdl( aLink ); mpEdDecimals->SetModifyHdl( aLink );
mpEdLeadZeroes->SetModifyHdl( aLink ); mpEdLeadZeroes->SetModifyHdl( aLink );
mpEdDecimals->SetAccessibleName(OUString( "Decimal Places")); //wj acc mpEdDecimals->SetAccessibleName(OUString( "Decimal Places"));
mpEdLeadZeroes->SetAccessibleName(OUString( "Leading Zeroes")); //wj acc mpEdLeadZeroes->SetAccessibleName(OUString( "Leading Zeroes"));
mpBtnNegRed->SetClickHdl( aLink ); mpBtnNegRed->SetClickHdl( aLink );
mpBtnThousand->SetClickHdl( aLink ); mpBtnThousand->SetClickHdl( aLink );
mpTBCategory->SetAccessibleRelationLabeledBy(mpTBCategory); mpTBCategory->SetAccessibleRelationLabeledBy(mpTBCategory);
} }
//////////////////////////////////////////////////////////////////////////////
IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox ) IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox )
{ {
const OUString aCommand(pBox->GetItemCommand(pBox->GetCurItemId())); const OUString aCommand(pBox->GetItemCommand(pBox->GetCurItemId()));
...@@ -133,8 +120,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox ) ...@@ -133,8 +120,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox )
return 0L; return 0L;
} }
//////////////////////////////////////////////////////////////////////////////
IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox ) IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox )
{ {
sal_uInt16 nVal = pBox->GetSelectEntryPos(); sal_uInt16 nVal = pBox->GetSelectEntryPos();
...@@ -147,8 +132,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox ) ...@@ -147,8 +132,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox )
return 0L; return 0L;
} }
//////////////////////////////////////////////////////////////////////////////
IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG ) IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG )
{ {
OUString aFormat; OUString aFormat;
...@@ -183,8 +166,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG ) ...@@ -183,8 +166,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG )
return 0L; return 0L;
} }
//////////////////////////////////////////////////////////////////////////////
NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create ( NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create (
Window* pParent, Window* pParent,
const cssu::Reference<css::frame::XFrame>& rxFrame, const cssu::Reference<css::frame::XFrame>& rxFrame,
...@@ -203,16 +184,12 @@ NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create ( ...@@ -203,16 +184,12 @@ NumberFormatPropertyPanel* NumberFormatPropertyPanel::Create (
pBindings); pBindings);
} }
//////////////////////////////////////////////////////////////////////////////
void NumberFormatPropertyPanel::DataChanged( void NumberFormatPropertyPanel::DataChanged(
const DataChangedEvent& rEvent) const DataChangedEvent& rEvent)
{ {
(void)rEvent; (void)rEvent;
} }
//////////////////////////////////////////////////////////////////////////////
void NumberFormatPropertyPanel::HandleContextChange( void NumberFormatPropertyPanel::HandleContextChange(
const ::sfx2::sidebar::EnumContext aContext) const ::sfx2::sidebar::EnumContext aContext)
{ {
...@@ -224,13 +201,9 @@ void NumberFormatPropertyPanel::HandleContextChange( ...@@ -224,13 +201,9 @@ void NumberFormatPropertyPanel::HandleContextChange(
maContext = aContext; maContext = aContext;
// todo // todo
} }
//////////////////////////////////////////////////////////////////////////////
void NumberFormatPropertyPanel::NotifyItemUpdate( void NumberFormatPropertyPanel::NotifyItemUpdate(
sal_uInt16 nSID, sal_uInt16 nSID,
SfxItemState eState, SfxItemState eState,
...@@ -343,19 +316,11 @@ void NumberFormatPropertyPanel::NotifyItemUpdate( ...@@ -343,19 +316,11 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
} }
} }
//////////////////////////////////////////////////////////////////////////////
SfxBindings* NumberFormatPropertyPanel::GetBindings() SfxBindings* NumberFormatPropertyPanel::GetBindings()
{ {
return mpBindings; return mpBindings;
} }
//////////////////////////////////////////////////////////////////////////////
// namespace close
}} // end of namespace ::sc::sidebar }} // end of namespace ::sc::sidebar
//////////////////////////////////////////////////////////////////////////////
// eof
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment