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";
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: */
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