diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-07-24 11:06:48 -0300 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-25 07:20:34 +0000 |
commit | 6b0ea724538e2abbbdad7e8633e1c03a5e747427 (patch) | |
tree | 387ac521c925bc42e0c0ffe12729002d398b604a /svx | |
parent | c0cffa68488afd07fa99f74631ae121aa87a7d32 (diff) |
Remove some unused code form unusedcode.easy
Change-Id: Ib9f0bc7416c7f05684802ba2bb5f014a340fb2e8
Reviewed-on: https://gerrit.libreoffice.org/5068
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/ColorPanel.cxx | 28 | ||||
-rw-r--r-- | svx/source/sidebar/ColorPanel.hxx | 2 | ||||
-rw-r--r-- | svx/source/sidebar/area/AreaTransparencyGradientControl.cxx | 14 | ||||
-rw-r--r-- | svx/source/sidebar/area/AreaTransparencyGradientControl.hxx | 1 | ||||
-rw-r--r-- | svx/source/sidebar/debug/ColorPanel.cxx | 28 | ||||
-rw-r--r-- | svx/source/sidebar/debug/ColorPanel.hxx | 2 | ||||
-rw-r--r-- | svx/source/sidebar/debug/ContextPanel.cxx | 15 | ||||
-rw-r--r-- | svx/source/sidebar/debug/ContextPanel.hxx | 3 | ||||
-rw-r--r-- | svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 10 | ||||
-rw-r--r-- | svx/source/sidebar/paragraph/ParaPropertyPanel.hxx | 1 | ||||
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 14 | ||||
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.hxx | 1 | ||||
-rw-r--r-- | svx/source/sidebar/text/TextCharacterSpacingControl.cxx | 7 | ||||
-rw-r--r-- | svx/source/sidebar/text/TextCharacterSpacingControl.hxx | 1 |
14 files changed, 0 insertions, 127 deletions
diff --git a/svx/source/sidebar/ColorPanel.cxx b/svx/source/sidebar/ColorPanel.cxx index 92874c03f139..8eda4211e909 100644 --- a/svx/source/sidebar/ColorPanel.cxx +++ b/svx/source/sidebar/ColorPanel.cxx @@ -50,34 +50,6 @@ ColorPanel::~ColorPanel (void) { } - - - -sal_Int32 ColorPanel::GetPreferredHeight (sal_Int32 nWidth) -{ - sal_Int32 nPreferredHeight = 0; - if (GetItemCount()>0) - { - Image aImage = GetItemImage(GetItemId(0)); - Size aItemSize = CalcItemSizePixel (aImage.GetSizePixel()); - if (nWidth>0 && aItemSize.Width()>0) - { - int nColumnCount = nWidth / aItemSize.Width(); - if (nColumnCount <= 0) - nColumnCount = 1; - else if (nColumnCount > 4) - nColumnCount = 4; - int nRowCount = (GetItemCount() + nColumnCount-1) - / nColumnCount; - nPreferredHeight = nRowCount * aItemSize.Height(); - } - } - return nPreferredHeight; -} - - - - void ColorPanel::Resize (void) { ::Window::Resize(); diff --git a/svx/source/sidebar/ColorPanel.hxx b/svx/source/sidebar/ColorPanel.hxx index 4168dff96999..79b781c21ad4 100644 --- a/svx/source/sidebar/ColorPanel.hxx +++ b/svx/source/sidebar/ColorPanel.hxx @@ -49,8 +49,6 @@ private: */ int CalculateRowCount (const Size& rItemSize, int nColumnCount); void Fill (void); - - sal_Int32 GetPreferredHeight (sal_Int32 nWidth); }; } } // end of namespace ::svx::sidebar diff --git a/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx b/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx index 92ebdeeba927..8f1dd828056c 100644 --- a/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx +++ b/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx @@ -111,20 +111,6 @@ AreaTransparencyGradientControl::~AreaTransparencyGradientControl (void) { } - - - -void AreaTransparencyGradientControl::ToGetFocus() -{ - if(maMtrTrgrCenterX.IsVisible()) - maMtrTrgrCenterX.GrabFocus(); - else - maMtrTrgrAngle.GrabFocus(); -} - - - - void AreaTransparencyGradientControl::Rearrange(XFillFloatTransparenceItem* pGradientItem) { InitStatus(pGradientItem); diff --git a/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx b/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx index 5d31d44d5b8b..4b1e4abca1e5 100644 --- a/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx +++ b/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx @@ -37,7 +37,6 @@ public: AreaPropertyPanel& rPanel); virtual ~AreaTransparencyGradientControl (void); - void ToGetFocus(); void Rearrange(XFillFloatTransparenceItem* pGradientItem); void InitStatus(XFillFloatTransparenceItem* pGradientItem); void ExecuteValueModify( sal_uInt8 nStartCol, sal_uInt8 nEndCol ); diff --git a/svx/source/sidebar/debug/ColorPanel.cxx b/svx/source/sidebar/debug/ColorPanel.cxx index 94d082f8db4a..26485f3b8efe 100644 --- a/svx/source/sidebar/debug/ColorPanel.cxx +++ b/svx/source/sidebar/debug/ColorPanel.cxx @@ -48,34 +48,6 @@ ColorPanel::~ColorPanel (void) { } - - - -sal_Int32 ColorPanel::GetPreferredHeight (sal_Int32 nWidth) -{ - sal_Int32 nPreferredHeight = 0; - if (GetItemCount()>0) - { - Image aImage = GetItemImage(GetItemId(0)); - Size aItemSize = CalcItemSizePixel (aImage.GetSizePixel()); - if (nWidth>0 && aItemSize.Width()>0) - { - int nColumnCount = nWidth / aItemSize.Width(); - if (nColumnCount <= 0) - nColumnCount = 1; - else if (nColumnCount > 4) - nColumnCount = 4; - int nRowCount = (GetItemCount() + nColumnCount-1) - / nColumnCount; - nPreferredHeight = nRowCount * aItemSize.Height(); - } - } - return nPreferredHeight; -} - - - - void ColorPanel::Resize (void) { ::Window::Resize(); diff --git a/svx/source/sidebar/debug/ColorPanel.hxx b/svx/source/sidebar/debug/ColorPanel.hxx index 2a53e24198f5..6caa1b2c56c9 100644 --- a/svx/source/sidebar/debug/ColorPanel.hxx +++ b/svx/source/sidebar/debug/ColorPanel.hxx @@ -46,8 +46,6 @@ private: */ int CalculateRowCount (const Size& rItemSize, int nColumnCount); void Fill (void); - - sal_Int32 GetPreferredHeight (sal_Int32 nWidth); }; } } // end of namespace ::svx::sidebar diff --git a/svx/source/sidebar/debug/ContextPanel.cxx b/svx/source/sidebar/debug/ContextPanel.cxx index 0a39a705c0b6..b8dbb5fa12e6 100644 --- a/svx/source/sidebar/debug/ContextPanel.cxx +++ b/svx/source/sidebar/debug/ContextPanel.cxx @@ -40,25 +40,10 @@ ContextPanel::~ContextPanel (void) { } - - - -sal_Int32 ContextPanel::GetPreferredHeight (sal_Int32 /*nWidth*/) -{ - const sal_Int32 nHeight (maContextName.GetPosPixel().Y() + maContextName.GetSizePixel().Height() + 5); - return nHeight; -} - - - - void ContextPanel::HandleContextChange (const sfx2::sidebar::EnumContext aContext) { maApplicationName.SetText(aContext.GetApplicationName()); maContextName.SetText(aContext.GetContextName()); } - - - } } // end of namespace ::svx::sidebar diff --git a/svx/source/sidebar/debug/ContextPanel.hxx b/svx/source/sidebar/debug/ContextPanel.hxx index 7115a352435c..d7a91c2b6596 100644 --- a/svx/source/sidebar/debug/ContextPanel.hxx +++ b/svx/source/sidebar/debug/ContextPanel.hxx @@ -36,9 +36,6 @@ public: ContextPanel (::Window* pParent); virtual ~ContextPanel (void); - // From Window - sal_Int32 GetPreferredHeight (sal_Int32 nWidth); - // From IContextChangeReceiverInterface virtual void HandleContextChange (const ::sfx2::sidebar::EnumContext aContext); diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index 83e2a609a9ba..9574ea39c819 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -633,16 +633,6 @@ IMPL_LINK( ParaPropertyPanel, ImplPopupModeEndHdl, FloatingWindow*, EMPTYARG ) return 0; } -void ParaPropertyPanel::ShowMenu (void) -{ - if (mpBindings != NULL) - { - SfxDispatcher* pDispatcher = mpBindings->GetDispatcher(); - if (pDispatcher != NULL) - pDispatcher->Execute(SID_PARA_DLG, SFX_CALLMODE_ASYNCHRON); - } -} - void ParaPropertyPanel::ParaBKGStateChanged(sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState) { if( eState >= SFX_ITEM_DEFAULT && pState->ISA(SvxColorItem)) diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx index 054485046037..5577ef4f7f69 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx @@ -80,7 +80,6 @@ public: const SfxPoolItem* pState, const bool bIsEnabled); - void ShowMenu (void); sal_uInt16 GetBulletTypeIndex(){ return mnBulletTypeIndex; } sal_uInt16 GetNumTypeIndex(){ return mnNumTypeIndex; } FieldUnit GetCurrentUnit( SfxItemState eState, const SfxPoolItem* pState ); diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 75a8d45e0f5b..7525bda346e0 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -119,20 +119,6 @@ PosSizePropertyPanel::~PosSizePropertyPanel() { } - - -void PosSizePropertyPanel::ShowMenu (void) -{ - if (mpBindings != NULL) - { - SfxDispatcher* pDispatcher = mpBindings->GetDispatcher(); - if (pDispatcher != NULL) - pDispatcher->Execute(SID_ATTR_TRANSFORM, SFX_CALLMODE_ASYNCHRON); - } -} - - - namespace { bool hasText(const SdrView& rSdrView) diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx index 9ec72cb5ab31..4c3b6623db2b 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx @@ -66,7 +66,6 @@ public: const bool bIsEnabled); SfxBindings* GetBindings(); - void ShowMenu (void); private: //Position diff --git a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx index 96371cec632c..c7b3e224e10f 100644 --- a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx +++ b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx @@ -137,13 +137,6 @@ void TextCharacterSpacingControl::initial() maVSSpacing.StartSelection(); maVSSpacing.Show(); } -void TextCharacterSpacingControl::ToGetFocus() -{ - if(!mbVS) - maLBKerning.GrabFocus(); - else - maVSSpacing.GrabFocus(); -} void TextCharacterSpacingControl::Rearrange(bool bLBAvailable,bool bAvailable, long nKerning) { diff --git a/svx/source/sidebar/text/TextCharacterSpacingControl.hxx b/svx/source/sidebar/text/TextCharacterSpacingControl.hxx index 2e0aef983992..f876f794562c 100644 --- a/svx/source/sidebar/text/TextCharacterSpacingControl.hxx +++ b/svx/source/sidebar/text/TextCharacterSpacingControl.hxx @@ -46,7 +46,6 @@ public: svx::sidebar::TextPropertyPanel& rPanel, SfxBindings* pBindings); virtual ~TextCharacterSpacingControl(); - void ToGetFocus(); void Rearrange(bool bLBAvailable,bool bAvailable, long nKerning); //virtual void Paint(const Rectangle& rect); |