From c4c51709eaa02a5c9a2af3e5d436790307109813 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 6 Apr 2014 17:13:43 +0200 Subject: whitespace cleanup in sc Change-Id: Id1dcadcac179c52977e48a6912ce4d5fd542f60c --- sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 40 ---------------------- .../ui/sidebar/CellAppearancePropertyPanel.cxx | 38 -------------------- 2 files changed, 78 deletions(-) (limited to 'sc/source/ui/sidebar') diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx index 256fd3aaccf5..7d35b067a199 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx @@ -49,8 +49,6 @@ const char UNO_ALIGNVCENTER[] = ".uno:AlignVCenter"; namespace sc { namespace sidebar { - - AlignmentPropertyPanel::AlignmentPropertyPanel( Window* pParent, const cssu::Reference& rxFrame, @@ -87,14 +85,10 @@ AlignmentPropertyPanel::AlignmentPropertyPanel( mpFtRotate->SetBackground(Wallpaper()); } - - AlignmentPropertyPanel::~AlignmentPropertyPanel() { } - - void AlignmentPropertyPanel::Initialize() { Link aLink = LINK(this, AlignmentPropertyPanel, TbxHorAlignSelectHdl); @@ -146,8 +140,6 @@ void AlignmentPropertyPanel::Initialize() #endif } - - IMPL_LINK( AlignmentPropertyPanel, AngleModifiedHdl, void *, EMPTYARG ) { OUString sTmp = mpMtrAngle->GetText(); @@ -168,8 +160,6 @@ IMPL_LINK( AlignmentPropertyPanel, AngleModifiedHdl, void *, EMPTYARG ) return 0; } - - IMPL_LINK( AlignmentPropertyPanel, RotationHdl, void *, EMPTYARG ) { sal_Int32 nTmp = mpCtrlDial->GetRotation(); @@ -181,8 +171,6 @@ IMPL_LINK( AlignmentPropertyPanel, RotationHdl, void *, EMPTYARG ) return 0; } - - IMPL_LINK( AlignmentPropertyPanel, ClickStackHdl, void *, EMPTYARG ) { bool bVertical = mpCbStacked->IsChecked() ? true : false; @@ -192,8 +180,6 @@ IMPL_LINK( AlignmentPropertyPanel, ClickStackHdl, void *, EMPTYARG ) return 0; } - - IMPL_LINK(AlignmentPropertyPanel, TbxHorAlignSelectHdl, ToolBox*, pToolBox) { const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId())); @@ -232,8 +218,6 @@ IMPL_LINK(AlignmentPropertyPanel, TbxHorAlignSelectHdl, ToolBox*, pToolBox) return 0; } - - IMPL_LINK(AlignmentPropertyPanel, TbxVerAlignSelectHdl, ToolBox*, pToolBox) { const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId())); @@ -265,8 +249,6 @@ IMPL_LINK(AlignmentPropertyPanel, TbxVerAlignSelectHdl, ToolBox*, pToolBox) return 0; } - - IMPL_LINK(AlignmentPropertyPanel, MFLeftIndentMdyHdl, void*, EMPTYARG) { mpCBXWrapText->EnableTriState(false); @@ -277,8 +259,6 @@ IMPL_LINK(AlignmentPropertyPanel, MFLeftIndentMdyHdl, void*, EMPTYARG) return( 0L ); } - - IMPL_LINK(AlignmentPropertyPanel, CBOXMergnCellClkHdl, void*, EMPTYARG) { bool bState = mpCBXMergeCell->IsChecked(); @@ -296,8 +276,6 @@ IMPL_LINK(AlignmentPropertyPanel, CBOXMergnCellClkHdl, void*, EMPTYARG) return 0; } - - IMPL_LINK(AlignmentPropertyPanel, CBOXWrapTextClkHdl, void*, EMPTYARG) { bool bState = mpCBXWrapText->IsChecked(); @@ -306,8 +284,6 @@ IMPL_LINK(AlignmentPropertyPanel, CBOXWrapTextClkHdl, void*, EMPTYARG) return 0; } - - AlignmentPropertyPanel* AlignmentPropertyPanel::Create ( Window* pParent, const cssu::Reference& rxFrame, @@ -326,16 +302,12 @@ AlignmentPropertyPanel* AlignmentPropertyPanel::Create ( pBindings); } - - void AlignmentPropertyPanel::DataChanged( const DataChangedEvent& rEvent) { (void)rEvent; } - - void AlignmentPropertyPanel::HandleContextChange( const ::sfx2::sidebar::EnumContext aContext) { @@ -347,13 +319,9 @@ void AlignmentPropertyPanel::HandleContextChange( maContext = aContext; - - // todo } - - void AlignmentPropertyPanel::NotifyItemUpdate( sal_uInt16 nSID, SfxItemState eState, @@ -520,15 +488,11 @@ void AlignmentPropertyPanel::NotifyItemUpdate( } } - - SfxBindings* AlignmentPropertyPanel::GetBindings() { return mpBindings; } - - void AlignmentPropertyPanel::FormatDegrees(double& dTmp) { while(dTmp<0) @@ -537,8 +501,6 @@ void AlignmentPropertyPanel::FormatDegrees(double& dTmp) dTmp = 359; } - - void AlignmentPropertyPanel::UpdateHorAlign() { const sal_uInt16 nIdLeft = mpTBHorizontal->GetItemId(UNO_ALIGNLEFT); @@ -589,8 +551,6 @@ void AlignmentPropertyPanel::UpdateHorAlign() } } - - void AlignmentPropertyPanel::UpdateVerAlign() { const sal_uInt16 nIdTop = mpTBVertical->GetItemId(UNO_ALIGNTOP); diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx index adc77f8bb98a..66e28c30f6f8 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx @@ -68,8 +68,6 @@ namespace namespace sc { namespace sidebar { - - svx::sidebar::PopupControl* CellAppearancePropertyPanel::CreateFillColorPopupControl(svx::sidebar::PopupContainer* pParent) { const ScResId aResId(VS_NOFILLCOLOR); @@ -94,8 +92,6 @@ void CellAppearancePropertyPanel::SetFillColor( maBackColor = aColor; } - - svx::sidebar::PopupControl* CellAppearancePropertyPanel::CreateLineColorPopupControl(svx::sidebar::PopupContainer* pParent) { return new svx::sidebar::ColorControl( @@ -118,8 +114,6 @@ void CellAppearancePropertyPanel::SetLineColor( maLineColor = aColor; } - - svx::sidebar::PopupControl* CellAppearancePropertyPanel::CreateCellLineStylePopupControl(svx::sidebar::PopupContainer* pParent) { return new CellLineStyleControl(pParent, *this); @@ -133,8 +127,6 @@ void CellAppearancePropertyPanel::EndCellLineStylePopupMode(void) } } - - svx::sidebar::PopupControl* CellAppearancePropertyPanel::CreateCellBorderStylePopupControl(svx::sidebar::PopupContainer* pParent) { return new CellBorderStyleControl(pParent, *this); @@ -148,8 +140,6 @@ void CellAppearancePropertyPanel::EndCellBorderStylePopupMode(void) } } - - CellAppearancePropertyPanel::CellAppearancePropertyPanel( Window* pParent, const cssu::Reference& rxFrame, @@ -230,14 +220,10 @@ CellAppearancePropertyPanel::CellAppearancePropertyPanel( Initialize(); } - - CellAppearancePropertyPanel::~CellAppearancePropertyPanel() { } - - void CellAppearancePropertyPanel::Initialize() { const sal_uInt16 nIdBkColor = mpTBFillColor->GetItemId( UNO_BACKGROUNDCOLOR ); @@ -275,8 +261,6 @@ void CellAppearancePropertyPanel::Initialize() mpTBLineStyle->SetAccessibleRelationLabeledBy(mpTBLineStyle); } - - IMPL_LINK(CellAppearancePropertyPanel, TbxBKColorSelectHdl, ToolBox*, pToolBox) { const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId())); @@ -289,8 +273,6 @@ IMPL_LINK(CellAppearancePropertyPanel, TbxBKColorSelectHdl, ToolBox*, pToolBox) return 0; } - - IMPL_LINK(CellAppearancePropertyPanel, TbxLineColorSelectHdl, ToolBox*, pToolBox) { const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId())); @@ -303,8 +285,6 @@ IMPL_LINK(CellAppearancePropertyPanel, TbxLineColorSelectHdl, ToolBox*, pToolBox return 0; } - - IMPL_LINK(CellAppearancePropertyPanel, TbxCellBorderSelectHdl, ToolBox*, pToolBox) { const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId())); @@ -328,8 +308,6 @@ IMPL_LINK(CellAppearancePropertyPanel, TbxCellBorderSelectHdl, ToolBox*, pToolBo return 0; } - - IMPL_LINK(CellAppearancePropertyPanel, TbxLineStyleSelectHdl, ToolBox*, pToolBox) { const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId())); @@ -354,8 +332,6 @@ IMPL_LINK(CellAppearancePropertyPanel, TbxLineStyleSelectHdl, ToolBox*, pToolBox return 0; } - - IMPL_LINK(CellAppearancePropertyPanel, CBOXGridShowClkHdl, void*, EMPTYARG) { bool bState = mpCBXShowGrid->IsChecked(); @@ -364,8 +340,6 @@ IMPL_LINK(CellAppearancePropertyPanel, CBOXGridShowClkHdl, void*, EMPTYARG) return 0; } - - CellAppearancePropertyPanel* CellAppearancePropertyPanel::Create ( Window* pParent, const cssu::Reference& rxFrame, @@ -384,16 +358,12 @@ CellAppearancePropertyPanel* CellAppearancePropertyPanel::Create ( pBindings); } - - void CellAppearancePropertyPanel::DataChanged( const DataChangedEvent& rEvent) { (void)rEvent; } - - void CellAppearancePropertyPanel::HandleContextChange( const ::sfx2::sidebar::EnumContext aContext) { @@ -405,13 +375,9 @@ void CellAppearancePropertyPanel::HandleContextChange( maContext = aContext; - - // todo } - - void CellAppearancePropertyPanel::NotifyItemUpdate( sal_uInt16 nSID, SfxItemState eState, @@ -690,15 +656,11 @@ void CellAppearancePropertyPanel::NotifyItemUpdate( } } - - SfxBindings* CellAppearancePropertyPanel::GetBindings() { return mpBindings; } - - void CellAppearancePropertyPanel::SetStyleIcon() { const sal_uInt16 nIdBorderLineStyle = mpTBLineStyle->GetItemId( UNO_LINESTYLE ); -- cgit