summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-07-01 13:24:56 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-02 10:00:05 +0200
commit25d1c2f7f7451e6be1b172ae1f97f3c0ad052276 (patch)
treeef992411ba682174223cf57b403d77136203c36c /vcl/source/control
parent3c9822d36e1f03be604491961be9f7c3981c2704 (diff)
tdf#161853 vcl: Drop SvxIconChoiceCtrl_Impl::GetColumn
Since no column is ever set, see Change-Id: I06a877d5ebffef95495cc3e57be088cdc08d71fe Author: Michael Weghorn <m.weghorn@posteo.de> Date: Mon Jul 1 13:19:18 2024 +0200 tdf#161853 vcl: Drop unused SvxIconChoiceCtrl_Impl::SetColumn , there are also no columns to get, so drop `SvxIconChoiceCtrl_Impl::GetColumn` and `SvxIconChoiceCtrl_Impl::m_pColumns` altogether. Change-Id: I113a00d41a40b10df9d4d6dbb71565d462d9f8ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169804 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/imivctl.hxx4
-rw-r--r--vcl/source/control/imivctl1.cxx19
2 files changed, 0 insertions, 23 deletions
diff --git a/vcl/source/control/imivctl.hxx b/vcl/source/control/imivctl.hxx
index aedc238cccab..1ff043def5f5 100644
--- a/vcl/source/control/imivctl.hxx
+++ b/vcl/source/control/imivctl.hxx
@@ -105,7 +105,6 @@ typedef sal_uLong GridId;
// Implementation-class of IconChoiceCtrl
-typedef std::map<sal_uInt16, std::unique_ptr<SvxIconChoiceCtrlColumnInfo>> SvxIconChoiceCtrlColumnInfoMap;
typedef std::vector<SvxIconChoiceCtrlEntry*> SvxIconChoiceCtrlEntryPtrVec;
class SvxIconChoiceCtrl_Impl
@@ -133,7 +132,6 @@ class SvxIconChoiceCtrl_Impl
tools::Long nMaxVirtWidth; // max. width aVirtOutputSize for ALIGN_TOP
tools::Long nMaxVirtHeight; // max. height aVirtOutputSize for ALIGN_LEFT
std::vector< SvxIconChoiceCtrlEntry* > maZOrderList;
- std::unique_ptr<SvxIconChoiceCtrlColumnInfoMap> m_pColumns;
WinBits nWinBits;
tools::Long nMaxBoundHeight; // height of highest BoundRects
IconChoiceFlags nFlags;
@@ -398,8 +396,6 @@ public:
void SetPositionMode( SvxIconChoiceCtrlPositionMode );
- const SvxIconChoiceCtrlColumnInfo* GetColumn( sal_uInt16 nIndex ) const;
-
void SetEntryHighlightFrame(
SvxIconChoiceCtrlEntry* pEntry,
bool bKeepHighlightFlags
diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx
index 9579784ea818..71404180eb0d 100644
--- a/vcl/source/control/imivctl1.cxx
+++ b/vcl/source/control/imivctl1.cxx
@@ -107,7 +107,6 @@ SvxIconChoiceCtrl_Impl::~SvxIconChoiceCtrl_Impl()
pImpCursor.reset();
pGridMap.reset();
ClearSelectedRectList();
- m_pColumns.reset();
aVerSBar.disposeAndClear();
aHorSBar.disposeAndClear();
aScrBarBox.disposeAndClear();
@@ -2060,14 +2059,6 @@ void SvxIconChoiceCtrl_Impl::SetGrid( const Size& rSize )
aSize.setHeight( aMinSize.Height() );
nGridDX = aSize.Width();
- // HACK: Detail mode is not yet fully implemented, this workaround makes it
- // fly with a single column
- if( nWinBits & WB_DETAILS )
- {
- const SvxIconChoiceCtrlColumnInfo* pCol = GetColumn( 0 );
- if( pCol )
- const_cast<SvxIconChoiceCtrlColumnInfo*>(pCol)->SetWidth( nGridDX );
- }
nGridDY = aSize.Height();
SetDefaultTextSize();
}
@@ -2797,16 +2788,6 @@ bool SvxIconChoiceCtrl_Impl::RequestHelp( const HelpEvent& rHEvt )
return true;
}
-const SvxIconChoiceCtrlColumnInfo* SvxIconChoiceCtrl_Impl::GetColumn( sal_uInt16 nIndex ) const
-{
- if (!m_pColumns)
- return nullptr;
- auto const it = m_pColumns->find( nIndex );
- if (it == m_pColumns->end())
- return nullptr;
- return it->second.get();
-}
-
void SvxIconChoiceCtrl_Impl::DrawHighlightFrame(vcl::RenderContext& rRenderContext, const tools::Rectangle& rBmpRect)
{
tools::Rectangle aBmpRect(rBmpRect);