diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-17 13:23:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-18 06:15:55 +0000 |
commit | 292560a957498bed70b625c992ec6bcf631dceb3 (patch) | |
tree | 4b4c39fbabf370d870ac9a5b2c6154df2238599a /svx/source/sidebar | |
parent | e64ea98801d20e5024da900a0ac8faaf565f4bf3 (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/source/sidebar')
-rw-r--r-- | svx/source/sidebar/nbdtmg.cxx | 42 | ||||
-rw-r--r-- | svx/source/sidebar/tools/ValueSetWithTextControl.cxx | 29 |
2 files changed, 0 insertions, 71 deletions
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, |