summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/app/AppSwapWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/app/AppSwapWindow.cxx')
-rw-r--r--dbaccess/source/ui/app/AppSwapWindow.cxx21
1 files changed, 7 insertions, 14 deletions
diff --git a/dbaccess/source/ui/app/AppSwapWindow.cxx b/dbaccess/source/ui/app/AppSwapWindow.cxx
index 2eba13004c3b..97f6cc0259ba 100644
--- a/dbaccess/source/ui/app/AppSwapWindow.cxx
+++ b/dbaccess/source/ui/app/AppSwapWindow.cxx
@@ -36,10 +36,8 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
-//==================================================================
// class OApplicationSwapWindow
DBG_NAME(OApplicationSwapWindow)
-//==================================================================
OApplicationSwapWindow::OApplicationSwapWindow( Window* _pParent, OAppBorderWindow& _rBorderWindow )
:Window(_pParent,WB_DIALOGCONTROL )
,m_aIconControl(this)
@@ -55,13 +53,13 @@ OApplicationSwapWindow::OApplicationSwapWindow( Window* _pParent, OAppBorderWind
m_aIconControl.SetHelpId(HID_APP_SWAP_ICONCONTROL);
m_aIconControl.Show();
}
-// -----------------------------------------------------------------------------
+
OApplicationSwapWindow::~OApplicationSwapWindow()
{
DBG_DTOR(OApplicationSwapWindow,NULL);
}
-// -----------------------------------------------------------------------------
+
void OApplicationSwapWindow::Resize()
{
Size aFLSize = LogicToPixel( Size( 8, 0 ), MAP_APPFONT );
@@ -74,7 +72,7 @@ void OApplicationSwapWindow::Resize()
m_aIconControl.SetPosSizePixel( Point(static_cast<long>((aOutputSize.Width() - nX)*0.5), 0) ,Size(nX,aOutputSize.Height()));
m_aIconControl.ArrangeIcons();
}
-// -----------------------------------------------------------------------------
+
void OApplicationSwapWindow::ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -95,7 +93,7 @@ void OApplicationSwapWindow::ImplInitSettings( sal_Bool bFont, sal_Bool bForegro
if( bBackground )
SetBackground( rStyleSettings.GetFieldColor() );
}
-// -----------------------------------------------------------------------
+
void OApplicationSwapWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
Window::DataChanged( rDCEvt );
@@ -109,7 +107,7 @@ void OApplicationSwapWindow::DataChanged( const DataChangedEvent& rDCEvt )
Invalidate();
}
}
-// -----------------------------------------------------------------------------
+
void OApplicationSwapWindow::clearSelection()
{
m_aIconControl.SetNoSelection();
@@ -120,13 +118,11 @@ void OApplicationSwapWindow::clearSelection()
m_aIconControl.GetClickHdl().Call(&m_aIconControl);
}
-// -----------------------------------------------------------------------------
void OApplicationSwapWindow::createIconAutoMnemonics( MnemonicGenerator& _rMnemonics )
{
m_aIconControl.CreateAutoMnemonics( _rMnemonics );
}
-// -----------------------------------------------------------------------------
bool OApplicationSwapWindow::interceptKeyInput( const KeyEvent& _rEvent )
{
const KeyCode& rKeyCode = _rEvent.GetKeyCode();
@@ -137,7 +133,6 @@ bool OApplicationSwapWindow::interceptKeyInput( const KeyEvent& _rEvent )
return false;
}
-// -----------------------------------------------------------------------------
ElementType OApplicationSwapWindow::getElementType() const
{
sal_uLong nPos = 0;
@@ -145,7 +140,6 @@ ElementType OApplicationSwapWindow::getElementType() const
return ( pEntry ) ? *static_cast<ElementType*>(pEntry->GetUserData()) : E_NONE;
}
-// -----------------------------------------------------------------------------
bool OApplicationSwapWindow::onContainerSelected( ElementType _eType )
{
if ( m_eLastType == _eType )
@@ -162,7 +156,6 @@ bool OApplicationSwapWindow::onContainerSelected( ElementType _eType )
return false;
}
-// -----------------------------------------------------------------------------
IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pControl)
{
sal_uLong nPos = 0;
@@ -176,13 +169,13 @@ IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pCo
return 1L;
}
-//------------------------------------------------------------------------------
+
IMPL_LINK_NOARG(OApplicationSwapWindow, ChangeToLastSelected)
{
selectContainer(m_eLastType);
return 0L;
}
-// -----------------------------------------------------------------------------
+
void OApplicationSwapWindow::selectContainer(ElementType _eType)
{
sal_uLong nCount = m_aIconControl.GetEntryCount();