Lines Matching refs:i_nPosition
105 size_t ToolPanelCollection::InsertPanel( const PToolPanel& i_pPanel, const size_t i_nPosition ) in InsertPanel() argument
112 …const size_t position = i_nPosition < m_pData->aPanels.size() ? i_nPosition : m_pData->aPanels.siz… in InsertPanel()
118 if ( i_nPosition <= *m_pData->aActivePanel ) in InsertPanel()
123 m_pData->aListeners.PanelInserted( i_pPanel, i_nPosition ); in InsertPanel()
129 PToolPanel ToolPanelCollection::RemovePanel( const size_t i_nPosition ) in RemovePanel() argument
131 …OSL_ENSURE( i_nPosition < m_pData->aPanels.size(), "ToolPanelCollection::RemovePanel: illegal posi… in RemovePanel()
132 if ( i_nPosition >= m_pData->aPanels.size() ) in RemovePanel()
136 if ( m_pData->aActivePanel == i_nPosition ) in RemovePanel()
140 if ( i_nPosition + 1 < GetPanelCount() ) in RemovePanel()
144 else if ( i_nPosition > 0 ) in RemovePanel()
157 PToolPanel pRemovedPanel( m_pData->aPanels[ i_nPosition ] ); in RemovePanel()
160 m_pData->aPanels.erase( m_pData->aPanels.begin() + i_nPosition ); in RemovePanel()
164 if ( i_nPosition < *m_pData->aActivePanel ) in RemovePanel()
171 m_pData->aListeners.PanelRemoved( i_nPosition ); in RemovePanel()