summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-17 13:23:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-18 06:15:55 +0000
commit292560a957498bed70b625c992ec6bcf631dceb3 (patch)
tree4b4c39fbabf370d870ac9a5b2c6154df2238599a /svx
parente64ea98801d20e5024da900a0ac8faaf565f4bf3 (diff)
loplugin:unusedmethods
Change-Id: Icf773925c37dde8b7404edac9864e7b10fe113b4 Reviewed-on: https://gerrit.libreoffice.org/29968 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx95
-rw-r--r--svx/source/sidebar/nbdtmg.cxx42
-rw-r--r--svx/source/sidebar/tools/ValueSetWithTextControl.cxx29
3 files changed, 0 insertions, 166 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 570ae38136ca..30ead1213a10 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1169,30 +1169,6 @@ VCL_BUILDER_DECL_FACTORY(HatchingLB)
rRet = pListBox;
}
-void HatchingLB::Fill( const XHatchListRef &pList )
-{
- if( !pList.is() )
- return;
-
- mpList = pList;
- long nCount = pList->Count();
-
- SetUpdateMode( false );
-
- for( long i = 0; i < nCount; i++ )
- {
- const XHatchEntry* pEntry = pList->GetHatch(i);
- const Bitmap aBitmap = pList->GetUiBitmap( i );
- if( !aBitmap.IsEmpty() )
- InsertEntry(pEntry->GetName(), Image(aBitmap));
- else
- InsertEntry( pEntry->GetName() );
- }
-
- AdaptDropDownLineCountToMaximum();
- SetUpdateMode( true );
-}
-
// Fills the listbox (provisional) with strings
void FillAttrLB::Fill( const XHatchListRef &pList )
@@ -1234,52 +1210,6 @@ VCL_BUILDER_DECL_FACTORY(GradientLB)
rRet = pListBox;
}
-void GradientLB::Fill( const XGradientListRef &pList )
-{
- if( !pList.is() )
- return;
-
- mpList = pList;
- long nCount = pList->Count();
-
- SetUpdateMode( false );
-
- for( long i = 0; i < nCount; i++ )
- {
- const XGradientEntry* pEntry = pList->GetGradient(i);
- const Bitmap aBitmap = pList->GetUiBitmap( i );
- if( !aBitmap.IsEmpty() )
- InsertEntry(pEntry->GetName(), Image(aBitmap));
- else
- InsertEntry( pEntry->GetName() );
- }
-
- AdaptDropDownLineCountToMaximum();
- SetUpdateMode( true );
-}
-
-void GradientLB::SelectEntryByList( const XGradientListRef &pList, const OUString& rStr,
- const XGradient& rGradient )
-{
- long nCount = pList.get() ? pList->Count() : 0;
- const XGradientEntry* pEntry;
- bool bFound = false;
- OUString aStr;
-
- long i;
- for( i = 0; i < nCount && !bFound; i++ )
- {
- pEntry = pList->GetGradient( i );
-
- aStr = pEntry->GetName();
-
- if( rStr == aStr && rGradient == pEntry->GetGradient() )
- bFound = true;
- }
- if( bFound )
- SelectEntryPos( (sal_uInt16) ( i - 1 ) );
-}
-
// Fills the listbox (provisional) with strings
void FillAttrLB::Fill( const XGradientListRef &pList )
@@ -1376,31 +1306,6 @@ namespace
}
} // end of anonymous namespace
-void BitmapLB::Fill( const XBitmapListRef &pList )
-{
- if( !pList.is() )
- return;
-
- mpList = pList;
- const XBitmapEntry* pEntry;
- const long nCount(pList->Count());
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
- const Size aSize(rStyleSettings.GetListBoxPreviewDefaultPixelSize());
-
- SetUpdateMode(false);
-
- for(long i(0); i < nCount; i++)
- {
- pEntry = pList->GetBitmap(i);
- maBitmapEx = pEntry->GetGraphicObject().GetGraphic().GetBitmapEx();
- formatBitmapExToSize(maBitmapEx, aSize);
- InsertEntry(pEntry->GetName(), Image(maBitmapEx));
- }
-
- AdaptDropDownLineCountToMaximum();
- SetUpdateMode(true);
-}
-
FillAttrLB::FillAttrLB(vcl::Window* pParent, WinBits aWB)
: ColorListBox(pParent, aWB)
{
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx
index e4b3a0f1460f..d5db8f9be7aa 100644
--- a/svx/source/sidebar/nbdtmg.cxx
+++ b/svx/source/sidebar/nbdtmg.cxx
@@ -451,48 +451,6 @@ bool BulletsTypeMgr::IsCustomized(sal_uInt16 nIndex)
return bRet;
}
-sal_Unicode BulletsTypeMgr::GetBulChar(sal_uInt16 nIndex)
-{
- sal_Unicode cChar;
- //sal_uInt16 nLength = 0;
- //nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
-
- if ( nIndex >= DEFAULT_BULLET_TYPES )
- cChar = ' ';
- else
- cChar = pActualBullets[nIndex]->cBulletChar;
-
- /*if( AllSettings::GetLayoutRTL() )
- {
- nLength = sizeof(aDynamicRTLBulletTypes)/sizeof(sal_Unicode);
-
- if ( nIndex >= nLength )
- cChar = ' ';
- else
- cChar = aDynamicRTLBulletTypes[nIndex];
- }else
- {
- nLength = sizeof(aDynamicBulletTypes)/sizeof(sal_Unicode);
-
- if ( nIndex >= nLength )
- cChar = ' ';
- else
- cChar = aDynamicBulletTypes[nIndex];
- }*/
-
- return cChar;
-}
-vcl::Font BulletsTypeMgr::GetBulCharFont(sal_uInt16 nIndex)
-{
- vcl::Font aRet;
- if ( nIndex >= DEFAULT_BULLET_TYPES )
- aRet = lcl_GetDefaultBulletFont();
- else
- aRet = pActualBullets[nIndex]->aFont;
-
- return aRet;
-}
-
// Numbering Type lib
NumberingTypeMgr::NumberingTypeMgr()
: NBOTypeMgrBase()
diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
index a9b1fc674d3d..1d8f88710c6c 100644
--- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
+++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
@@ -37,35 +37,6 @@ ValueSetWithTextControl::ValueSetWithTextControl(Window* pParent, WinBits nBits)
SetColCount();
}
-void ValueSetWithTextControl::AddItem(
- const Image& rItemImage,
- const OUString& rItemText,
- const OUString* pItemHelpText )
-{
- if ( meControlType != ControlType::ImageText )
- {
- return;
- }
-
- ValueSetWithTextItem aItem;
- aItem.maItemImage = rItemImage;
- aItem.maSelectedItemImage = rItemImage;
-
- if ( GetDPIScaleFactor() > 1 )
- {
- BitmapEx b = aItem.maItemImage.GetBitmapEx();
- b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor());
- aItem.maItemImage = Image(b);
- }
-
- aItem.maItemText = rItemText;
-
- maItems.push_back( aItem );
-
- InsertItem( maItems.size() );
- SetItemText( maItems.size(),
- (pItemHelpText != nullptr) ? *pItemHelpText : rItemText );
-}
void ValueSetWithTextControl::AddItem(
const OUString& rItemText,