Kaydet (Commit) 6b0ea724 authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Fridrich Strba

Remove some unused code form unusedcode.easy

Change-Id: Ib9f0bc7416c7f05684802ba2bb5f014a340fb2e8
Reviewed-on: https://gerrit.libreoffice.org/5068Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst c0cffa68
......@@ -196,10 +196,7 @@ public:
void DrawRect( const Rectangle& rRect );
void FillPolygon( const Polygon& rPoly );
void DrawPolygon( const Polygon& rPoly );
void FillPolyPolygon( const PolyPolygon& rPoly );
void DrawPolyPolygon( const PolyPolygon& rPolyPoly );
private:
......
......@@ -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();
......
......@@ -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
......
......@@ -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);
......
......@@ -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 );
......
......@@ -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();
......
......@@ -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
......
......@@ -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
......@@ -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);
......
......@@ -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))
......
......@@ -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 );
......
......@@ -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)
......
......@@ -66,7 +66,6 @@ public:
const bool bIsEnabled);
SfxBindings* GetBindings();
void ShowMenu (void);
private:
//Position
......
......@@ -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)
{
......
......@@ -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);
......
......@@ -4,8 +4,6 @@
(anonymous namespace)::StringTokenizer::getNextToken()
(anonymous namespace)::VBATest::testMiscOLEStuff()
AffineMatrixItem::GetAffineMatrix2D() const
BitmapWriteAccess::DrawPolyPolygon(PolyPolygon const&)
BitmapWriteAccess::DrawPolygon(Polygon const&)
DbgRegisterNamedUserChannel(rtl::OUString const&, void (*)(char const*))
EditTextObjectImpl::SetParaAttribs(int, SfxItemSet const&)
FontSelectPatternAttributes::FontSelectPatternAttributes(PhysicalFontFace const&, Size const&, float, int, bool)
......@@ -195,10 +193,7 @@ std::auto_ptr<formula::FormulaTokenArray>::auto_ptr(std::auto_ptr_ref<formula::F
svx::DialControl::GetLinkedField() const
svx::DialControl::GetModifyHdl() const
svx::sidebar::AreaPropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
svx::sidebar::AreaTransparencyGradientControl::ToGetFocus()
svx::sidebar::BulletsTypeMgr::BulletsTypeMgr(unsigned short, SfxItemSet const*)
svx::sidebar::ColorPanel::GetPreferredHeight(int)
svx::sidebar::ContextPanel::GetPreferredHeight(int)
svx::sidebar::GraphyicBulletsTypeMgr::GraphyicBulletsTypeMgr(unsigned short, SfxItemSet const*)
svx::sidebar::LinePropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
svx::sidebar::LineWidthControl::GetValueSet()
......@@ -210,9 +205,6 @@ svx::sidebar::NumberingTypeMgr::NumberingTypeMgr(unsigned short, SfxItemSet cons
svx::sidebar::OutlineTypeMgr::OutlineTypeMgr(unsigned short, SfxItemSet const*)
svx::sidebar::ParaPropertyPanel::InitImageList(boost::scoped_ptr<ToolBox>&, ImageList&, ImageList&)
svx::sidebar::ParaPropertyPanel::LinkStubImplPopupModeEndHdl(void*, void*)
svx::sidebar::ParaPropertyPanel::ShowMenu()
svx::sidebar::PosSizePropertyPanel::ShowMenu()
svx::sidebar::TextCharacterSpacingControl::ToGetFocus()
unoidl::UnoidlProvider::getConstant(unsigned int) const
utl::ConfigItem::getUniqueSetElementName(rtl::OUString const&, rtl::OUString&)
utl::toISO8601(com::sun::star::util::Time const&)
......
......@@ -285,27 +285,6 @@ void BitmapWriteAccess::FillPolygon( const Polygon& rPoly )
}
}
// ------------------------------------------------------------------
void BitmapWriteAccess::DrawPolygon( const Polygon& rPoly )
{
if( mpFillColor )
FillPolygon( rPoly );
if( mpLineColor && ( !mpFillColor || ( *mpFillColor != *mpLineColor ) ) )
{
const sal_uInt16 nSize = rPoly.GetSize();
for( sal_uInt16 i = 0, nSize1 = nSize - 1; i < nSize1; i++ )
DrawLine( rPoly[ i ], rPoly[ i + 1 ] );
if( rPoly[ nSize - 1 ] != rPoly[ 0 ] )
DrawLine( rPoly[ nSize - 1 ], rPoly[ 0 ] );
}
}
// ------------------------------------------------------------------
void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly )
{
const sal_uInt16 nCount = rPolyPoly.Count();
......@@ -346,30 +325,4 @@ void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly )
}
}
// ------------------------------------------------------------------
void BitmapWriteAccess::DrawPolyPolygon( const PolyPolygon& rPolyPoly )
{
if( mpFillColor )
FillPolyPolygon( rPolyPoly );
if( mpLineColor && ( !mpFillColor || ( *mpFillColor != *mpLineColor ) ) )
{
for( sal_uInt16 n = 0, nCount = rPolyPoly.Count(); n < nCount; )
{
const Polygon& rPoly = rPolyPoly[ n++ ];
const sal_uInt16 nSize = rPoly.GetSize();
if( nSize )
{
for( sal_uInt16 i = 0, nSize1 = nSize - 1; i < nSize1; i++ )
DrawLine( rPoly[ i ], rPoly[ i + 1 ] );
if( rPoly[ nSize - 1 ] != rPoly[ 0 ] )
DrawLine( rPoly[ nSize - 1 ], rPoly[ 0 ] );
}
}
}
}
/* 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