diff options
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/tools/Popup.cxx | 7 | ||||
-rw-r--r-- | svx/source/sidebar/tools/ValueSetWithTextControl.cxx | 39 |
2 files changed, 0 insertions, 46 deletions
diff --git a/svx/source/sidebar/tools/Popup.cxx b/svx/source/sidebar/tools/Popup.cxx index 1ab29dcda1bf..eb1f3dac014f 100644 --- a/svx/source/sidebar/tools/Popup.cxx +++ b/svx/source/sidebar/tools/Popup.cxx @@ -90,13 +90,6 @@ void Popup::Hide() mxContainer->EndPopupMode(); } -void Popup::SetPopupModeEndHandler (const ::std::function<void ()>& rCallback) -{ - maPopupModeEndCallback = rCallback; - if (mxContainer) - mxContainer->SetPopupModeEndHdl(LINK(this, Popup, PopupModeEndHandler)); -} - void Popup::ProvideContainerAndControl() { if ( ! (mxContainer && mxControl) diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index 440ea416dc94..e3377e07e130 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -104,45 +104,6 @@ void ValueSetWithTextControl::AddItem( } -void ValueSetWithTextControl::ReplaceItemImages( - const sal_uInt16 nItemId, - const Image& rItemImage, - const Image* pSelectedItemImage ) -{ - if ( meControlType != IMAGE_TEXT ) - { - return; - } - - if ( nItemId == 0 || - nItemId > maItems.size() ) - { - return; - } - - maItems[nItemId-1].maItemImage = rItemImage; - maItems[nItemId-1].maSelectedItemImage = (pSelectedItemImage != nullptr) - ? *pSelectedItemImage - : rItemImage; - -//#ifndef MACOSX - if ( GetDPIScaleFactor() > 1 ) - { - BitmapEx b = maItems[nItemId-1].maItemImage.GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); - maItems[nItemId-1].maItemImage = Image(b); - - if ( pSelectedItemImage != nullptr ) - { - b = maItems[nItemId-1].maSelectedItemImage.GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); - maItems[nItemId-1].maSelectedItemImage = Image(b); - } - } -//#endif -} - - void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) { const Rectangle aRect = rUDEvt.GetRect(); |